Section 3.8 Some special matrices
Subsection 3.8.1 Square matrices
Definition 3.8.1. Square matrices.
A square matrix has the same number of rows and columns, this is, it is n×n. The number n is called the order of the matrix.
Definition 3.8.2. Zero matrix.
The zero matrix 0n is the square matrix of order n with every entry equal to 0.
Definition 3.8.3. Identity matrix.
The identity matrix In is a square matrix of order n that looks like
More specifically, if In=[ai,j], then
When it is not necessary to emphasize the order of the matrix, the identity matrix is simply written as I.
Subsection 3.8.2 Diagonal matrices
For any square matrix A of order n, the diagonal entries are a1,1,a2,2,a3,3,…,an,n:Definition 3.8.4. Diagonal matrices.
A diagonal matrix is one for which nonzero entries may only occur on the main diagonal.
Proposition 3.8.5. Multiplication of diagonal matrices.
If
and
then it is easy to verify that
Subsection 3.8.3 Symmetric matrices
Definition 3.8.6. Symmetric matrix.
A matrix A=[ai,j] is symmetric if ai,j=aj,i for all i,j=1,2,…,n. Alternatively, we may write this as A=AT.
Subsection 3.8.4 Triangular matrices
Definition 3.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=[ai,j] satisfies
Definition 3.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=[ai,j] satisfies
Definition 3.8.9. Triangular matrix.
A matrix is triangular if it is either upper triangular or lower triangular
Theorem 3.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 3.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 3.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 3.8.5 Permutation matrices
Definition 3.8.13. Permutation matrix.
A permutation matrix is a square matrix with two properties:
Each entry of the matrix is either 0 or 1.
Every row and every column contains exactly one 1.