Section 8.2 Solving a System of Equations: Substitution
When we look at a system of equations, remember that we are looking for one \(x\) and one \(y\) that work for both equations. That means that the \(y\) in the first equation is going to be the same \(y\) that's in the second equation. Same thing for the \(x\)'s. So, we can substitute from one equation to the next.
Example 8.8.
Let's say we want to solve the following system of equations using substitution:
From the first equation, we can see that \(y\) is equal to (so it's the same as) \(2x-1\text{.}\) Since that's the same as the \(y\) that's in the second equation, we can plug in \(2x-1\) in for that \(y\) and then solve the equation we have left:
Now that we figured out what \(x\) is, don't forget that a solution is a point, so we still need to figure out what \(y\) is. To do that, we plug our \(x=\frac{4}{3}\) into either of the starting equations and solve for \(y\text{:}\)
Now, in the example above, we chose the first equation to plug \(x\) into in order to find \(y\text{.}\) However, you should be able to plug into either equation and you'll get the same value. In fact, that's a great way to check your work: plug the \(x\) you got into both equations and make sure you get the same \(y\text{.}\) If you don't, then you've probably made an algebra mistake somewhere, and you should go back and check your work.
Another way to check your work is to use what you know about solutions to a system: plug in the point to both equations and make sure it works for both.
Checkpoint 8.9.
Solve the following system of equations using substitution:
\((2,1)\)
We need to start by solving one of the equations for one of the variables. It doesn't matter which equation we pick, and it doesn't matter which variable we pick. Since we solved for \(y\) in the example above, let's solve for \(x\) in this case. The first equation does not have a number multiplied by \(x\text{,}\) so let's use that one:
So, we are going to plug \(1+y\) in for \(x\) in the second equation:
And now we can solve for \(y\text{:}\)
Now that we've figured out that \(y=1\text{,}\) we need to plug back into an equation to find \(x\text{.}\) We could use either of the starting equations, but in this case, it will be easiest to use the equation we already solved for \(x\text{:}\)
Therefore, our answer is \((2,1)\text{.}\)
Let's check our work using the strategies in the paragraph above. First, let's try plugging \(y=1\) into the other starting equation, and make sure we get the same value for \(x\text{:}\)
That worked! So, we can be pretty confident that we have the right answer. If we want to be really sure, let's plug our point into both starting equations and make sure they both work:
It works for both equations! Therefore, we can be very, very confident that we did indeed compute the right answer.