To solve 5x=15 you multiply both sides by 5−1. For a matrix equation Ax=b you would like to do the same thing: multiply by a matrix that undoes A. This lesson defines that matrix, gives a formula for it in the 2×2 case, and shows how row reduction produces it in general.
Invertible matrices
Definition
Inverse of a matrix
An n×n matrix A is invertible if there is an n×n matrix C with
CA=InandAC=In.
Then C is called the inverse of A and is written A−1. A square matrix that is not invertible is called singular; an invertible matrix is also called nonsingular.
The inverse, when it exists, is unique: if B and C are both inverses of A, then B=BI=B(AC)=(BA)C=IC=C. Only square matrices get inverses in this sense.
The 2 × 2 case
For A=[acbd], multiply by [d−c−ba] and see what happens:
[acbd][d−c−ba]=[ad−bc00ad−bc]=(ad−bc)I.
If the number ad−bc is not zero, dividing by it gives the inverse. The number ad−bc is the determinant of A, written detA. The next unit studies it in depth.
Inverse of a 2 × 2 matrix
If A=[acbd] and ad−bc=0, then
A−1=ad−bc1[d−c−ba].
If ad−bc=0, then A is not invertible.
In words: swap the diagonal entries, negate the off-diagonal entries and divide by the determinant.
Solving systems with an inverse
If A is invertible, then for every b in Rn the equation Ax=b has exactly one solution, namely x=A−1b. It is a solution because A(A−1b)=Ib=b. It is the only one because any solution u satisfies u=A−1Au=A−1b.
Worked example: Using the formula
Solve 3x1+5x2x1+2x2=4=1 using an inverse.
The coefficient matrix is A=[3152], and detA=3(2)−5(1)=1. So
A−1=[2−1−53],x=A−1b=[2−1−53][41]=[3−1].
Check: 3(3)+5(−1)=4 and 3+2(−1)=1.
In practice, row reducing [Ab] is faster than computing A−1 for a single system. The inverse earns its keep in theory, and when you must solve with the same A for many different right-hand sides.
Algebra of inverses
If A and B are invertible n×n matrices, then:
A−1 is invertible and (A−1)−1=A.
AB is invertible and (AB)−1=B−1A−1.
AT is invertible and (AT)−1=(A−1)T.
For rule 2, check directly: (AB)(B−1A−1)=A(BB−1)A−1=AA−1=I, and similarly in the other order. The order reverses for the same reason you take off your shoes before your socks: the last thing done is the first thing undone.
Common mistake
(AB)−1 is B−1A−1, notA−1B−1. Since matrix multiplication doesn't commute, these are usually different. Also, (A+B)−1 has no simple formula; it need not even exist when A and B are both invertible (try B=−A).
Elementary matrices
An elementary matrix is what you get by performing one elementary row operation on In. The key fact: performing that row operation on any n×m matrix A gives the same result as computing EA.
For instance, with E=10−3010001 (add −3 times row 1 to row 3), EA is A with that replacement carried out. Every row operation can be undone by another row operation of the same type, so every elementary matrix is invertible, and E−1 is the elementary matrix of the reverse operation. Here, E−1 adds +3 times row 1 to row 3.
Now suppose a sequence of row operations reduces A to I: Ek⋯E2E1A=I. Then Ek⋯E1 is exactly A−1. Applying those same operations to I produces Ek⋯E1I=A−1. That gives an algorithm.
Finding A⁻¹ by row reduction
Row reduce the augmented matrix [AI].
If A is row equivalent to I, then [AI] reduces to [IA−1].
Otherwise, A is not invertible.
Worked example: A 3 × 3 inverse
Find the inverse of A=101011111, if it exists.
Start with [AI] and subtract row 1 from row 3, then row 2 from row 3:
Check one column: A0−11=0+0+10−1+10−1+1=100, the first column of I.
Worked example: A singular matrix
Is B=121253374 invertible?
Subtract 2 times row 1 from row 2 and row 1 from row 3:
100211311∼100210310.
There is a row of zeros, so B has only two pivots and cannot be row reduced to I. B is not invertible. (You can see why: row 3 of B equals row 2 minus row 1.)
Tip
Always check a computed inverse by multiplying it by A, at least for one column. An arithmetic slip anywhere in the row reduction shows up immediately.
Practice
Practice 1
Let A=[4332]. What is the (2,2) entry of A−1?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 2
For what value of k is [26k9]not invertible?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 3
Use an inverse to solve 2x1+x25x1+3x2=1=−2. Enter (x1,x2).
Enter a point like (2, -3)
Practice 4
An invertible matrix A has A−1=[1325]. Solve Ax=[11]. Enter x as (x1,x2).
Enter a point like (2, -3)
Practice 5
A, B and C are invertible n×n matrices. Which expression equals (ABC)−1?
Practice 6
Let L=12−3014001. Find the entry in row 3, column 1 of L−1.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 7
A is an invertible 3×3 matrix with A2=2A. What is the sum of the diagonal entries of A?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.