When a matrix A transforms an unknown starting vector x into a known output b in Ax=b, there is no such thing as dividing by a matrix. Instead, we need a matrix that undoes whatever A did.
1
Undoing a Matrix
The inverse of a square matrix A, written A−1, is the matrix that reverses the transformation A and brings every vector back to where it started. Before using any formula, we can find the inverse of a simple matrix just by watching how it moves the starting grid arrows and doing the opposite move:
A=[1011],identity I[1001]
Undoing a Matrix
A=[1011]
[10]
[11]
1
A−1=[10−11]
[10]
[−11]
1
Text solution
Push the grid in the opposite directionSince A=[1011] leaves the first arrow [10] alone and pushes the second arrow [01] right by 1 to [11], we undo it by pushing [01] left by 1 to [−11].
A−1=[10−11]
Multiply in both orders to get IApplying A and then A−1, or A−1 and then A, cancels out to the untouched identity matrix I.
So [3−1−21] really is A−1, because multiplying it by A gives the identity matrix I, and multiplying in the other order gives I too.
Whatever way A moves the grid, A−1 does the opposite move to bring the grid back to I.
Every stretch, shear, or tilt you make is undone by the exact opposite move in the inverse, keeping their combined grid upright and still.
2
The 2×2 Inverse Formula
For a simple push like [1011], you can spot the opposite grid move right away, though you also need a way to find A−1 when a matrix stretches and shears the grid at the same time. For any 2×2 matrix that has an inverse, we can find A−1 directly from its four entries:
A=[acbd]
The 2×2 Inverse Formula
[acbd]−1=?
Swapping the main diagonal entries and negating the off-diagonal entries makes the off-diagonal terms cancel to 0, leaving the number ad−bc on the diagonal:
[acbd][d−c−ba]=[ad−bc00ad−bc]=(ad−bc)I
Dividing by ad−bc, as long as it isn't 0, turns each diagonal entry into 1, giving the 2×2 inverse formula:
A−1=scaling numberad−bc1[d−c−ba]
Text solution
Compute ad−bc and swap/negateFor A=[1123], swap 1 and 3 on the main diagonal, negate 2 and 1 off the diagonal, and divide by ad−bc=(1)(3)−(2)(1)=1.
A−1=(1)(3)−(2)(1)1[3−1−21]=[3−1−21]
So A−1=[3−1−21] without needing any fractions, because ad−bc=1.
3
Solving Equations with the Inverse
Once we know A−1, we can find the unknown vector x=[xy] in a linear system Ax=b in a single multiplication:
[1123][xy]=[57]
Solving Equations with the Inverse
Ax=bXA=B⇒x=?⇒X=?
Text solution
Multiply both sides on the left by A−1Since A sits on the left of x in Ax=b, place A−1 on the left of both sides so A−1A cancels to I.
A−1Ax=A−1b⟹x=A−1b
Plug in A−1 and multiplyMultiply A−1=[3−1−21] by the output vector b=[57].
So [xy]=[12] is the starting vector that A sends to [57].
When solving for an unknown matrix X, matrix multiplication order cannot be swapped, so A−1 must go on whichever side A sits on:
A is on the left of X: multiply on the leftAX=B⟹A−1AX=A−1B⟹X=A−1B,A is on the right of X: multiply on the rightXA=B⟹XAA−1=BA−1⟹X=BA−1
4
Inverses of Products and Transposes
Suppose we already know A−1 and B−1, and we want to find the inverse of the product AB or the inverse of the transpose AT without starting over from scratch. Remember that transposing a product across its diagonal reverses the order of the matrices:
(AB)T=BTAT
Inverting a product works the same way.
Inverses of Products and Transposes
(AB)−1=?
(AT)−1=?
When AB multiplies a vector x as A(Bx),B acts first and A acts second, so undoing them in reverse order lets B and B−1 meet in the middle and cancel to I:
(AB)(B−1A−1)=A(IBB−1)A−1=AA−1=I⟹(AB)−1=B−1A−1
Taking the transpose of AA−1=I reverses the product on the left while leaving IT=I unchanged on the right, and transposing A−1A=I the same way gives the other order, showing that (A−1)T undoes AT on both sides:
Not every square matrix can be undone. Look at what happens when we try to find an inverse for a matrix whose columns point along the exact same line:
C=[1224]
When a Matrix Has No Inverse
C=[1224]C−1=?
[10]
[01]
C=[1224]
[12]
[24]
[−21]
[00]
Text solution
Check ad−bc in the 2×2 formulaPlugging in the entries of C=[1224] gives zero in the denominator.
ad−bc=(1)(4)−(2)(2)=0
Eliminate to count pivotsSubtracting 2 times Row 1 from Row 2 wipes out the bottom row completely, leaving a row of zeros and only one pivot instead of two.
[1224]R2−2R1[1020]
Find a nonzero vector squished onto 0Any nonzero multiple of [−21] in the null space gets sent to [00], right alongside [00] itself.
[1224][−21]=[1(−2)+2(1)2(−2)+4(1)]=[00]
So C has no inverse, because once a whole line of input vectors collapses onto [00], no matrix C−1 can recover which vector [00] came from.
When a matrix squishes whole lines of vectors onto single points, there is no way to pull those vectors back apart, so it has no inverse.
This matrix squishes all of 2D space onto a single line, sending a whole line of different inputs to the exact same output.
Key concepts
Before trying to invert a square matrix A, check whether it squishes space. For a 2×2 matrix A=[acbd], test the number ad−bc first: if ad−bc=0 (as in C=[1224], where 1(4)−2(2)=0, elimination leaves a zero row [1020], and [−21] maps to [00]), stop right there: the matrix has no inverse.
When ad−bc=0, pick the fastest way to write down A−1:
Simple grid push (skip the formula)
If A keeps one basis arrow in place and pushes the other one parallel to it, like [1011] pushing [01] right by 1, just do the opposite push to get A−1=[10−11].
General 2×2 matrix
Swap the main diagonal entries, negate the off-diagonal entries, and divide by ad−bc:
You can always check your answer by verifying that A−1A=I (and AA−1=I).
When using A−1 in equations and expressions, pay close attention to order:
Cancelling A in an equation
Multiply by A−1 on whichever side A sits next to the unknown: on the left for Ax=b⟹x=A−1b and AX=B⟹X=A−1B, but on the right when A is on the right: XA=B⟹X=BA−1.
Products and transposes
Reverse the order to undo a product so the inner matrices cancel first, (AB)−1=B−1A−1, and transpose and invert in either order, (AT)−1=(A−1)T.
6
Practice
1
The matrix A=[1301] keeps the vertical arrow [01] in place and pushes the horizontal arrow [10] up by 3 to [13]. Find A−1 by undoing what A does to the grid, then check your answer by multiplying A−1A.
If A pushes the first arrow [10] up by 3, what must the first column of A−1 be to undo that push?
To undo pushing the first arrow [10] up by 3 while keeping [01] in place, push [10] down by 3 to [1−3] (be careful not to put the −3 in the top-right slot as [10−31], which pushes the second arrow left instead of undoing the first arrow). This gives A−1=[1−301], and multiplying confirms the check:
A−1A=[1−301][1301]=[1001]=I
2
Use the 2×2 inverse formula to find A−1 for A=[4322].
Watch out for the common mistake of forgetting to divide by ad−bc=2, which leaves [2−3−24].
Find the scaling number ad−bc first, then check which two entries of A swap places and which two change sign.
Here ad−bc=(4)(2)−(2)(3)=2. Swapping the main diagonal entries 4 and 2, negating the off-diagonal entries 2 and 3, and dividing by 2 (watch out for the common mistake of forgetting to divide by ad−bc=2, which leaves [2−3−24]) gives:
A−1=21[2−3−24]=[1−23−12]
3
Given that the inverse of A=[2153] is A−1=[3−1−52], solve the system [2153][xy]=[43].
Don't multiply [43] by the original matrix A=[2153], which gives [2313] instead of undoing A.
To cancel A on the left of [xy], which matrix do you multiply [43] by?
Multiply both sides on the left by A−1 (don't multiply [43] by the original matrix A=[2153], which gives [2313] instead of undoing A):
Solve for the 2×2 matrix X in the equation X[1123]=[2051].
Multiplying by A−1 on the left is a common mistake here and gives [6−213−4].
Look at which side of X the matrix A=[1123] sits on: where must you place A−1 so that A and A−1 meet and cancel?
Since A=[1123] is on the right of X, multiply both sides on the right by A−1=[3−1−21] (multiplying by A−1 on the left is a common mistake here and gives [6−213−4]):
X=[2051][3−1−21]=[1−111]
5
Suppose A and B are invertible matrices with A−1=[1021] and B−1=[1301]. Find (AB)−1.
Multiplying in the unreversed order A−1B−1 is a common mistake that gives [7321].
In what order do A−1 and B−1 multiply so that B and B−1 cancel in the middle of (AB)(AB)−1?
Reverse the order of the product to B−1A−1 (multiplying in the unreversed order A−1B−1 is a common mistake that gives [7321]):
(AB)−1=B−1A−1=[1301][1021]=[1327]
6
Suppose you only know that A−1=[4−1−72]. Without finding A, find (AT)−1.
Don't apply the 2×2 inverse formula a second time, which undoes A−1 back to A=[2174].
Since transposing and inverting can be done in either order, what single move turns A−1 into (AT)−1?
Transposing and inverting can be done in either order, so flip A−1 across its main diagonal by swapping −7 and −1 (don't apply the 2×2 inverse formula a second time, which undoes A−1 back to A=[2174]):
(AT)−1=(A−1)T=[4−7−12]
7
For what value of k does C=[216k] have no inverse? For that value of k, find the row-reduced form of C and give a nonzero vector [xy] that C squishes onto [00].
Set ad−bc=0 to find k, row-reduce C, and then choose nonzero numbers x and y that make the remaining row x+3y equal to 0.
C has no inverse when ad−bc=2k−6=0, so k=3. Dividing R1 by 2 and then subtracting R1 from R2 gives [1030], which has a row of zeros and only one pivot. Solving x+3y=0 gives x=−3y (don't forget the minus sign when moving 3y across the equals sign, which gives [31] and lands on [126] instead of [00]), so C squishes onto [00] the nonzero vector (or any nonzero multiple of it):