Section 2.8 Some special matrices
There are several matrices that repeatedly show up in many different mathematical investigations. These matrices are given particular names. We gather the most important ones and present them here.
Subsection 2.8.1 Square matrices
Definition 2.8.1. Square matrices.
A square matrix has the same number of rows and columns, this is, it is \(n\times n\text{.}\) The number \(n\) is called the order of the matrix.
Here are some square matrices of order \(3\text{:}\)
Definition 2.8.2. Zero matrix.
The zero matrix \(0_n\) is the square matrix of order \(n\) with every entry equal to \(0\text{.}\)
Definition 2.8.3. Identity matrix.
The identity matrix \(I_n\) is a square matrix of order \(n\) that looks like
More specifically, if \(I_n=[a_{i,j}]\text{,}\) then
When it is not necessary to emphasize the order of the matrix, the identity matrix is simply written as \(I\text{.}\)
Subsection 2.8.2 Diagonal matrices
For any square matrix \(A\) of order \(n\text{,}\) the diagonal entries are \(a_{1,1},a_{2,2},a_{3,3},\ldots, a_{n,n}\text{:}\)
So these are the entries that start at the upper-left corner of the matrix and go down the diagonal to the lower-right one. This is also called the main diagonal of the matrix. Clearly we can describe an identity matrix as one whose diagonal entries are \(1\) and whose remaining entries are \(0\text{.}\)
Definition 2.8.4. Diagonal matrices.
A diagonal matrix is one for which nonzero entries may only occur on the main diagonal.
This means that the matrix is of the form
Once we know the diagonal entries, we know the whole matrix. Sometimes we abbreviate this as
An example of a diagonal matrix is the identity matrix \(I\text{:}\)
An alternative way of describing a diagonal matrix \(A=[a_{i,j}]\) is by the condition that \(a_{i,j}=0\) whenever \(i\not=j\text{.}\)
Multiplication of diagonal matrices is particularly easy.
Proposition 2.8.5. Multiplication of diagonal matrices.
If
and
then it is easy to verify that
Subsection 2.8.3 Symmetric matrices
Definition 2.8.6. Symmetric matrix.
A matrix \(A=[a_{i,j}]\) is symmetric if \(a_{i,j}=a_{j,i}\) for all \(i,j=1,2,\ldots,n\text{.}\) Alternatively, we may write this as \(A=A^T\text{.}\)
The following matrix is symmetric:
Notice that the rows \(R_1, R_2, R_3, R_4, R_5\) and columns \(C_1, C_2, C_3, C_4, C_5\) satisfy
In addition, there is a geometric property. The entry \(a_{j,i}\) can be derived from \(a_{i,j}\) by reflection across the diagonal.
Subsection 2.8.4 Triangular matrices
Definition 2.8.7. Upper triangular matrices.
A matrix is upper triangular if every nonzero entry is on or above the main diagonal. This means that an upper triangular matrix \(A=[a_{i,j}]\) satisfies
Notice what we use here. An entry is below the main diagonal if the row number of the entry is greater than the column number. In other words, \(a_{i,j}\) is below the main diagonal if and only if \(i \gt j\text{.}\) An upper triangular matrix \(A\) has the following pattern (\(*\) may be zero or nonzero):
This matrix is upper triangular:
A lower triangular matrix may be thought of at the transpose of an upper triangular matrix.
Definition 2.8.8. Lower triangular matrices.
A matrix is lower triangular if every nonzero entry is on or below the main diagonal. This means that an lower triangular matrix \(A=[a_{i,j}]\) satisfies
The following matrix is lower triangular:
Definition 2.8.9. Triangular matrix.
A matrix is triangular if it is either upper triangular or lower triangular
Theorem 2.8.10. Product of upper triangular matrices is upper triangular.
If \(A\) and \(B\) are upper triangular matrices, the \(AB\) is also upper triangular.
If \(A\) and \(B\) are lower triangular matrices, the \(AB\) is also lower triangular.
Proof.
We compute the \((i,j)\) entry of \(AB\) by considering row \(i\) of \(A\) and column \(j\) of \(B\text{:}\)
Now \(A\) and \(B\) being upper triangular implies \(a_{i,1}=a_{i,2}=\cdots=a_{i,i-1}=0\) and \(b_{j,j+1}=b_{j,j+2}=\cdots=b_{j,n}=0\text{.}\) This means that
Hence we see that \((AB)_{i,j}\not=0\) only if \(i\leq j\text{,}\) or, \((AB)_{i,j}=0\) whenever \(i \gt j\text{.}\) This, by definition, makes \(AB\) upper triangular. The argument for lower triangular matrices \(A\) and \(B\) is essentially identical.
Proof.
We consider the \((i,j)\) entry of \(AB\) by considering row \(i\) of \(A\) and column \(j\) of \(B\text{:}\)
If \((AB)_{i,j} \not= 0\text{,}\) then there is some \(k\) so that \(a_{i,k}b_{k,j}\not=0\text{.}\) This means that \(a_{i,k}\not=0\text{,}\) and, since \(A\) is upper triangular, we have \(k \geq i \text{.}\) Similarly \(b_{k,j}\not=0\) implies \(j \geq k \text{.}\) Hence, if \((AB)_{i,j} \not= 0\text{,}\) then \(j \geq k \geq i\text{,}\) which makes \(AB\) upper triangular.
Theorem 2.8.11. An upper triangular matrix is invertible if and only if all the diagonal entries are nonzero.
An upper triangular matrix \(A\) is invertible if and only if every diagonal entry \(A\) is nonzero.
Proof.
Suppose all diagonal entries of \(A\) are nonzero, and \(A\) is of size \(n\text{.}\) If we carry out the elementary operations \(R_i\gets\frac1{a_{i,i}}R_i\) for \(i=1,\dots,n\text{,}\) then the diagonal elements are all \(1\text{.}\) Suppose \(a_{i,j}\) is some entry above the diagonal (so \(i \lt j\)). Then we use the elementary row operation \(R_j\gets R_j-a_{ij}R_i\) to change that entry to \(0\text{.}\) We may proceed by columns from left to right deleting every \(a_{i,j}\neq0\) By this process we reduce \(A\) to the matrix \(I\text{,}\) and so \(A\) is invertible.
On the other hand, if some diagonal element is zero, then it stays zero as we row reduce an upper triangular matrix (since \(R_i\gets R_i+\lambda R_j\) only occurs when \(i \lt j\)). That implies that the variable corresponding to that column is free, and that the matrix in not invertible.
Theorem 2.8.12. The inverse of an upper triangular matrix is upper triangular.
If \(A\) is upper triangular and invertible, then \(A^{-1}\) is also upper triangular.
Proof.
When \(A\) is row reduced to \(I\text{,}\) each row operation corresponds to an elementary matrix that is diagonal or upper triangular. Since \(A^{-1}\) is the product of these elementary matrices, it is also upper triangular.
Subsection 2.8.5 Permutation matrices
Definition 2.8.13. Permutation matrix.
A permutation matrix is a square matrix with two properties:
Each entry of the matrix is either \(0\) or \(1\text{.}\)
Every row and every column contains exactly one \(1\text{.}\)
The only permutation of order \(1\) is \(\begin{bmatrix}1\end{bmatrix}\text{.}\)
There are two permutation matrices of order \(2\text{:}\)
There are six permutation matrices of order \(3\text{:}\)