Another systematic method for solving linear systems is the substitution method. In a sense, it is very similar to the elimination method that we considered earlier, just that it implements its own elimination
differently.
Given a general linear system of the form
(1)
(2)
the substitution method proceeds as follows:
- isolate either
or
from equation (1) or equation (2) — choose an equation where it is easier to isolate the variable, usually an equation where the coefficient of the variable is
or some other number that is convenient to handle;
- substitute the isolated variable into the other equation to obtain a single linear equation in one variable. Don’t make the mistake of substituting into the same equation from where you isolated the variable (why?);
- solve the resulting one-variable linear equation from step 2 above;
- use your answer from step 3 to obtain the value of the other variable, preferably using the isolated equation from step 1.
Example 1
(3)
(4)
using substitution method.
We first decide on which variable to isolate. Clearly, this will be , because it has a coefficient of
in equation (3). (Obviously, nothing stops us from isolating
instead, just that in this case, we’ll have to play around with the fraction it brings.)
So, from equation (3), we have
(5)
Next, we substitute the right side of this equation (5) (namely ) for
in equation (4):
the expression in the box being the replacement/substitute for . We now have a linear equation in one variable, which can be easily solved:
\begin{split}
7(5-2y)-5y&=-3\\
35-14y-5y&=-3\\
35-19y&=-3\\
-19y&=-3-35\\
-19y&=-38\\
y&=\frac{-38}{-19}=2
\end{split}
It now remains to find . Since we already isolated
as seen in equation (5), that’s the most convenient equation to use. So, putting
there gives
Finally, we check that our solution satisfies the original equations (3) and (4):
Yes!!!
Example 2
Use substitution method to solve the linear system
(6)
(7)
Since it’s easier to isolate from equation (7), that’s what we’ll do. So, using equation (7), we have:
(8)
Next, substitute for
in equation (6):
We’re using box to emphasize the substitution. Continuing the simplification:
\begin{split}
2x+78+15x &=-7\\
17x+78&=-7\\
17x &=-7-78\\
17x &=-85\\
x&=-\frac{85}{17}=-5
\end{split}
To find , we use equation (8):
Therefore, the solution is .
Example 3
(9)
(10)
using substitution method.
Which variable should we first isolate in this case? The answer is either or
. Whichever one is chosen, we’ll still have to deal with the fractions that come with it. Actually, we should expect to come across fractions in our linear-systems-by-substitution-journey (or more generally, in our arithmetical journey).
Say we decide to isolate from equation (9):
(11)
Then we substitute the right side of equation (11) for in equation (10), obtaining
\begin{split}
7\boxed{\frac{-17-7y}{3}}-13y&=19\\
\boxed{\frac{-17\times 7-7y\times 7}{3}}-13y &=19\\
\boxed{\frac{-119-49y}{3}}-13y &=19\\
3\Big(\frac{-119-49y}{3}\Big)-3(13y) &=3(19)\\
-119-49y-39y &=57\\
-49y-39y &=57+119\\
-88y &=176\\
y &=\frac{176}{-88}=-2
\end{split}
To get we use equation (11):
Thus, the solution to our linear system is .
Example 4
Find the point of intersection of the lines
(12)
(13)
using substitution method.
From equation (12) we isolate :
(14)
and then substitute the right side of equation (14) for in equation (13):
\begin{split}
3\boxed{3+2y}-6y &=4\\
9+6y-6y &=4\\
9&=4.
\end{split}
Since , the last line above is a contradiction. Since we arrived at a contradiction, the system is inconsistent and so the two lines do not intersect.
Example 5
Use substitution to solve the linear system
(15)
(16)
We begin by isolating from equation (15):
(17)
Then we substitute the right side of equation (17) for in equation (16):
\begin{split}
21\boxed{\frac{2y+23}{3}}-14y&=161\\
7(2y+23)-14y&=161\\
14y+161-14y&=161\\
161&=161,
\end{split}
which is always true. Since we obtained an identity, the linear system has infinite number of solutions. The two lines coincide.
Example 6
Divide into two parts such that one part is
of the other.
Let’s apply substitution technique to solve the above problem, although it can be solved easily by a different means. So, let the two parts be and
. We have the following linear system
(18)
(19)
Substituting in equation (18) gives
, and so
. Then
. Therefore, the two parts are
and
. (Check that
and that
.)
Example 7
Fifty six coins, comprising entirely of nickels and quarters, add up to six dollars. Determine the number of nickels and the number of quarters.
Sometimes it is useful to choose variables that are somewhat related to what we want. So, let the number of nickels be and let the number of quarters be
. Since there are fifty six coins, we have
. Since a nickel is
cents and a quarter is
cents, we have that
. Notice how we changed six dollars to six hundred cents, for convenience.
(20)
(21)
Isolate from equation (20):
(22)
Substitute the right side of equation (22) for in equation (21):
\begin{split}
\boxed{56-q}+5q&=120\\
56+4q&=120\\
4q&=120-56\\
4q&=64\\
q&=16\\
&\vdots\vdots\vdots\vdots\vdots\\
n&=56-q\\
&=56-16\\
&=40
\end{split}
Since we obtained and
, it follows that there are
nickels and
quarters. Check that
and that
.
Digression: Using substitution to balance chemical equations
You may have come across balancing chemical equations if you’ve taken a course on chemistry before. The procedure is usually by trial-and-error, but it is also possible to use linear systems especially for more complex chemical equations where the trial-and-error method is inconvenient.
Example 8
Balance the chemical equation
(23)
Obviously, we can easily balance the above equation by trial-and-error. We’ve chosen such a simple example for the purpose of illustration.
Begin by assigning arbitrary coefficients to the reactants and products:
and then compare coefficients of like atoms.
\begin{split}
\textrm{Potassium, K}: x&=y\\
\textrm{Chlorine, Cl}: x&=y\\
\textrm{Oxygen, O}:3x&=2z
\end{split}
From the last equation, we have . Since
should be an integer,
has to be a multiple of
. In particular,
, because we have to choose the minimum possible value. In turn,
. And then,
because
. Putting these values into equation (23) we obtain the balanced equation
Example 9
Balance the chemical equation
(24)
As before, we assign arbitrary coefficients to the reactants and products:
and then equate the coefficients of like atoms:
\begin{split}
\textrm{Sodium, Na}: x&=z\\
\textrm{Hydrogen, H}: 2y&=z + 2w\\
\textrm{Oxygen, O}: y&=z\\
&\vdots\vdots\vdots\vdots\vdots\\
2y&=y+2w ~(\textrm{putting} ~y=z~\textrm{in}~2y=z+2w)\\
2y-y&=2w\\
y&=2w\\
&\vdots\vdots\vdots\vdots\vdots\\
z&=2w ~(\textrm{because} ~y=z)\\
x&=2w ~(\textrm{because} ~x=z)
\end{split}
So we have . Whatever positive integer value is assigned to
, the values of
will all be integers. We choose the minimum possible value of
, namely
.
\begin{split}
w&=1\\
x&=2w=2\times 1=2\\
y&=2w=2\times 1=2\\
z&=2w=2\times 1=2
\end{split}
Substituting these values in equation (24), we obtain
which is now balanced.
Example 10
Balance the chemical equation
(25)
Begin by assigning arbitrary coefficients to the reactants and products:
and then compare coefficients of like atoms:
\begin{split}
\textrm{Sodium, Na}: x&=2y\\
\textrm{Hydrogen, H}: x&=2z\quad\textrm{so}~2y=2z~\textrm{or}~y=z\\
\textrm{Carbon, C}: x&=y+w\quad\textrm{so}~2y=y+w~\textrm{or}~2y-y=w\\
\textrm{Oxygen, O}: 3x&=3y+z+2w\\
&\vdots\vdots\vdots\vdots\vdots\vdots\vdots\vdots\vdots\vdots\\
x&=2y,\quad y=z,\quad y=w
\end{split}
We choose and obtain
\begin{split}
x&=2y=2\times 1=2\\
z&=y=1\\
w&=y=1
\end{split}
Returning to equation (25), the balanced equation is
Don’t worry about the last three examples, especially if you’re still in grade 10 and won’t take chemistry in future.
One thought on “Linear systems using substitution”
Comments are closed.