Summary: This module explains how to use matrices to solve linear equations.
Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.
At this point, you may be left with a pretty negative feeling about matrices. The initial few ideas—adding matrices, subtracting them, multiplying a matrix by a constant, and matrix equality—seem almost too obvious to be worth talking about. On the other hand, multiplying matrices and taking determinants seem to be strange, arbitrary sequences of steps with little or no purpose.
A great deal of it comes together in solving linear equations. We have seen, in the chapter on simultaneous equations, how to solve two equations with two unknowns. But suppose we have three equations with three unknowns? Or four, or five? Such situations are more common than you might suppose in the real world. And even if you are allowed to use a calculator, it is not at all obvious how to solve such a problem in a reasonable amount of time.
Surprisingly, the things we have learned about matrix multiplication, about the identity matrix, about inverse matrices, and about matrix equality, give us a very fast way to solve such problems on a calculator!
Consider the following example, three equations with three unknowns:
Define a 3×3 matrix [A] which is the coefficients of all the variables on the left side of the equal signs:
Define a 3×1 matrix [B] which is the numbers on the right side of the equal signs:
Punch these matrices into your calculator, and then ask the calculator for [A-1][B]: that is, the inverse of matrix [A], multiplied by matrix [B].
![]() |
The calculator responds with a 3×1 matrix which is all three answers. In this case,
The whole process takes no longer than it takes to punch a few matrices into the calculator. And it works just as quickly for 4 equations with 4 unknowns, or 5, etc.
Solving linear equations in this way is fast and easy. But with just a little work—and with the formalisms that we have developed so far about matrices—we can also show why this method works.
First of all, consider the following matrix equation:
The matrix on the left may look like a 3×3 matrix, but it is actually a 3×1 matrix. The top element is
Remember what it means for two matrices to be equal to each other. They have to have the same dimensions (
). And all the elements have to be equal to each other. So for this matrix equation to be true, all three of the following equations must be satisfied:
Look familiar? Hey, this is the three equations we started with! The point is that this one matrix equation is equivalent to those three linear equations. We can replace the original three equations with one matrix equation, and then set out to solve that.
Do the following matrix multiplication. (You will need to do this by hand—since it has variables, your calculator can’t do it for you.)
If you did it correctly, you should have wound up with the following 3×1 matrix:
Once again, we pause to say…hey, that looks familiar! Yes, it’s the matrix that we used in Step 1. So we can now rewrite the matrix equation from Step 1 in this way:
Stop for a moment and make sure you’re following all this. I have shown, in two separate steps, that this matrix equation is equivalent to the three linear equations that we started with.
But this matrix equation has a nice property that the previous one did not. The first matrix (which we called [A] a long time ago) and the third one ([B]) contain only numbers. If we refer to the middle matrix as [X] then we can write our equation more concisely:
Most importantly,
We have rewritten our original equations as
| Solving a Matrix Equation | |
|---|---|
| The problem. | |
|
Multiply both sides by |
|
|
|
|
|
|
|
So we’re done!
We don’t have to derive the formula again—we can just use it. Enter the following into your calculator:
Then ask the calculator for
![]() |
The result?
![]() |
What happened? To understand this error, try the following:
Hit ENTER to get out of the error, and then hit <MATRX> ► 1 <MATRX> 1 ) ENTER
![]() |
Aha! Matrix
What does this tell us about our original equations? They have no solution. To see why this is so, double the first equation and compare it with the third—it should become apparent that both equations cannot be true at the same time.
"This is the "concepts" book in Kenny Felder's "Advanced Algebra II" series. This text was created with a focus on 'doing' and 'understanding' algebra concepts rather than simply hearing about […]"