Krista King Math | Online math help

View Original

How to solve systems using inverse matrices

We know how to solve systems of equations, but now we’ll look at how to do it using an inverse matrix

We know already how to solve systems of linear equations using substitution, elimination, and graphing. This time, we want to talk about how to solve systems using inverse matrices. To walk through this, let’s use a simple system.

???3x-4y=6???

???-2x+y=-9???

And for the sake of illustration, let’s compare this to the generic system

???ax+by=f???

???cx+dy=g???

We can always represent a linear system like this as the coefficient matrix, multiplied by the column vector ???(x,y)???, set equal to the column vector of the constants ???(f,g)???.

Or, if we call the coefficient matrix ???M???, rename the column vector ???(x,y)??? as ???\vec{a}???, and rename the column vector ???(f,g)??? as ???\vec{b}???, then we can say that this equation is equivalent to

???M\vec{a}=\vec{b}???

If we multiply both sides by the inverse matrix ???M^{-1}???, we get

???M^{-1}M\vec{a}=M^{-1}\vec{b}???

Since ???M^{-1}M=IM^{-1}M=I???, we have

???I\vec{a}=M^{-1}\vec{b}???

When an identity matrix is multiplied by a vector, ???I\vec{a}=\vec{a}???. Therefore,

???\vec{a}=M^{-1}\vec{b}???

The reason we went through those steps to multiply by the inverse is because we now have an equation that’s solved for ???\vec{a}???, which remember is representing the column vector ???(x,y)???, which really is just the solution to the system. In other words, this equation is saying that we can find the solutions to the system simply by multiplying the inverse matrix ???M^{-1}??? by the column vector ???(f,g)???!

Furthermore, as long as we keep ???M???, and therefore ???M^{-1}??? the same, we can substitute any values that we’d like for ???f??? and ???g??? (the constants on the right side of the system of equations), and ???\vec{a}=M^{-1}\vec{b}??? will give us an immediate solution set for ???(x,y)???.

Right now that doesn’t necessarily feel super useful, but as you use matrices in more advanced ways, it’ll become extremely valuable to be able to change the values that make up ???\vec{b}???, and immediately get the solution set for ???(x,y)??? that comes from ???\vec{a}???.

How to use inverse matrices to solve systems of equations


Take the course

Want to learn more about Linear Algebra? I have a step-by-step course for that. :)


Using an inverse matrix to solve a system

Example

Use an inverse matrix to solve the system.

???3x-4y=6???

???-2x+y=-9???


Start by transferring the system into a matrix equation.

???M\vec{a}=\vec{b}???

Find the inverse of the coefficient matrix.

Then we can say that the solution to the system is

???\vec{a}=M^{-1}\vec{b}???

???\vec{a}=\begin{bmatrix}-\frac15(6)-\frac45(-9)\\ -\frac25(6)-\frac35(-9)\end{bmatrix}???

???\vec{a}=\begin{bmatrix}-\frac65+\frac{36}{5}\\ -\frac{12}{5}+\frac{27}{5}\end{bmatrix}???

???\vec{a}=\begin{bmatrix}\frac{30}{5}\\ \frac{15}{5}\end{bmatrix}???

???\vec{a}=\begin{bmatrix}x\\ y\end{bmatrix}=\begin{bmatrix}6\\ 3\end{bmatrix}???

Using this process with the inverse matrix, we conclude that the solution to the system is ???\vec{a}=(x,y)=(6,3)???.


Representing the system graphically

We can also express the same system from the example,

???3x-4y=6???

???-2x+y=-9???

as this matrix equation:

???\begin{bmatrix}3\\ -2\end{bmatrix}x+\begin{bmatrix}-4\\ 1\end{bmatrix}y=\begin{bmatrix}6\\ -9\end{bmatrix}???

Graphically, we can think about this equation as the vector ???\vec{s}=(3,-2)??? for ???x??? and the vector ???\vec{t}=(-4,1)??? for ???y???, and the resulting vector ???\vec{u}=(6,-9)???. If we put these vectors in the same coordinate plane, we get

We already know from the example that ???x=6??? and ???y=3???. What that solution tells us graphically is that we need to put ???6??? of the ???x??? vectors ???\vec{s}=(3,-2)???, and ???3??? of the ???y??? vectors ???\vec{t}=(-4,1)??? together, and we’ll end up at the same spot as the resulting vector ???\vec{u}=(6,-9)???.


Get access to the complete Linear Algebra course