Skip to content
Solve Systems of Linear Equations with Two Variables

Solve Systems of Linear Equations with Two Variables

By the end of this section, you will be able to: 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, and choose the most convenient method to solve a system of linear equations.

Determine whether an ordered pair is a solution of a system of equations

A linear equation in two variables has infinitely many solutions — its graph is a line, and every point on that line is a solution to the equation. 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.

An example of a system of two linear equations is shown below. A brace shows that the two equations are grouped together to form a system:

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

A linear equation in two variables, such as 2x+y=72x+y=7, has an infinite number of solutions — its graph is a line, and every point on the line is a solution to the equation. 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)(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)(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. Determine whether the ordered pair is a solution to the system {xy=12xy=5\left\{\begin{array}{l} x-y=-1 \\ 2x-y=-5 \end{array}\right.: (a) (2,1)(-2,-1) (b) (4,3)(-4,-3).

(a) Substitute x=2x=-2 and y=1y=-1 into both equations.

xy=1:2(1)=?11=1 2xy=5:2(2)(1)=?535 \begin{array}{lrcl} x-y=-1: & -2-(-1) &\overset{?}{=}& -1 \\[4pt] & -1 &=& -1\ \checkmark \\[4pt] 2x-y=-5: & 2(-2)-(-1) &\overset{?}{=}& -5 \\[4pt] & -3 &\neq& -5 \end{array}

(2,1)(-2,-1) makes the first equation true but not the second, so it does not make both equations true — it is not a solution to the system.

(b) Substitute x=4x=-4 and y=3y=-3 into both equations.

xy=1:4(3)=?11=1 2xy=5:2(4)(3)=?55=5  \begin{array}{lrcl} x-y=-1: & -4-(-3) &\overset{?}{=}& -1 \\[4pt] & -1 &=& -1\ \checkmark \\[4pt] 2x-y=-5: & 2(-4)-(-3) &\overset{?}{=}& -5 \\[4pt] & -5 &=& -5\ \checkmark \end{array}

(4,3)(-4,-3) makes both equations true, so it is a solution to the system.

Is (0,0)(0,0) a solution to the system {3x+y=0, x+2y=5}\{3x+y=0,\ x+2y=-5\}?

Is (2,2)(-2,2) a solution to the system {x3y=8, 3xy=4}\{x-3y=-8,\ -3x-y=4\}?

Solve a system of linear equations by graphing

The graph of a linear equation is a line, and every point on that line is a solution to the equation. For a system of two equations, we graph two lines on the same coordinate plane. Then we can see all the points that are solutions to each equation — and by finding what the two lines have in common, we find the solution to the system.

Most linear equations in one variable have one solution, but some, called contradictions, have no solutions, and for others, 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.

xy

The lines intersect.

One solution to the system.

xy

The lines are parallel.

No solution to this system.

xy

Both equations give the same line.

Infinitely many solutions.

Each time we demonstrate a new method, we will use it on the same system of linear equations, {2x+y=7x2y=6\left\{\begin{array}{l} 2x+y=7 \\ x-2y=6 \end{array}\right.. At the end of the section you will decide which method was the most convenient way to solve this system.

Example. How to solve a system of equations by graphing. Solve the system by graphing: {2x+y=7x2y=6\left\{\begin{array}{l} 2x+y=7 \\ x-2y=6 \end{array}\right..

To graph the first line, write 2x+y=72x+y=7 in slope–intercept form: y=2x+7y=-2x+7, so m=2m=-2 and b=7b=7. To graph the second line, use its intercepts: x2y=6x-2y=6 passes through (0,3)(0,-3) and (6,0)(6,0). Graph both lines on the same rectangular coordinate system, then look for where they cross.

xy(4, −1)2x + y = 7x − 2y = 6

The lines intersect at (4,1)(4,-1). Since the lines intersect, we identify the point of intersection and check that it is a solution to both equations.

2x+y=7:2(4)+(1)=?77=7 x2y=6:42(1)=?66=6  \begin{array}{lrcl} 2x+y=7: & 2(4)+(-1) &\overset{?}{=}& 7 \\[4pt] & 7 &=& 7\ \checkmark \\[4pt] x-2y=6: & 4-2(-1) &\overset{?}{=}& 6 \\[4pt] & 6 &=& 6\ \checkmark \end{array}

The solution to the system is (4,1)(4,-1).

Solve the system by graphing: {x3y=3, x+y=5}\{x-3y=-3,\ x+y=5\}. Enter the point of intersection as an ordered pair.

Solve a system of linear equations by graphing.

  1. Graph the first equation.
  2. Graph the second equation on the same rectangular coordinate system.
  3. Determine whether the lines intersect, are parallel, or are the same line.
  4. Identify the solution to the system.
    • If the lines intersect, identify the point of intersection. Check that it is a solution to both equations. 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.
  5. Check the solution in both equations.

In the next example, we will first rewrite both equations in slope–intercept form, since that makes them quick to graph.

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

We solve both equations for yy so we can graph them using their slopes and yy-intercepts.

Solve the first equation for y.3x+y=1Simplify.y=3x1Solve the second equation for y.2x+y=0Simplify.y=2x \begin{array}{lrcl} \text{Solve the first equation for }y. & 3x+y &=& -1 \\[4pt] \text{Simplify.} & y &=& -3x-1 \\[4pt] \text{Solve the second equation for }y. & 2x+y &=& 0 \\[4pt] \text{Simplify.} & y &=& -2x \end{array}
xy(−1, 2)y = −3x − 1y = −2x

The lines intersect at (1,2)(-1,2). Check the solution in both equations:

3x+y=1:3(1)+2=?11=1 2x+y=0:2(1)+2=?00=0  \begin{array}{lrcl} 3x+y=-1: & 3(-1)+2 &\overset{?}{=}& -1 \\[4pt] & -1 &=& -1\ \checkmark \\[4pt] 2x+y=0: & 2(-1)+2 &\overset{?}{=}& 0 \\[4pt] & 0 &=& 0\ \checkmark \end{array}

The solution is (1,2)(-1,2).

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 that has no solution and at a system that has an infinite number of solutions.

Example. Solve the system by graphing: {y=12x3x2y=4\left\{\begin{array}{l} y=\tfrac{1}{2}x-3 \\ x-2y=4 \end{array}\right..

The first equation is already solved for yy: m=12m=\tfrac{1}{2}, b=3b=-3. To graph the second equation, solve it for yy as well: x2y=4x-2y=4 becomes y=12x2y=\tfrac{1}{2}x-2, so m=12m=\tfrac{1}{2}, b=2b=-2.

xyy = ½x − 3x − 2y = 4

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.

Solve the system by graphing: {y=14x+2, x+4y=8}\{y=-\tfrac{1}{4}x+2,\ x+4y=-8\}. How many solutions does the system have?

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. Solve the system by graphing: {y=2x36x+3y=9\left\{\begin{array}{l} y=2x-3 \\ -6x+3y=-9 \end{array}\right..

The first equation is already solved for yy: m=2m=2, b=3b=-3. If you write the second equation in slope–intercept form, you’ll find it has the same slope and same yy-intercept.

xyy = 2x − 3

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.

Solve the system by graphing: {y=3x6, 6x+2y=12}\{y=-3x-6,\ 6x+2y=-12\}. How many solutions does the system have?

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

The systems we’ve graphed so far 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 the one above, has no solution — we call a system like this inconsistent.

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 as independent or dependent. If two equations are independent, they each have their own set of solutions — intersecting lines and parallel lines are both 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.

Independent and dependent equations. Two equations are independent if they have different solutions. Two equations are dependent if all the solutions of one equation are also solutions of the other equation.
LinesIntersectingParallelCoincident
Number of solutions11 pointNo solutionInfinitely many
Consistent/inconsistentConsistentInconsistentConsistent
Dependent/independentIndependentIndependentDependent

We can tell which case we’re in without graphing, just by comparing the slopes and intercepts of the two lines. Write each equation in slope–intercept form and compare.

Example. Without graphing, determine the number of solutions and then classify the system of equations: (a) {y=3x16x2y=12\left\{\begin{array}{l} y=3x-1 \\ 6x-2y=12 \end{array}\right. (b) {2x+y=3x5y=5\left\{\begin{array}{l} 2x+y=-3 \\ x-5y=5 \end{array}\right..

(a) The first equation is already in slope–intercept form. Write the second equation in slope–intercept form too:

The first equation is already in this form.y=3x1Write the second equation in slope–intercept form.6x2y=122y=6x+12y=3x6 \begin{array}{lrcl} \text{The first equation is already in this form.} & y &=& 3x-1 \\[4pt] \text{Write the second equation in slope–intercept form.} & 6x-2y &=& 12 \\[4pt] & -2y &=& -6x+12 \\[4pt] & y &=& 3x-6 \end{array}

Since the slopes are the same (m=3m=3) and the yy-intercepts are different (1-1 and 6-6), the lines are parallel. A system of equations whose graphs are parallel lines has no solution and is inconsistent and independent.

(b) Write both equations in slope–intercept form:

Solve the first equation for y.2x+y=3y=2x3Solve the second equation for y.x5y=55y=x+5y=15x1 \begin{array}{lrcl} \text{Solve the first equation for }y. & 2x+y &=& -3 \\[4pt] & y &=& -2x-3 \\[4pt] \text{Solve the second equation for }y. & x-5y &=& 5 \\[4pt] & -5y &=& -x+5 \\[4pt] & y &=& \tfrac{1}{5}x-1 \end{array}

Since the slopes are different, the lines intersect. A system of equations whose graphs intersect has one solution and is consistent and independent.

Without graphing, compare the system {y=2x4, 4x+2y=9}\{y=-2x-4,\ 4x+2y=9\}. Solve the second equation for y. What is its slope?

The system {y=2x4, 4x+2y=9}\{y=-2x-4,\ 4x+2y=9\} has two lines with the same slope but different y-intercepts. How many solutions does the system have?

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 a small grid, 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.

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

We will first solve one of the equations for either xx or yy. 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 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. How to solve a system of equations by substitution. Solve the system by substitution: {2x+y=7x2y=6\left\{\begin{array}{l} 2x+y=7 \\ x-2y=6 \end{array}\right..

StepWhat to doResult
1. Solve one of the equations for either variable.We’ll solve the first equation for yy.2x+y=72x+y=7 becomes y=72xy=7-2x
2. Substitute the expression from Step 1 into the other equation.Replace yy in the second equation with 72x7-2x.x2(72x)=6x-2(7-2x)=6
3. Solve the resulting equation.Now we have an equation with just one variable.x14+4x=6x-14+4x=6, so 5x=205x=20, so x=4x=4
4. Substitute the solution from Step 3 into one of the original equations to find the other variable.We’ll use the first equation and replace xx with 44.2(4)+y=72(4)+y=7, so 8+y=78+y=7, so y=1y=-1
5. Write the solution as an ordered pair.The ordered pair is (x,y)(x,y).(4,1)(4,-1)
6. Check that the ordered pair is a solution to both original equations.Substitute (4,1)(4,-1) into both equations.2(4)+(1)=?7, so 7=7 42(1)=?6, so 6=6 \begin{aligned} 2(4)+(-1) &\overset{?}{=} 7, \text{ so } 7=7\ \checkmark \\ 4-2(-1) &\overset{?}{=} 6, \text{ so } 6=6\ \checkmark \end{aligned}

Both equations are true, so (4,1)(4,-1) is the solution to the system.

Solve the system by substitution: {2x+y=11, x+3y=9}\{-2x+y=-11,\ x+3y=9\}. Enter the solution as an ordered pair.

Solve a system of equations by substitution.

  1. Solve one of the equations for either variable.
  2. Substitute the expression from Step 1 into the other equation.
  3. Solve the resulting equation.
  4. Substitute the solution in Step 3 into one of the original equations to find the other variable.
  5. Write the solution as an ordered pair.
  6. Check that the ordered pair is a solution to both original equations.

Be very careful with the signs in the next example.

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

We need to solve one equation for one variable. We’ll solve the first equation for yy.

Solve the first equation for y.4x+2y=42y=4x+4y=2x+2Substitute 2x+2 for y in the second equation.6x(2x+2)=8Solve the equation for x.6x+2x2=88x=10x=54 \begin{array}{lrcl} \text{Solve the first equation for }y. & 4x+2y &=& 4 \\[4pt] & 2y &=& -4x+4 \\[4pt] & y &=& -2x+2 \\[4pt] \text{Substitute }-2x+2\text{ for }y\text{ in the second equation.} & 6x-(-2x+2) &=& 8 \\[4pt] \text{Solve the equation for }x. & 6x+2x-2 &=& 8 \\[4pt] & 8x &=& 10 \\[4pt] & x &=& \tfrac{5}{4} \end{array}

Substitute x=54x=\tfrac{5}{4} into 4x+2y=44x+2y=4 to find yy:

4(54)+2y=45+2y=42y=1y=12 \begin{array}{lrcl} & 4\left(\tfrac{5}{4}\right)+2y &=& 4 \\[10pt] & 5+2y &=& 4 \\[4pt] & 2y &=& -1 \\[4pt] & y &=& -\tfrac{1}{2} \end{array}

The ordered pair is (54,12)\left(\tfrac{5}{4},-\tfrac{1}{2}\right). Check this pair in both original equations:

4(54)+2(12)=46(54)(12)=8 \begin{array}{rcl} 4\left(\tfrac{5}{4}\right)+2\left(-\tfrac{1}{2}\right) &=& 4 \\ 6\left(\tfrac{5}{4}\right)-\left(-\tfrac{1}{2}\right) &=& 8 \end{array}

Both check out, so the solution is (54,12)\left(\tfrac{5}{4},-\tfrac{1}{2}\right).

Solve the system by substitution: {x4y=4, 3x+4y=0}\{x-4y=-4,\ -3x+4y=0\}. Enter the solution as an ordered pair.

Solve a system of equations by elimination

We have solved systems of linear equations by graphing and by substitution. Graphing works well when the coefficients are small and the solution has integer values. Substitution works well when one equation is already solved for a variable, or can easily be solved for one.

The third method for solving systems of linear equations is called elimination. It is based on the Addition Property of Equality, which says that when you add the same quantity to both sides of an equation, you still have equality. We extend that idea: for any expressions a,b,c,da,b,c,d, if a=ba=b and c=dc=d, then a+c=b+da+c=b+d.

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. We want the coefficients of that variable to be opposites, so that adding the equations eliminates it. Notice how that works when we add these two equations together:

3x+y=52xy=05x=5 \begin{array}{rcl} 3x+y &=& 5 \\ 2x-y &=& 0 \\ 5x &=& 5 \end{array}

The yy’s add to zero, and we’re left with one equation in one variable.

Let’s try another one:

{x+4y=22x+5y=2\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-2, we will make the coefficients of xx opposite. We must multiply every term on both sides of the equation by 2-2:

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

Then rewrite the system of equations:

2x8y=42x+5y=2 \begin{array}{rcl} -2x-8y &=& -4 \\ 2x+5y &=& -2 \end{array}

Now the coefficients of the xx terms are opposites, so xx will be eliminated when we add these two equations:

2x8y=42x+5y=23y=6 \begin{array}{rcl} -2x-8y &=& -4 \\ 2x+5y &=& -2 \\ -3y &=& -6 \end{array}

Once we have an equation with just one variable, we solve it, substitute that value into one of the original equations, and solve for the remaining variable — and, as always, check the answer in both original equations.

Example. How to solve a system of equations by elimination. Solve the system by elimination: {2x+y=7x2y=6\left\{\begin{array}{l} 2x+y=7 \\ x-2y=6 \end{array}\right..

StepWhat to doResult
1. Write both equations in standard form. If any coefficients are fractions, clear them.Both equations are already in standard form, with no fractions.
2. Make the coefficients of one variable opposites. Decide which variable to eliminate, then multiply one or both equations so its coefficients become opposites.We can eliminate yy by multiplying the first equation by 22.2(2x+y)=2(7)4x+2y=14\begin{aligned} 2(2x+y) &= 2(7) \\ 4x+2y &= 14 \end{aligned}
3. Add the equations resulting from Step 2 to eliminate one variable.Add the xx’s, yy’s, and constants.4x+2y=14x2y=65x=20\begin{aligned} 4x+2y &= 14 \\ x-2y &= 6 \\ 5x &= 20 \end{aligned}
4. Solve for the remaining variable.Divide both sides by 55.x=4x=4
5. Substitute the solution from Step 4 into one of the original equations, then solve for the other variable.Substitute x=4x=4 into x2y=6x-2y=6.42y=6y=1\begin{aligned} 4-2y &= 6 \\ y &= -1 \end{aligned}
6. Write the solution as an ordered pair.(4,1)(4,-1)
7. Check that the ordered pair is a solution to both original equations.Substitute (4,1)(4,-1) into both equations.2(4)+(1)=?7, so 7=7 42(1)=?6, so 6=6 \begin{aligned} 2(4)+(-1) &\overset{?}{=} 7, \text{ so } 7=7\ \checkmark \\ 4-2(-1) &\overset{?}{=} 6, \text{ so } 6=6\ \checkmark \end{aligned}

Solve the system by elimination: {3x+y=5, 2x3y=7}\{3x+y=5,\ 2x-3y=7\}. Enter the solution as an ordered pair.

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.

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

Neither variable can be eliminated by multiplying just one equation. To make the yy-coefficients opposite, multiply the first equation by 22 and the second by 33:

{2(4x3y)=2(9)3(7x+2y)=3(6){8x6y=1821x+6y=18 \left\{\begin{array}{l} 2(4x-3y)=2(9) \\ 3(7x+2y)=3(-6) \end{array}\right. \quad\Longrightarrow\quad \left\{\begin{array}{l} 8x-6y=18 \\ 21x+6y=-18 \end{array}\right.

Adding these equations eliminates yy:

8x6y=1821x+6y=1829x=0 \begin{array}{rcl} 8x-6y &=& 18 \\ 21x+6y &=& -18 \\ 29x &=& 0 \end{array}

So x=0x=0. Substituting x=0x=0 into 7x+2y=67x+2y=-6 gives 2y=62y=-6, so y=3y=-3. The solution is (0,3)(0,-3).

Solve the system by elimination: {3x4y=9, 5x+3y=14}\{3x-4y=-9,\ 5x+3y=14\}. Enter the solution as an ordered pair.

When a system has fractions, clear them first by multiplying each equation by its LCD — then eliminate as usual.

Example. Solve the system by elimination: {x+12y=632x+23y=172\left\{\begin{array}{l} x+\tfrac{1}{2}y=6 \\ \tfrac{3}{2}x+\tfrac{2}{3}y=\tfrac{17}{2} \end{array}\right..

To clear the fractions, multiply each equation by its LCD:

{2(x+12y)=2(6)6(32x+23y)=6(172){2x+y=129x+4y=51 \left\{\begin{array}{l} 2\left(x+\tfrac{1}{2}y\right)=2(6) \\ 6\left(\tfrac{3}{2}x+\tfrac{2}{3}y\right)=6\left(\tfrac{17}{2}\right) \end{array}\right. \quad\Longrightarrow\quad \left\{\begin{array}{l} 2x+y=12 \\ 9x+4y=51 \end{array}\right.

To eliminate yy, multiply the first equation by 4-4:

8x4y=489x+4y=51x=3 \begin{array}{rcl} -8x-4y &=& -48 \\ 9x+4y &=& 51 \\ x &=& 3 \end{array}

Substitute x=3x=3 into x+12y=6x+\tfrac{1}{2}y=6 to find yy: 3+12y=63+\tfrac{1}{2}y=6, so 12y=3\tfrac{1}{2}y=3, and y=6y=6. The ordered pair is (3,6)(3,6). Check it in both original equations — both are true, so the solution is (3,6)(3,6).

Solve the system by elimination: {13x12y=1, 34xy=52}\{\tfrac{1}{3}x-\tfrac{1}{2}y=1,\ \tfrac{3}{4}x-y=\tfrac{5}{2}\}. Enter the solution as an ordered pair.

Not every system has exactly one solution. Recall from graphing that two equations describing the same line have infinitely many solutions (a consistent, dependent system), and two equations describing parallel lines have no solution at all (an inconsistent system). Elimination reveals both cases too: if the equation at the end of elimination is a true statement, the system is consistent but dependent and has infinitely many solutions; if it’s a false statement, the system is inconsistent and has no solution.

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

Write the second equation in standard form: 34x+y=3\tfrac{3}{4}x+y=3; multiplying by 44 clears the fraction: 3x+4y=123x+4y=12 — the very same equation as the first! Multiplying this equation by 1-1 and adding it to the first equation gives 0=00=0, a true statement. The system is consistent but dependent: the two equations describe the same (coincident) line, so the system has infinitely many solutions.

Solve the system by elimination: {5x3y=15, y=5+53x}\{5x-3y=15,\ y=-5+\tfrac{5}{3}x\}. How many solutions does the system have?

Choose the most convenient method to solve a system of linear equations

When you solve a system of linear equations in an application, you will not be told which method to use. You will need to make that decision yourself, so it helps to recognize which method is easiest for a given system.

GraphingSubstitutionElimination
Use when you need a picture of the situation.Use when one equation is already solved for one variable, or can easily be solved for one.Use when the equations are already in standard form.

Example. For each system of linear equations, decide whether it would be more convenient to solve it by substitution or elimination: (a) {3x+8y=407x4y=32\left\{\begin{array}{l} 3x+8y=40 \\ 7x-4y=-32 \end{array}\right. (b) {5x+6y=12y=23x1\left\{\begin{array}{l} 5x+6y=12 \\ y=\tfrac{2}{3}x-1 \end{array}\right..

(a) Since both equations are already in standard form, using elimination will be most convenient.

(b) Since one equation is already solved for yy, using substitution will be most convenient.

For the system {4x5y=32, 3x+2y=1}\{4x-5y=-32,\ 3x+2y=-1\}, both equations are in standard form. Which method is more convenient?

For the system {x=2y1, 3x5y=7}\{x=2y-1,\ 3x-5y=-7\}, one equation is already solved for x. Which method is more convenient?

Key terms

system of linear equations — two or more linear equations grouped together. solution of a system of equations — an ordered pair (x,y)(x,y) that makes all the equations in the system true. coincident lines — lines with the same slope and the same yy-intercept; they graph as a single line. consistent system — a system of equations with at least one solution. inconsistent system — a system of equations with no solution. independent equations — two equations with different solutions (intersecting or parallel lines). dependent equations — two equations whose solutions are identical (coincident lines). substitution method — solving one equation of a system for a variable, then replacing that variable with the resulting expression in the other equation. elimination method — adding two equations (after multiplying by constants if necessary) so that one variable cancels out.


This section is adapted from Intermediate Algebra 2e, Section 4.1: Solve Systems of Linear Equations with Two Variables by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated the coordinate-plane figures (the intersecting/parallel/ coincident overview and the four worked graphing examples) as accessible interactive graphs; recast the multi-step “How To” examples as step tables and equation-alignment arrays; omitted the Be Prepared quiz, Self Check checklist, and end-of-section exercises; and converted the Try Its into interactive exercises with instant feedback — reducing (a)/(b) sub-parts to a single representative exercise, and turning ordered-pair-check, classification, and choose-the-method questions into multiple choice, since a yes/no or word answer of that kind cannot be graded as a math expression.