Precalculus · Grades 11, 12
Solving Systems with Matrix Equations
Quick answer
A system of linear equations can be written as one matrix equation, AX = B: the coefficients in a matrix, the unknowns in a column, the constants in a column. If A has an inverse, multiplying both sides by it leaves X by itself, the way dividing by a number solves 3x = 12. If A has no inverse, the system has no single solution. Larger systems work the same way with technology.
What you'll learn
- Write a system of linear equations as a matrix equation
- Solve a 2×2 system with the inverse matrix
- Interpret a zero determinant and solve larger systems with technology
A system as one equation
Here is a system of two equations:
The coefficients, the unknowns and the constants each fit in their own matrix:
Multiplying out the left side gives back and , so this single equation says exactly what the two did. Written short, it is
It looks like , and it is solved in the same spirit.
Solving with the inverse
For you multiply both sides by . For you multiply both sides by , on the left.
has determinant , so by the inverse formula:
Then
So and . Check: ✓ and ✓
Why multiplying by the inverse solves the system
Start from and multiply both sides on the left by :
Matrix multiplication is associative, so the left side can be regrouped:
Each step uses one fact from the matrices lesson: associativity to regroup, to cancel, and to finish.
The inverse has to go on the left. Matrix multiplication is not commutative, and only cancels when it sits right beside it. Writing instead is a different product, and here it does not even fit: has one column but has two rows.
When there is no inverse
If , the inverse does not exist, and the system does not have a single solution.
The second equation’s left side is twice the first’s, but is not twice . The lines are parallel, and there is no solution. Had the right side been , the equations would describe the same line, with infinitely many solutions.
| The system has | |
|---|---|
| not | exactly one solution, |
| no solution or infinitely many |
Larger systems
The method does not change with size. A system in three unknowns is still :
Inverting a matrix by hand is long, so this is where a graphing calculator or a spreadsheet takes over: enter and and compute . The result is
Substituting is the check a machine cannot skip for you: ✓, ✓, ✓
Worked examples
Common mistakes
Practice problems
-
Write and as a matrix equation.
Answer
Full solution
Coefficients go in the matrix, row by row; the unknowns in a column; the constants in a column.
-
Solve the system in problem 1 with the inverse matrix.
Answer
,
Full solution
. .
.
Check: ✓ and ✓
-
A bake sale sells items, pies at dollars and cookies at , for dollars. How many pies were sold?
Answer
pies
Full solution
This is the system from problem 1, with pies and cookies. It gives pies and cookies.
-
Solve and using .
Answer
,
Full solution
, , and .
-
Find the determinant of the coefficient matrix for and . What does it say about the system?
Answer
; the system has no single solution — here, none.
Full solution
. The second equation’s left side is twice the first, but , so the lines are parallel.
-
Change one number in problem 5 so the system has infinitely many solutions.
Answer
Replace with .
Full solution
Then the second equation is exactly twice the first, so both describe the same line, and every point on it is a solution.
-
Write the system , , as .
Answer
, ,
Full solution
The second equation has no , so its first coefficient is .
-
Check that solves the system in problem 7.
Answer
All three equations hold.
Full solution
✓, ✓, and ✓
-
Explain why follows from .
Answer
Multiply both sides on the left by , regroup, and use and .
Full solution
. By associativity the left side is . So .
-
Solving , Nate computes . Find his error.
Hint
Where does need to sit to cancel ?
Answer
The inverse must multiply on the left: .
Full solution
In , the matrix is on the left of . Only a factor of placed directly beside it, on the left, can combine with it to give .
Matrix multiplication is not commutative, so is a different product. For a system it does not even exist: is and is , and the inner sizes and do not match.
Frequently asked questions
How do I write a system as a matrix equation?
Put the coefficients in a matrix A, the unknowns in a column X, and the constants in a column B. The system is AX = B.
How does the inverse solve AX = B?
Multiply both sides on the left by A⁻¹. Since A⁻¹A = I and IX = X, the equation becomes X = A⁻¹B.
Why must A⁻¹ go on the left?
Matrix multiplication is not commutative. A⁻¹ has to sit next to A to cancel it, and A is on the left of X.
What if the determinant is zero?
Then A has no inverse, and the system has either no solution or infinitely many — the lines are parallel or the same line.
How do I solve a 3×3 system?
Write it as AX = B and let a calculator or spreadsheet compute A⁻¹B. The method is the same; only the arithmetic grows.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSA.REI.C.8Reasoning with Equations and Inequalities(+) Represent a system of linear equations as a single matrix equation in a vector variable.
- CCSS.MATH.CONTENT.HSA.REI.C.9Reasoning with Equations and Inequalities(+) Find the inverse of a matrix if it exists and use it to solve systems of linear equations (using technology for matrices of dimension 3 × 3 or greater).