MX Algebra Solve Systems of Linear Equations with Two Variables

Section 4.1Solve Systems of Linear Equations with Two Variables

Definition

Before you get started, take this readiness quiz.

1

For the equation \(y=\frac{2}{3}x-4,\)
ⓐ Is \((6,0)\) a solution? ⓑ Is \((-3,-2)\) a solution?
If you missed this problem, review Example 2.

ⓐ yes; ⓑ no

Definition
2

Find the slope and y-intercept of the line \(3x-y=12.\)
If you missed this problem, review Example 5.

\(m=3;\,b=-12\)

Definition
3

Find the x- and y-intercepts of the line \(2x-3y=12.\)
If you missed this problem, review Example 8.

\(\left(6,\,0\right),\,\left(0,\,-4\right)\)

Determine Whether an Ordered Pair is a Solution of a System of Equations

In Solving Linear Equations, we learned how to solve linear equations with one variable. Now we will work with two or more linear equations grouped together, which is known as a system of linear equations.

System of Linear Equations

When two or more linear equations are grouped together, they form a system of linear equations.

In this section, we will focus our work on systems of two linear equations in two unknowns. We will solve larger systems of equations later in this chapter.

An example of a system of two linear equations is shown below. We use a brace to show the two equations are grouped together to form a system of equations.

\[\left\{\begin{array}{l}2x+y=7 \\ x-2y=6\end{array}\right.\]

A linear equation in two variables, such as \(2x+y=7,\) has an infinite number of solutions. Its graph is a line. Remember, every point on the line is a solution to the equation and every solution to the equation is a point on the line.

To solve a system of two linear equations, we want to find the values of the variables that are solutions to both equations. In other words, we are looking for the ordered pairs \((x,y)\) that make both equations true. These are called the solutions of a system of equations.

Solutions of a System of Equations

The solutions of a system of equations are the values of the variables that make all the equations true. A solution of a system of two linear equations is represented by an ordered pair \((x,y).\)

To determine if an ordered pair is a solution to a system of two equations, we substitute the values of the variables into each equation. If the ordered pair makes both equations true, it is a solution to the system.

Example 1

Determine whether the ordered pair is a solution to the system \(\left\{\begin{array}{l}x-y=-1 \\ 2x-y=-5\end{array}\right..\)

ⓐ \((-2,-1)\) ⓑ \((-4,-3)\)

Substitute each ordered pair's x- and y-values into both equations and check whether both come out true.


The equations are x minus y equals minus 1 and 2 x minus y equals minus 5. We substitute x equal to minus 2 and y equal to minus 1 into both equations. So, x minus y equals minus 1 becomes minus 2 minus open parentheses minus 1 close parentheses equal to or not equal to minus 1. Simplifying, we get minus 1 equals minus 1 which is correct. The equation 2 x minus y equals minus 5 becomes 2 times minus 2 minus open parentheses minus 1 close parentheses equal to or not equal to minus 5. Simplifying, we get minus 3 not equal to minus 5. Hence, the ordered pair minus 2, minus 1 does not make both equations true. So, it is not a solution.


We substitute x equal to minus 4 and y equal to minus 3 into both equations. So, x minus y equals minus 1 becomes minus 4 minus open parentheses minus 3 close parentheses equal to or not equal to minus 1. Simplifying, we get minus 1 equals minus 1, which is correct. The equation 2 x minus y equals minus 5 becomes 2 times minus 4 minus open parentheses minus 3 close parentheses equal to or not equal to minus 5. Simplifying, we get minus 5 equals minus 5, which is correct. The ordered pair minus 4, minus 3 does make both equations true. Hence, it is a solution.
Try It #1

Determine whether the ordered pair is a solution to the system \(\begin{array}{l}\left\{\begin{array}{l}3x+y=0 \\ x+2y=-5\end{array}\right.. \\ \end{array}\)

ⓐ \((1,-3)\) ⓑ \((0,0)\)

ⓐ yes ⓑ no

Did you get it?
Try It #2

Determine whether the ordered pair is a solution to the system \(\begin{array}{l}\left\{\begin{array}{l}x-3y=-8 \\ -3x-y=4\end{array}\right.. \\ \end{array}\)

ⓐ \((2,-2)\) ⓑ \((-2,2)\)

ⓐ no ⓑ yes

Did you get it?

Solve a System of Linear Equations by Graphing

In this section, we will use three methods to solve a system of linear equations. The first method we’ll use is graphing.

The graph of a linear equation is a line. Each point on the line is a solution to the equation. For a system of two equations, we will graph two lines. Then we can see all the points that are solutions to each equation. And, by finding what the lines have in common, we’ll find the solution to the system.

Most linear equations in one variable have one solution, but we saw that some equations, called contradictions, have no solutions and for other equations, called identities, all numbers are solutions.

Similarly, when we solve a system of two linear equations represented by a graph of two lines in the same plane, there are three possible cases, as shown.

Figure shows three graphs. In the first, the lines intersect at point 3, minus 1. The intersecting lines have one point in common. There is one solution to the system. In the second graph, the lines are parallel. Parallel lines have no points in common. There is no solution to the system. The third graph has only one line. Here, both equations give the same line. Because we have only one line, there are infinite many solutions.
Figure 1

Each time we demonstrate a new method, we will use it on the same system of linear equations. At the end of the section you’ll decide which method was the most convenient way to solve this system.

Example 2How to Solve a System of Equations by Graphing

Solve the system by graphing \(\left\{\begin{array}{l}2x+y=7 \\ x-2y=6\end{array}\right..\)

Solve each equation for y so you can graph both lines by slope and y-intercept.

Step 1 is to graph the first equation. To graph the first line, write the equation in slope intercept form. So, 2 x plus y equals 7 becomes y equal to minus 2 x plus 7. Here, m is minus 2 and b is 7. So the graph will be a line with slope equal to minus 2 and y intercept equal to 7. Step 2 is to graph the second equation on the same rectangular coordinate system. To graph the second line, use intercepts. For x minus 2y equals 6, the intercepts are 0, minus 3 and 6, 0. Step 3 is to determine whether the lines intersect, are parallel, or are the same line. Here, they intersect. Step 4 is to identify the solution to the system. If the lines intersect, identify the point of intersection. The lines intersect at 4, minus 1. Now, check to make sure it is a solution to both equations. When x and y are substituted with 4 and minus 1 respectively, both equations hold true. This is the solution to the system. In step 4, if the lines are parallel, the system has no solution and if the lines are the same, the system has an infinite number of solutions.
Try It #3

Solve the system by graphing: \(\left\{\begin{array}{l}x-3y=-3 \\ x+y=5\end{array}\right..\)

\((3,2)\)

Did you get it?
Try It #4

Solve the system by graphing: \(\left\{\begin{array}{l}-x+y=1 \\ 3x+2y=12\end{array}\right..\)

\((2,3)\)

Did you get it?

The steps to use to solve a system of linear equations by graphing are shown here.

Solve a system of linear equations by graphing.
  • Graph the first equation.
  • Graph the second equation on the same rectangular coordinate system.
  • Determine whether the lines intersect, are parallel, or are the same line.
  • Identify the solution to the system.
    • If the lines intersect, identify the point of intersection. This is the solution to the system.
    • If the lines are parallel, the system has no solution.
    • If the lines are the same, the system has an infinite number of solutions.
  • Check the solution in both equations.

In the next example, we’ll first re-write the equations into slope–intercept form as this will make it easy for us to quickly graph the lines.

Example 3

Solve the system by graphing: \(\left\{\begin{array}{l}3x+y=-1 \\ 2x+y=0\end{array}\right..\)

Solve both equations for y so you can graph each line from its slope and y-intercept.

We’ll solve both of these equations for \(y\) so that we can easily graph them using their slopes and y-intercepts.

Table 1
A system of two linear equations is displayed, featuring 3x + y = -1 and 2x + y = 0, indicating a mathematical problem for solving x and y.
Solve the first equation for y.Two lines of algebraic equations are displayed. The first is 3x + y = -1, and the second is its rearranged form solving for y, shown as y = -3x - 1.
Find the slope and y-intercept.A white background displays two lines of mathematical notation in black text. The top line reads 'm = -3', and the bottom line reads 'b = -1'.
Solve the second equation for y.The image displays the algebraic steps to rearrange the linear equation 2x + y = 0 into its slope-intercept form, resulting in y = -2x.
Find the slope and y-intercept.The image displays mathematical equations showing m = -2 and b = 0, likely representing the slope and y-intercept in a linear equation.
Graph the lines.A Cartesian coordinate system with two lines, blue and red, intersecting at the point (-1, 2). The axes range from -7 to 7.
Determine the point of intersection.The lines intersect at \((-1,2).\)
Check the solution in both equations.

The image shows the verification of the solution (-1, 2) for two linear equations: 3x + y = -1 and 2x + y = 0. The substitution confirms the equalities for both equations.
The solution is \((-1,2).\)
Try It #5

Solve the system by graphing: \(\left\{\begin{array}{l}-x+y=1 \\ 2x+y=10\end{array}\right..\)

\((3,4)\)

Did you get it?
Try It #6

Solve the system by graphing: \(\left\{\begin{array}{l}2x+y=6 \\ x+y=1\end{array}\right..\)

\((5,-4)\)

Did you get it?

In all the systems of linear equations so far, the lines intersected and the solution was one point. In the next two examples, we’ll look at a system of equations that has no solution and at a system of equations that has an infinite number of solutions.

Example 4

Solve the system by graphing: \(\left\{\begin{array}{l}y=\frac{1}{2}x-3 \\ x-2y=4\end{array}\right..\)

Graph the first equation using its slope and y-intercept, then graph the second using its intercepts.

Table 2
A system of two linear equations is presented, with the first equation being y = (1/2)x - 3 and the second equation being x - 2y = 4, enclosed by a blue brace on the left.
To graph the first equation, we will use its
slope and y-intercept.
The image displays the linear equation y = (1/2)x - 3, with its slope m = 1/2 and y-intercept b = -3 explicitly stated below.
To graph the second equation, we will use
the intercepts.
A light blue mathematical equation 'x - 2y = 4' is displayed on a plain white background, appearing as if a student has written it out on a blank sheet or digital canvas.
A table showing two (x,y) coordinate pairs: (0, -2) and (4, 0).
Graph the lines.A graph displaying two parallel lines in a Cartesian coordinate system. The blue line has a y-intercept of -2, and the red line has a y-intercept of -4.
Determine the points of intersection.The lines are parallel.
Since no point is on both lines, there is no
ordered pair that makes both equations
true. There is no solution to this system.
Try It #7

Solve the system by graphing: \(\left\{\begin{array}{l}y=-\frac{1}{4}x+2 \\ x+4y=-8\end{array}\right..\)

no solution

Did you get it?
Try It #8

Solve the system by graphing: \(\left\{\begin{array}{l}y=3x-1 \\ 6x-2y=6\end{array}\right..\)

no solution

Did you get it?

Sometimes the equations in a system represent the same line. Since every point on the line makes both equations true, there are infinitely many ordered pairs that make both equations true. There are infinitely many solutions to the system.

Example 5

Solve the system by graphing: \(\left\{\begin{array}{l}y=2x-3 \\ -6x+3y=-9\end{array}\right..\)

Find the slope and y-intercept of the first equation, then find the intercepts of the second.

Table 3
A system of two linear equations is shown, enclosed by a blue brace on the left. The first equation is y = 2x - 3, and the second equation is -6x + 3y = -9.
Find the slope and y-intercept of the first equation.Mathematical equations illustrating the slope-intercept form y = 2x - 3, where m (slope) equals 2 and b (y-intercept) equals -3, detailing key components of a linear function.
Find the intercepts of the second equation.A mathematical equation is displayed on a white background, which reads '-6x + 3y = -9'.
A table displays two columns labeled 'x' and 'y'. The first row shows x=0 and y=-3. The second row shows x=3/2 and y=0.
Graph the lines.A graph showing a straight line with a positive slope, passing through the points (0, -3) and (3, 3) on a Cartesian coordinate plane.
The lines are the same!
Since every point on the line makes both
equations true, there are infinitely many
ordered pairs that make both equations true.
There are infinitely many solutions to this system.

If you write the second equation in slope-intercept form, you may recognize that the equations have the same slope and same y-intercept.

Try It #9

Solve the system by graphing: \(\left\{\begin{array}{l}y=-3x-6 \\ 6x+2y=-12\end{array}\right..\)

infinitely many solutions

Did you get it?
Try It #10

Solve the system by graphing: \(\left\{\begin{array}{l}y=\frac{1}{2}x-4 \\ 2x-4y=16\end{array}\right..\)

infinitely many solutions

Did you get it?

When we graphed the second line in the last example, we drew it right over the first line. We say the two lines are coincident. Coincident lines have the same slope and same y-intercept.

Coincident Lines

Coincident lines have the same slope and same y-intercept.

The systems of equations in Example 2 and Example 3 each had two intersecting lines. Each system had one solution.

In Example 5, the equations gave coincident lines, and so the system had infinitely many solutions.

The systems in those three examples had at least one solution. A system of equations that has at least one solution is called a consistent system.

A system with parallel lines, like Example 4, has no solution. We call a system of equations like this inconsistent. It has no solution.

Consistent and Inconsistent Systems

A consistent system of equations is a system of equations with at least one solution.

An inconsistent system of equations is a system of equations with no solution.

We also categorize the equations in a system of equations by calling the equations independent or dependent. If two equations are independent, they each have their own set of solutions. Intersecting lines and parallel lines are independent.

If two equations are dependent, all the solutions of one equation are also solutions of the other equation. When we graph two dependent equations, we get coincident lines.

Let’s sum this up by looking at the graphs of the three types of systems. See below and Table 4.

The figure shows three graphs. The first one has two intersecting line. The second one has two parallel lines. The third one has only one line. This is labeled coincident.
Table 4
LinesIntersectingParallelCoincident
Number of solutions1 pointNo solutionInfinitely many
Consistent/inconsistentConsistentInconsistentConsistent
Dependent/ independentIndependentIndependentDependent
Example 6

Without graphing, determine the number of solutions and then classify the system of equations.

ⓐ \(\left\{\begin{array}{l}y=3x-1 \\ 6x-2y=12\end{array}\right.\) ⓑ \(\left\{\begin{array}{l}2x+y=-3 \\ x-5y=5\end{array}\right.\)

Write each equation in slope-intercept form and compare the two slopes.

ⓐ We will compare the slopes and intercepts of the two lines.

Table 5
The first equation is already in slope-intercept form.\(\,\begin{array}{l}\left\{\begin{array}{lll}y & = & 3x-1 \\ 6x-2y & = & 12\end{array}\right. \\ \,y\,=\,3x-1\end{array}\)
Write the second equation in slope-intercept form.\(\,\begin{array}{llllllll} & & & & & 6x-2y & = & 12 \\ & & & & & -2y & = & -6x+12 \\ & & & & & \frac{-2y}{-2} & = & \frac{-6x+12}{-2} \\ & & & & & y & = & 3x-6\end{array}\)
Find the slope and intercept of each line.\(\begin{array}{llllll}y & = & 3x-1 & \,y & = & 3x-6 \\ m & = & 3 & \,m & = & 3 \\ b & = & -1 & \,b & = & -6\end{array}\)
Since the slopes are the same and y-intercepts are different, the lines are parallel.

A system of equations whose graphs are parallel lines has no solution and is inconsistent and independent.

ⓑ We will compare the slope and intercepts of the two lines.

Table 6
\(\begin{array}{l}\left\{\begin{array}{lll}2x+y & = & -3 \\ x-5y & = & 5\end{array}\right.\end{array}\)
Write both equations in slope–intercept form.\(\,\begin{array}{llllllll}2x+y & = & -3 & & & x-5y & = & 5 \\ y & = & -2x-3 & & & -5y & = & \text{-}x+5 \\ & & & & & \frac{-5y}{-5} & = & \frac{-x+5}{-5} \\ & & & & & y & = & \frac{1}{5}x-1\end{array}\)
Find the slope and intercept of each line.\(\,\begin{array}{llllll}y & = & -2x-3 & \,y & = & \frac{1}{5}x-1 \\ m & = & -2 & \,m & = & \frac{1}{5} \\ b & = & -3 & \,b & = & -1\end{array}\)
Since the slopes are different, the lines intersect.

A system of equations whose graphs are intersect has 1 solution and is consistent and independent.

Try It #11

Without graphing, determine the number of solutions and then classify the system of equations.

ⓐ \(\left\{\begin{array}{l}y=-2x-4 \\ 4x+2y=9\end{array}\right.\) ⓑ \(\left\{\begin{array}{l}3x+2y=2 \\ 2x+y=1\end{array}\right.\)

ⓐ no solution, inconsistent, independent ⓑ one solution, consistent, independent

Did you get it?
Try It #12

Without graphing, determine the number of solutions and then classify the system of equations.

ⓐ \(\left\{\begin{array}{l}y=\frac{1}{3}x-5 \\ x-3y=6\end{array}\right.\) ⓑ \(\left\{\begin{array}{l}x+4y=12 \\ -x+y=3\end{array}\right.\)

ⓐ no solution, inconsistent, independent ⓑ one solution, consistent, independent

Did you get it?

Solving systems of linear equations by graphing is a good way to visualize the types of solutions that may result. However, there are many cases where solving a system by graphing is inconvenient or imprecise. If the graphs extend beyond the small grid with x and y both between \(-10\) and 10, graphing the lines may be cumbersome. And if the solutions to the system are not integers, it can be hard to read their values precisely from a graph.

Solve a System of Equations by Substitution

We will now solve systems of linear equations by the substitution method.

We will use the same system we used first for graphing.

\[\left\{\begin{array}{l}2x+y=7 \\ x-2y=6\end{array}\right.\]

We will first solve one of the equations for either x or y. We can choose either equation and solve for either variable—but we’ll try to make a choice that will keep the work easy.

Then we substitute that expression into the other equation. The result is an equation with just one variable—and we know how to solve those!

After we find the value of one variable, we will substitute that value into one of the original equations and solve for the other variable. Finally, we check our solution and make sure it makes both equations true.

Example 7How to Solve a System of Equations by Substitution

Solve the system by substitution: \(\left\{\begin{array}{l}2x+y=7 \\ x-2y=6\end{array}\right..\)

Solve one of the equations for a single variable.

The equations are 2 x plus y equals 7 and x minus 2y equals 6. Step 1 is to solve one of the equations for either variable. We’ll solve the first equation for y. We get y equals 7 minus 2 x. In step 2, substitute the expression from step 1 into the other equation. We replace y in the second equation with the expression 7 minus 2 x. So, we get x minus 2 open parentheses 7 minus 2 x close parentheses equals 6. Step 3 is to solve the resulting equation. Now we have an equation with just 1 variable. We solve it to get x equal to 4. Step 4 is to substitute the solution in step 3 into one of the original equations to find the other variable. We’ll use the first equation and replace x with 4. We get, 2 times 4 plus y equals 7. Simplifying, we get y equal to minus 1. Step 5 is to write the solution as an ordered pair. The ordered pair is 4, minus 1. Step 6 is to check that the ordered pair is a solution to both original equations. To do that we Substitute x equal to 4 and y equal to minus 1 into both equations and make sure they are both true.
Try It #13

Solve the system by substitution: \(\left\{\begin{array}{l}-2x+y=-11 \\ x+3y=9\end{array}\right..\)

\((6,1)\)

Did you get it?
Try It #14

Solve the system by substitution: \(\left\{\begin{array}{l}2x+y=-1 \\ 4x+3y=3\end{array}\right..\)

\((-3,5)\)

Did you get it?
Solve a system of equations by substitution.
  • Solve one of the equations for either variable.
  • Substitute the expression from Step 1 into the other equation.
  • Solve the resulting equation.
  • Substitute the solution in Step 3 into either of the original equations to find the other variable.
  • Write the solution as an ordered pair.
  • Check that the ordered pair is a solution to both original equations.

Be very careful with the signs in the next example.

Example 8

Solve the system by substitution: \(\left\{\begin{array}{l}4x+2y=4 \\ 6x-y=8\end{array}\right..\)

Solve the first equation for y, then substitute that expression into the second equation.

We need to solve one equation for one variable. We will solve the first equation for y.

Table 7
A system of two linear equations is presented. The first equation is 4x + 2y = 4, and the second equation is 6x - y = 8. A left curly brace encloses both equations, indicating they form a system.
Solve the first equation for y.
Substitute \(-2x+2\) for y in the second equation.
Steps to solve a system of linear equations by substitution, showing how the first equation 4x + 2y = 4 is rearranged to y = -2x + 2, which will then be substituted into the second equation 6x - y = 8.
Replace the y with \(-2x+2.\)A mathematical equation is displayed: 6x - (-2x + 2) = 8. The terms inside the parenthesis, -2x + 2, are highlighted in red, indicating a focus on that part of the expression.
Solve the equation for x.A step-by-step solution for the algebraic equation 6x + 2x - 2 = 8, simplifying to 8x - 2 = 8, then 8x = 10, and finally revealing the value of x as 5/4, highlighted by a red oval.
Substitute \(x=\frac{5}{4}\) into \(4x+2y=4\) to find y.Step-by-step solution to find 'y' in the equation 4x + 2y = 4 after substituting x with 5/4, resulting in y = -1/2.
The ordered pair is \((\frac{5}{4},-\frac{1}{2}).\)
Check the ordered pair in both equations.

This image illustrates the verification process for a solution to a system of two linear equations. It shows x=5/4 and y=-1/2 being substituted into 4x + 2y = 4 and 6x - y = 8, confirming both equations hold true.
The solution is \((\frac{5}{4},-\frac{1}{2}).\)
Try It #15

Solve the system by substitution: \(\left\{\begin{array}{l}x-4y=-4 \\ -3x+4y=0\end{array}\right..\)

\((2,\frac{3}{2})\)

Did you get it?
Try It #16

Solve the system by substitution: \(\left\{\begin{array}{l}4x-y=0 \\ 2x-3y=5\end{array}\right..\)

\((-\frac{1}{2},-2)\)

Did you get it?

Solve 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.

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}{llllll}\text{if} & & & a & = & b \\ \text{and} & & & c & = & d \\ \text{then} & & & a+c & = & b+d.\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}{l}\left\{\underset{\text{—————}}{\begin{array}{l}3x+y=5 \\ 2x-y=0\end{array}}\right. \\ \\ \,5x\,=5\end{array}\]

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

Let’s try another one:

\[\left\{\begin{array}{l}\,x+4y=2 \\ 2x+5y=-2\end{array}\right.\]

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.\)

Minus 2 open parentheses x plus 4y close parentheses is minus 2 times 2. And, 2 x plus 5y is minus 2.

Then rewrite the system of equations.

Minus 2 x minus 8y is minus 4 and 2 x plus 5y is minus 2.

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

Minus 2 x minus 8y is minus 4 and 2 x plus 5y is minus 2. Adding these, we get minus 3y equals minus 6.

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 9How to Solve a System of Equations by Elimination

Solve the system by elimination: \(\left\{\begin{array}{l}2x+y=7 \\ x-2y=6\end{array}\right..\)

Decide which variable to eliminate, then multiply one equation so its coefficient becomes the opposite of the other equation's.

The equations are 2 x plus y equals 7 and x minus 2y equals 6. Step 1 is to write both equations in standard form. Both equations are in standard form, Ax plus By equals C. If any coefficients are fractions, clear them. There are no fractions. Step 2 is to make the coefficients of one variable opposites. First decide which variable you will eliminate. Multiply one or both equations so that the coefficients of that variable are opposites. We can eliminate the y’s by multiplying the first equation by 2. We get 4x plus 2y equals 14. Step 3 is to add the equations resulting from step 2 to eliminate one variable. Adding, we get 5x equals 20. Step 4 is to solve for the remaining variable. Solving for x, we get x equals 4. Step 5 is to substitute the solution from step 4 into one of the original equations. Then solve for the other variable. Substituting x equal to 4 into the second equation, we get 4 minus 2y equals 6. Solving for y, we get y equal to minus 1. Step 6 is to write the solution as an ordered pair. Here, the ordered pair is 4, minus 1. Step 7 is to check that the ordered pair is a solution to both original equations. The ordered pair makes both original equations true.
Try It #17

Solve the system by elimination: \(\left\{\begin{array}{l}3x+y=5 \\ 2x-3y=7\end{array}\right..\)

\((2,-1)\)

Did you get it?
Try It #18

Solve the system by elimination: \(\left\{\begin{array}{l}4x+y=-5 \\ -2x-2y=-2\end{array}\right..\)

\((-2,3)\)

Did you get it?

The steps are listed here for easy reference.

Solve a system of equations by elimination.
  • Write both equations in standard form. If any coefficients are fractions, clear them.
  • 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.
  • Add the equations resulting from Step 2 to eliminate one variable.
  • Solve for the remaining variable.
  • Substitute the solution from Step 4 into one of the original equations. Then solve for the other variable.
  • Write the solution as an ordered pair.
  • Check that the ordered pair is a solution to both original equations.

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 10

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

Multiply both equations by constants that make the y-coefficients opposites.

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

Table 8
A system of two linear equations is shown with a brace on the left side. The first equation is 4x - 3y = 9, and the second equation is 7x + 2y = -6.
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.
A system of linear equations being prepared for solution using the elimination method. The top equation is multiplied by 2, and the bottom equation is multiplied by 3 on both sides.
Simplify.A system of two linear equations is displayed. The first equation is 8x - 6y = 18, and the second equation is 21x + 6y = -18. A left brace encloses both equations.
Add the two equations to eliminate y.A system of linear equations is solved using the elimination method, where 8x - 6y = 18 and 21x + 6y = -18 are added to eliminate the 'y' term, resulting in 29x = 0.
Solve for x.A red arrow points from 'x = 0' to the '7x' term in the equation '7x + 2y = -6', indicating the substitution of x = 0 into the equation.
Substitute \(x=0\) into one of the original equations.A mathematical equation reads '7 multiplied by 0 plus 2y equals -6' on a white background. The number 0 is highlighted in red.
Solve for y.A mathematical solution showing '2y = -6' simplified to 'y = -3' by dividing both sides by 2.
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.

This image demonstrates checking if the point (0, -3) satisfies two linear equations. Substitutions show 4(0)-3(-3)=9 and 7(0)+2(-3)=-6 are both true, confirming it's a solution to the system.
The solution is \((0,-3).\)
Try It #19

Solve the system by elimination: \(\left\{\begin{array}{l}3x-4y=-9 \\ 5x+3y=14\end{array}\right..\)

\((1,3)\)

Did you get it?
Try It #20

Solve each system by elimination: \(\left\{\begin{array}{l}7x+8y=4 \\ 3x-5y=27\end{array}\right..\)

\((4,-3)\)

Did you get it?

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

Example 11

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

Multiply each equation by its LCD to clear the fractions first.

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

Table 9
A system of two linear equations is shown, enclosed by a blue brace. The first equation is x + (1/2)y = 6. The second equation is (3/2)x + (2/3)y = 17/2.
To clear the fractions, multiply each
equation by its LCD.
Two linear equations being scaled. The first equation is multiplied by 2, and the second by 6, to eliminate fractions and simplify the system before solving.
Simplify.A system of two linear equations is shown, with the first equation being 2x + y = 12 and the second equation being 9x + 4y = 51, enclosed by a left curly brace.
Now we are ready to eliminate one
of the variables. Notice that both equations are in
standard form.
We can eliminate \(y\) by multiplying the top equation by \(-4.\)A system of two linear equations is shown, with the top equation being prepared for solving by multiplication. The equations are -4(2x + y) = -4(12) and 9x + 4y = 51.
Simplify and add.

Substitute \(x=3\) into one of the original equations.
Solving a system of linear equations by elimination. The equations -8x - 4y = -48 and 9x + 4y = 51 are added to eliminate 'y', resulting in x=3. This value is then applied to the equation x + 1/2y = 6.
Solve for \(y\) .

A mathematical equation is displayed against a white background, showing '3 + 1/2y = 6'. The number '3' is highlighted in red. A mathematical equation shows '1/2y = 3'. The image displays the mathematical equation 'y = 6' in black text on a plain white background, showing a simple algebraic expression.
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.

Verification of the solution (x=3, y=6) for two linear equations, demonstrating how to check if a given point satisfies each equation through substitution and simplification.
The solution is \((3,6).\)
Try It #21

Solve each system by elimination: \(\left\{\begin{array}{l}\frac{1}{3}x-\frac{1}{2}y=1 \\ \frac{3}{4}x-y=\frac{5}{2}\end{array}\right..\)

\((6,2)\)

Did you get it?
Try It #22

Solve each system by elimination: \(\left\{\begin{array}{l}x+\frac{3}{5}y=-\frac{1}{5} \\ -\frac{1}{2}x-\frac{2}{3}y=\frac{5}{6}\end{array}\right..\)

\((1,-2)\)

Did you get it?

When we solved the system by graphing, 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.

The same is true using substitution or elimination. If the equation at the end of substitution or elimination is a true statement, we have a consistent but dependent system and the system of equations has infinitely many solutions. If the equation at the end of substitution or elimination is a false statement, we have an inconsistent system and the system of equations has no solution.

Example 12

Solve the system by elimination: \(\left\{\begin{array}{l}3x+4y=12 \\ y=3-\frac{3}{4}x\end{array}\right..\)

Write the second equation in standard form and clear its fraction before combining the equations.

Table 10
\(\left\{\begin{array}{l}3x+4y=12 \\ y=3-\frac{3}{4}x\end{array}\right.\)
Write the second equation in standard form.\(\left\{\begin{array}{l}3x+4y=12 \\ \frac{3}{4}x+y=3\end{array}\right.\)
Clear the fractions by multiplying the second equation by 4.\(\left\{\begin{array}{l}3x+4y=12 \\ 4(\frac{3}{4}x+y)=4(3)\end{array}\right.\)
Simplify.\(\left\{\begin{array}{l}3x+4y=12 \\ 3x+4y=12\end{array}\right.\)
To eliminate a variable, we multiply the second equation by −1. Simplify and add.\(\begin{array}{l}\underset{\_\_\_\_\_\_\_\_\_\_\_\_\_\_}{\left\{\begin{array}{l}\,3x+4y=12 \\ -3x-4y=-12\end{array}\right.} \\ \\ \,0=0\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.

Try It #23

Solve the system by elimination: \(\left\{\begin{array}{l}5x-3y=15 \\ y=-5+\frac{5}{3}x\end{array}\right..\)

infinitely many solutions

Did you get it?
Try It #24

Solve the system by elimination: \(\left\{\begin{array}{l}x+2y=6 \\ y=-\frac{1}{2}x+3\end{array}\right..\)

infinitely many solutions

Did you get it?

Choose the Most Convenient Method to Solve a System of Linear Equations

When you solve a system of linear equations in in an application, you will not be told which method to use. You will need to make that decision yourself. So you’ll want to choose the method that is easiest to do and minimizes your chance of making mistakes.

\[\begin{array}{l}\text{Choose the Most Convenient Method to Solve a System of Linear Equations} \\ \begin{array}{lllllll}\underset{\text{————}}{\text{Graphing}} & & & \underset{\text{—————}}{\text{Substitution}} & & & \underset{\text{—————}}{\text{Elimination}} \\ \text{Use when you need a} & & & \text{Use when one equation is} & & & \text{Use when the equations are} \\ \text{picture of the situation.} & & & \text{already solved or can be} & & & \text{in standard form.} \\ & & & \text{easily solved for one} & & & \\ & & & \text{variable.} & & & \end{array}\end{array}\]

Example 13

For each system of linear equations, decide whether it would be more convenient to solve it by substitution or elimination. Explain your answer.

ⓐ \(\left\{\begin{array}{l}3x+8y=40 \\ 7x-4y=-32\end{array}\right.\) ⓑ \(\left\{\begin{array}{l}5x+6y=12 \\ y=\frac{2}{3}x-1\end{array}\right.\)

Check whether either equation is already solved for a variable, or whether both are in standard form.

\[\left\{\begin{array}{l}3x+8y=40 \\ 7x-4y=-32\end{array}\right.\]

Since both equations are in standard form, using elimination will be most convenient.

\[\left\{\begin{array}{l}5x+6y=12 \\ y=\frac{2}{3}x-1\end{array}\right.\]

Since one equation is already solved for y, using substitution will be most convenient.

Try It #25

For each system of linear equations decide whether it would be more convenient to solve it by substitution or elimination. Explain your answer.

ⓐ \(\left\{\begin{array}{l}4x-5y=-32 \\ 3x+2y=-1\end{array}\right.\) ⓑ \(\left\{\begin{array}{l}x=2y-1 \\ 3x-5y=-7\end{array}\right.\)

ⓐ Since both equations are in standard form, using elimination will be most convenient. ⓑ Since one equation is already solved for x, using substitution will be most convenient.

Did you get it?
Try It #26

For each system of linear equations decide whether it would be more convenient to solve it by substitution or elimination. Explain your answer.

ⓐ \(\left\{\begin{array}{l}y=2x-1 \\ 3x-4y=-6\end{array}\right.\) ⓑ \(\left\{\begin{array}{l}6x-2y=12 \\ 3x+7y=-13\end{array}\right.\)

ⓐ Since one equation is already solved for y, using substitution will be most convenient. ⓑ Since both equations are in standard form, using elimination will be most convenient.

Did you get it?

Key Concepts

Section Exercises

Practice Makes Perfect

Determine Whether an Ordered Pair is a Solution of a System of Equations

In the following exercises, determine if the following points are solutions to the given system of equations.

4

\(\left\{\begin{array}{l}2x-6y=0 \\ 3x-4y=5\end{array}\right.\)

ⓐ \((3,1)\) ⓑ \((-3,4)\)

ⓐ yes ⓑ no

5

\(\left\{\begin{array}{l}-3x+y=8 \\ -x+2y=-9\end{array}\right.\)

ⓐ \((-5,-7)\) ⓑ \((-5,7)\)

6

\(\left\{\begin{array}{l}x+y=2 \\ y=\frac{3}{4}x\end{array}\right.\)

ⓐ \((\frac{8}{7},\frac{6}{7})\) ⓑ \((1,\frac{3}{4})\)

ⓐ yes ⓑ no

7

\(\left\{\begin{array}{l}2x+3y=6 \\ y=\frac{2}{3}x+2\end{array}\right.\)
ⓐ \((-6,2)\) ⓑ \((-3,4)\)

Solve a System of Linear Equations by Graphing

In the following exercises, solve the following systems of equations by graphing.

8

\(\left\{\begin{array}{l}3x+y=-3 \\ 2x+3y=5\end{array}\right.\)

\((-2,3)\)

9

\(\left\{\begin{array}{l}-x+y=2 \\ 2x+y=-4\end{array}\right.\)

10

\(\left\{\begin{array}{l}y=x+2 \\ y=-2x+2\end{array}\right.\)

\((0,2)\)

11

\(\left\{\begin{array}{l}y=x-2 \\ y=-3x+2\end{array}\right.\)

12

\(\left\{\begin{array}{l}y=\,\,\,\frac{3}{2}x+1 \\ y=-\frac{1}{2}x+5\end{array}\right.\)

\((2,4)\)

13

\(\left\{\begin{array}{l}y=\frac{2}{3}x-2 \\ y=-\frac{1}{3}x-5\end{array}\right.\)

14

\(\left\{\begin{array}{l}x+y=-4 \\ -x+2y=-2\end{array}\right.\)

\((-2,-2)\)

15

\(\left\{\begin{array}{l}-x+3y=3 \\ x+3y=3\end{array}\right.\)

16

\(\left\{\begin{array}{l}-2x+3y=3 \\ x+3y=12\end{array}\right.\)

\((3,3)\)

17

\(\left\{\begin{array}{l}2x-y=4 \\ 2x+3y=12\end{array}\right.\)

18

\(\left\{\begin{array}{l}x+3y=-6 \\ y=-\frac{4}{3}x+4\end{array}\right.\)

\((6,-4)\)

19

\(\left\{\begin{array}{l}-x+2y=-6 \\ y=-\frac{1}{2}x-1\end{array}\right.\)

20

\(\left\{\begin{array}{l}-2x+4y=4 \\ y=\frac{1}{2}x\end{array}\right.\)

no solution

21

\(\left\{\begin{array}{l}3x+5y=10 \\ y=-\frac{3}{5}x+1\end{array}\right.\)

22

\(\left\{\begin{array}{l}\,4x-3y=8 \\ \,8x-6y=14\end{array}\right.\)

no solution

23

\(\left\{\begin{array}{l}x+3y=4 \\ -2x-6y=3\end{array}\right.\)

24

\(\left\{\begin{array}{l}x=-3y+4 \\ 2x+6y=8\end{array}\right.\)

infinite solutions

25

\(\left\{\begin{array}{l}4x=3y+7 \\ 8x-6y=14\end{array}\right.\)

26

\(\left\{\begin{array}{l}2x+\,\,y=6 \\ -8x-4y=-24\end{array}\right.\)

infinite solutions

27

\(\left\{\begin{array}{l}5x+\,2y=7 \\ -10x-4y=-14\end{array}\right.\)

Without graphing, determine the number of solutions and then classify the system of equations.

28

\(\left\{\begin{array}{l}y=\frac{2}{3}x+1 \\ -2x+3y=5\end{array}\right.\)

No solution, Inconsistent, Independent

29

\(\left\{\begin{array}{l}y=\frac{3}{2}x+1 \\ 2x-3y=7\end{array}\right.\)

30

\(\left\{\begin{array}{l}5x+3y=4 \\ 2x-3y=5\end{array}\right.\)

1 point, consistent and independent

31

\(\left\{\begin{array}{l}y=-\frac{1}{2}x+5 \\ x+2y=10\end{array}\right.\)

32

\(\left\{\begin{array}{l}5x-2y=10 \\ y=\frac{5}{2}x-5\end{array}\right.\)

infinite solutions, consistent, dependent

Solve a System of Equations by Substitution

In the following exercises, solve the systems of equations by substitution.

33

\(\left\{\begin{array}{l}2x+y=-4 \\ 3x-2y=-6\end{array}\right.\)

34

\(\left\{\begin{array}{l}2x+y=-2 \\ 3x-y=7\end{array}\right.\)

\((1,-4)\)

35

\(\left\{\begin{array}{l}x-2y=-5 \\ 2x-3y=-4\end{array}\right.\)

36

\(\left\{\begin{array}{l}x-3y=-9 \\ 2x+5y=4\end{array}\right.\)

\((-3,2)\)

37

\(\left\{\begin{array}{l}5x-2y=-6 \\ y=3x+3\end{array}\right.\)

38

\(\left\{\begin{array}{l}-2x+2y=6 \\ y=-3x+1\end{array}\right.\)

\((-\frac{1}{2},\frac{5}{2})\)

39

\(\left\{\begin{array}{l}2x+5y=1 \\ y=\frac{1}{3}x-2\end{array}\right.\)

40

\(\left\{\begin{array}{l}3x+4y=1 \\ y=-\frac{2}{5}x+2\end{array}\right.\)

\((-5,4)\)

41

\(\left\{\begin{array}{l}2x+y=5 \\ x-2y=-15\end{array}\right.\)

42

\(\left\{\begin{array}{l}4x+y=10 \\ x-2y=-20\end{array}\right.\)

\((0,10)\)

43

\(\left\{\begin{array}{l}y=-2x-1 \\ y=-\frac{1}{3}x+4\end{array}\right.\)

44

\(\left\{\begin{array}{l}y=x-6 \\ y=-\frac{3}{2}x+4\end{array}\right.\)

\((4,-2)\)

45

\(\left\{\begin{array}{l}\,\,\,x=2y \\ 4x-8y=0\end{array}\right.\)

46

\(\left\{\begin{array}{l}\,2x-16y=8 \\ -x-8y=-4\end{array}\right.\)

\((4,0)\)

47

\(\left\{\begin{array}{l}y=\frac{7}{8}x+4 \\ -7x+8y=6\end{array}\right.\)

48

\(\left\{\begin{array}{l}y=-\frac{2}{3}x+5 \\ 2x+3y=11\end{array}\right.\)

no solution

Solve a System of Equations by Elimination

In the following exercises, solve the systems of equations by elimination.

49

\(\left\{\begin{array}{l}5x+2y=2 \\ -3x-y=0\end{array}\right.\)

50

\(\left\{\begin{array}{l}6x-5y=-1 \\ 2x+y=13\end{array}\right.\)

\((4,5)\)

51

\(\left\{\begin{array}{l}2x-5y=7 \\ 3x-y=17\end{array}\right.\)

52

\(\left\{\begin{array}{l}5x-3y=-1 \\ 2x-y=2\end{array}\right.\)

\((7,12)\)

53

\(\left\{\begin{array}{l}3x-5y=-9 \\ 5x+2y=16\end{array}\right.\)

54

\(\left\{\begin{array}{l}4x-3y=3 \\ 2x+5y=-31\end{array}\right.\)

\((-3,-5)\)

55

\(\left\{\begin{array}{l}3x+8y=-3 \\ 2x+5y=-3\end{array}\right.\)

56

\(\left\{\begin{array}{l}11x+9y=-5 \\ 7x+5y=-1\end{array}\right.\)

\((2,-3)\)

57

\(\left\{\begin{array}{l}3x+8y=67 \\ 5x+3y=60\end{array}\right.\)

58

\(\left\{\begin{array}{l}2x+9y=-4 \\ 3x+13y=-7\end{array}\right.\)

\((-11,2)\)

59

\(\left\{\begin{array}{l}\frac{1}{3}x-y=-3 \\ x+\frac{5}{2}y=2\end{array}\right.\)

60

\(\left\{\begin{array}{l}x+\frac{1}{2}y=\frac{3}{2} \\ \frac{1}{5}x-\frac{1}{5}y=3\end{array}\right.\)

\((6,-9)\)

61

\(\left\{\begin{array}{l}x+\frac{1}{3}y=-1 \\ \frac{1}{3}x+\frac{1}{2}y=1\end{array}\right.\)

62

\(\left\{\begin{array}{l}\frac{1}{3}x-y=-3 \\ \frac{2}{3}x+\frac{5}{2}y=3\end{array}\right.\)

\((-3,2)\)

63

\(\left\{\begin{array}{l}2x+y=3 \\ 6x+3y=9\end{array}\right.\)

64

\(\left\{\begin{array}{l}x-4y=-1 \\ -3x+12y=3\end{array}\right.\)

infinitely many

65

\(\left\{\begin{array}{l}-3x-y=8 \\ 6x+2y=-16\end{array}\right.\)

66

\(\left\{\begin{array}{l}4x+3y=2 \\ 20x+15y=10\end{array}\right.\)

infinitely many

Choose the Most Convenient Method to Solve a System of Linear Equations

In the following exercises, decide whether it would be more convenient to solve the system of equations by substitution or elimination.

67


ⓐ \(\left\{\begin{array}{l}8x-15y=-32 \\ 6x+3y=-5\end{array}\right.\)
ⓑ \(\left\{\begin{array}{l}x=4y-3 \\ 4x-2y=-6\end{array}\right.\)

68


ⓐ \(\left\{\begin{array}{l}y=7x-5 \\ 3x-2y=16\end{array}\right.\)
ⓑ \(\left\{\begin{array}{l}12x-5y=-42 \\ 3x+7y=-15\end{array}\right.\)

ⓐ substitution ⓑ elimination

69


ⓐ \(\left\{\begin{array}{l}y=4x+9 \\ 5x-2y=-21\end{array}\right.\)
ⓑ \(\left\{\begin{array}{l}9x-4y=24 \\ 3x+5y=-14\end{array}\right.\)

70


ⓐ \(\left\{\begin{array}{l}14x-15y=-30 \\ 7x+2y=10\end{array}\right.\)
ⓑ \(\left\{\begin{array}{l}x=9y-11 \\ 2x-7y=-27\end{array}\right.\)

ⓐ elimination ⓑ substituion

Writing Exercises

71

In a system of linear equations, the two equations have the same intercepts. Describe the possible solutions to the system.

72

Solve the system of equations by substitution and explain all your steps in words: \(\left\{\begin{array}{l}3x+y=12 \\ x=y-8\end{array}\right..\)

Answers will vary.

73

Solve the system of equations by elimination and explain all your steps in words: \(\left\{\begin{array}{l}5x+4y=10 \\ 2x=3y+27\end{array}\right..\)

74

Solve the system of equations \(\left\{\begin{array}{l}x+y=10 \\ x-y=6\end{array}\right.\)

ⓐ by graphing ⓑ by substitution
ⓒ Which method do you prefer? Why?

Answers will vary.

Self Check

After completing the exercises, use this checklist to evaluate your mastery of the objectives of this section.

This table has 4 columns 5 rows and a header row. The header row labels each column: I can, confidently, with some help and no, I don’t get it. The first column has the following statements: determine whether an ordered pair is a solution of a system of equations, solve a system of linear equations by graphing, solve a system of equations by substitution, solve a system of equations by elimination, choose the most convenient method to solve a system of linear equations. The remaining columns are blank.

If most of your checks were:

…confidently. Congratulations! You have achieved the objectives in this section. Reflect on the study skills you used so that you can continue to use them. What did you do to become confident of your ability to do these things? Be specific.

…with some help. This must be addressed quickly because topics you do not master become potholes in your road to success. In math every topic builds upon previous work. It is important to make sure you have a strong foundation before you move on. Whom can you ask for help?Your fellow classmates and instructor are good resources. Is there a place on campus where math tutors are available? Can your study skills be improved?

…no - I don’t get it! This is a warning sign and you must not ignore it. You should get help right away or you will quickly be overwhelmed. See your instructor as soon as you can to discuss your situation. Together you can come up with a plan to get you the help you need.

Glossary

coincident lines
Coincident lines have the same slope and same y-intercept.
consistent and inconsistent systems
Consistent system of equations is a system of equations with at least one solution; inconsistent system of equations is a system of equations with no solution.
solutions of a system of equations
Solutions of a system of equations are the values of the variables that make all the equations true; solution is represented by an ordered pair \((x,y).\)
system of linear equations
When two or more linear equations are grouped together, they form a system of linear equations.