Diagonal of a Matrix / Trace / Triangular Matrix
Table of contents
Principal diagonal
The principal diagonal of a square matrix is the diagonal from the upper left to the lower right.
Also called the main diagonal.
Each element
Trace
A trace of a square matrix
For square matrices
This property also holds for non-square matrices.
Invariant under Cyclic Permutation
Coming from the above properties, for matrices
Diagonal Matrix
A diagonal matrix is a square matrix whose non-principal diagonal elements are all zero.
Often denoted by:
Properties of a Diagonal Matrix
For diagonal matrices
Triangular Matrix
For both upper and lower triangular matrices, if the principal diagonal elements are all 1, then the matrix is called a unit (upper/lower) triangular matrix.
Upper Triangular Matrix
An upper triangular matrix is a square matrix whose non-principal diagonal elements below the principal diagonal are all zero.
Upper triangular matrix, often denoted by
Example:
Lower Triangular Matrix
An lower triangular matrix is a square matrix whose non-principal diagonal elements above the principal diagonal are all zero.
Lower triangular matrix, often denoted by
Example:
Rectangular Diagonal Matrix
Sometimes you might see people say rectangular diagonal matrix which refers to a non-square matrix that constains a diagonal matrix as a submatrix, and the rest of the elements are all zero.
Suppose
If
If
You’ll see this in the context of singular value decomposition.