(mathematics) A matrix where either all entries above or all entries below the principal diagonal are zero.
| Sci-Tech Dictionary: triangular matrix |
(mathematics) A matrix where either all entries above or all entries below the principal diagonal are zero.
| 5min Related Video: Triangular matrix |
| Wikipedia: Triangular matrix |
In the mathematical discipline of linear algebra, a triangular matrix is a special kind of square matrix where the entries either below or above the main diagonal are zero. Because matrix equations with triangular matrices are easier to solve they are very important in numerical analysis. The LU decomposition gives an algorithm to decompose any invertible matrix A into two triangular factors: a normed lower triangle matrix L and an upper triangle matrix U.
Contents |
A matrix of the form

is called lower triangular matrix or left triangular matrix, and analogously a matrix of the form

is called upper triangular matrix or right triangular matrix.
The standard operations on triangular matrices conveniently preserve the triangular form: the sum and product of two upper triangular matrices is again upper triangular. The inverse of an upper triangular matrix is also upper triangular, and of course we can multiply an upper triangular matrix by a constant and it will still be upper triangular. This means that the upper triangular matrices form a subalgebra of the ring of square matrices for any given size. The analogous result holds for lower triangular matrices. Note, however, that the product of a lower triangular with an upper triangular matrix does not preserve triangularity.
A triangular matrix with zero entries on the main diagonal is strictly upper or lower triangular. All strictly triangular matrices are nilpotent.
If the entries on the main diagonal are 1, the matrix is called (upper or lower) unitriangular. All unitriangular matrices are unipotent. Other names used for these matrices are unit (upper or lower) triangular (of which "unitriangular" might be a contraction), or normed upper/lower triangular (very rarely used). However a unit triangular matrix is not the same as the unit matrix, and a normed triangular matrix has nothing to do with the notion of matrix norm.
A Gauss matrix is a special form of a unitriangular matrix, where all of the off-diagonal entries are zero, except for the entries in one column. Such a matrix is also called atomic upper/lower triangular or Gauss transformation matrix. So an atomic lower triangular matrix is of the form

The inverse of an atomic triangular matrix is again atomic triangular. Indeed, we have

i.e., the the single column of off-diagonal entries are replaced in the inverse matrix by their additive inverses.
A matrix which is simultaneously upper and lower triangular is diagonal. The identity matrix is the only matrix which is both upper and lower unitriangular.
A matrix which is simultaneously triangular and normal, is also diagonal. This can be seen by looking at the diagonal entries of A*A and AA*, where A is a normal, triangular matrix.
The transpose of an upper triangular matrix is a lower triangular matrix and vice versa.
The determinant of a triangular matrix equals the product of the diagonal entries. Since for any triangular matrix A the matrix xI − A, whose determinant is the characteristic polynomial of A, is also triangular, the diagonal entries of A in fact give the multiset of eigenvalues of A (an eigenvalue with multiplicity m occurs exactly m times as diagonal entry).[1]
Any complex square matrix is similar to a triangular matrix.[1] In fact, a matrix A over a field containing all of the eigenvalues of A (for example, any matrix over an algebraically closed field) is similar to a triangular matrix. A more precise statement is given by the Jordan 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][2]
In the case of complex matrices, it is possible to say more about triangularization, namely, that any square matrix A has a Schur decomposition. This means that A is unitarily equivalent (i.e. similar, using a unitary matrix as change of basis) to an upper triangular matrix.
The variable L is commonly used for lower triangular matrix, standing for lower/left, while the variable U or R is commonly used for upper triangular matrix, standing for upper/right.
Many operations can be performed more easily on triangular matrices than on general matrices. Notably matrix inversion (when possible) can be done by back substitution, avoiding the complications of general Gaussian elimination.
The inverse of a triangular matrix is also triangular.
The product of two lower triangular matrices produces a lower triangular matrix.
The product of two upper triangular matrices produces an upper triangular matrix.
Because the product of two upper triangular matrices is again upper triangular, the set of upper triangular matrices forms an algebra. Algebras of upper triangular matrices have a natural generalization in functional analysis which yields nest algebras on Hilbert spaces.
The set of invertible triangular matrices of a given kind (upper or lower) forms a group, which is a subgroup of the general linear group of all invertible matrices. The group of 2 by 2 upper unitriangular matrices is isomorphic to the additive group of the field of scalars; in the case of complex numbers it corresponds to a group formed of parabolic Möbius transformations; the 3 by 3 upper unitriangular matrices form the Heisenberg group.
The upper triangular matrices are precisely those that stabilize the standard 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 are Borel 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 are not 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.
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 a trapezoid.
The matrix

is upper triangular and

is lower triangular.
The matrix

is atomic lower triangular. Its inverse is

A matrix equation in the form
or
is very easy to solve[3] by an iterative process called forward substitution for lower triangular matrices and analogously back substitution for upper triangular matrices. The process is so called because for lower triangular matrices, one first computes x1, then substitutes that forward into the next equation to solve for x2, and repeats through to xn. In an upper triangular matrix, one works backwards, first computing xn, then substituting that back into the previous equation to solve for xn − 1, and repeating through x1.
Notice that this does not require inverting the matrix.
The matrix equation Lx = b can be written as a system of linear equations

Observe that the first equation (l1,1x1 = b1) only involves x1, and thus one can solve for x1 directly. The second equation only involves x1 and x2, and thus can be solved once one substitutes in the already solved value for x1. Continuing in this way, the k-th equation only involves
, and one can solve for xk using the previously solved values for
.
The resulting formulas are:



A matrix equation with an upper triangular matrix U can be solved in an analogous way, only working backwards.
The following is an example implementation of this algorithm in the C# programming language. Note that the algorithm performs poorly in C# due to the inefficient handling of non-jagged matrices in this language. None the less, the method of forward and backward substitution can be highly efficient.
double[] luEvaluate(double[,] L, double[,] U, Vector b) { // Ax = b -> LUx = b. Then y is defined to be Ux int i = 0; int j = 0; int n = b.Count; double[] x = new double[n]; double[] y = new double[n]; // Forward solve Ly = b for (i = 0; i < n; i++) { y[i] = b[i]; for (j = 0; j < i; j++) { y[i] -= L[i, j] * y[j]; } y[i] /= L[i, i]; } // Backward solve Ux = y for (i = n - 1; i >= 0; i--) { x[i] = y[i]; for (j = i + 1; j < n; j++) { x[i] -= U[i, j] * x[j]; } x[i] /= U[i, i]; } return x; }
Forward substitution is used in financial bootstrapping to construct a yield curve.
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)
| Best of the Web: Triangular matrix |
Some good "Triangular matrix" pages on the web:
Math mathworld.wolfram.com |
| Cholesky decomposition | |
| Crout matrix decomposition | |
| matrix |
| Is a non square matrix can be a triangular matrix? Read answer... | |
| C program for upper triangular matrix for a given matrix? Read answer... | |
| Can a matrix? Read answer... |
Copyrights:
![]() | Sci-Tech Dictionary. McGraw-Hill Dictionary of Scientific and Technical Terms. Copyright © 2003, 1994, 1989, 1984, 1978, 1976, 1974 by McGraw-Hill Companies, Inc. All rights reserved. Read more | |
![]() | Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Triangular matrix". Read more |
Mentioned in