Mathwords logoMathwords

Inverse of a Matrix (Method 2)


Inverse of a Matrix
Matrix Inverse
Multiplicative Inverse of a Matrix

For a square matrix A, the inverse is written A-1. When A is multiplied by A-1 the result is the identity matrix I. Non-square matrices do not have inverses.

Note: Not all square matrices have inverses. A square matrix which has an inverse is called invertible or nonsingular, and a square matrix without an inverse is called noninvertible or singular.

 

AA-1 = A-1A = I

Example: For matrix 2x2 matrix A with values: row 1: 4, 3; row 2: 3, 2, its inverse is A inverse equals a 2x2 matrix with row 1: -2, 3 and row 2: 3, -4 since
 


AA-1 = Matrix equation showing [4,3; 3,2] multiplied by [-2,3; 3,-4] equals identity matrix [1,0; 0,1]

and A-1A = Matrix equation: [-2, 3; 3, -4] multiplied by [4, 3; 3, 2] equals identity matrix [1, 0; 0, 1].

 

Here are three ways to find the inverse of a matrix:

1. Shortcut for 2x2 matrices

For 2x2 matrix A with elements: top row [a, b], bottom row [c, d], the inverse can be found using this formula:

Formula: A⁻¹ = 1/det(A) × [d, -b; -c, a] = 1/(ad-bc) × [d, -b; -c, a]

Example: Matrix inverse example: [1,2; 3,4]⁻¹ = (1/-2)[4,-2; -3,1] = [-2,1; 3/2,-1/2]

2. Augmented matrix method

Use Gauss-Jordan elimination to transform [ A | I ] into [ I | A-1 ].

Example: The following steps result in Matrix [1 2 / 3 4] raised to the power of -1, representing the inverse of a 2x2 matrix..

Row reduction steps finding inverse of matrix [[1,2],[3,4]] using augmented matrix, yielding inverse [[-2,1],[3/2,-1/2]]

so we see that Matrix equation showing [1 2; 3 4] inverse equals [-2 1; 3/2 -1/2].

3. Adjoint method

A-1 = The formula 1 divided by det A, representing the reciprocal of the determinant of matrix A.(adjoint of A)   or   A-1 = The formula 1 divided by det A, representing the reciprocal of the determinant of matrix A.(cofactor matrix of A)T

Example: The following steps result in A-1 for 3×3 matrix A with rows [1,2,3], [0,4,5], [1,0,6], used to illustrate matrix inverse concept..

The cofactor matrix for A is 3×3 matrix with rows [24, 5, -4], [-12, 3, 2], [-2, -5, 4], representing an example inverse matrix A⁻¹., so the adjoint is 3×3 matrix with rows [24, -12, -2], [5, 3, -5], [-4, 2, 4], representing an example matrix A for finding its inverse.. Since det A = 22, we get

A⁻¹ = 1/22 × matrix([24,-12,-2],[5,3,-5],[-4,2,4]) = matrix([12/11,-6/11,-1/11],[5/22,3/22,-5/22],[-2/11,1/11,2/11]).

 

See also

Determinant of a matrix, cofactor

 

Key Formula

[A    I]row operations[I    A1][\, A \;|\; I \,] \xrightarrow{\text{row operations}} [\, I \;|\; A^{-1} \,]
Where:
  • AA = The square matrix whose inverse you want to find
  • II = The identity matrix of the same size as A
  • A1A^{-1} = The inverse matrix, which appears on the right side after row reduction

Worked Example

Problem: Find the inverse of the matrix A using the augmented matrix method (Gauss-Jordan elimination), where A = [[2, 1], [5, 3]].
Step 1: Set up the augmented matrix by placing the identity matrix to the right of A.
[A    I]=[21105301][\, A \;|\; I \,] = \left[\begin{array}{cc|cc} 2 & 1 & 1 & 0 \\ 5 & 3 & 0 & 1 \end{array}\right]
Step 2: Make the pivot in row 1, column 1 equal to 1 by dividing row 1 by 2.
R112R1:[1121205301]R_1 \to \tfrac{1}{2}R_1 : \left[\begin{array}{cc|cc} 1 & \tfrac{1}{2} & \tfrac{1}{2} & 0 \\ 5 & 3 & 0 & 1 \end{array}\right]
Step 3: Eliminate the 5 below the pivot by replacing row 2 with R₂ − 5R₁.
R2R25R1:[112120012521]R_2 \to R_2 - 5R_1 : \left[\begin{array}{cc|cc} 1 & \tfrac{1}{2} & \tfrac{1}{2} & 0 \\ 0 & \tfrac{1}{2} & -\tfrac{5}{2} & 1 \end{array}\right]
Step 4: Make the pivot in row 2, column 2 equal to 1 by multiplying row 2 by 2.
R22R2:[1121200152]R_2 \to 2R_2 : \left[\begin{array}{cc|cc} 1 & \tfrac{1}{2} & \tfrac{1}{2} & 0 \\ 0 & 1 & -5 & 2 \end{array}\right]
Step 5: Eliminate the ½ above the second pivot by replacing row 1 with R₁ − ½R₂.
R1R112R2:[10310152]R_1 \to R_1 - \tfrac{1}{2}R_2 : \left[\begin{array}{cc|cc} 1 & 0 & 3 & -1 \\ 0 & 1 & -5 & 2 \end{array}\right]
Step 6: The left side is now the identity matrix, so the right side is A⁻¹.
A1=[3152]A^{-1} = \begin{bmatrix} 3 & -1 \\ -5 & 2 \end{bmatrix}
Answer: A⁻¹ = [[3, −1], [−5, 2]]. You can verify: A · A⁻¹ = [[2·3+1·(−5), 2·(−1)+1·2], [5·3+3·(−5), 5·(−1)+3·2]] = [[1, 0], [0, 1]] = I.

Another Example

Problem: Find the inverse of the 3×3 matrix B = [[1, 0, 1], [0, 2, 1], [1, 1, 1]] using the augmented matrix method.
Step 1: Write the augmented matrix [B | I].
[101100021010111001]\left[\begin{array}{ccc|ccc} 1 & 0 & 1 & 1 & 0 & 0 \\ 0 & 2 & 1 & 0 & 1 & 0 \\ 1 & 1 & 1 & 0 & 0 & 1 \end{array}\right]
Step 2: Eliminate the 1 in row 3, column 1 by replacing R₃ with R₃ − R₁.
R3R3R1:[101100021010010101]R_3 \to R_3 - R_1 : \left[\begin{array}{ccc|ccc} 1 & 0 & 1 & 1 & 0 & 0 \\ 0 & 2 & 1 & 0 & 1 & 0 \\ 0 & 1 & 0 & -1 & 0 & 1 \end{array}\right]
Step 3: Scale R₂ by ½ to make the pivot 1, then eliminate below and above.
R212R2:[10110001120120010101]R_2 \to \tfrac{1}{2}R_2 : \left[\begin{array}{ccc|ccc} 1 & 0 & 1 & 1 & 0 & 0 \\ 0 & 1 & \tfrac{1}{2} & 0 & \tfrac{1}{2} & 0 \\ 0 & 1 & 0 & -1 & 0 & 1 \end{array}\right]
Step 4: Eliminate the 1 in row 3, column 2: R₃ → R₃ − R₂.
R3R3R2:[1011000112012000121121]R_3 \to R_3 - R_2 : \left[\begin{array}{ccc|ccc} 1 & 0 & 1 & 1 & 0 & 0 \\ 0 & 1 & \tfrac{1}{2} & 0 & \tfrac{1}{2} & 0 \\ 0 & 0 & -\tfrac{1}{2} & -1 & -\tfrac{1}{2} & 1 \end{array}\right]
Step 5: Scale R₃ by −2, then back-substitute upward to clear column 3.
R32R3:[10110001120120001212]R_3 \to -2R_3 : \left[\begin{array}{ccc|ccc} 1 & 0 & 1 & 1 & 0 & 0 \\ 0 & 1 & \tfrac{1}{2} & 0 & \tfrac{1}{2} & 0 \\ 0 & 0 & 1 & 2 & 1 & -2 \end{array}\right]
Step 6: Eliminate column 3 entries above: R₂ → R₂ − ½R₃ and R₁ → R₁ − R₃.
[100112010101001212]\left[\begin{array}{ccc|ccc} 1 & 0 & 0 & -1 & -1 & 2 \\ 0 & 1 & 0 & -1 & 0 & 1 \\ 0 & 0 & 1 & 2 & 1 & -2 \end{array}\right]
Answer: B⁻¹ = [[−1, −1, 2], [−1, 0, 1], [2, 1, −2]].

Frequently Asked Questions

How do you know if a matrix has no inverse when using the augmented matrix method?
If at any point during row reduction you get an entire row of zeros on the left side of the augmented matrix, the matrix is singular (non-invertible). This means the determinant is zero and no inverse exists.
Why does the augmented matrix method work for finding the inverse?
Every row operation you perform is equivalent to multiplying on the left by an elementary matrix. When you transform A into I, the combined effect of all those operations equals A⁻¹. Applying those same operations to the identity matrix on the right accumulates A⁻¹ step by step. In effect, you are solving the equation AX = I for the unknown matrix X.

Augmented matrix method (Method 2) vs. 2×2 shortcut formula (Method 1)

The 2×2 shortcut uses the formula A⁻¹ = (1/det A) · [[d, −b], [−c, a]] and works only for 2×2 matrices. The augmented matrix method uses Gauss-Jordan elimination on [A | I] and works for any size square matrix. For 2×2 matrices, the shortcut is faster. For 3×3 or larger matrices, the augmented matrix method is generally the most practical hand-calculation approach.

Why It Matters

The augmented matrix method is the most versatile technique for finding a matrix inverse by hand. It scales to any size square matrix, unlike the 2×2 shortcut formula. In applications such as solving systems of linear equations, computer graphics transformations, and engineering models, computing the inverse via row reduction is a foundational skill.

Common Mistakes

Mistake: Performing a row operation on only one side of the augmented matrix.
Correction: Every row operation must be applied to the entire augmented row — both the left (A) side and the right (I) side simultaneously. Otherwise the relationship between the two sides is destroyed.
Mistake: Stopping at row echelon form instead of continuing to reduced row echelon form.
Correction: You need the left side to become the full identity matrix (all pivots equal to 1 and all other entries zero). If you only get an upper triangular form, you must continue eliminating entries above each pivot until you reach reduced row echelon form.

Related Terms