FreeMathCamp
Course Articles

Free Math Camp

A free course in the maths you need before calculus. Short lessons, interactive visuals, practice that adapts to you, and a record of progress on your account.

freemathcamp.app

Made by Adam Richard Turner

hello@adamrichardturner.dev

Course

  • Foundations
  • Articles
  • Start free
  • Sign in

Legal

  • Privacy
  • Terms
  • Do not sell or share

Copyright © Adam Richard Turner. All rights reserved.

  1. Articles
  2. /
  3. Graphs & Functions
Graphs & Functions

Systems of Equations: Solving by Substitution, Elimination and Graphing

What it means to solve two equations together, how the solution appears on a graph, the substitution and elimination methods step by step, and when a system has no solution or infinitely many.

3 min read Supports 3 lessons
In short

A system of equations (or simultaneous equations) is a set of equations that must all be true at once. For two linear equations, the solution is the point where their lines intersect.

One equation with two unknowns, like x+y=10x + y = 10x+y=10, has endless solutions: (1,9)(1, 9)(1,9), (4,6)(4, 6)(4,6), (7,3)(7, 3)(7,3), and so on. Add a second condition, x−y=4x - y = 4x−y=4, and only one pair satisfies both: (7,3)(7, 3)(7,3).

Each linear equation is a line. A point on the first line satisfies the first equation; a point on the second satisfies the second. The point on both lines, where they cross, satisfies both. Adjust the lines below:

Elimination

Add or subtract the equations so that one variable cancels out.

  1. x+y=10x−y=4\begin{aligned} x + y &= 10 \\ x - y &= 4 \end{aligned}x+yx−y​=10=4​

    The yyy terms have opposite signs.

1/5
Tip

If no variable cancels straight away, multiply one or both equations first so the coefficients match. To eliminate yyy from 2x+3y=122x + 3y = 122x+3y=12 and x+y=5x + y = 5x+y=5, multiply the second by 333.

Substitution

If one equation already says what xxx or yyy equals, substitute that expression into the other equation.

Worked example

Solve y=2x−1y = 2x - 1y=2x−1 and 3x+y=143x + y = 143x+y=14.

  1. 1

    Replace yyy in the second equation.

    3x+(2x−1)=143x + (2x - 1) = 143x+(2x−1)=14
Key idea

Both methods do the same job: they turn two equations in two unknowns into one equation in one unknown. Choose whichever makes that easier.

No solution, or infinitely many

Two lines usually meet once. But parallel lines never meet, so the system has no solution; the algebra collapses to something false, like 0=50 = 50=5. And if the two equations describe the same line, every point on it works, giving infinitely many solutions; the algebra collapses to something always true, like 0=00 = 00=0.

Same slope, different intercepts: parallel lines, no solution.

Watch out

Always find both values. A solution to a system is a pair (x,y)(x, y)(x,y), not just one number.

Common questions

Should I use substitution or elimination?

Use substitution when one equation already has xxx or yyy on its own. Use elimination when the coefficients of one variable match or are easy to match.

How can a system have no solution?

If the two lines are parallel they never cross, so no point lies on both. Algebraically you end up with a false statement such as 0=50 = 50=5.

Practise systems of equations

The Systems of Linear Equations lesson has worked examples and unlimited practice that adapts to you.

Open the lesson

On this page

  1. Elimination
  2. Substitution
  3. No solution, or infinitely many
  4. Common questions
Lessons on this
  • Systems of Linear EquationsGraphs & Linear Equations
  • Slope-Intercept FormGraphs & Linear Equations
  • Writing Equations of LinesGraphs & Linear Equations
Related reading4
Ideas this article builds on or leads to.
  • Graphs & Functions
    Equation of a Straight Line: y = mx + b and Point-Slope Form

    Every non-vertical straight line can be written y=mx+by = mx + by=mx+b, where mmm is the slope and bbb is the yyy-intercept, the height where the line crosses the yyy-axis.

  • Algebra
    How to Solve Linear Equations: The Balance Method

    A linear equation like 3x−4=113x - 4 = 113x−4=11 is solved by doing the same inverse operation to both sides until the variable is alone. Each step keeps the equation balanced, like a pair of scales.

  • Graphs & Functions
    The Coordinate Plane: Axes, Quadrants and Plotting Points

    The coordinate plane is a grid made by two perpendicular number lines, the xxx-axis and the yyy-axis. Every point has an address (x,y)(x, y)(x,y): how far across, then how far up.

  • Algebra
    Algebraic Expressions: Variables, Terms, Coefficients and Like Terms

    An expression combines numbers and variables (letters standing for numbers) with operations, like 3x+53x + 53x+5. Like terms have exactly the same variable part and can be combined by adding their coefficients.