Alternative Format — Lesson 2: Solving Systems of Equations Algebraically

Let's Start Thinking

Accuracy

Often when people think of the word accurate, a picture of a perfect bull's eye shot comes to mind. Synonyms for accurate include:

  • right,
  • exact,
  • correct, and
  • error-free.

Close-up of darts in a dartboard

It is extremely important for humans to be accurate in their work. Some examples of careers that require a high level of accuracy are medical professionals, pilots, construction workers, engineers, and those working in finance.

A doctor using a stethoscope

A flying helicopter

Two construction workers looking at plans

A person preparing a personal budget

In mathematics, we consider accuracy as a measure of how close a value is to its true value.

Recall when we looked at solving a system of equations by graphing the equations by hand, if the point of intersection was not a friendly point or one that was difficult to read, we had to estimate the solution. As a result, our answer was not accurate.

A graph shows two intersecting lines. The point of intersection is difficult to read from the gridlines, it is somewhere between x values 2 and 3 and y values 3 and 4.

In this lesson, we will look at solving a system of equations algebraically. This option allows us to calculate accurate solutions even when the point of intersection involves coordinates that are fractions.


Lesson Goals

  • Solve systems of two equations involving two variables using substitution.

  • Solve systems of two equations involving two variables using elimination.

  • Understand the result when algebraic methods are used to solve linear systems with no solutions or systems with infinite solutions.

Try This

Line A passes through the point where \(3x-2y+5=0\) and \(y-5=3(x-4)\) intersect, and has an \(x\)-intercept of \(5\). What is the slope of Line A?


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.


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.

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

Notice, in this example, Equation \((1)\) only has one unknown, the cost of a pizza slice.

Let's begin by rewriting Equation \((1)\) using the variable \(p\) to represent the cost of a pizza slice. 

We can write Equation \((1)\) as \(p + p + p=12\), which simplifies to \(3p=12\)

Solving for \(p\), we get

\(\begin{align*} 3p&=12\\ p&=\dfrac{12}{3}\\ p&=4 \end{align*}\)

Therefore, the cost of one slice of pizza is \($4\).

Now that we know the cost of a slice of pizza, we can use this to help us solve for the cost of a drink.

We can rewrite the second equation using the variables \(p\) (to represent the cost of a pizza slice) and \(d\) (to represent the cost of a drink.)

This gives us \(p+d+d=7\), which simplifies to

\(p+2d=7\)

Knowing \(p=4\), we can substitute this value which will allow us to solve for the value of \(d\). Substituting and solving, we get

\(\begin{align*}p+2d &=7 \\ 4 + 2d &=7 \\ 2d &= 7-4 \\ 2d &= 3 \\ d &= \dfrac{3}{2} \\ d &= 1.5\end{align*}\)

Therefore, the cost of a drink is \($1.50\).

Now let's consider an example where we have two unknowns in both of the equations that we are given.

Example 2

Solve the system of equations by substitution:

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

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

Solution

First, let's take a moment to recall that when we are asked to solve a system of equations with two linear relations, it is another way of being asked to find the point of intersection of the two lines.

In this example, we will formalize the process of substitution by stating the steps that can be followed. 

Step 1: Isolate one variable in terms of the second

This step will be easier if you can choose to work with an equation that has a variable with a coefficient of \(1\).

This will mean you do not have to divide out the coefficient to isolate the variable, and will avoid having to work with fractions.

In this example, the preferred equation to use is Equation \((2)\), and we will isolate for \(x\). This gives us

\(\begin{align*} x +3y &= -6 \\ \class{hl1}{x} &\class{hl1}{= 3y-6}\end{align*}\)

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

This step will give us one equation with one unknown. Since we used Equation \((2)\) in Step 1, we will now use Equation \((1)\). 

Note, if you accidentally substitute back into the equation you used in Step 1, everything will cancel out, giving you \(0=0\) and you will not be able to continue with your solution.

Continuing here using Equation \((1)\), where we see \(x\), we will substitute \(-3y-6\). This gives us

\(\begin{align*} 2\class{hl1}{x} +5y &= -9 \\ 2\class{hl1}{(-3y-6)}+5y &= -9 \end{align*}\)

Step 3: Solve for the variable

With the substitution complete, we are left with an equation with one unknown, \(y\). This means we can now solve for the value of \(y\).

To solve, we will first use the distributive property to give us 

\(\begin{align*} 2(-3-6)+5y &= -9 \\ -6y - 12 + 5y &= -9 \end{align*}\)

Collecting like terms and simplifying, we get

\(\begin{align*} 2(-3-6)+5y &= -9 \\ -6y - 12 + 5y &= -9 \\ -6y + 5y &= -9+12 \\ -y &= 3\\ y &= -3 \end{align*}\)

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

Now that we know the value of \(y\), we can solve for \(x\). In this step, it does not matter which equation you choose to work with. For our solution, we will use Equation \((2)\), \(x+3y=-6\).

Substituting \(y=-3\) and solving we get

\(\begin{align*} x + 3y &= -6 \\ x+3(-3) &= - 6 \\ x-9 &= -6 \\ x&= -6 + 9 \\ x&=3 \end{align*}\)

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

Because we used Equation \((2)\) solve for the second unknown \(x\), we will use Equation \((1)\) to check our solution. We will substitute \(x=3\) and \(y=-3\) into Equation \((1)\) to ensure the left side of the equation is equal to the right side of the equation.

Using Equation \((1)\):

\(\begin{align*} \text{LS} &= 2x + 5y \\ &= 2(3) + 5(-3) \\ &= 6- 15 \\ &=-9\end{align*}\)

\(\text{RS} = -9\)

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

Therefore, the solution to the system of equations is \((3,-3)\). Or in other words, the two lines will intersect at the point \((3,-3)\).

Graphing both lines,\(2x+5y=-9\) and \(x+3y=-6\), we can see the solution as the point of intersection of the two lines.

The point of intersection of the two lines is (3, negative 3).


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

When using the method of substitution, what are the first three steps when solving the system of linear equations shown?

\(\begin{align*} 3x-4y &= 0\\ -2x+y &= 1 \end{align*}\)

Complete each step one at a time. You are not required to actually solve the given system of linear equations.

Question — Part A

Step 1: Select the equation that is best set up for isolating a variable.

  1. \(3x-4y =0\)
  2. \(-2x+y = 1\)

Answer — Part A

  1. \(-2x+y = 1\)

Feedback — Part A

Look for an equation that has a variable with a coefficient of \(1\).

Question — Part B

Step 2: Isolate the most appropriate variable in the equation chosen in Step 1, \(-2x+y=1\).

Answer — Part B

\(y=2x+1\)

Feedback — Part B

Rearrange the equation so that a variable with a coefficient of \(1\) is isolated on the left. In this instance, \(y=2x+1\).

Question — Part C

Step 3: Select the correct substitution for the variable isolated in Step 2, \(y=2x+1\).

  1. \(3+2x+1-4y=0\)
  2. \(3(2x+1) - 4y = 0 \)
  3. \(3x-4+2x+1=0\)
  4. \(3x-4(2x+1)=0\)

Answer — Part C

  1. \(3x-4(2x+1)=0\)

Feedback — Part C

Substitute the isolated variable into the equation not chosen in Step 1. Remember that the operation between a variable and its coefficient is multiplication.

Interactive Version

Solving a Linear System Using Substitution


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

Question — Version 1

Is the point \((6,2)\) a solution to the given system of linear equations?

\( \begin{align*} -5x + 9y &= -12 & (1) \\ 3x + 2y &= 22 & (2) \end{align*} \)

  1. Yes
  2. No

Answer — Version 1

  1. Yes

Feedback — Version 1

A point is a solution to the system of linear equations if it satisfies both equations.

Does the point satisfy Equation \((1)\)?

\(\begin{align*} \text{LS} &= -5x+9y \\ &= -5(6) + 9(2) \\ &= -12\end{align*}\)

\(\text{RS}= -12\)

Since \(\text{LS} = \text{RS}\), the point satisfies Equation \((1)\).

Does the point satisfy Equation \((2)\)?

\(\begin{align*} \text{LS} &= 3x+ 2y \\ &= 3 (6) + 2(2) \\ &= 22 \end{align*}\)

\(\text{RS}= 22\)

Since \(\text{LS} = \text{RS}\), the point satisfies Equation \((2)\).

Therefore, the point is a solution to the given system of linear equations.

Question — Version 2

Is the point \((1,15)\) a solution to the given system of linear equations?

\( \begin{align*} 9x - 2y &= -21 & (1) \\ 2x + 3y &= 16 & (2) \end{align*} \)

  1. Yes
  2. No

Answer — Version 2

  1. No

Feedback — Version 2

A point is a solution to the system of linear equations if it satisfies both equations.

Does the point satisfy Equation \((1)\)?

\(\begin{align*} \text{LS} &= 9x-2y \\ &= 9(1) - 2 (15) \\ &= -21 \end{align*}\)

\(\text{RS}= -21\)

Since \(\text{LS} = \text{RS}\), the point satisfies Equation \((1)\).

Does the point satisfy Equation \((2)\)?

\(\begin{align*} \text{LS} &= 2x+3y \\ &= 2(1) + 3(15) \\ &= 47 \end{align*}\)

\(\text{RS}= 16\)

Since \(\text{LS} \neq \text{RS}\), the point does not satisfy Equation \((2)\).

Therefore, the point is not a solution to the given system of linear equations.


Method of Elimination


Solving a System of Equations Using Elimination

Another algebraic method that can be used to solve a system of equations is called elimination.  

Using the elimination method results in one of the variables being "eliminated" or cancelled out so that only one variable remains in an equation.

Before we look at using this method, it is important to remember the following two key ideas:

  • When we add or subtract the same value to both sides of an equation of a line, the equation still represents the same line.
    • For example: \(3x+2y=5\) is equivalent to the equation \(3x+2y-4=5-4\)
  • When we multiply or divide every term in an equation of a line by the same value, the equation still represents the same line.
    • For example: \(3x+2y=5\) is equivalent to the equation \(12x+8y=20\)

In the following examples, we will use the method of elimination to solve a system of two equations with two unknowns.


Example 4

Solve the system of equations using elimination:

\(\begin{align*} 3x+4y&=5 \tag{1}\\ 3x-2y&=11 \tag{2} \end{align*}\)

Solution

In this first example with elimination, we'll formalize the process by stating the steps that can be followed.

Step 1: If required, multiply one or both equations by a factor to ensure that both equations have either an \(x\) or \(y\) coefficient that is either equal or opposite to each other

In this example, we already have the same coefficient, \(3\), on the variable \(x\) in both Equation \((1)\) and Equation \((2)\). 

Therefore, we do not need to multiply either equation by a factor.

Step 2: Eliminate one variable by adding or subtracting

Because we have positive values of \(x\) in both equations, subtracting Equation \((2)\) from Equation \((1)\) will eliminate the variable \(x\).

We can do this and not change the meaning of Equation \((1)\), because we know \(3x-2y=11\), so we are subtracting the equivalent of \(11\) from both sides of the Equation \((1)\).

When adding or subtracting the two equations, it is a good idea to line the equations up so you can keep track of adding or subtracting the like terms in both equations.

Working through Equation \((1) \ -\)  Equation \((2)\), we get that 

\(\begin{align*} 3x+4y&=5 \tag{1}\\ 3x-2y&=11 \tag{2} \\ \hline 0x+6y&\;=-6\tag{1)-(2}\\ 6y&\;=-6 \end{align*}\)

After subtracting, we have the equation \(6y=-6\). And we have eliminated the variable \(x\).

Step 3: Solve for the variable

Now that we have \(6y=-6\), we can solve for the value of \(y\). We get

\(\begin{align*} 6y &= -6 \\ y &= -1\end{align*}\)

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

Now that we know \(y=-1\), we can solve for \(x\). In this step, it does not matter which equation you choose to work with. We will use Equation \((1)\) which is \(3x+4y=5\). Substituting \(y=-1\) and simplifying we get 

\(\begin{align*} 3x+4y &= 5 \\ 3x + 4(-1)&=5 \\ 3x - 4 &= 5 \end{align*}\)

Using inverse operations and solving, we get

\(\begin{align*} 3x - 4 &= 5 \\ 3x &= 5+4 \\ 3x &= 9 \\ x &= 3 \end{align*}\)

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

Because we used Equation \((1)\) to solve for the second unknown variable, in this case \(x\), we will use Equation \((2)\), which is \(3x-2y\), to check our solution. We will substitute \(x=3\) and \(y=-1\), and verify that the left side of the equation is equal to the right side of the equation.

\(\begin{align*} \text{LS} &= 3x-2y \\ &= 3(3) -2(-1) \\ &=9+2 \\ &=11 \end{align*}\)

\(\text{RS}=11\)

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

Therefore, \(\text{LS}=\text{RS}\) and \((3,-1)\) is the solution to the system of equations.

Again, if we graph both lines, we can see the solution as the point of intersection.

The lines 3x+4y=5 and 3x minus 2y=11 are plotted on a graph. They intersect at the point (3,negative 1)


Example 5

Solve the system of equations using elimination:

\(\begin{align*} 3x-8y&=-30 \tag{1}\\ 7x+4y&=-2 \tag{2} \end{align*}\)

Solution

In the previous example, our \(x\)-coefficients were the same. In this example, neither the \(x\)- nor the \(y\)-coefficients are the same or opposite, so we have to do a bit of work in Step 1 before moving on.

Step 1: If required, multiply one or both equations by a factor to ensure that both equations have either an \(x\) or \(y\) coefficient that is either equal or opposite to each other

We know that we want to have the same or opposite coefficient for \(x\) or \(y\). We can see that we will need to multiply an equation by a factor to complete this step. Remember that multiplying every term in an equation does not change the relation. It is simply an alternate equivalent form of the original equation.

We will multiply Equation \((2)\) by a factor of \(2\) to get a coefficient of \(8\) in front of \(y\), the opposite of the coefficient of \(y\) in Equation \((1)\), and call this Equation \((3)\).

In other words, Equation \((2)\times2\rightarrow\) Equation \((3)\): 

\(\begin{align*} 3x-8y&=-30 \tag{1}\\ 14x+8y&=-4 \tag{3} \\ \end{align*}\)

We can now see we have \(-8y\)'s in Equation \((1)\) and \(+8y\)'s in Equation \((3)\).

Step 2: Eliminate one variable by adding or subtracting

Since our equations have opposite signs in front of the coefficients of \(y\), we will add the two equations to eliminate the variable \(y\).

Equation \((1)\) \(+\) Equation \((3)\): 

\(\begin{align*} 3x-8y&=-30 \tag{1}\\ 14x+8y&=-4 \tag{3} \\ \hline 17x+0y&\;=-34 \tag{1)+(3}\\ 17x&\;=-34 \end{align*}\)

Step 3: Solve for the variable

We can now solve for \(x\).

\(\begin{align*} 17x &= -34 \\ x &= -2\end{align*}\)

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

Next, we will substitute this value into one of the equations so we can solve for \(y\). Again, at this step, it does not matter which equation you use.

We will use Equation \((2)\) and substituting in \(x=-2\), we get 

\(\begin{align*} 7x + 4y &= -2 \\ 7(-2) + 4y &= -2 \\ -14 + 4y &= -2 \end{align*}\)

Using inverse operations and solving for \(y\), we get

\(\begin{align*} -14 + 4y &= -2 \\ 4y &= 14-2 \\ 4y &= 12 \\ y &= 3 \end{align*}\)

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

Because we used Equation \((2)\) to solve for the second unknown variable, in this case, \(y\), we will use Equation \((1)\), \(3x-8y\), to check our solution. We will substitute \(x=-2\) and \(y=3\) into Equation \((1)\), and verify that the left side is equal to the right side.

\(\begin{align*} \text{LS} &= 3x-8y \\ &= 3(-2) - 8(3) \\ &= -6-24 \\ &= -30 \end{align*}\)

\(\begin{align*} \text{RS} &= -30 \end{align*}\)

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

Therefore, \(\text{LS}=\text{RS}\) and \((-2,3)\) is the solution to the system of equations.

Again, graphing the lines, we can see the solution as the point of intersection.

The lines 3x+30=8y and 3x minus 2y=11 are plotted on a graph. They intersect at the point (negative 2, 3)


Summary of Elimination Steps

  • Step 1: If required, multiply one or both equations by a factor to ensure that both equations have either an \(x\) or \(y\) coefficient that is either equal or opposite to each other.
  • Step 2: Eliminate one variable by adding or subtracting
    • Remember if the coefficients from Step 1 have the same sign we will subtract, and if they have opposite signs, we will add.
  • 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 3

When using the method of elimination, what are the first two steps when solving the system of linear equations show below?

\(\begin{align*} 5x+2y &= 8 \\ 3x+2y&=4 \end{align*}\)

Complete each step one at a time. You are not required to actually solve the given system of linear equations.

Question — Part A

Step 1: Select whether the equations should be added or subtracted.

  1. Add
  2. Subtract

Answer — Part A

  1. Subtract

Feedback — Part A

If coefficients are the same, we subtract. If coefficients have opposite signs, we add.

Question — Part B

Step 2: Eliminate one variable by performing the operation in Step 1.

Answer — Part B

\(2x=4\)

Feedback — Part B

Subtract the second equation from the first equation to obtain \(2x=4\).

Interactive Version

Solving a Linear System Using Elimination


Example 6

Solve the system of equations using elimination:

\(\begin{align*} 2x-100&=-9y \tag{1}\\ -4y-35&=-15x \tag{2} \end{align*}\)

Solution

Before we start with solving using elimination, we will first rearrange the equations so they are both in the form \(Ax+By=C\). This will allow us to easily compare the coefficients of \(x\) and \(y\) between the two equations.

\(\begin{align*} 2x+9y&=100 \tag{1}\\ 15x-4y&=35 \tag{2} \end{align*}\)

Step 1: 

In this example, we will need to multiply by a factor to get the same or opposite coefficient for \(x\) or \(y\). If we wish to not use factors that are fractions we will need to multiply both equations by their own factor. 
In our example, we could:

  • choose to multiply so both equations have a coefficient of \(30\) (the lowest common multiple of \(2\) and \(15\)) in front of \(x\) \(\rightarrow\) Equation \((1) \times 15\) and Equation \((2) \times 2\) 

or we could

  • choose to multiply so both equations have a coefficient of \(36\) but with opposite signs (the lowest common multiple of \(9\) and \(4\)) in front of \(y\rightarrow\) Equation \((1)\times 4\) and Equation \((2)\times9\)

For our solution, we will choose the second option. This will give us two equations with opposite coefficients in front of their \(y\) variable.

  • Equation \((1) \times 4\rightarrow \) Equation \((3)\)
  • Equation \((2) \times 9\rightarrow\) Equation \((4)\)

\(\begin{align*} 8x+36y&=400 \tag{3}\\ 135x-36y&=315 \tag{4} \end{align*}\)

Steps 2 and 3:

We now have opposite coefficients for \(y\) so we will add the equations together to eliminate \(y\) and then we can solve for \(x\).

  • Equation \((3)\) \(+\) Equation \((4)\):

\(\begin{align*} 8x+36y&=400 \tag{3}\\ 135x-36y&=315 \tag{4} \\ \hline 143x\;\;\;\;\;\;\;\;\;\;&=715 \tag{3)+(4}\\ x&=5 \end{align*}\)

Step 4:

Substitute \(x=5\) into Equation \((1)\).

\[\begin{align*} 2x+9y&=100\\ 2(5)+9y&=100\\ 9y&=100-10\\ 9y&=90\\ y&=10 \end{align*}\]

Step 5:

Verify the solution \((x,y)=(5,10)\) in Equation \((2)\).

\[\begin{align*} \text{LS}&=15x-4y\\ &=15(5)-4(10)\\ &=75-40\\ &=35 \end{align*}\]

\(\text{RS}=35\)

\[\text{LS}=\text{RS}\]

Therefore, \(\text{LS}=\text{RS}\) and \((5,10)\) is the solution to the system of equations.


Check Your Understanding 4

Question — Version 1

Consider the following system of linear equations.

\( \begin{align*} 7x - 3y &= 20 & (1) \\ -6x + 9y &= 2 & (2) \end{align*} \)

Will the following multiplications result in equations that can then be solved using elimination? Answer Yes or No.

  1. \((1) \times 6\) and \((2) \times 7\)
  2. \((1) \times 3\)
  3. \((2) \times 3\)
  4. \((1) \times 9\) and \((2) \times 20\)

Answer — Version 1

  1. Yes
  2. Yes
  3. No
  4. No

Feedback — Version 1

For option a): \((1) \times 6\) and \((2) \times 7\) results in 

\(\begin{align*} 42x -18y &= 120 \\ -42x + 63y &= 14\end{align*}\)

Adding the equations will result in \(x\) being eliminated.

For option b): \((1) \times 3\) results in

\(\begin{align*} 21x-9y &= 60 \\ -6x + 9y &= 2 \end{align*}\)

Adding the equations will result in \(y\) being eliminated.

Question — Version 2

Consider the following system of linear equations.

\( \begin{align*} -2x + 6y &= 7 & (1) \\ 3x - 4y &= 12 & (2) \end{align*} \)

Will the following multiplications result in equations that can then be solved using elimination? Answer Yes or No.

  1. \((1) \times 3\) and \((2) \times 2\)
  2. \((1) \times -4\) and \((2) \times 6\)
  3. \((1) \times 3\) and \((2) \times 6\)
  4. \((1) \times 4\) and \((2) \times 2\)

Answer — Version 2

  1. Yes
  2. Yes
  3. No
  4. No

Feedback — Version 2

For option a): \((1) \times 3\) and \((2) \times 2\) results in 

\(\begin{align*} -6x + 18y &= 21 \\ 6x - 8y &= 24 \end{align*}\)

Adding the equations will result in \(x\) being eliminated.

For option b): \((1) \times -4\) and \((2) \times 6\) results in

\(\begin{align*} 8x - 24 y &= -28 \\ 18x - 24y &= 72 \end{align*}\)

Subtracting the equations will result in \(y\) being eliminated.


Which Algebraic Method Should I Use?


When solving a system of linear equations algebraically, either substitution or elimination will work. However, in some cases it may be more efficient to choose one method over the other based on how the system of equations is given in the question.

Substitution:

  • Substitution would typically be the preferred method if one or more of the equations already has one variable isolated in terms of the other.
  • Substitution would likely also be the preferred method if an equation is in the form \(Ax+By=C\) where \(A\) or \(B\) are equal to \(1\). This means, isolating for that variable will not require division by a coefficient resulting in having to work with fractions.

Elimination:

  • Elimination would typically be the preferred method if both equations are in the form \(Ax+By=C\) where \(A\) and \(B\) are values other than \(1\). In this instance, elimination will most likely be the more efficient choice, as you will often be able to avoid working with unfriendly fractions to eliminate one of the variables.

Check Your Understanding 5

Question — Version 1

Which algebraic method would be the most efficient choice for solving the following system of linear equations?

\(\begin{align*} -4x + y &=-2 \\ -2x + 9y &= 8 \end{align*}\)

  1. Substitution
  2. Elimination

Answer — Version 1

  1. Substitution

Feedback — Version 1

If an equation has a variable with a coefficient of \(1\), then substitution is preferred. Otherwise, we use elimination. In this instance, substitution is the most efficient choice.

Question — Version 2

Which algebraic method would be the most efficient choice for solving the following system of linear equations?

\(\begin{align*} 5x + 4y &= - 16\\ -9x + 5y &= 13 \end{align*}\)

  1. Substitution
  2. Elimination

Answer — Version 2

  1. Elimination

Feedback — Version 2

If an equation has a variable with a coefficient of \(1\), then substitution is preferred. Otherwise, we use elimination. In this instance, elimination is the most efficient choice.


Try This Revisited

Line A passes through the point where \(3x-2y+5=0\) and \(y-5=3(x-4)\) intersect, and has an \(x\)-intercept of \(5\). What is the slope of Line A?

Solution

To find the slope of Line A, we will need two points on Line A. One of these is the intersection point of the given lines, which we can find by substitution or elimination. Since we are not told specifically which method to use in this question, we are free to choose the method we think will be the most efficient. 

For this example, an argument could be made for the use of either substitution or elimination: 

  • Isolating for \(y\) in terms of \(x\) in the second equation would be quick and therefore using substitution makes sense. 
  • After distributing the \(3\) in the second equation, both equations will have the same coefficent in front of \(x\) so elmination also makes sense.

For our solution, we will use elimination, but take a moment to solve this question on your own using substitution. 

Step 1

First we will determine the intersection point of the two given lines. To use elimination we will rearrange both equations to the form \(Ax+By=C\).

  • Equation \((1)\):
\[\begin{align*} 3x-2y+5&=0\\ 3x-2y&=-5 \end{align*}\]
  • Equation \((2)\):\[\begin{align*} y-5&=3(x-4)\\ y-5&=3x-12\\ -3x+y&=-7 \end{align*}\]

Step 2 and Step 3

Equation \((1)\) \(+\) Equation \((2)\): 
\(\begin{align*} 3x-2y&=-5 \tag{1}\\ -3x+y&=-7 \tag{2}\\ \hline -y&=-12\tag{1)+(2}\\ y&=12 \end{align*}\)

Step 4

Substitute \(y=12\) into Equation \((1)\):

\[\begin{align*} 3x-2y&=-5\\ 3x-2(12)&=-5\\ 3x-24&=-5\\ 3x=19\\ x=\dfrac{19}{3} \end{align*}\]

Step 5

Verify the solution \((x,y)=\left(\dfrac{19}{3},12\right)\)in Equation \((2)\):

\[\begin{align*} LS&=y-5\\ &=12-5\\ &=7 \end{align*}\]
\[\begin{align*} RS&=3(x-4)\\ &=3\left(\dfrac{19}{3}-4\right)\\ &=19-12\\ &=7 \end{align*}\]
\[LS=RS\]

Therefore, \(LS=RS\) and \(\left(\dfrac{19}{3},12\right)\) is the point of intersection of the two lines.

Now we know that Line A passes through the point \(\left(\dfrac{19}{3},12\right)\) and has an \(x\)-intercept of \(5\), which means it also passes through the point \((5,0)\). We can calculate the slope of Line A using these two points.

\[\begin{align*} m_A&=\dfrac{\Delta y}{\Delta x}\\ &=\dfrac{0-12}{5-\frac{19}{3}}\\ &=\dfrac{-12}{\frac{15}{3}-\frac{19}{3}}\\ &=\dfrac{-12}{-\frac{4}{3}}\\ &=-12 \div -\dfrac{4}{3}\\ &=-12 \times -\dfrac{3}{4}\\ &=9 \end{align*}\]

Therefore, the slope of Line A is equal to \(9\).


Special Cases


So far, all of our examples have resulted in a single \((x,y)\) solution, or in other words, one point of intersection.

Recall

We know that two lines can intersect in one of three ways:

  • one intersection point,
  • no intersection point (parallel and distinct lines), or
  • infinite intersection points (same line).

If we don't realize we are given parallel and distinct lines, or the same line, can we still use the substitution method or the elimination method to solve the system of equations?

 Example 7

Solve the system of equations by substitution:

\(2(x-y)=8 \tag{1}\)

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

Solution 

In this example, Equation \((2)\) already has \(y\) isolated in terms of \(x\), so we can go straight to substituting \(x-4\) for \(y\) in Equation \((1)\) and solve for \(x\).

\[\begin{align*} 2(x-y)&=8\\ 2(x-(x-4))&=8\\ 2(x-x+4)&=8\\ 2x-2x+2(4)&=8\\ 0x&=8-8\\ 0x&=0 \end{align*}\]

Notice that we are left with \(0x=0\). This will be true for all real values of \(x\). Therefore, this system has infinite solutions. This means, the two equations in the system are in fact the same line. 

We can show this by rearranging Equation \((1)\) into \(y=mx+b\) as follows:

\[\begin{align*} 2(x-y)&=8\\ 2x-2y&=8\\ -2y&=-2x+8\\ y&=x-4 \end{align*}\]

Or we can show this is true by graphing both equations on the same grid:

The lines y=x minus 4 and 2(x minus y) = 8 are plotted on a graph. They are shown to be the same line.

If a system has infinite solutions (the lines are the same), the algebra will show a statement that is true for all real values of \(x\).

 Example 8

Solve the system of equations by substitution:

\(y=\dfrac{2}{3}x+5 \tag{1}\)

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

Solution

In this example, Equation \((1)\) already has \(y\) isolated in terms of \(x\), so we can go straight to substituting \(\dfrac{2}{3}x+5\) for \(y\) in Equation \((2)\) and solve for \(x\). 

\[\begin{align*} 2x-3y&=4\\ 2x-3\left(\dfrac{2}{3}x+5\right)&=4\\ 2x-2x-15&=4\\ 0x=4+15\\ 0x&=19 \end{align*}\]

Notice that we are left with \(0x=19\).  This will never be true for any real value of \(x\); the left side of the equation will never equal the right side of the equation. There is no solution to this system of equations. These two lines are parallel and distinct so they will never intersect. 

We can show this is true by rearranging Equation \((2)\) into \(y=mx+b\) as follows to show that the lines have the same slope of \(-\dfrac{2}{3}\), and different \(y\)-intercepts:

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

We can also visually see on a graph that the two lines are parallel and distinct:

The lines y = two thirds x + 5 and 2x minus 3y = 4 are plotted on a graph.

If a system has no solutions (the lines are parallel and distinct), the algebra will show a statement that is never true for any value of \(x\).

If elimination is the method used to solve a system of equations that are the same line or parallel and distinct lines, the algebra will give the same result as the substitution method (i.e., same line will result in \(0x=0\), and parallel and distinct lines will give a result that will never be true, simliar to \(0x=19\)).   


Check Your Understanding 6

Question — Version 1

Suppose you are solving a system of linear equations using substitution, and you obtain the equation \(x=6\). How many points of intersection will the system of linear equations have?

  1. One intersection point
  2. No intersection points
  3. An infinite number of intersection points

Answer — Version 1

  1. One intersection point

Feedback — Version 1

\(x=6\) tells us that there is one value of \(x\) that satisifies the system of linear equations. This means there will be one intersection point.

Question — Version 2

Suppose you are solving a system of linear equations using substitution, and you obtain the equation \(0x = -10\). How many points of intersection will the system of linear equations have?

  1. One intersection point
  2. No intersection points
  3. An infinite number of intersection points

Answer — Version 2

  1. No intersection points

Feedback — Version 2

\(0x=-10\) is a statement that is always false. This means there will be no intersection points.

Question — Version 3

Suppose you are solving a system of linear equations using substitution, and you obtain the equation \(0x = 0\). How many points of intersection will the system of linear equations have?

  1. One intersection point
  2. No intersection points
  3. An infinite number of intersection points

Answer — Version 3

  1. An infinite number of intersection points

Feedback — Version 3

\(0x=0\) is a statement that is always true. This means there will be an infinite number of intersection points.


Wrap-Up


Lesson Summary

  • In this lesson, we solved linear systems with two equations using the algebraic methods of substitution and elimination.
    • Substitution is typically preferred when the coefficient of either \(x\) or \(y\) is \(1\)  in a given equation.
    • Elimination is typically the preferred method when both of the equations are given in the form \(Ax+By=C\),  where \(A\) and \(B\) are values other than \(1\).
  • Algebraic methods can be used to solve linear systems with no solutions or systems with infinite solutions.
    • If a system has no solutions (the lines are parallel and distinct), the algebra will show a statment that is never true for any value of \(x\), for example \(0x=-5\).
    • If a system has infinite solutions (the lines are the same), the algebra will show a statement that is true for all real values of \(x\), for example \(0x=0\).

Take It With You

Create a system of two linear equations that will have the solution \((-3,8)\).