PrecalculusSystems of Equations and Matrices6 of 6
Systems of Equations and Matrices · 6
Inverse Matrices and Determinants
When we write a system of equations as a matrix equation AX=B, we cannot divide by the matrix A to get X alone. Instead, we need a matrix that multiplies with A to undo it.
1
The Identity Matrix and Inverse Matrices
To solve the system
{3x+2y=75x+4y=13⟹A[3524]X[xy]=B[713]
for X, we first need the matrix version of the number 1 (the identity matrixI, which leaves any matrix unchanged when multiplied) and a matrix that undoes A (the inverse matrixA−1) by canceling A into I.
The Identity Matrix and Inverse Matrices
5xx=15=?AXX=B=?
Multiplying a matrix A by its inverse A−1 cancels both matrices down to the identity matrix I, which has 1s down the main diagonal and 0s everywhere else:
The −1 in A−1 means the inverse matrix that undoes A, not A1. We never put a matrix in the bottom of a fraction.
2
Finding a 2×2 Inverse Matrix
For any 2×2 matrix A=[acbd], we want to build the matrix A−1 that multiplies with A to give [1001].
Finding a 2 × 2 Inverse Matrix
[acbd][????]=[1001]
Swapping the main diagonal entries and flipping the signs on the other two makes the off-diagonal corners cancel to 0. When ad−bc=0, dividing by it scales the main diagonal to 1s:
A=[acbd]⟹A−1=scales diagonal to 1ad−bc1cancels corners to 0[d−c−ba]
Here is how the formula builds the inverse of A=[3524] from our system.
Text solution
Swap the main diagonal and flip the other signsSwapping 3 and 4 and changing 2 and 5 to −2 and −5 makes the off-diagonal entries cancel to 0.
[4−5−23]
Divide by ad−bcSince (3)(4)−(2)(5)=2, we divide by 2 to scale the diagonal entries to 1.
Multiplying A−1A gives [1001], confirming that A−1 undoes A.
3
The Determinant and When No Inverse Exists
The number ad−bc in the denominator of the inverse formula is the determinant of A. Its absolute value is the factor by which the matrix scales area, and it tells us whether an inverse matrix exists at all.
The Determinant and When No Inverse Exists
A−1=ad−bc1[d−c−ba]
ad−bc=0⇒A−1=?
We write the determinant as det(A) or with vertical bars around the matrix:
det(A)=∣A∣=ad−bc
The vertical bars in ∣A∣ mean the determinant of A, not absolute value. A determinant can be negative or zero.
Now consider what happens when we try to invert A=[2142].
Text solution
Compute the determinant ad−bcMultiply down the main diagonal and subtract the other diagonal. The absolute value of the result gives the area scaling factor.
det(A)=(2)(2)−(4)(1)=4−4=0
Check whether det(A)1 is definedBecause det(A)=0, the inverse formula would divide by zero, and the top row [24] is just 2 times the bottom row [12].
det(A)1=01(undefined)
So A=[2142] flattens the 2D grid onto a single line and has no inverse.
Try dragging the corner of the parallelogram below to see how stretching the grid changes det(A) and A−1, and what happens when the parallelogram collapses onto a line.
A matrix scales area, and its inverse scales it back, unless the grid collapses to zero area and no inverse exists.
4
Solving a System with an Inverse Matrix
Now that we have A−1 for A=[3524], we can solve our original system for x and y:
{3x+2y=75x+4y=13⟹[3524][xy]=[713]
Solving a System with an Inverse Matrix
3x+2y5x+4y(x,y)=7=13=?
Here is the step-by-step calculation.
Text solution
Multiply both sides on the left by A−1Because A sits on the left of X in AX=B, placing A−1 on the left of both sides lets A−1A cancel to I.
[xy]=A−1B=21[4−5−23][713]
Multiply the matrices first, then divide by det(A)Keeping 21 out front avoids decimals until the very end.
The 2×2 shortcut of swapping the diagonal and flipping signs only works on 2×2 matrices. To find the inverse of a 3×3 matrix like
A=121253133
we place A beside I in an augmented matrix [A∣I] and use row operations to turn the left side into I, which automatically builds A−1 on the right side:
[AI]row operations[IA−1]
Finding Inverses with Row Operations
121253133100010001
A−1=?
Here are the steps that turn [A∣I] into [I∣A−1] without undoing any zeros along the way.
Text solution
Set up [A∣I] and clear below the diagonal from left to rightUse Row 1 to zero out the entries below it in Column 1, then use the new Row 2 to zero out the entry below it in Column 2.
Clear above the diagonal from right to leftBecause Row 3 starts with two zeros, subtracting it from Rows 1 and 2 clears Column 3 without changing Columns 1 or 2; then Row 2 clears the remaining 2 in Column 2.
With the identity matrix I completed on the left, the right side gives the inverse:
A−1=6−31−32−11−11
When we change the bottom row of A to [374] (which is Row 1 + Row 2), clearing below the diagonal produces a row of all zeros on the left side:
121011all zeros0001−2−101−1001
The zero row shows that the rows on the left are dependent. Row operations preserve that dependence, so the left side cannot become I. The matrix has no inverse and det(A)=0.
6
Determinants of 3×3 Matrices
For a 3×3 matrix, the absolute value of the determinant gives the factor by which the matrix scales 3D volume. To find the determinant of
A=201142315
we can either break it into three 2×2 determinants along any row or column, or multiply down its full diagonals.
Determinants of 3 × 3 Matrices
When expanding along a row or column, each entry takes its sign from the checkerboard pattern (starting with + in the top-left corner and alternating horizontally and vertically) and multiplies the 2×2 determinant left uncovered when you cross out that entry's row and column:
+−+−+−+−+
Here are both ways to find det(A) for A=201142315.
Text solution
Expand down Column 1 to take advantage of its 0Using the left column of the checkerboard (+,−,+), the 0 in Row 2 makes the entire middle 2×2 determinant 0.
Alternative, copy the first two columns and multiply diagonalsRewrite Columns 1 and 2 to the right of the matrix, then subtract the sum of the three backward diagonals from the sum of the three forward diagonals.
Both methods give det(A)=25, so A scales 3D volume by 25 and has an inverse.
Compare the six possible expansions below to see why every row and column gives 25.
Expanding along any row or column gives the exact same determinant, and any zero entry cancels its entire smaller piece.
7
Cramer's Rule
Writing out X=A−1B for a general system turns each variable into a fraction of two determinants. This gives us Cramer's Rule, which solves directly for any single variable without having to find the others first.
Cramer's Rule
[acbd][xy]=[ef]
x=?
For any 2×2 or 3×3 system with coefficient determinant D=det(A)=0, each variable equals the determinant formed by replacing that variable's column with the answer column B, divided by D:
x=DDx,y=DDy,z=DDz
Here is how Cramer's Rule solves our original system {3x+2y=75x+4y=13.
Text solution
Find the base determinant D from the coefficient matrixTake the determinant of the original x- and y-columns.
D=det[3524]=(3)(4)−(2)(5)=2
Replace each variable's column with the answers [713]Swap the answer column into the x-column to get Dx, and into the y-column to get Dy.
Divide by DDivide each numerator determinant by D=2.
xy=DDx=22=1,=DDy=24=2
This gives x=1 and y=2 in one direct step per variable.
Key concepts
Undoing a matrix A means multiplying by its inverse A−1 to get the identity matrix I (A−1A=I, where I has 1s on the main diagonal and 0s elsewhere). When A has an inverse, that lets us solve a system AX=B by multiplying on the left: X=A−1B. For a square matrix, whether an inverse exists depends on the determinantdet(A). Its absolute value gives the area or volume scaling factor. If det(A)=0, the matrix collapses space and has no inverse.
The size of the matrix and what the question asks for tell you which method to pick:
2×2 inverse and determinant
When det(A)=ad−bc=0, swap the main diagonal, flip the signs on the other two entries, and divide by the determinant:
A=[acbd]⟹A−1=ad−bc1[d−c−ba]
For A=[3524],det(A)=(3)(4)−(2)(5)=2, so A−1=21[4−5−23]. When solving X=A−1B, leave det(A)1 factored out front until after you multiply the matrices.
3×3 inverse
Set up [AI] and row-reduce to [IA−1] by clearing below the diagonal from left to right, then above the diagonal from right to left. Swap rows when needed to get a nonzero pivot, and scale pivot rows to make the diagonal entries 1. If an entire row on the left turns into [000], stop immediately: det(A)=0 and A has no inverse.
3×3 determinant
Scan for zeros first. If a row or column contains zeros (like Column 1 of 201142315), expand along that line using the checkerboard signs +−+−+−+−+ so every zero term drops out. If there are no zeros, copy the first two columns to the right and compute (sum of forward diagonals)−(sum of backward diagonals).
When finding one variable
If a problem gives a 3×3 system with nonzero coefficient determinant and only asks for one variable like z, you can use Cramer's Rule, replacing only the z-column with the constants B:
z=DDz
8
Practice
1
Find the inverse of the matrix A=[4−2−32].
Watch out: (−3)(−2) is +6, so subtracting bc gives 8−6=2; adding them to get 14 gives the wrong fraction 141 out front.
Which two entries swap places, which two flip signs, and what happens to the signs in ad−bc when both b and c are negative?
First find the determinant ad−bc:
det(A)=(4)(2)−(−3)(−2)=8−6=2
(Watch out: (−3)(−2) is +6, so subtracting bc gives 8−6=2; adding them to get 14 gives the wrong fraction 141 out front.)
Next, swap the main diagonal (4 and 2) and flip the signs of the other two entries (−3 and −2 become +3 and +2):
A−1=21[2234]=[111.52]
2
Solve the system 4x+3y=10,3x+2y=7 by writing it as a matrix equation AX=B and using A−1.
Watch out: dropping the negative sign on det(A)=−1 leaves the signs of A−1 backwards and gives the wrong answer x=−1,y=−2.
Write A=[4332] and B=[107], and pay close attention to the sign of det(A).
In matrix form, [4332][xy]=[107]. Compute det(A):
det(A)=(4)(2)−(3)(3)=8−9=−1
(Watch out: dropping the negative sign on det(A)=−1 leaves the signs of A−1 backwards and gives the wrong answer x=−1,y=−2.)
(Watch out: in R3−R2→R3 on the right side, −2−(−1) is −1, not −3; missing that double negative throws off the entire bottom row and everything above it when you clear upward.)
Now clear above the diagonal from right to left, using Row 3 to clear Column 3 and then Row 2 to clear Column 2: