[Matrices] Finding the Inverse of a 3x3 Matrix
The inverse of a matrix, denoted by A-1, is a special matrix that, when multiplied by the original matrix A, results in the identity matrix I. The identity matrix is a square matrix with 1s on the main diagonal and 0s elsewhere. In the case of a 3x3 matrix, the identity matrix would look like this:
I = [[1, 0, 0],
[0, 1, 0],
[0, 0, 1]]
An important note before we proceed: not all matrices have inverses. A matrix is only considered invertible, or non-singular, if its determinant (a specific value calculated from the matrix elements) is not equal to zero. If the determinant is zero, the matrix is singular and does not have an inverse.
There are several methods for finding the inverse of a 3x3 matrix. Here, we will explore a common approach that utilizes the concept of the adjoint matrix.
Steps to Find the Inverse of a 3x3 Matrix:
- Calculate the Determinant: The first step is to determine if the matrix is even invertible. Calculate the determinant of the 3x3 matrix using any suitable method. There are various formulas and techniques for determinant calculation, which you can find in linear algebra resources.
- Check for Singular Matrix: If the determinant is zero, the matrix is singular and does not have an inverse. Stop here.
- Find the Minor Matrices: For each element in the matrix, calculate its minor. A minor is the determinant of the sub-matrix obtained by removing the element’s row and column. There will be nine 2x2 sub-matrices in total.
- Calculate Cofactors: For each minor, multiply it by -1 if the sum of the element’s row and column indices is odd, and by 1 if it’s even. This value is called the cofactor.
- Form the Cofactor Matrix: Arrange the cofactors in a new matrix, with the cofactor of element (i,j) placed in position (j,i). In other words, take the transpose of the matrix you obtained in step 4.
- Calculate the Adjoint Matrix: The adjoint matrix, denoted by adj(A), is simply the transpose of the cofactor matrix obtained in step 5.
- Find the Inverse: Finally, divide the adjoint matrix (adj(A)) by the determinant (det(A)) you calculated in step 1. This will give you the inverse of the original matrix A:
A-1 = adj(A) / det(A)
Example:
Let’s find the inverse of the following 3x3 matrix:
A = [[2, 1, -1],
[3, 4, 2],
[1, 2, 1]]
- Determinant: Calculating the determinant of A, we get det(A) = 3. Since the determinant is not zero, the matrix is invertible.
- Minors and Cofactors (calculations omitted for brevity): Following steps 3 and 4, we calculate the minors and cofactors for each element in matrix A.
- Cofactor Matrix: Based on the cofactors, the cofactor matrix becomes:
[[1, -2, 1], [-4, 1, -2], [2, -1, -3]]
- Adjoint Matrix: Taking the transpose of the cofactor matrix, we get the adjoint matrix adj(A).
- Inverse: Finally, dividing the adjoint matrix by the determinant (det(A) = 3) gives us the inverse of matrix A:
A-1 = [[1/3, -2/3, 1/3], [-4/3, 1/3, -2/3], [2/3, -1/3, -1]]
Therefore, the inverse of the given matrix A is:
[[1/3, -2/3, 1/3],
[-4/3, 1/3, -2/3],
[2/3, -1/3, -1]]
By following these steps and performing the calculations, you can find the inverse of any invertible 3x3 matrix. There are other methods for finding the inverse, such as Gaussian elimination, which may be more efficient for larger matrices.