In the previous Lesson, we compared the costs of operating two different refrigerators, a standard model and an energy-efficient model. We wrote a system of equations for this problem,
where \(x\) is the number of months the refrigerator has been running. We looked for a point on the graphs where the two \(y\)-values, which represent the costs, are equal. This point is the intersection point of the graphs, as shown in the figure. The \(x\)-coordinate of the intersection point shows that the costs are equal after 50 months.
We are looking for the point where the two \(y\)-values are equal. Therefore, we set the two expressions for \(y\) equal, which gives us an equation in \(x\) to solve:
\begin{align*}
6x+1000 \amp = 2x+1200 \amp\amp \blert{\text{Subtract } 2x \text{ from both sides.}}\\
4x+1000 \amp = 1200 \amp\amp \blert{\text{Subtract 1000 from both sides.}}\\
4x \amp = 200 \amp\amp \blert{\text{Divide both sides by 3.}}\\
x \amp = 50
\end{align*}
We find that \(x=50\text{,}\) the same answer we got using graphing. Substituting \(x=50\) into either equation gives \(y=1300\text{.}\) The solution is \((50, 1300)\text{.}\)
SubsectionSubstitution Method
In Example 4.28, we solved the system by equating the two expressions for \(y\text{.}\) We can think of this procedure as substituting the expression for \(y\) from one equation into the other equation, like this:
Look Closer.
The method works well in this example because both equations in the system were already in the form \(~y=mx+b\text{.}\) Sometimes we must solve one of the equations for \(y\) in terms of \(x\) before we can substitute.
Example4.29.
Use substitution to solve the system.
\begin{gather*}
y+3x=1\\
2y+5x=5
\end{gather*}
Solution.
We first solve one of the equations for \(y\) in terms of \(x\text{.}\) It is easier to solve the first equation for \(x\text{,}\) by subtracting \(3x\) from both sides to get:
\begin{equation*}
y=1-3x
\end{equation*}
We now substitute the expression \(~1-3x~\) for \(y\) in the other equation:
This gives us an equation in one variable, which we can solve as usual. We begin by simplifying the left side.
\begin{align*}
2(1-3x)+5x \amp = 5 \amp\amp \blert{\text{Apply the distributive law.}} \\
2-6x+5x \amp = 5 \amp\amp \blert{\text{Combine like terms.}}\\
2-x \amp = 5 \amp\amp \blert{\text{Subtract 2 from both sides.}}\\
-x \amp = 3 \amp\amp \blert{\text{Divide both sides by}~-1.}\\
x \amp = -3
\end{align*}
We have found the \(x\)-coordinate of the solution point. To find the \(y\)-coordinate, we substitute \(x=\alert{-3}\) into either of the original equations. It is easiest to use the equation we solved for \(y\text{,}\) namely \(~y=1-3x\text{.}\)
The solution to the system is \(~x=-3,~ y=10\text{,}\) or the point \((-3,10)\text{.}\) You can check that these values satisfy both of the original equations in the system.
QuickCheck4.30.
What is the first step in the substitution method?
Answer.
Solve one of the equations for \(y\) in terms of \(x\)
QuickCheck4.31.
How can you check your answer for the solution of a system?
Answer.
Check that the values satisfy both equations in the system.
Here is a summary of the substitution method.
To Solve a System by Substitution.
Choose one of the variables in one of the equations. (It is best to choose a variable whose coefficient is 1 or \(-1\text{.}\)) Solve the equation for that variable.
Substitute the result of Step 1 into the other equation. This gives an equation in one variable.
Solve the equation obtained in Step 2. This gives the solution value for one of the variables. Substitute this value into the result of Step 1 to find the solution value of the other variable.
SubsectionElimination Method
A second algebraic method for solving systems is called elimination. As with the substitution method, we try to obtain an equation in a single variable, but we do it by eliminating one of the variables in the system. We first put both equations into the general linear form, \(Ax+By = C\text{.}\)
Example4.32.
Solve the system
\begin{gather*}
5x=2y+21\\
2y=19-3x
\end{gather*}
Solution.
First, we rewrite each equation in the form \(Ax+By=C\text{.}\)
We add the equations together by adding the left side of the first equation to the left side of the second equation, and then adding the two right sides together, as follows:
Note that the \(y\)-terms canceled, or were eliminated. We are left with an equation in \(x\) that is easy to solve:
\begin{align*}
8x \amp = 40 \amp\amp \blert{\text{Divide both sides by 8.}}\\
x \amp = 5
\end{align*}
We are not finished yet, because we must still find the value of \(y\text{.}\) We can substitute our value for \(x\) into either of the original equations, and solve for \(y\text{.}\) We’ll use the second equation, \(~3x+2y=19\text{:}\)
\begin{align*}
3(\alert{5})+2y \amp = 19 \amp\amp \blert{\text{Subtract 15 from both sides.}}\\
2y \amp = 4 \amp\amp \blert{\text{Divide by 2.}}\\
y \amp = 2
\end{align*}
Thus, the solution is the point \((5,2)\text{.}\)
Look Ahead.
You may have noticed that this method worked because the coefficients of \(y\) in the two equations were opposites, \(2\) and \(-2\text{.}\) This caused the \(y\)-terms to cancel out when we added the two equations together. What if the coefficients of neither \(x\) nor \(y\) are opposites? Then we must multiply one or both of the equations in the system by a suitable constant.
Example4.33.
Solve the system
\begin{gather*}
4x+3y=7\\
3x+y=-1
\end{gather*}
Solution.
We can choose to eliminate either the \(x\)-terms or the \(y\)-terms in a system. For this example, it will be faster to eliminate the \(y\)-terms. If we multiply each term of the second equation by \(-3\text{,}\) then the coefficients of \(y\) will be opposites:
Note carefully that we must multiply each term by \(-3\text{,}\) not just the \(y\)-term. We can then replace the second equation by its new version to obtain a new system, and we add the equations together:
The \(y\)-terms were eliminated, and we solve the resulting equation for \(x\) to get \(~x=-2\text{.}\) Finally, we substitute \(~x=-2~\) into either of the equations to find \(~y=5\text{.}\) The solution is \((-2,5)\text{.}\)
Caution4.34.
In Example 4.33, we multiplied both sides of the equation \(~3x+y=-1~\) by \(-3\text{.}\) (This is an application of the Multiplication Property of Equality.) We must be careful to multiply every term on both sides of the equation by the same constant. Otherwise, we won’t have an equivalent equation -- its solutions will not be the same.
Linear Combination.
When we add a multiple of one equation to the other we are making a linear combination of the equations.
The method of elimination is also called the method of linear combinations. Sometimes it is necessary to multiply both equations by suitable constants in order to eliminate one of the variables.
Example4.35.
Use linear combinations to solve the system
\begin{gather*}
5x-2y=22\\
2x-5y=13
\end{gather*}
Solution.
This time we choose to eliminate the \(x\)-terms. We must arrange things so that the coefficients of the \(x\)-terms are opposites, so we look for the smallest integer that both 2 and 5 divide into evenly. (This number is called the lowest common multiple, or LCM, of 2 and 5.) The LCM of 2 and 5 is 10.
We want one of the coefficients of \(x\) to be 10, and the other to be \(-10\text{.}\) To achieve this, we multiply the first equation by 2 and the second equation by \(-5\text{.}\)
Write both equations into the general linear form, \(Ax+By = C\text{.}\)
Here are the steps for solving a system by elimination.
To Solve a System by Elimination.
Write each equation in the form \(Ax+By = C\text{.}\)
Decide which variable to eliminate. Multiply each equation by an appropriate constant so that the coefficients of that variable are opposites.
Add the equations from Step 2 and solve for the remaining variable.
Substitute the value found in Step 3 into one of the original equations and solve for the other variable.
Look Ahead.
How do you know which method to use to solve a system, substitution or elimination? Both methods will work on any linear system. However, substitution will be easier if one of the variables in one of the equations has a coefficient of \(1\) or \(-1\text{.}\) Otherwise, the elimination method is usually more efficient.
QuickCheck4.38.
How do we eliminate a variable from a system?
Answer.
Add appropriate multiples of the equations.
QuickCheck4.39.
When is the substitution method easier than elimination?
Answer.
When one of the variables in one of the equations has a coefficient of \(1\) or \(-1\text{.}\)
SubsectionInconsistent and Dependent Systems
Recall that a system of two parallel lines has no solution and is called inconsistent. If the two equations in a system have the same graph, then every point on the graph is a solution and the system is called dependent. The elimination method will reveal whether the system falls into one of these two cases.
Both variables are eliminated, and we are left with the false statement \(~0=7\text{.}\) There are no values of \(x\) or \(y\) that will make this equation true, so the system has no solutions. The graph shows that the system is inconsistent.
To eliminate the \(x\)-terms, we multiply the first equation by \(-2\) and add:
We are left with the true but unhelpful equation \(~0=0\text{.}\) The two equations are in fact equivalent (one is a constant multiple of the other), so the system is dependent. The graph of both equations is shown in the figure.
Example 4.40 illustrates a rule for identifying inconsistent and dependent systems.
Inconsistent and Dependent Systems.
We can use the method of elimination to identify the type of linear system.
If combining the two equations results in an equation of the form
Is the system dependent, inconsistent, or consistent and independent?
Activity4.11.Applications.
A train ticket from Camarillo to San Diego costs $31 in coach and $47 for business class. On Tuesday, there were 42 passengers on the morning train, and Amtrak took in $1494 in fares. How many coach passengers took the morning train, and how many business class passengers?
Choose variables:
\begin{gather*}
x = \hphantom{000000000000}\\
y = \hphantom{000000000000}
\end{gather*}
Complete the table.
\(\hphantom{0000}\)
Number of passengers
Price per ticket
Total revenue
Coach
\(\hphantom{0000}\)
\(\hphantom{0000}\)
\(\hphantom{0000}\)
Business
\(\hphantom{0000}\)
\(\hphantom{0000}\)
\(\hphantom{0000}\)
Write an equation about the number of passengers:
\begin{equation*}
\hphantom{0000}
\end{equation*}
Write an equation about revenue:
\begin{equation*}
\hphantom{0000}
\end{equation*}
Solve your system.
Write your answer in a sentence.
The perimeter of a rectangular playground is 197 yards, and its length is 5 yards less than twice its width. Find the dimensions of the playground.
Choose variables:
\begin{gather*}
x = \hphantom{000000000000}\\
y = \hphantom{000000000000}
\end{gather*}
Write an equation about the perimeter of the playground:
\begin{equation*}
\hphantom{0000}
\end{equation*}
Write an equation relating the length and the width:
\begin{equation*}
\hphantom{0000}
\end{equation*}
Solve your system.
Write your answer in a sentence.
SubsubsectionWrap-Up
Objectives.
In this Lesson we practiced the following skills:
Solving systems by the substitution method
Solving systems by the elimination method
Identifying a system as inconsistent, dependent, or consistent and independent
Writing a system of equations to solve an applied problem
Questions.
In Activity 1, Problem 2, why did we choose to solve the second equation for \(x\) in terms of \(y\text{?}\)
In Activity 2, Problem 1, why did we multiply the first equation by \(-2\text{?}\)
In Activity 2, Problem 2, what was the LCM of the \(y\)-coefficients?
In Activity 3, Problem 1, what were the two equations about?
Choose variables for the two unknown quantities in the problem.
Write a system of equations to model the problem.
Solve the system and answer the question.
18.
A hamburger and a chocolate shake together contain 1030 calories. Two shakes and three hamburgers contain 2710 calories. How many calories are there in one hamburger and in one chocolate shake?
19.
Darryl is in charge of buying furniture for a new restaurant. Chairs cost $175 and tables cost $250. Darryl’s budget allows $11,400 for tables and chairs, and he plans to buy four chairs for each table. How many of each can he buy?
20.
The perimeter of a rectangle is 42 meters, and its width is 13 meters less than its length. Find the dimensions of the rectangle.
21.
Three pounds of bacon and 2 pounds of coffee costs $17.80. Two pounds of bacon and 5 pounds of coffee costs $32.40. How much do 1 pound of bacon and 1 pound of coffee cost?