We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

TEXT

Study Guides > Intermediate Algebra

Solve Systems by Substitution

Learning Outcomes

  • Solve systems of equations by substitution
  • Identify inconsistent systems of equations containing two variables
Solving a linear system in two variables by graphing works well when the solution consists of integer values, but if our solution contains decimals or fractions, it is not the most precise method. We will consider two more methods of solving a system of linear equations that are more precise than graphing. One such method is solving a system of equations by the substitution method where we solve one of the equations for one variable and then substitute the result into the other equation to solve for the second variable. Recall that we can solve for only one variable at a time which is the reason the substitution method is both valuable and practical.

How To: Given a system of two equations in two variables, solve using the substitution method

  1. Solve one of the two equations for one of the variables in terms of the other.
  2. Substitute the expression for this variable into the second equation, and then solve for the remaining variable.
  3. Substitute that solution into either of the original equations to find the value of the other variable. If possible, write the solution as an ordered pair.
  4. Check the solution in both equations.

Example

Solve the following system of equations by substitution.
[latex]\begin{array}{l}-x+y=-5\hfill \\ \text{ }2x - 5y=1\hfill \end{array}[/latex]

Answer: First, we will solve the first equation for [latex]y[/latex].

[latex]\begin{array}{l}-x+y=-5\hfill \\ \text{ }y=x - 5\hfill \end{array}[/latex]
Now, we can substitute the expression [latex]x - 5[/latex] for [latex]y[/latex] in the second equation.
[latex]\begin{array}{c}2x - 5y=1\hfill \\ 2x - 5\left(x - 5\right)=1\hfill \\ 2x - 5x+25=1\hfill \\ -3x=-24\hfill \\ \text{ }x=8\hfill \end{array}[/latex]
Now, we substitute [latex]x=8[/latex] into the first equation and solve for [latex]y[/latex].
[latex]\begin{array}{l}-\left(8\right)+y=-5\hfill \\ \text{ }y=3\hfill \end{array}[/latex]
Our solution is [latex]\left(8,3\right)[/latex]. Check the solution by substituting [latex]\left(8,3\right)[/latex] into both equations.

[latex]\begin{array}{llll}-x+y=-5\hfill & \hfill & \hfill & \hfill \\ -\left(8\right)+\left(3\right)=-5\hfill & \hfill & \hfill & \text{True}\hfill \\ 2x - 5y=1\hfill & \hfill & \hfill & \hfill \\ 2\left(8\right)-5\left(3\right)=1\hfill & \hfill & \hfill & \text{True}\hfill \end{array}[/latex]

The substitution method can be used to solve any linear system in two variables, but the method works best if one of the equations contains a coefficient of 1 or [latex]–1[/latex] so that we do not have to deal with fractions.

In the following video, you will be given an example of solving a system of two equations using the substitution method. https://youtu.be/MIXL35YRzRw If you had chosen the other equation to start with in the previous example, you would still be able to find the same solution. It is really a matter of preference, because sometimes solving for a variable will result in having to work with fractions. As you become more experienced with algebra, you will be able to anticipate what choices will lead to more desirable outcomes. Recall that an inconsistent system consists of parallel lines that have the same slope but different y-intercepts. They will never intersect. When searching for a solution to an inconsistent system, we will come up with a false statement such as [latex]12=0[/latex].

Example

Solve the following system of equations.

[latex]\begin{array}{l}x=9 - 2y\hfill \\ x+2y=13\hfill \end{array}[/latex]

Answer: We can approach this problem in two ways. Because one equation is already solved for x, the most obvious step is to use substitution. We can substitute the expression [latex]9-2y[/latex] for [latex]x[/latex] in the second equation.

[latex]\begin{array}{r}x+2y=13\hfill \\ \left(9 - 2y\right)+2y=13\hfill \\ 9+0y=13\hfill \\ 9=13\hfill \end{array}[/latex]

Clearly, this statement is a contradiction because [latex]9\ne 13[/latex]. Therefore, the system has no solution. The second approach would be to first manipulate the equations so that they are both in slope-intercept form. We manipulate the first equation as follows.

[latex]\begin{array}{l}\text{ }x=9 - 2y\hfill \\ 2y=-x+9\hfill \\ \text{ }y=-\dfrac{1}{2}x+\dfrac{9}{2}\hfill \end{array}[/latex]

We then convert the second equation to slope-intercept form.

[latex]\begin{array}{l}x+2y=13\hfill \\ \text{ }2y=-x+13\hfill \\ \text{ }y=-\dfrac{1}{2}x+\dfrac{13}{2}\hfill \end{array}[/latex]

Comparing the equations, we see that they have the same slope but different y-intercepts. Therefore, the lines are parallel and do not intersect.

[latex]\begin{array}{l}\begin{array}{l}\\ y=-\dfrac{1}{2}x+\dfrac{9}{2}\end{array}\hfill \\ y=-\dfrac{1}{2}x+\dfrac{13}{2}\hfill \end{array}[/latex]

Writing the equations in slope-intercept form confirms that the system is inconsistent because all lines will intersect eventually unless they are parallel. Parallel lines will never intersect; thus, the two lines have no points in common. The graphs of the equations in this example are shown below. A graph of two parallel lines. The first line's equation is y equals negative one-half x plus 13 over two. The second line's equation is y equals negative one-half x plus 9 over two.

In the next video, we show another example of using substitution to solve a system that has no solution. https://youtu.be/kTtKfh5gFUc In our next video, we show that a system can have an infinite number of solutions. https://youtu.be/Pcqb109yK5Q Consider a skateboard manufacturer’s revenue function; this is the function used to calculate the amount of money that comes into the business. It can be represented by the equation [latex]R=xp[/latex], where [latex]x=[/latex] quantity and [latex]p=[/latex] price. The revenue function is shown in orange in the graph below. The cost function is the function used to calculate the costs of doing business. It includes fixed costs, such as rent and salaries, and variable costs, such as utilities. The cost function is shown in blue in the graph below. The x-axis represents the quantity of skateboards produced and sold in hundreds of units. The y-axis represents either cost or revenue in hundreds of dollars. A graph showing money in hundreds of dollars on the y axis and quantity in hundreds of units on the x axis. A line representing cost and a line representing revenue cross at the point (7,33), which is marked break-even. The shaded space between the two lines to the right of the break-even point is labeled profit. The point at which the two lines intersect is called the break-even point. We can see from the graph that if 700 units are produced, the cost is [latex]$3,300[/latex] and the revenue is also [latex]$3,300[/latex]. In other words, the company breaks even if they produce and sell 700 units. They neither make money nor lose money. The shaded region to the right of the break-even point represents quantities for which the company makes a profit. The shaded region to the left represents quantities for which the company suffers a loss.

Example

Given the cost function [latex]C\left(x\right)=0.85x+35,000[/latex] and the revenue function [latex]R\left(x\right)=1.55x[/latex], find the break-even point.

Answer: Write the system of equations using [latex]y[/latex] to replace function notation.

[latex]\begin{array}{l}\begin{array}{l}\\ y=0.85x+35,000\end{array}\hfill \\ y=1.55x\hfill \end{array}[/latex]

Substitute the expression [latex]0.85x+35,000[/latex] from the first equation into the second equation and solve for [latex]x[/latex].

[latex]\begin{array}{c}0.85x+35,000=1.55x\\ 35,000=0.7x\\ 50,000=x\end{array}[/latex]

Then, substitute [latex]x=50,000[/latex] into either the cost function or the revenue function.

[latex]1.55\left(50,000\right)=77,500[/latex]

The break-even point is [latex]\left(50,000,77,500\right)[/latex]. The cost to produce [latex]50,000[/latex] units is [latex]$77,500[/latex], and the revenue from the sales of [latex]50,000[/latex] units is also [latex]$77,500[/latex]. To make a profit, the business must produce and sell more than [latex]50,000[/latex] units. A graph showing money in dollars on the y axis and quantity on the x axis. A line representing cost and a line representing revenue cross at the break-even point of fifty thousand, seventy-seven thousand five hundred. The cost line's equation is C(x)=0.85x+35,000. The revenue line's equation is R(x)=1.55x. The shaded space between the two lines to the right of the break-even point is labeled profit. The company will make a profit after [latex]50,000[/latex] units are produced.  

In the next example, we will show how to write a system of linear equations given attendance and ticket cost data. We will then find the number of tickets purchased based on our system.

Example

The cost of a ticket to the circus is [latex]$25.00[/latex] for children and [latex]$50.00[/latex] for adults. On a certain day, attendance at the circus is [latex]2,000[/latex] and the total gate revenue is [latex]$70,000[/latex]. How many children and how many adults bought tickets?

Answer: Let [latex]c=[/latex] the number of children and [latex]a=[/latex] the number of adults in attendance. The total number of people is [latex]2,000[/latex]. We can use this to write an equation for the number of people at the circus that day.

[latex]c+a=2,000[/latex]

The revenue from all children can be found by multiplying [latex]$25.00[/latex] by the number of children, [latex]25c[/latex]. The revenue from all adults can be found by multiplying [latex]$50.00[/latex] by the number of adults, [latex]50a[/latex]. The total revenue is [latex]$70,000[/latex]. We can use this to write an equation for the revenue.

[latex]25c+50a=70,000[/latex]

We now have a system of linear equations in two variables.

[latex]\begin{array}{c}c+a=2,000\\ 25c+50a=70,000\end{array}[/latex]

In the first equation, the coefficient of both variables is [latex]1[/latex]. We can quickly solve the first equation for either [latex]c[/latex] or [latex]a[/latex]. We will solve for [latex]a[/latex].

[latex]\begin{array}{c}c+a=2,000\\ a=2,000-c\end{array}[/latex]

Substitute the expression [latex]2,000-c[/latex] in the second equation for [latex]a[/latex] and solve for [latex]c[/latex].

[latex]\begin{array}{l} 25c+50\left(2,000-c\right)=70,000\hfill \\ 25c+100,000 - 50c=70,000\hfill \\ -25c=-30,000\hfill \\ c=1,200\hfill \end{array}[/latex]

Substitute [latex]c=1,200[/latex] into the first equation to solve for [latex]a[/latex].

[latex]\begin{array}{l}1,200+a=2,000\hfill \\ a=800\hfill \end{array}[/latex]

We find that [latex]1,200[/latex] children and [latex]800[/latex] adults bought tickets to the circus that day.

In our last video example, we show how to set up a system of linear equations that represents the total cost for admission to a museum. https://youtu.be/euh9ksWrq0A In the next section, we will introduce more methods for solving systems of equations that cannot be easily solved by substitution.

Licenses & Attributions

CC licensed content, Shared previously

  • Ex 2: Solve a System of Equations Using Substitution. Authored by: James Sousa (Mathispower4u.com) . License: CC BY: Attribution.
  • Unit 14: Systems of Equations and Inequalities, from Developmental Math: An Open Program. Provided by: Monterey Institute of Technology Located at: https://www.nroc.org/. License: CC BY: Attribution.
  • Ex: Solve a System of Equations Using Substitution - No Solution. Authored by: James Sousa (Mathispower4u.com) . License: CC BY: Attribution.
  • Ex: Solve a System of Equations Using Substitution - Infinite Solutions. Authored by: James Sousa (Mathispower4u.com) . License: CC BY: Attribution.
  • Ex: Solve an Application Problem Using a System of Linear Equations (09x-43). Authored by: James Sousa (Mathispower4u.com) . License: CC BY: Attribution.

CC licensed content, Specific attribution