1.4. Special matrices#

Some matrices have certain properties which makes them useful for various mathematical applications. Understanding special matrices and their properties is essential for gaining a deeper insight into linear algebra and its practical applications.

1.4.1. Square matrix#

Definition 1.8 (Square matrix)

A square matrix is a matrix that has the same number of rows and columns.

For example, the following matrices are square matrices

\[\begin{split} \begin{align*} & \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, & & \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}, & & \begin{pmatrix} 2 & 1 & 0 & 0 \\ 1 & 2 & 1 & 0 \\ 0 & 1 & 2 & 1 \\ 0 & 0 & 1 & 2 \end{pmatrix}. \end{align*} \end{split}\]

1.4.2. Diagonal matrix#

Definition 1.9 (Main diagonal)

The main diagonal of a square \(n \times n\) matrix \(A\) are the elements along the diagonal from the top-left element \(a_{11}\) to the bottom right element \(a_{nn}\).

For example the main diagonal of the following matrix

\[\begin{split} A = \begin{pmatrix} \textcolor{red}{1} & 2 & 3 \\ 4 & \textcolor{red}{5} & 6 \\ 7 & 8 & \textcolor{red}{9} \end{pmatrix}, \end{split}\]

is \((1, 5, 9)\).

Definition 1.10 (Diagonal matrix)

A diagonal matrix is a square \(n \times n\) matrix whose elements are all zero apart from those on the main diagonal, meaning \(a_{ij} = 0\) for all \(i\neq j\)

\[\begin{split} \begin{align*} \begin{pmatrix} a_{11} & 0 & \cdots & 0 \\ 0 & a_{22} & \ddots & \vdots \\ \vdots & \ddots & \ddots & 0 \\ 0 & \cdots & 0 & a_{nn} \end{pmatrix}. \end{align*} \end{split}\]

For example, the following matrices are diagonal

\[\begin{split} \begin{align*} &\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, & &\begin{pmatrix} 3.7 & 0 & 0 \\ 0 & 12 & 0 \\ 0 & 0 & 2.1 \end{pmatrix}, & &\begin{pmatrix} x & 0 & 0 \\ 0 & y & 0 \\ 0 & 0 & z \end{pmatrix}. \end{align*} \end{split}\]

1.4.3. Zero matrix#

Similarly to \(0\) being a neutral element with respect to addition of real numbers, an \(m \times n\) matrix of zeros plays the role of a neutral element for addition of matrices.

Definition 1.11 (Zero matrix)

A zero matrix (or null matrix) is an \(m \times n\) matrix \(\vec{0}_{m \times n}\) where all the entries are zero, that is \([\vec{0}]_{ij} = 0\) for all \(i\) and \(j\)

For example

\[\begin{split} \begin{align*} \vec{0}_{2 \times 2} &= \begin{pmatrix}0 & 0 \\ 0 & 0 \end{pmatrix}, & \vec{0}_{2 \times 3} &= \begin{pmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix}, & \vec{0}_{3 \times 1} &= \begin{pmatrix}0 \\ 0 \\ 0 \end{pmatrix}. \end{align*} \end{split}\]

Theorem 1.4 (Properties of the zero matrix)

For any \(m \times n\) matrix \(A\) and the zero matrix is the neutral element with respect to matrix addition and multiplication, i.e.,

  • \( A + \vec{0} = \vec{0} + A = A\);

  • \( A \vec{0} = \vec{0} A = \vec{0}\).

1.4.4. The identity matrix#

Definition 1.12 (The identity matrix)

The identity matrix is denoted by \(I_n\) is an \(n\times n\) diagonal matrix where the elements on the main diagonal are all 1, i.e.,

\[\begin{split} [I]_{ij} = \begin{cases} 1, & i = j, \\ 0, & i\neq j. \end{cases} \end{split}\]

For example

\[\begin{split} \begin{align*} I_2 &= \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, & I_3 &= \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}, & I_4 &= \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix}. \end{align*} \end{split}\]

It is common to omit the subscript as it should be clear what the dimensions are from the context.

Theorem 1.5 (Properties of the identity matrix)

The identity matrix has the following properties:

  • \(I\) is the identify element with resepct to matrix multiplication, i.e., \(I A = A I = A\);

  • The produce of an invertible square matrix \(A\) and its inverse is the identify matrix, i.e., \(AA^{-1} = A^{-1}A = I\).

Example 1.8

Given the matrices \(A = \begin{pmatrix} 1 & 0 \\ -2 & 3 \end{pmatrix}\) and \(B = \begin{pmatrix} 1 & 2 \\ 4 & 3 \\ -2 & 1 \end{pmatrix}\) evaluate:

(i)   \(IA\);

Solution (click to show)
\[\begin{split} \begin{align*} IA &= \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ -2 & 3 \end{pmatrix} = \begin{pmatrix} 1 + 0 & 0 + 0 \\ 0 - 2 & 0 + 3 \end{pmatrix} \\ &= \begin{pmatrix} 1 & 0 \\ -2 & 3 \end{pmatrix} \end{align*} \end{split}\]

(ii)   \(AI\);

Solution (click to show)
\[\begin{split} \begin{align*} AI &= \begin{pmatrix} 1 & 0 \\ -2 & 3 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 1 + 0 & 0 + 0 \\ -2 + 0 & 0 + 3 \end{pmatrix} \\ &= \begin{pmatrix} 1 & 0 \\ -2 & 3 \end{pmatrix} \end{align*} \end{split}\]

(iii)   \(IB\).

Solution (click to show)
\[\begin{split} \begin{align*} IB &= \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix} \begin{pmatrix} 1 & 2 \\ 4 & 3 \\ -2 & 1 \end{pmatrix} = \begin{pmatrix} 1 + 0 + 0 & 2 + 0 + 0 \\ 0 + 4 + 0 & 0 + 3 + 0 \\ 0 + 0 - 2 & 0 + 0 + 1 \end{pmatrix} \\ &= \begin{pmatrix} 1 & 2 \\ 4 & 3 \\ -2 & 1 \end{pmatrix} \end{align*} \end{split}\]

1.4.5. Symmetric Matrix#

Definition 1.13 (Symmetric matrix)

A symmetric matrix is a matrix is a square matrix where the elements are symmetric with respect to the main diagonal, i.e., \(a_{ij} = a_{ji}\). A symmetric matrix is equal to its transpose

\[ A = A ^\textrm{T}.\]

For example, the following matrices are symmetric

\[\begin{split} \begin{align*} &\begin{pmatrix} 1 & 2 \\ 2 & 3 \end{pmatrix}, & &\begin{pmatrix} 1 & 2 & 3 \\ 2 & 1 & 4 \\ 3 & 4 & 1 \end{pmatrix}. \end{align*} \end{split}\]

1.4.6. Triangular matrices#

Definition 1.14 (Upper triangular matrix)

An upper triangular matrix is a non-zero square matrix where the elements on and beneath the main diagonal are all zeros.

Definition 1.15 (Lower triangular matrix)

A lower triangular matrix is a non-zero square matrix where the elements on and above the main diagonal are all zeros.

For example, the following matrices are upper triangular matrices

\[\begin{split} \begin{align*} \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}, && \begin{pmatrix} 0 & 1 & 2 \\ 0 & 0 & 3 \\ 0 & 0 & 0 \end{pmatrix}, && \begin{pmatrix} 0 & 2 & 4 & 6 \\ 0 & 0 & 8 & 10 \\ 0 & 0 & 0 & 12 \\ 0 & 0 & 0 & 0 \end{pmatrix}, \end{align*} \end{split}\]

and the following matrixes are lower triangular matrices

\[\begin{split} \begin{align*} \begin{pmatrix} 0 & 0 & 0 \\ 1 & 0 & 0 \\ 3 & 5 & 0 \end{pmatrix}, && \begin{pmatrix} 0 & 0 & 0 & 0 \\ 2 & 0 & 0 & 0 \\ 3 & 5 & 0 & 0 \\ 7 & 11 & 13 & 0 \end{pmatrix}. \end{align*} \end{split}\]