In mathematics, atriangular matrix is a special kind ofsquare matrix. A square matrix is calledlower triangular if all the entriesabove themain diagonal are zero. Similarly, a square matrix is calledupper triangular if all the entriesbelow the main diagonal are zero.
Because matrix equations with triangular matrices are easier to solve, they are very important innumerical analysis. By theLU decomposition algorithm, aninvertible matrix may be written as theproduct of a lower triangular matrixL and an upper triangular matrixUif and only if all its leading principalminors are non-zero.
A matrix of the form
is called alower triangular matrix orleft triangular matrix, and analogously a matrix of the form
is called anupper triangular matrix orright triangular matrix. A lower or left triangular matrix is commonly denoted with the variableL, and an upper or right triangular matrix is commonly denoted with the variableU orR.
A matrix that is both upper and lower triangular isdiagonal. Matrices that aresimilar to triangular matrices are calledtriangularisable.
A non-square (or sometimes any) matrix with zeros above (below) the diagonal is called a lower (upper) trapezoidal matrix. The non-zero entries form the shape of atrapezoid.
The matrix
is the lower triangular for the non symmetric matrix:
and
is the upper triangular for the non symmetric matrix:
A matrix equation in the form or is very easy to solve by an iterative process calledforward substitution for lower triangular matrices and analogouslyback substitution for upper triangular matrices. The process is so called because for lower triangular matrices, one first computes, then substitutes thatforward into thenext equation to solve for, and repeats through to. In an upper triangular matrix, one worksbackwards, first computing, then substituting thatback into theprevious equation to solve for, and repeating through.
Notice that this does not require inverting the matrix.
The matrix equationLx =b can be written as a system of linear equations
Observe that the first equation () only involves, and thus one can solve for directly. The second equation only involves and, and thus can be solved once one substitutes in the already solved value for. Continuing in this way, the-th equation only involves, and one can solve for using the previously solved values for. The resulting formulas are:
A matrix equation with an upper triangular matrixU can be solved in an analogous way, only working backwards.
Forward substitution is used in financialbootstrapping to construct ayield curve.
Thetranspose of an upper triangular matrix is a lower triangular matrix and vice versa.
A matrix which is both symmetric and triangular is diagonal.In a similar vein, a matrix which is bothnormal (meaningA*A =AA*, whereA* is theconjugate transpose) and triangular is also diagonal. This can be seen by looking at the diagonal entries ofA*A andAA*.
Thedeterminant andpermanent of a triangular matrix equal the product of the diagonal entries, as can be checked by direct computation.
In fact more is true: theeigenvalues of a triangular matrix are exactly its diagonal entries. Moreover, each eigenvalue occurs exactlyk times on the diagonal, wherek is itsalgebraic multiplicity, that is, itsmultiplicity as a root of thecharacteristic polynomial ofA. In other words, the characteristic polynomial of a triangularn×n matrixA is exactly
that is, the unique degreen polynomial whose roots are the diagonal entries ofA (with multiplicities).To see this, observe that is also triangular and hence its determinant is the product of its diagonal entries.[1]
If the entries on themain diagonal of a (lower or upper) triangular matrix are all 1, the matrix is called (lower or upper)unitriangular.
Other names used for these matrices areunit (lower or upper)triangular, or very rarelynormed (lower or upper)triangular. However, aunit triangular matrix is not the same astheunit matrix, and anormed triangular matrix has nothing to do with the notion ofmatrix norm.
All finite unitriangular matrices areunipotent.
If all of the entries on the main diagonal of a (lower or upper) triangular matrix are also 0, the matrix is calledstrictly (lower or upper)triangular.
All finite strictly triangular matrices arenilpotent of index at mostn as a consequence of theCayley–Hamilton theorem.
Anatomic (lower or upper)triangular matrix is a special form of unitriangular matrix, where all of theoff-diagonal elements are zero, except for the entries in a single column. Such a matrix is also called aFrobenius matrix, aGauss matrix, or aGauss transformation matrix.
A block triangular matrix is ablock matrix (partitioned matrix) that is a triangular matrix.
A matrix isupper block triangular if
where for all.[2]
A matrix islower block triangular if
where for all.[2]
A matrix that issimilar to a triangular matrix is referred to astriangularizable. Abstractly, this is equivalent to stabilizing aflag: upper triangular matrices are precisely those that preserve thestandard flag, which is given by the standard ordered basis and the resulting flag All flags are conjugate (as thegeneral linear group acts transitively on bases), so any matrix that stabilises a flag is similar to one that stabilizes the standard flag.
Any complex square matrix is triangularizable.[1] In fact, a matrixA over afield containing all of the eigenvalues ofA (for example, any matrix over analgebraically closed field) is similar to a triangular matrix. This can be proven by using induction on the fact thatA has an eigenvector, by taking the quotient space by the eigenvector and inducting to show thatA stabilizes a flag, and is thus triangularizable with respect to a basis for that flag.
A more precise statement is given by theJordan normal form theorem, which states that in this situation,A is similar to an upper triangular matrix of a very particular form. The simpler triangularization result is often sufficient however, and in any case used in proving the Jordan normal form theorem.[1][3]
In the case of complex matrices, it is possible to say more about triangularization, namely, that any square matrixA has aSchur decomposition. This means thatA is unitarily equivalent (i.e. similar, using aunitary matrix as change of basis) to an upper triangular matrix; this follows by taking an Hermitian basis for the flag.
A set of matrices are said to besimultaneously triangularisable if there is a basis under which they are all upper triangular; equivalently, if they are upper triangularizable by a single similarity matrixP. Such a set of matrices is more easily understood by considering the algebra of matrices it generates, namely all polynomials in the denoted Simultaneous triangularizability means that this algebra is conjugate into the Lie subalgebra of upper triangular matrices, and is equivalent to this algebra being a Lie subalgebra of aBorel subalgebra.
The basic result is that (over an algebraically closed field), thecommuting matrices or more generally are simultaneously triangularizable. This can be proven by first showing that commuting matrices have a common eigenvector, and then inducting on dimension as before. This was proven by Frobenius, starting in 1878 for a commuting pair, as discussed atcommuting matrices. As for a single matrix, over the complex numbers these can be triangularized by unitary matrices.
The fact that commuting matrices have a common eigenvector can be interpreted as a result ofHilbert's Nullstellensatz: commuting matrices form a commutative algebra over which can be interpreted as a variety ink-dimensional affine space, and the existence of a (common) eigenvalue (and hence a common eigenvector) corresponds to this variety having a point (being non-empty), which is the content of the (weak) Nullstellensatz.[citation needed] In algebraic terms, these operators correspond to analgebra representation of the polynomial algebra ink variables.
This is generalized byLie's theorem, which shows that any representation of asolvable Lie algebra is simultaneously upper triangularizable, the case of commuting matrices being theabelian Lie algebra case, abelian being a fortiori solvable.
More generally and precisely, a set of matrices is simultaneously triangularisable if and only if the matrix isnilpotent for all polynomialsp inknon-commuting variables, where is thecommutator; for commuting the commutator vanishes so this holds. This was proven by Drazin, Dungey, and Gruenberg in 1951;[4] a brief proof is given by Prasolov in 1994.[5] One direction is clear: if the matrices are simultaneously triangularisable, then isstrictly upper triangularizable (hence nilpotent), which is preserved by multiplication by any or combination thereof – it will still have 0s on the diagonal in the triangularizing basis.

Upper triangularity is preserved by many operations:
Together these facts mean that the upper triangular matrices form asubalgebra of theassociative algebra of square matrices for a given size. Additionally, this also shows that the upper triangular matrices can be viewed as a Lie subalgebra of theLie algebra of square matrices of a fixed size, where theLie bracket [a,b] given by thecommutatorab − ba. The Lie algebra of all upper triangular matrices is asolvable Lie algebra. It is often referred to as aBorel subalgebra of the Lie algebra of all square matrices.
All these results hold ifupper triangular is replaced bylower triangular throughout; in particular the lower triangular matrices also form a Lie algebra. However, operations mixing upper and lower triangular matrices do not in general produce triangular matrices. For instance, the sum of an upper and a lower triangular matrix can be any matrix; the product of a lower triangular with an upper triangular matrix is not necessarily triangular either.
The set of unitriangular matrices forms aLie group.
The set of strictly upper (or lower) triangular matrices forms anilpotent Lie algebra, denoted This algebra is thederived Lie algebra of, the Lie algebra of all upper triangular matrices; in symbols, In addition, is the Lie algebra of the Lie group of unitriangular matrices.
In fact, byEngel's theorem, any finite-dimensional nilpotent Lie algebra is conjugate to a subalgebra of the strictly upper triangular matrices, that is to say, a finite-dimensional nilpotent Lie algebra is simultaneously strictly upper triangularizable.
Algebras of upper triangular matrices have a natural generalization infunctional analysis which yieldsnest algebras onHilbert spaces.
The set of invertible triangular matrices of a given kind (lower or upper) forms agroup, indeed aLie group, which is a subgroup of thegeneral linear group of all invertible matrices. A triangular matrix is invertible precisely when its diagonal entries are invertible (non-zero).
Over the real numbers, this group is disconnected, having components accordingly as each diagonal entry is positive or negative. The identity component is invertible triangular matrices with positive entries on the diagonal, and the group of all invertible triangular matrices is asemidirect product of this group and the group ofdiagonal matrices with on the diagonal, corresponding to the components.
TheLie algebra of the Lie group of invertible upper triangular matrices is the set of all upper triangular matrices, not necessarily invertible, and is asolvable Lie algebra. These are, respectively, the standardBorel subgroupB of the Lie group GLn and the standardBorel subalgebra of the Lie algebra gln.
The upper triangular matrices are precisely those that stabilize thestandard flag. The invertible ones among them form a subgroup of the general linear group, whose conjugate subgroups are those defined as the stabilizer of some (other) complete flag. These subgroups areBorel subgroups. The group of invertible lower triangular matrices is such a subgroup, since it is the stabilizer of the standard flag associated to the standard basis in reverse order.
The stabilizer of a partial flag obtained by forgetting some parts of the standard flag can be described as a set of block upper triangular matrices (but its elements arenot all triangular matrices). The conjugates of such a group are the subgroups defined as the stabilizer of some partial flag. These subgroups are called parabolic subgroups.
The group of 2×2 upper unitriangular matrices isisomorphic to theadditive group of the field of scalars; in the case of complex numbers it corresponds to a group formed of parabolicMöbius transformations; the 3×3 upper unitriangular matrices form theHeisenberg group.