To solve 5x=15, you multiply both sides by 51, the number that undoes multiplication by 5. The matrix equation AX=B calls for the same move, but there is no such thing as dividing by a matrix. Instead, you multiply by the inverse matrixA−1, the matrix that undoes A. This lesson shows when an inverse exists, how to find it and how to use it to solve systems.
What an inverse is
Definition
Inverse matrix
Let A be an n×n square matrix. If there is an n×n matrix A−1 with
AA−1=IandA−1A=I,
then A−1 is the inverse of A, and A is called invertible (or nonsingular). A square matrix with no inverse is singular.
Only square matrices can have inverses, and when an inverse exists it is unique. Just as 0 has no reciprocal, some nonzero matrices have no inverse either. You will see exactly which ones below.
To verify that two matrices are inverses, multiply them and check that you get the identity.
Worked example: Checking an inverse
Show that A=[2513] and C=[3−5−12] are inverses.
Computing CA the same way also gives I, so C=A−1. (For square matrices, it turns out that if AC=I then CA=I automatically, so one product is enough in practice.)
The 2 × 2 formula
For 2×2 matrices there is a short formula. The number ad−bc that appears in it is called the determinant of the matrix, which you will study in depth in the next lesson.
Inverse of a 2 × 2 matrix
For A=[acbd],
A−1=ad−bc1[d−c−ba]provided ad−bc=0.
In words: swap the main-diagonal entries, negate the other two, and divide by ad−bc. If ad−bc=0, the matrix is singular.
You can confirm the formula by multiplying: the top-left entry of A[d−c−ba] is ad−bc, the off-diagonal entries are −ab+ba=0 and cd−dc=0, and the bottom-right entry is −cb+da. So the product is (ad−bc)I, and dividing by ad−bc leaves I.
Worked example: Using the formula
Find the inverse of A=[4276].
Here ad−bc=4(6)−7(2)=24−14=10, which is not zero, so A is invertible.
A−1=101[6−2−74]=[0.6−0.2−0.70.4].
Finding larger inverses by row reduction
For 3×3 and larger matrices, the reliable method uses the row operations from the first lesson. Write A next to the identity to form [A∣I], then row-reduce until the left side becomes I. The right side is then A−1:
[A∣I]⟶[I∣A−1].
Why does this work? Each row operation is the same as multiplying on the left by some matrix. The combination of all of them turns A into I, so together they equal A−1, and applying them to I produces A−1I=A−1. If you ever get a row of zeros on the left side, A is singular and has no inverse.
Worked example: A 3 × 3 inverse
Find A−1 for A=110121012.
Start with [A∣I] and apply R2−R1:
1001110121−10010001
Now R3−R2:
1001100111−1101−1001
Clear upward: R2−R3, then R1−R2:
1000100013−21−22−11−11
So A−1=3−21−22−11−11. Spot-check one entry of AA−1: row 1 of A times column 1 of A−1 is 1(3)+1(−2)+0(1)=1. ✓
Solving systems with inverses
If A is invertible, multiply both sides of AX=B on the left by A−1:
A−1AX=A−1B⟹IX=A−1B⟹X=A−1B.
This is especially efficient when you must solve several systems with the same coefficients and different constants: find A−1 once and reuse it.
Worked example: Solving a system with an inverse
Solve 2x+y=4 and 5x+3y=7.
The coefficient matrix is A=[2513], whose inverse from the first example is [3−5−12]. So
[xy]=[3−5−12][47]=[12−7−20+14]=[5−6].
The solution is (5,−6). Check: 2(5)+(−6)=4 and 5(5)+3(−6)=7. ✓
Common mistake
The solution is X=A−1B, notX=BA−1. Because matrix multiplication is not commutative, the side matters. Here B is a column, so BA−1 is not even defined. The same care applies to products: (AB)−1=B−1A−1, with the order reversed, because (AB)(B−1A−1)=A(BB−1)A−1=AA−1=I.
Tip
If A is singular, AX=B has either no solution or infinitely many. The inverse method cannot tell you which, so fall back on Gaussian elimination.
Practice
Practice 1
Is [2142] invertible?
Practice 2
Let A=[3152]. What is the entry in row 1, column 2 of A−1?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 3
Let A=[4322]. What is the entry in row 2, column 1 of A−1?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 4
Which matrix is the inverse of [2132]?
Practice 5
Use an inverse matrix to solve 3x+5y=1 and x+2y=0.
Enter a point like (2, -3)
Practice 6
For what value of k is [k263] singular?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 7
Let A=101212112. Use row reduction on [A∣I] to find A−1. What is the entry in row 1, column 2 of A−1?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 8
A and B are invertible 2×2 matrices. Which expression equals (AB)−1?