Solving a System of Equations By Elimination

We have solved systems of linear equations by graphing and by substitution. Graphing works well when the variable coefficients are small and the solution has integer values. Substitution works well when we can easily solve one equation for one of the variables and not have too many fractions in the resulting expression.

The third method of solving systems of linear equations is called the Elimination Method. When we solved a system by substitution, we started with two equations and two variables and reduced it to one equation with one variable. This is what we’ll do with the elimination method, too, but we’ll have a different way to get there.

Solving a System of Equations By Elimination

The Elimination Method is based on the Addition Property of Equality. The Addition Property of Equality says that when you add the same quantity to both sides of an equation, you still have equality. We will extend the Addition Property of Equality to say that when you add equal quantities to both sides of an equation, the results are equal.

For any expressions a, b, c, and d,

\(\begin{array}{cccc}\text{if}\hfill & \hfill a& =\hfill & b\hfill \\ \text{and}\hfill & \hfill c& =\hfill & d\hfill \\ \text{then}\hfill & \hfill a+c& =\hfill & b+d\hfill \end{array}\)

To solve a system of equations by elimination, we start with both equations in standard form. Then we decide which variable will be easiest to eliminate. How do we decide? We want to have the coefficients of one variable be opposites, so that we can add the equations together and eliminate that variable.

Notice how that works when we add these two equations together:

\(\begin{array}{c}3x+y=5\hfill \\ \underset{\text{_________}}{2x-y=0}\hfill \\ 5x\phantom{\rule{1.7em}{0ex}}=5\hfill \end{array}\)

The y’s add to zero and we have one equation with one variable.

Let’s try another one:

\(\begin{array}{c}x+4y=2\hfill \\ 2x+5y=-2\hfill \end{array}\)

This time we don’t see a variable that can be immediately eliminated if we add the equations.

But if we multiply the first equation by −2, we will make the coefficients of x opposites. We must multiply every term on both sides of the equation by −2.

This figure shows two equations. The first is negative 2 times x plus 4y in parentheses equals negative 2 times 2. The second is 2x + 5y = negative 2. This figure shows two equations. The first is negative 2x minus 8y = negative 4. The second is 2x + 5y = -negative 2.

Now we see that the coefficients of the x terms are opposites, so x will be eliminated when we add these two equations.

Add the equations yourself—the result should be −3y = −6. And that looks easy to solve, doesn’t it? Here is what it would look like.

This figure shows two equations being added together. The first is negative 2x – 8y = −4 and 2x plus 5y = negative 2. The answer is negative 3y = negative 6.

We’ll do one more:

\(\begin{array}{c}4x-3y=10\hfill \\ 3x+5y=-7\hfill \end{array}\)

It doesn’t appear that we can get the coefficients of one variable to be opposites by multiplying one of the equations by a constant, unless we use fractions. So instead, we’ll have to multiply both equations by a constant.

We can make the coefficients of x be opposites if we multiply the first equation by 3 and the second by −4, so we get 12x and −12x.

This figure shows two equations. The first is 3 times 4x minus 3y in parentheses equals 3 times 10. The second is negative 4 times 3x plus 5y in parentheses equals negative 4 times negative 7.

This gives us these two new equations:

\(\begin{array}{c}\phantom{\rule{1.1em}{0ex}}12x-9y=30\hfill \\ -12x-20y=28\hfill \end{array}\)

When we add these equations,

\(\begin{array}{c}\begin{array}{c}\phantom{\rule{1.1em}{0ex}}12x-9y=30\hfill \\ \underset{\text{_____________}}{-12x-20y=28}\hfill \end{array}\\ \hfill -29y=58\end{array}\)

the x’s are eliminated and we just have −29y = 58.

Once we get an equation with just one variable, we solve it. Then we substitute that value into one of the original equations to solve for the remaining variable. And, as always, we check our answer to make sure it is a solution to both of the original equations.

Now we’ll see how to use elimination to solve the same system of equations we solved by graphing and by substitution.

Example: How to Solve a System of Equations by Elimination

Solve the system by elimination. \(\begin{array}{c}2x+y=7\hfill \\ x-2y=6\hfill \end{array}\)

Solution

This figure has seven rows and three columns. The first row reads, “Step 1. Write both equations in standard form. If any coefficients are fractions, clear them.” It also says, “Both equations are in standard form, A x + B y = C. There are no fractions.” It also gives the two equations as 2x + y = 7 and x – 2y = 6.The second row reads, “Step 2: Make the coefficients of one variable opposites. Decide which variable you will eliminate. Multiply one or both equations so that the coefficients of that variable are opposites.” It also says, “We can eliminate the y’s by multiplying the first equation by 2. Multiply both sides of 2x + y = 7 by 2.” It also shows the steps with equations. Initially the equations are ex + y = 7 and x – 2y = 6. Then they become 2(2x + y) = 2 times 7 and x – 2y = 6. They then become 4x + 2y = 14 and x – 2y = 6.The third row says, “Step 3: Add the equations resulting from step 2 to eliminate one variable.” It also says, “We add the x’s, y’s, and constants.” It then gives the equation as 5x = 20.The fourth row says, “Step 4: Solve for the remaining variable.” It also says, “Solve for x.” It gives the equation as x = 4.The fifth row says, “Step 5: Substitute the solution from Step 4 into one of the original equations. Then solve for the other variable.” It also says, “Substitute x = 4 into the second equation, x – 2y = 6. Then solve for y.” It then gives the equations as x – 2y = 6 which becomes 4 – 2y = 6. This is then −2y = 2, and thus, y = −1.The sixth row says, “Step 6: Write the solution as an order pair.” It also says, “Write it as (x, y).” It gives the ordered pair as (4, −1).The seventh row says, “Step 7: Check that the ordered pair is a solution to both original equations.” It also says, “Substitute (4, −1) into 2x + y = 7 and x – 2y = 6. Do they make both equations true? Yes!” It then gives the equations. 2x + y = 7 becomes 2 times 4 + −1 = 7 which is 7 = 7. x – 2y = 6 becomes 4 – 2 times −1 = 6 which is 6 = 6. The row then says, “The solution is (4, −1).”

The steps are listed below for easy reference.

How to solve a system of equations by elimination.

  1. Write both equations in standard form. If any coefficients are fractions, clear them.
  2. Make the coefficients of one variable opposites.
    • Decide which variable you will eliminate.
    • Multiply one or both equations so that the coefficients of that variable are opposites.
  3. Add the equations resulting from Step 2 to eliminate one variable.
  4. Solve for the remaining variable.
  5. Substitute the solution from Step 4 into one of the original equations. Then solve for the other variable.
  6. Write the solution as an ordered pair.
  7. Check that the ordered pair is a solution to both original equations.

First we’ll do an example where we can eliminate one variable right away.

Example

Solve the system by elimination. \(\begin{array}{c}x+y=10\hfill \\ x-y=12\hfill \end{array}\)

Solution

.
Both equations are in standard form.
The coefficients of y are already opposites.
Add the two equations to eliminate y.
The resulting equation has only 1 variable, x.
.
Solve for x, the remaining variable.
Substitute x = 11 into one of the original equations.
.
.
Solve for the other variable, y. .
Write the solution as an ordered pair. The ordered pair is (11, −1).
Check that the ordered pair is a solution to both original equations.
\(\begin{array}{cccc}\begin{array}{ccc}\hfill x+y& =\hfill & 10\hfill \\ \hfill 11+\left(-1\right)& \stackrel{?}{=}\hfill & 10\hfill \\ \hfill 10& =\hfill & 10\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}& & & \begin{array}{ccc}\hfill x-y& =\hfill & 12\hfill \\ \hfill 11-\left(-1\right)& \stackrel{?}{=}\hfill & 12\hfill \\ \hfill 12& =\hfill & 12\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}\end{array}\)
The solution is (11, −1).

In the example below, we will be able to make the coefficients of one variable opposites by multiplying one equation by a constant.

Example

Solve the system by elimination. \(\begin{array}{c}3x-2y=-2\hfill \\ 5x-6y=10\hfill \end{array}\)

Solution

.
Both equations are in standard form.
None of the coefficients are opposites.
We can make the coefficients of y opposites by multiplying the first equation by −3. .
Simplify.
Add the two equations to eliminate y.
Solve for the remaining variable, x.
Substitute x = −4 into one of the original equations.
Solve for y.
.
Write the solution as an ordered pair. The ordered pair is (−4, −5).
Check that the ordered pair is a solution to both original equations.
\(\begin{array}{cccc}\begin{array}{ccc}\hfill 3x-2y& =\hfill & -2\hfill \\ \hfill 3\left(-4\right)-2\left(-5\right)& \stackrel{?}{=}\hfill & -2\hfill \\ \hfill -12+10& \stackrel{?}{=}\hfill & -2\hfill \\ \hfill -2y& =\hfill & -2\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}& & & \begin{array}{ccc}\hfill 5x-6y& =\hfill & 10\hfill \\ \hfill 3\left(-4\right)-6\left(-5\right)& \stackrel{?}{=}\hfill & 10\hfill \\ \hfill -20+30& \stackrel{?}{=}\hfill & 10\hfill \\ \hfill 10& =\hfill & 10\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}\end{array}\)
The solution is (−4, −5).

Now we’ll do an example where we need to multiply both equations by constants in order to make the coefficients of one variable opposites.

Example

Solve the system by elimination. \(\begin{array}{c}4x-3y=9\hfill \\ 7x+2y=-6\hfill \end{array}\)

Solution

In this example, we cannot multiply just one equation by any constant to get opposite coefficients. So we will strategically multiply both equations by a constant to get the opposites.

Both equations are in standard form. To get opposite coefficients of y, we will multiply the first equation by 2 and the second equation by 3.
Simplify.
Add the two equations to eliminate y.
Solve for x.
Substitute x = 0 into one of the original equations.
Solve for y.
Write the solution as an ordered pair. The ordered pair is (0, −3).
Check that the ordered pair is a solution to both original equations.
\(\begin{array}{cccc}\begin{array}{ccc}\hfill 4x-3y& =\hfill & 9\hfill \\ \hfill 4\left(0\right)-3\left(-3\right)& \stackrel{?}{=}\hfill & 9\hfill \\ \hfill 9& =\hfill & 9\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}& & & \begin{array}{ccc}\hfill 7x+2y& =\hfill & -6\hfill \\ \hfill 7\left(0\right)+2\left(-3\right)& \stackrel{?}{=}\hfill & -6\hfill \\ \hfill -6& =\hfill & -6\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}\end{array}\)
The solution is (0, −3).

What other constants could we have chosen to eliminate one of the variables? Would the solution be the same?

When the system of equations contains fractions, we will first clear the fractions by multiplying each equation by its LCD.

Example

Solve the system by elimination. \(\begin{array}{c}x+\frac{1}{2}y=6\hfill \\ \frac{3}{2}x+\frac{2}{3}y=\frac{17}{2}\hfill \end{array}\)

Solution

In this example, both equations have fractions. Our first step will be to multiply each equation by its LCD to clear the fractions.

To clear the fractions, multiply each equation by its LCD.
Simplify.
Now we are ready to eliminate one of the variables. Notice that both equations are in standard form.
We can eliminate y multiplying the top equation by −4.
Simplify and add.
Substitute x = 3 into one of the original equations.
Solve for y. .
Write the solution as an ordered pair. The ordered pair is (3, 6).
Check that the ordered pair is a solution to both original equations.
\(\begin{array}{cccc}\begin{array}{ccc}\hfill x+\frac{1}{2}y& =\hfill & 6\hfill \\ \hfill 3+\frac{1}{2}\left(6\right)& \stackrel{?}{=}\hfill & 6\hfill \\ \hfill 3+6& \stackrel{?}{=}\hfill & 6\hfill \\ \hfill 6& =\hfill & 6\phantom{\rule{0.2em}{0ex}}✓\hfill \\ \\ \\ \\ \\ \end{array}& & & \begin{array}{ccc}\hfill \frac{3}{2}x+\frac{2}{3}y& =\hfill & \frac{17}{2}\hfill \\ \hfill \frac{3}{2}\left(3\right)+\frac{2}{3}\left(6\right)& \stackrel{?}{=}\hfill & \frac{17}{2}\hfill \\ \hfill \frac{9}{2}+4& \stackrel{?}{=}\hfill & \frac{17}{2}\hfill \\ \hfill \frac{9}{2}+\frac{8}{2}& \stackrel{?}{=}\hfill & \frac{17}{2}\hfill \\ \hfill \frac{17}{2}& =\hfill & \frac{17}{2}\phantom{\rule{0.2em}{0ex}}✓\hfill \end{array}\end{array}\)
The solution is (3, 6).

In the Solving Systems of Equations by Graphing section we saw that not all systems of linear equations have a single ordered pair as a solution. When the two equations were really the same line, there were infinitely many solutions. We called that a consistent system. When the two equations described parallel lines, there was no solution. We called that an inconsistent system.

Example

Solve the system by elimination. \(\begin{array}{c}3x+4y=12\hfill \\ y=3-\frac{3}{4}x\hfill \end{array}\)

Solution

\(\begin{array}{ccc}& & \phantom{\rule{0.8em}{0ex}}\begin{array}{ccc}\hfill 3x+4y& =\hfill & 12\hfill \\ \hfill y& =\hfill & 3-\frac{3}{4}x\hfill \end{array}\hfill \\ \\ \\ \text{Write the second equation in standard form.}\hfill & & \phantom{\rule{0.8em}{0ex}}\begin{array}{ccc}\hfill 3x+4y& =\hfill & 12\hfill \\ \hfill \frac{3}{4}x+y& =\hfill & 3\hfill \end{array}\hfill \\ \\ \\ \begin{array}{c}\text{Clear the fractions by multiplying the}\hfill \\ \text{second equation by 4.}\hfill \end{array}\hfill & & \begin{array}{ccc}\hfill 3x+4y& =\hfill & 12\hfill \\ \hfill 4\left(\frac{3}{4}x+y\right)& =\hfill & 4\left(3\right)\hfill \end{array}\hfill \\ \\ \\ \text{Simplify.}\hfill & & \phantom{\rule{1em}{0ex}}\begin{array}{ccc}\hfill 3x+4y& =\hfill & 12\hfill \\ \hfill 3x+4y& =\hfill & 12\hfill \end{array}\hfill \\ \\ \\ \begin{array}{c}\text{To eliminate a variable, we multiply the}\hfill \\ \text{second equation by −1.}\hfill \end{array}\hfill & & \begin{array}{c}\phantom{\rule{0.2em}{0ex}}\underset{\text{________________}}{\begin{array}{ccc}\hfill 3x+4y& =\hfill & 12\hfill \\ \hfill -3x-4y& =\hfill & -12\hfill \end{array}}\hfill \\ \hfill 0=0\hfill \end{array}\hfill \\ \text{Simplify and add.}\hfill & \end{array}\)

This is a true statement. The equations are consistent but dependent. Their graphs would be the same line. The system has infinitely many solutions.

After we cleared the fractions in the second equation, did you notice that the two equations were the same? That means we have coincident lines.

Example

Solve the system by elimination. \(\begin{array}{c}-6x+15y=10\hfill \\ 2x-5y=-5\hfill \end{array}\)

Solution

\(\begin{array}{cc}\text{The equations are in standard form.}\hfill & \phantom{\rule{0.1em}{0ex}}\begin{array}{ccc}\hfill -6x+15y& =\hfill & 10\hfill \\ \hfill 2x-5y& =\hfill & -5\hfill \end{array}\hfill \\ \\ \\ \begin{array}{c}\text{Multiply the second equation by 3 to}\hfill \\ \text{eliminate a variable.}\hfill \end{array}\hfill & \phantom{\rule{0.1em}{0ex}}\begin{array}{ccc}\hfill -6x+15y& =\hfill & 10\hfill \\ \hfill 3\left(2x-5y\right)& =\hfill & 3\left(-5\right)\hfill \end{array}\hfill \\ \\ \\ \text{Simplify and add.}\hfill & \begin{array}{c}\underset{\text{__________________}}{\begin{array}{ccc}\hfill -6x+15y& =\hfill & \phantom{\rule{0.5em}{0ex}}10\hfill \\ \hfill 6x-15y& =\hfill & -15\hfill \end{array}}\\ \hfill 0\ne -5\hfill \end{array}\hfill \end{array}\)

This statement is false. The equations are inconsistent and so their graphs would be parallel lines.

The system does not have a solution.

This lesson is part of:

Systems of Linear Equations I

View Full Tutorial

Track Your Learning Progress

Sign in to unlock unlimited practice exams, tutorial practice quizzes, personalized weak area practice, AI study assistance with Lexi, and detailed performance analytics.