Algebra 1 · Grades 8, 9

Solving Systems of Linear Equations

Quick answer

A system of equations is two equations that must both be true at once, and its solution is the point where the graphs cross. Solve it by graphing, by substitution, or by elimination. Parallel lines never cross so the system has no solution, and identical lines cross everywhere so it has infinitely many.

What you'll learn

  • Solve a system of two linear equations by graphing, substitution or elimination
  • Explain why the solution is the point where the graphs intersect
  • Recognise systems with no solution or infinitely many solutions

What a system is

A system of equations is two or more equations that must hold at the same time:

{y=2x+1y=x+7\begin{cases} y = 2x + 1 \\[2pt] y = -x + 7 \end{cases}

Solving it means finding the values of xx and yy that satisfy both. One equation alone has infinitely many solutions; demanding both narrows it, usually to a single pair.

Why the answer is where the graphs cross

This follows from something established in graphing linear equations: a graph is the picture of every solution of its equation.

So a point on the first line satisfies the first equation. A point on the second line satisfies the second. A point on both lines satisfies both equations at once — which is the definition of solving the system.

Two different straight lines can share at most one point, so a system of two lines has at most one solution. There is nowhere else to look.

The system y = 2x + 1 and y = -x + 7 Two straight lines drawn on one grid. One rises steeply and the other falls gently. They cross at a single point at (2, 5), which is the solution of the system. -22468-2246810xy (2, 5)
  • y = 2x + 1
  • y = -x + 7
The system y = 2x + 1 and y = -x + 7

Three methods

MethodBest whenGives
Graphingyou want to see what is happeningexact answers only if the crossing lands on grid lines
Substitutionone equation has a variable aloneexact answers
Eliminationcoefficients match or are oppositesexact answers

Graphing is the one that explains; the other two are the ones you rely on.

Worked examples

Common mistakes

Practice problems

  1. Solve by substitution: y=x+3y = x + 3 and y=2x+1y = 2x + 1.

    Hint

    Both give yy, so set the two expressions equal.

    Answer

    (2,5)(2, 5)

    Full solution

    x+3=2x+1x + 3 = 2x + 1, so 2=x2 = x.

    Then y=2+3=5y = 2 + 3 = 5. Check: 2(2)+1=52(2) + 1 = 5

  2. Solve by elimination: x+y=10x + y = 10 and xy=4x - y = 4.

    Answer

    (7,3)(7, 3)

    Full solution

    The yy-coefficients are opposites, so add: 2x=142x = 14, giving x=7x = 7.

    Then 7+y=107 + y = 10, so y=3y = 3. Check: 73=47 - 3 = 4

  3. Solve: y=4xy = 4x and y=x+6y = x + 6.

    Answer

    (2,8)(2, 8)

    Full solution

    4x=x+64x = x + 6, so 3x=63x = 6 and x=2x = 2. Then y=4(2)=8y = 4(2) = 8.

    Check: 2+6=82 + 6 = 8

  4. Solve: 2x+y=72x + y = 7 and xy=2x - y = 2.

    Hint

    The yy-coefficients are already opposites.

    Answer

    (3,1)(3, 1)

    Full solution

    Add the equations: 3x=93x = 9, so x=3x = 3.

    Then 3y=23 - y = 2, giving y=1y = 1. Check: 2(3)+1=72(3) + 1 = 7

  5. How many solutions does this system have: y=5x+2y = 5x + 2 and y=5x3y = 5x - 3?

    Answer

    None.

    Full solution

    Setting them equal gives 2=32 = -3, which is false.

    Both lines have slope 55, so they are parallel and never meet.

  6. How many solutions does this system have: y=x+4y = x + 4 and 3y=3x+123y = 3x + 12?

    Answer

    Infinitely many.

    Full solution

    Dividing the second by 33 gives y=x+4y = x + 4, the same equation.

    The two describe one line, so every point on it is a solution.

  7. Solve: 3x+2y=123x + 2y = 12 and x+2y=8x + 2y = 8.

    Hint

    The yy-coefficients match, so subtract rather than add.

    Answer

    (2,3)(2, 3)

    Full solution

    Subtract the second from the first: 2x=42x = 4, so x=2x = 2.

    Then 2+2y=82 + 2y = 8, giving 2y=62y = 6 and y=3y = 3.

    Check: 3(2)+2(3)=123(2) + 2(3) = 12

  8. A shop sells pens at $2 and notebooks at $5. A customer buys 12 items for $39. How many of each?

    Hint

    One equation counts items, the other counts money.

    Answer

    7 pens and 5 notebooks.

    Full solution

    Let pp be pens and nn notebooks: p+n=12p + n = 12 and 2p+5n=392p + 5n = 39.

    From the first, p=12np = 12 - n. Substituting: 2(12n)+5n=392(12 - n) + 5n = 39.

    So 24+3n=3924 + 3n = 39, giving 3n=153n = 15 and n=5n = 5. Then p=7p = 7.

    Check: 7+5=127 + 5 = 12 ✓ and 2(7)+5(5)=14+25=392(7) + 5(5) = 14 + 25 = 39

Frequently asked questions

Which method should I use?

Substitution is easiest when one equation already has a variable alone, like y = 2x + 1. Elimination is easiest when the same variable has matching or opposite coefficients. Graphing shows what is happening but only gives exact answers when the crossing point lands on grid lines.

Why does the solution have to be the intersection?

A point on a line is a solution of that line's equation. A point on both lines satisfies both equations at once, which is exactly what solving a system asks for. So the crossing point is the only candidate.

What if the variables all cancel out?

Then the lines are parallel or identical. If what remains is false, like 0 = 5, the lines never meet and there is no solution. If it is true, like 0 = 0, they are the same line and every point on it is a solution.

What to learn next

Formulas on this page

Key terms in this lesson

System of equations
A system of equations is two or more equations that must all be true at once. For two lines, the solution is the point where their graphs cross.

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSA.REI.C.6Reasoning with Equations and InequalitiesSolve systems of linear equations exactly and approximately (e.g., with graphs), focusing on pairs of linear equations in two variables.
  • CCSS.MATH.CONTENT.8.EE.C.8aExpressions and EquationsUnderstand that solutions to a system of two linear equations in two variables correspond to points of intersection of their graphs, because points of intersection satisfy both equations simultaneously.