MatheramaMatherama
← Matrices and Determinants
Matrices and Determinants·Section 7·16 min read

Inverse of a Matrix

Now that we have explored the determinant of a matrix, let’s define the inverse of a matrix.

The inverse is only defined for square matrices. The inverse of a square matrix AA of order nn is another square matrix XX of the same order such that:

AX=XA=InAX = XA = I_n

Where InI_n is the identity matrix of order nn. Essentially, the matrix XX "undoes" the effect of AA, much like how the reciprocal of a number reverses its multiplication.

Invertibility of a Matrix:§

It turns out that such a matrix XX does not always exist. But, if it does, we say that matrix AA is invertible, and we denote the inverse matrix XX by A−1A^{-1}. In a way, A−1A^{-1} acts as the reciprocal of AA.

The critical condition for a matrix to have an inverse is:

∣A∣≠0\boxed{|A| \neq 0}

If the determinant of AA is non-zero, then A−1A^{-1} exists, and AA is invertible.

Singular Matrices:§

When the determinant of AA equals zero, i.e., ∣A∣=0|A| = 0, we call AA a singular matrix, and in this case, no inverse matrix exists for AA. In other words, a matrix is non-invertible or singular if its determinant is zero.

Finding Inverse§

The next logical step is understanding how to find the inverse of a matrix and why the inverse exists only when ∣A∣≠0|A| \neq 0.

Finding Inverse using Gauss-Jordan Method§

From the definition, we know that the inverse matrix A−1A^{-1} is the matrix such that:

AX=InAX = I_n

Here, X=A−1X = A^{-1}, and InI_n is the identity matrix of order nn. We can think of this equation as breaking down into nn systems of linear equations.

Let's represent the matrix XX as:

X=(x1x2…xn)X = \begin{pmatrix} x_1 & x_2 & \dots & x_n \end{pmatrix}

where each xix_i is a column matrix with nn unknowns.

On the right-hand side, the identity matrix InI_n can be written as:

In=(e1e2…en)I_n = \begin{pmatrix} e_1 & e_2 & \dots & e_n \end{pmatrix}

where eie_i is the ii-th column of the identity matrix (i.e., e1=[1 0 … 0]Te_1 = [1 \ 0 \ \dots \ 0]^T, e2=[0 1 … 0]Te_2 = [0 \ 1 \ \dots \ 0]^T, and so on).

The equation AX=InAX = I_n can be viewed as nn separate systems of linear equations:

  • Ax1=e1Ax_1 = e_1
  • Ax2=e2Ax_2 = e_2
  • Ax3=e3Ax_3 = e_3
  • …\dots
  • Axn=enAx_n = e_n

Each system Axi=eiAx_i = e_i corresponds to a linear equation where we are solving for the column vector xix_i. However, instead of solving these equations separately, we can combine them into one augmented matrix equation.

We write all these systems together as:

[A|e1 … en]=[A|In]\left[ A \middle| e_1 \ \dots \ e_n \right] = \left[ A \middle| I_n \right]

The matrix [A|In]\left[A \middle| I_n \right] is the augmented matrix where the matrix AA is augmented with the identity matrix InI_n.

The goal of the Gauss-Jordan process is to apply row operations to transform AA into the identity matrix InI_n (if possible). If this is achievable, the inverse exists. If not, it indicates that the matrix AA is singular (i.e., non-invertible).

The process can be summarized as follows:

  1. We start with the augmented matrix [A|In]\left[A \middle| I_n\right].
  2. Apply row operations to the matrix AA with the goal of converting it to InI_n.
  3. As we perform row operations on AA, we also apply the same operations to the columns of InI_n on the right-hand side.

When we successfully convert AA to the identity matrix InI_n on the left side, the matrix on the right-hand side becomes the inverse A−1A^{-1}. Therefore, the augmented matrix evolves as follows:

[A|In]→Gauss-Jordan[In|A−1]\left[A \middle| I_n \right] \quad \xrightarrow{\text{Gauss-Jordan}} \quad \left[I_n \middle| A^{-1}\right]

Thus, by applying the Gauss-Jordan elimination process, we simultaneously find the inverse matrix A−1A^{-1} (if it exists).

When Does the Inverse Exist?

As you can see, the inverse A−1A^{-1} exists only if we are able to convert AA into InI_n through the row operations. This is possible if and only if the determinant of AA is non-zero (∣A∣≠0|A| \neq 0). (The reason for this is that row operations in Gauss Jordan prrocess are almost the same as determinants row operations. It can be proven using this fact that it is possible to convert A to I only when ∣A∣≠0|A|\ne0). If ∣A∣=0|A| = 0, the matrix AA is singular, and it is impossible to transform it into InI_n, meaning that the inverse does not exist.

Finding Inverse using Adjoint of a Matrix§

Another method to find the inverse of a matrix involves using a concept called the adjoint or adjugate of a matrix.

Definition of Adjoint

Let A=[aij]n×nA = [a_{ij}]_{n \times n} be a square matrix of order nn. The adjoint (or adjugate) of AA, denoted by adj(A)\text{adj}(A), is the transpose of the cofactor matrix of AA.

Let’s consider the matrix AA as:

A=(a11a12…a1na21a22…a2n⋮⋮⋱⋮an1an2…ann)A = \begin{pmatrix} a_{11} & a_{12} & \dots & a_{1n} \\ a_{21} & a_{22} & \dots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{n1} & a_{n2} & \dots & a_{nn} \end{pmatrix}

The adjugate matrix, adj(A)\text{adj}(A), is the transpose of the cofactor matrix:

adj(A)=(C11C12…C1nC21C22…C2n⋮⋮⋱⋮Cn1Cn2…Cnn)T\text{adj}(A) = \begin{pmatrix} C_{11} & C_{12} & \dots & C_{1n} \\ C_{21} & C_{22} & \dots & C_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ C_{n1} & C_{n2} & \dots & C_{nn} \end{pmatrix}^T

So the elements CijC_{ij} are the cofactors corresponding to each entry aija_{ij} of the matrix.

How to use adjoint to find the inverse

Let A=[aij]n×n\mathbf{A} = [a_{ij}]_{n \times n} be a square matrix of order nn.

Firstly, we realize that multiplying a matrix by its adjugate leads to an important result. When we multiply the matrix A\mathbf{A} by its adjoint adj(A)\text{adj}(\mathbf{A}), we get:

A⋅adj(A)=(a11a12…a1na21a22…a2n⋮⋮⋱⋮an1an2…ann)⋅(C11C21…Cn1C12C22…Cn2⋮⋮⋱⋮C1nC2n…Cnn)\mathbf{A} \cdot \text{adj}(\mathbf{A}) = \begin{pmatrix} a_{11} & a_{12} & \dots & a_{1n} \\ a_{21} & a_{22} & \dots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{n1} & a_{n2} & \dots & a_{nn} \end{pmatrix} \cdot \begin{pmatrix} C_{11} & C_{21} & \dots & C_{n1} \\ C_{12} & C_{22} & \dots & C_{n2} \\ \vdots & \vdots & \ddots & \vdots \\ C_{1n} & C_{2n} & \dots & C_{nn} \end{pmatrix}

By using a property of determinants, we know that when a row (or column) of a matrix is multiplied by the cofactors of the same row (or column), the result is the determinant of the matrix. Specifically, for any row ii,

ai1Ci1+ai2Ci2+⋯+ainCin=∣A∣a_{i1} C_{i1} + a_{i2} C_{i2} + \dots + a_{in} C_{in} = |\mathbf{A}|

where ∣A∣|\mathbf{A}| is the determinant of A\mathbf{A}. This holds true for any row or column of A\mathbf{A}.

Furthermore, if we multiply a row of A\mathbf{A} by the cofactors of a different row, the result is zero:

ai1Cj1+ai2Cj2+⋯+ainCjn=0if i≠ja_{i1} C_{j1} + a_{i2} C_{j2} + \dots + a_{in} C_{jn} = 0 \quad \text{if} \ i \neq j

Thus, the product of A\mathbf{A} and its adjugate adj(A)\text{adj}(\mathbf{A}) is a diagonal matrix, where each diagonal entry is ∣A∣|\mathbf{A}| and all off-diagonal entries are zero:

A⋅adj(A)=(∣A∣0…00∣A∣…0⋮⋮⋱⋮00…∣A∣)=∣A∣In\mathbf{A} \cdot \text{adj}(\mathbf{A}) = \begin{pmatrix} |\mathbf{A}| & 0 & \dots & 0 \\ 0 & |\mathbf{A}| & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \dots & |\mathbf{A}| \end{pmatrix} = |\mathbf{A}| \mathbf{I}_n

where In\mathbf{I}_n is the identity matrix of order nn.

Similarly, we can show that:

adj(A)⋅A=∣A∣In\text{adj}(\mathbf{A}) \cdot \mathbf{A} = |\mathbf{A}| \mathbf{I}_n

Therefore, we conclude that:

A⋅adj(A)=adj(A)⋅A=∣A∣In\mathbf{A} \cdot \text{adj}(\mathbf{A}) = \text{adj}(\mathbf{A}) \cdot \mathbf{A} = |\mathbf{A}| \mathbf{I}_n

Now, if ∣A∣≠0|\mathbf{A}| \neq 0, we can divide both sides of the equation by ∣A∣|\mathbf{A}|, which gives:

A⋅adj(A)∣A∣=∣A∣In∣A∣=In\frac{\mathbf{A} \cdot \text{adj}(\mathbf{A})}{|\mathbf{A}|} = \frac{|\mathbf{A}| \mathbf{I}_n}{|\mathbf{A}|} = \mathbf{I}_n

This implies that:

A−1=1∣A∣⋅adj(A)\mathbf{A}^{-1} = \frac{1}{|\mathbf{A}|} \cdot \text{adj}(\mathbf{A})

Thus, the inverse of a matrix A\mathbf{A} exists only when ∣A∣≠0|\mathbf{A}| \neq 0. When the determinant ∣A∣|\mathbf{A}| is zero, the matrix is singular and does not have an inverse. If ∣A∣≠0|\mathbf{A}| \neq 0, then the inverse is given by:

A−1=1∣A∣⋅adj(A)\mathbf{A}^{-1} = \frac{1}{|\mathbf{A}|} \cdot \text{adj}(\mathbf{A})

Properties of Inverse:§

Let’s explore the properties of the inverse with respect to other matrix operations:

Property 1: (A−1)−1=A\left(\mathbf{A}^{-1}\right)^{-1} = \mathbf{A}
The inverse of the inverse of a matrix is the original matrix.

Property 2: (AT)−1=(A−1)T\left(\mathbf{A}^T\right)^{-1} = \left(\mathbf{A}^{-1}\right)^T

Property 3: ∣A−1∣=1∣A∣=∣A∣−1|\mathbf{A}^{-1}| = \frac{1}{|\mathbf{A}|} = |\mathbf{A}|^{-1}

Property 4: (AB)−1=B−1A−1\left(\mathbf{A} \mathbf{B}\right)^{-1} = \mathbf{B}^{-1} \mathbf{A}^{-1}

Property 5: In general, (A1A2…An)−1=An−1…A2−1A1−1\left(\mathbf{A}_1 \mathbf{A}_2 \dots \mathbf{A}_n\right)^{-1} = \mathbf{A}_n^{-1} \dots \mathbf{A}_2^{-1} \mathbf{A}_1^{-1}

Property 6: (An)−1=(A−1)n\left(\mathbf{A}^n\right)^{-1} = \left(\mathbf{A}^{-1}\right)^n

Property 7: (kA)−1=1kA−1\left(k\mathbf{A}\right)^{-1} = \frac{1}{k} \mathbf{A}^{-1}

Property 8: (adj(A))−1=adj(A−1)\left(\text{adj}(\mathbf{A})\right)^{-1} = \text{adj}(\mathbf{A}^{-1})

Property 9: If λi≠0\lambda_i \neq 0 for all i=1,2,…,ni = 1, 2, \dots, n, then

(diag(λ1,λ2,…,λn))−1=diag(1λ1,1λ2,…,1λn)\left(\text{diag}(\lambda_1, \lambda_2, \dots, \lambda_n)\right)^{-1} = \text{diag}\left(\frac{1}{\lambda_1}, \frac{1}{\lambda_2}, \dots, \frac{1}{\lambda_n}\right)

That is, if

D=(λ10…00λ2…0⋮⋮⋱⋮00…λn)\mathbf{D} = \begin{pmatrix} \lambda_1 & 0 & \dots & 0 \\ 0 & \lambda_2 & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \dots & \lambda_n \end{pmatrix}

then,

D−1=(1λ10…001λ2…0⋮⋮⋱⋮00…1λn)\mathbf{D}^{-1} = \begin{pmatrix} \frac{1}{\lambda_1} & 0 & \dots & 0 \\ 0 & \frac{1}{\lambda_2} & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \dots & \frac{1}{\lambda_n} \end{pmatrix}

Properties of Adjoint§

Property 1: A⋅adj(A)=adj(A)⋅A=∣A∣In\mathbf{A} \cdot \text{adj}(\mathbf{A}) = \text{adj}(\mathbf{A}) \cdot \mathbf{A} = |\mathbf{A}| \mathbf{I}_n

This is true by definition as we saw above.

Property 2: ∣adj(A)∣=∣A∣n−1|\text{adj}(\mathbf{A})| = |\mathbf{A}|^{n-1}

Property 3: ∣adj(adj(…adj(A)… ))∣|\text{adj}(\text{adj}(\dots \text{adj}(\mathbf{A}) \dots))| (applied nn times)

For any matrix A\mathbf{A} of order nn, applying the adjoint operation nn times results in the following relationship for the determinant:

∣adj(adj(…adj(A)… ))∣=∣A∣(n−1)n|\text{adj}(\text{adj}(\dots \text{adj}(\mathbf{A}) \dots))| = |\mathbf{A}|^{(n-1)^n}

Property 4: For a non-singular matrix A\mathbf{A} of order nn, the adjoint of the adjoint of A\mathbf{A} is given by:

adj(adj(A))=∣A∣n−2A\text{adj}(\text{adj}(\mathbf{A})) = |\mathbf{A}|^{n-2} \mathbf{A}

Property 5: For an n×nn \times n matrix A\mathbf{A} and a scalar kk, the adjoint of the matrix kAk\mathbf{A} is given by:

adj(kA)=kn−1adj(A)\text{adj}(k\mathbf{A}) = k^{n-1} \text{adj}(\mathbf{A})

Product of two matrices equal to null: AB=O§

In real numbers, if the product of two numbers xy=0xy = 0, then either x=0x = 0 or y=0y = 0. However, when dealing with matrices, the equation AB=O\mathbf{A}\mathbf{B} = \mathbf{O} does not necessarily imply that A=O\mathbf{A} = \mathbf{O} or B=O\mathbf{B} = \mathbf{O}.

For example, consider the following matrices:

A=(1000)andB=(0001)\mathbf{A} = \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix} \quad \text{and} \quad \mathbf{B} = \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}

Here, A≠O\mathbf{A} \neq \mathbf{O} and B≠O\mathbf{B} \neq \mathbf{O}, but their product is:

AB=(1000)(0001)=(0000)=O\mathbf{A} \mathbf{B} = \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix} \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 0 & 0 \\ 0 & 0 \end{pmatrix} = \mathbf{O}

Thus, even though neither A\mathbf{A} nor B\mathbf{B} is the zero matrix, their product is the zero matrix.

Theorem 1: If AB=O\mathbf{A}\mathbf{B} = \mathbf{O}, then at least one of A\mathbf{A} or B\mathbf{B} must be singular.

Proof:

Assume, for the sake of contradiction, that both A\mathbf{A} and B\mathbf{B} are non-singular, meaning that ∣A∣≠0|\mathbf{A}| \neq 0 and ∣B∣≠0|\mathbf{B}| \neq 0. For non-singular matrices, we know:

∣AB∣=∣A∣⋅∣B∣≠0|\mathbf{A}\mathbf{B}| = |\mathbf{A}| \cdot |\mathbf{B}| \neq 0

However, we are given that AB=O\mathbf{A}\mathbf{B} = \mathbf{O}, and therefore:

∣AB∣=∣O∣=0|\mathbf{A}\mathbf{B}| = |\mathbf{O}| = 0

This creates a contradiction because the determinant of the zero matrix is zero, while the product of the determinants of non-singular matrices is non-zero. Thus, the assumption that both A\mathbf{A} and B\mathbf{B} are non-singular must be false. Hence, at least one of A\mathbf{A} or B\mathbf{B} must be singular, meaning ∣A∣=0|\mathbf{A}| = 0 or ∣B∣=0|\mathbf{B}| = 0.■\blacksquare

Theorem 2: If A\mathbf{A} is non-singular (∣A∣≠0|\mathbf{A}| \neq 0), then B=O\mathbf{B} = \mathbf{O}. Similarly, if B\mathbf{B} is non-singular (∣B∣≠0|\mathbf{B}| \neq 0), then A=O\mathbf{A} = \mathbf{O}.

Proof: When A\mathbf{A} is non-singular:

If A\mathbf{A} is non-singular, it means that its inverse A−1\mathbf{A}^{-1} exists. Starting with the equation:

AB=O\mathbf{A}\mathbf{B} = \mathbf{O}

we multiply both sides by A−1\mathbf{A}^{-1}:

A−1AB=A−1O\mathbf{A}^{-1} \mathbf{A} \mathbf{B} = \mathbf{A}^{-1} \mathbf{O}

This simplifies to:

InB=O\mathbf{I}_n \mathbf{B} = \mathbf{O}

where In\mathbf{I}_n is the identity matrix. Thus, we have:

B=O\mathbf{B} = \mathbf{O}

Therefore, if A\mathbf{A} is non-singular, B=O\mathbf{B} = \mathbf{O}.

When B\mathbf{B} is non-singular:

Similarly, if B\mathbf{B} is non-singular, meaning B−1\mathbf{B}^{-1} exists, we start with the same equation AB=O\mathbf{A}\mathbf{B} = \mathbf{O}, and multiply both sides by B−1\mathbf{B}^{-1}:

ABB−1=OB−1\mathbf{A}\mathbf{B}\mathbf{B}^{-1} = \mathbf{O}\mathbf{B}^{-1}

This simplifies to:

AIn=O\mathbf{A} \mathbf{I}_n = \mathbf{O}

which implies:

A=O\mathbf{A} = \mathbf{O}

Therefore, if B\mathbf{B} is non-singular, A=O\mathbf{A} = \mathbf{O}. ■\blacksquare

Section 7 of 10 · Matrices and Determinants

Mark this section complete when you have worked through its proofs.