Systems of Equations: Solve by Graphing, Interactively

Steer two lines with slope and intercept sliders; the crossing point is the solution of the system. Make the slopes equal to see the parallel (no solution) and same-line (infinitely many) cases.

Steer two lines with their slopes and intercepts. Where they cross is the solution of the system. Make the slopes equal and watch the solution vanish (parallel) or explode into infinitely many (same line).

Interactive system of equations grapherLine 1: y = 2x + 1. Line 2: y = -x + 4. One solution. They cross at (1, 3). The lines have different slopes, so they cross exactly once. The crossing point is the one (x, y) pair that satisfies both equations.-5-5-4-4-3-3-2-2-1-11122334455(1, 3)
Line 1: y = 2x + 1
Line 2: y = -x + 4
Solution: (1, 3)

The lines have different slopes, so they cross exactly once. The crossing point is the one (x, y) pair that satisfies both equations.

Check: line 1 gives y = 3 and line 2 gives y = 3 at x = 1. Same y, both satisfied.

Line 1: y = 2x + 1. Line 2: y = -x + 4. One solution. They cross at (1, 3). The lines have different slopes, so they cross exactly once. The crossing point is the one (x, y) pair that satisfies both equations.

What a system of equations is

A system of equations is two (or more) equations that share the same variables and must be true at the same time. This lesson works with the linear case, two equations in slope-intercept form:

y = m₁x + b₁ and y = m₂x + b₂

A solution of the system is one (x, y) pair that makes both equations true. Not one pair per equation: one pair for the whole system. Each equation alone has infinitely many solutions (every point on its line), but the system asks for the pair the two equations agree on.

That is exactly why graphing works. On the coordinate plane, each equation draws a line, and a point satisfies an equation precisely when it sits on that line. A point that satisfies both equations must therefore sit on both lines at once, and there is only one place that happens: the intersection, where the lines cross.

Solving systems of equations by graphing

The method is three steps:

  1. Write both equations in slope-intercept form, y = mx + b, so each is easy to graph.
  2. Graph both lines on the same axes.
  3. Read the crossing point. Its coordinates are the solution. Then verify by substitution: plug the x and y into both original equations and confirm both come out true.

The interactive above does steps 2 and 3 live. Each line has two sliders, Slope and Intercept, running from -4 to 4 in steps of 0.5: Line 1 (blue) is m₁ and b₁, Line 2 (teal) is m₂ and b₂. An amber marker sits on the crossing and shows its coordinates, a badge names which case you are in, and a check strip below substitutes the crossing’s x into both equations so you can see the verification. Reset returns everything to the starting system.

Worked example (on paper). Solve the system y = 2x - 1 and y = -x + 5. Its second intercept, 5, sits just past the widget’s slider range, so work this one by hand. Graph y = 2x - 1 (slope 2, y-intercept -1) and y = -x + 5 (slope -1, y-intercept 5); the lines appear to cross at (2, 3). A graph read is only a claim until you substitute into both equations:

Both hold, so (2, 3) is the solution. If a candidate point checks in one equation but fails the other, it is on one line only; it is not a solution of the system.

A note on precision. Graphing gives exact answers only when the crossing lands on coordinates you can read cleanly, like (1, 3) or (2, 3). Try it in the widget: set Slope m₂ to -1.5 (leave the rest at the defaults) and the badge reads Solution: (0.86, 2.71), a rounded estimate of an intersection that no grid will hand you exactly. For crossings like that, algebra takes over: the substitution and elimination methods solve any system exactly, and the graph becomes your sanity check.

How many solutions can a system have?

A system of two linear equations has exactly one solution, no solution, or infinitely many solutions. No other count is possible: two straight lines cannot cross exactly twice, or exactly five times. The slopes and intercepts decide which case you are in:

CaseConditionPictureSolutions
One solutionm₁ ≠ m₂lines cross exactly onceone (x, y) pair
No solutionm₁ = m₂ and b₁ ≠ b₂parallel lines, never meetnone
Infinitely manym₁ = m₂ and b₁ = b₂the same line drawn twiceevery point on the line

The slopes ask “do the lines ever cross?”; the intercepts break the tie when the slopes are equal. Both edge cases are one slider drag away in the widget.

“Same slope means no solution” is only half true. Equal slopes rule out the one-solution case, nothing more; the intercepts decide what remains. Different intercepts give parallel lines and no solution, while identical intercepts give one shared line and infinitely many solutions. Exams like to hide the second case: x + y = 2 and 2x + 2y = 4 look like two different equations, but divide the second by 2 and it becomes the first. Same slope, same intercept, same line: infinitely many solutions, not none. Always simplify to slope-intercept form before you call it.

The explorer above also works as a solve-by-graphing calculator: dial in both equations and read the intersection, or the case, off the graph.

Using this in a classroom

Project the explorer and have students predict the intersection before you reveal it, race to build a no-solution system, or flip a parallel pair into the same line as an exit-ticket question. The embed below drops the whole widget into any LMS or slide deck.

It’s free to embed on your own site or LMS. Next, sharpen the line-reading skills this lesson leans on in slope-intercept form, or revisit how points and axes work on the coordinate plane.

Frequently asked questions

What is a system of equations?
A system of equations is a set of two or more equations that share the same variables. A solution is one assignment of values (for two lines, one (x, y) pair) that makes every equation in the system true at the same time. Graphically, each equation draws a line, and a solution is a point that lies on all of the lines at once.
How do you solve a system of equations by graphing?
Write both equations in slope-intercept form (y = mx + b), graph both lines on the same coordinate plane, and read the point where they cross. That intersection point (x, y) is the solution. Always verify it by substituting the x and y values back into both original equations; both must come out true.
How many solutions can a system of linear equations have?
A system of two linear equations has exactly one solution, no solution, or infinitely many solutions; no other count is possible. Different slopes give one solution (the lines cross once). Equal slopes with different y-intercepts give no solution (parallel lines). Equal slopes and equal y-intercepts give infinitely many solutions (the same line twice).
Does the same slope always mean no solution?
No. Same slope with different y-intercepts means the lines are parallel and there is no solution, but same slope with the same y-intercept means the two equations describe one identical line, and every point on it is a solution: infinitely many. Equal slopes only rule out the one-solution case; the intercepts decide between the other two.
Is solving by graphing accurate?
Graphing is exact only when the lines cross at easy-to-read coordinates, such as (2, 3). If the intersection lands between grid lines, a graph gives an estimate, not an exact answer. For an exact solution in every case, use an algebraic method, substitution or elimination, and use the graph to check that the answer is reasonable.

Sources

Last reviewed: 2026-07-02

Embed this on your site

Free to use. Paste this anywhere; a link back to PrepOK is included.

Related