Method of Substitution


Variable Substitution

At this point in your study of mathematics, you are likely familiar with the idea of substitution. To start this lesson, we will review some common places we use substitution in math by first looking at expressions, and then looking at substitution in an equation.

Substitution in an Expression

If we consider the expression \(a+b+c\), and we are given \(a=-2\), \(b=1\), and \(c=7\), we can substitute these numerical values in for \(a\), \(b\), and \(c\), and evaluate as follows:

\(-2+1+7=6\)

If \(a=x-3\), \(b=x+1\), and \(c=2-x\), we can substitute these expressions in for \(a\), \(b\), and \(c\), and simplify to:

\[\begin{align*} &\, a+b+c\\ =&\, (x-3)+(x+1)+(2-x)\\ =&\, x+x-x-3+1+2\\ =&\, x \end{align*}\]

Even though it's uncommon, there's no reason we're limited to substituting with just numbers or letters. If we are given \(a=\square\), \(b= \diamondsuit\), and \(c=\triangle \), we can substitute in for \(a\), \(b\), and \(c\), and get the result: 

\[\square +\diamondsuit + \triangle\]

In fact, we can substitute in any assigned value for \(a\), \(b\),and \(c\).

Substitution in an Equation

Next, let's consider that the cost of three apples and two avocados is \($3\), as shown here:

An apple\(+\)An apple\(+\)An apple\(+\)An avocado\(+\)An avocado\(=3\)

where

An apple represents the cost of one apple (in dollars), and

An avocado represents the cost of one avocado (in dollars).

If we are given that An apple\(= 0.50\), then we can calculate the cost of an avocado by substituting the cost of An apple and isolating An avocado.

\(0.50+0.50+0.50\) \(+\)An avocado\(+\)An avocado

\(=3\)

\(1.50\) \(+\) \(2\times\)An avocado

\(=3\)

  \(2\times\)An avocado

\(=3-1.50\)

  \(2\times\)An avocado

\(=1.50\)

  An avocado

\(=\dfrac{1.50}{2}\)

An avocado

\(=0.75\)

The cost of one avocado is \($0.75\).

In this case, we were given a value for one of the variables, and we solved for the second.

What if we are instead given that An apple \(=\)An avocado

We can then determine the cost of an avocado by substitution because we will only be left with one unknown:

An avocado\(+\)An avocado\(+\)An avocado\(+\)An avocado\(+\)An avocado

\(=3\)

  \(5\times\)An avocado

\(=3\)

An avocado

\(=\dfrac35\)

An avocado

\(=0.60\)

This gives us that the cost of an avocado is \($0.60\), and because the cost of an apple is equal to the cost of an avocado in this instance, the cost of one apple is also \($0.60\).

As we move forward in this lesson, we look at how we can use the idea of substitution to help us solve a given linear system of equations with two unknowns. Before we look at some examples, let's first recall the following from the previous lesson.

Recall

When we are asked to solve a system of equations, we are being asked to find values of the variables that satisfy all of the equations simultaneously.

To solve a system of equations having \(n\) variables, we typically need \(n\) equations written in those variables.

This means, if we have two variables, we can solve for those variables if we are given two equations involving those variables.


Slide Notes

Glossary

All Slides

 

Example 1

Given the following information, where A slice of pizza represents the cost of a slice of pizza (in dollars) and A soft drink represents the cost of a drink (in dollars), determine the cost of a slice of pizza and the cost of a drink.

Example 1 Continued

Given the following information, determine the cost of a slice of pizza and the cost of a drink.

A slice of pizza\(+\)A slice of pizza\(+\)A slice of pizza

\(=12\)

\(\tag{1}\)

A slice of pizza\(+\)A soft drink\(+\)A soft drink

\(=7\)

\(\tag{2}\)

Solution

 

Example 2

Solve the system of equations by substitution:

 

 
 

Example 2 Continued

Solve the system of equations by substitution:

\(2x+5y=-9 \tag{1}\)

\(x+3y=-6 \tag{2}\)

Solution

Step 3: Solve for the variable

 

Example 2 Continued

Solve the system of equations by substitution:

\(2x+5y=-9 \tag{1}\)

\(x+3y=-6 \tag{2}\)

Solution

Step 5: Check the solution \((x,y)=(3,-3)\) in the equation not used in Step 4 

 

Example 2 Continued

Solve the system of equations by substitution:

\(2x+5y=-9 \tag{1}\)

\(x+3y=-6 \tag{2}\)

Solution

We can see the solution as the point of intersection of the two lines.

A graph shows two intersecting lines: 2x+5y=negative 9, and x+3y=negative 6

Paused Finished
Slide /

Summary of Substitution Steps

  • Step 1: Isolate one variable in terms of the second variable.
    • Remember, if possible, choose a variable that has a coefficient of \(1\) to make your algebra more friendly.
  • Step 2: Substitute the expression into the equation not used in Step 1.
    • This gives us one equation with one unknown variable.
  • Step 3: Solve for the variable.
  • Step 4: Substitute the value to solve for the second variable.
    • In this step it does not matter which equation you choose to work with.
  • Step 5: Check the solution in the equation not used in Step 4.

Check Your Understanding 1



Sometimes isolating for one variable in terms of the other results in having to work with fractions. Even though the numbers may not be as friendly to work with, the method of substitution will still work and result in an accurate solution.

Example 3

Solve the system of equations by substitution:

\(3x+4y=10 \tag{1}\)

\(2x-7y=4 \tag {2}\)

Solution

Step 1: Isolate one variable in terms of the second

In this example, when either equation is rearranged, the result will have fraction coefficients.  It doesn't really matter which equation you choose to work with for this step or which variable you choose to isolate, however, if we use Equation \((2)\) and isolate for \(x\) we will have only one fraction to work with. 

Use Equation \((2)\) and isolate for \(x\) in terms of \(y\).

\[\begin{align*} 2x-7y&=4\\ 2x&=7y+4\\ x&=\dfrac{7}{2}y+\dfrac{4}{2}\\ x&=\dfrac{7}{2}y+2\\ \end{align*}\]

Step 2: Substitute the expression into the equation not used in Step 1

Now we can substitute \(x=\dfrac{7}{2}y+2\) into Equation \((1)\).

\[3\class{hl1}{\left(\dfrac{7}{2}y+2\right)}+4y=10\]

Step 3: Solve for the variable

Now the only unknown in the equation is \(y\), so we can solve.

\[\begin{align*} 3\left(\dfrac{7}{2}y+2\right)+4y&=10\\ \dfrac{21}{2}y+6+4y&=10\\ \dfrac{21}{2}y+4y&=10-6\\ \dfrac{21}{2}y+\dfrac{8}{2}y&=4\\ \dfrac{29}{2}y&=4\\ 29y&=8\\ y&=\dfrac{8}{29} \end{align*}\]

Step 4: Substitute the value to solve for the second variable

Substitute \(y=\dfrac{8}{9}\) into Equation \((1)\) to solve for \(x\):

\[\begin{align*} 3x+4\class{hl2}{\left(\dfrac{8}{29}\right)}&=10\\ 3x+\dfrac{32}{29}&=10\\ 3x&=10-\dfrac{32}{29}\\ 3x&=\dfrac{290}{29}-\dfrac{32}{29}\\ 3x&=\dfrac{258}{29}\\ x&=\dfrac{258}{87}\\ x&=\dfrac{86}{29} \end{align*}\]

Step 5: Check the solution in the equation not used in Step 4

  • Substitute \(\class{hl1}{x=\dfrac{86}{29}}\) and \(\class{hl2}{y=\dfrac{8}{29}}\) into Equation \((2)\) to verify the left side equals the right side.

\(\begin{align*} \text{LS}& = 2x-7y\\ &=2\class{hl1}{\left(\dfrac{86}{29}\right)}-7\class{hl2}{\left(\dfrac{8}{29}\right)}\\ &=\dfrac{172}{29}-\dfrac{56}{29}\\ &=\dfrac{116}{29}\\ &=4 \end{align*}\)

\(\text{RS}=4\)

\(\text{LS}=\text{RS}\)

Therefore, \(\text{LS}=\text{RS}\) and \(\left(\dfrac{86}{29},\dfrac{8}{29}\right)\)is the solution to the system of equations.

We can also verify the solution visually by using technology to graph the two lines to find the point of intersection.

The lines 3x+4y=10 and 2x minus 7y=4 are plotted on a graph. They intersect at the point (86 over 29, 8 over 29)


Check Your Understanding 2


There appears to be a syntax error in the question bank involving the question field of this question. The following error message may help correct the problem:
null