Allday Education

Solving by Graphing

A system of equations is two equations that must be true at the same time. Each equation graphs as a line, and the solution to the system is the point where the two lines cross — the one (x,y)(x, y) pair that sits on both lines at once.

Solving by graphing is exactly what it sounds like: graph both equations on the same coordinate plane, then read off the intersection point. It is the most visual of the three methods for solving systems, and it is the one that shows you what a solution actually means.

The solution is the intersection point

Graph the first equation as a line. Graph the second equation on the same axes. If the lines cross, the crossing point is the solution — write it as an ordered pair (x,y)(x, y).

Why does this work? A line is a picture of every (x,y)(x, y) pair that makes its equation true. A point on both lines makes both equations true, and that is the definition of a solution to the system.

The graph below shows the system y=x+1y = x + 1 and y=x+5y = -x + 5. The lines cross at one point, (2,3)(2, 3), so that point is the solution.

-3-2-112345-3-2-112345xy

Three possible outcomes

One solution: the lines have different slopes, so they cross at exactly one point. This is the usual case.

No solution: the lines are parallel — same slope, different yy-intercepts. Parallel lines never intersect, so no (x,y)(x, y) pair works in both equations.

Infinitely many solutions: the two equations are secretly the same line. Every point on the line satisfies both equations.

You can predict the outcome before you graph anything. Put both equations in y=mx+by = mx + b form and compare: different slopes means one solution, same slope with different intercepts means no solution, and identical equations mean infinitely many.

Always check your point

Reading an intersection off a graph invites small errors, so substitute your point into both original equations. If either equation fails, the point is wrong. This also protects you when the true intersection is not on nice grid lines — if the check fails, switch to substitution or elimination for an exact answer.

Worked examples

Example 1: one solution

Solve the system by graphing: y=x+1y = x + 1 and y=x+5y = -x + 5.

Graph the first line: yy-intercept 11, slope 11y=x+1y = x + 1
Graph the second line: yy-intercept 55, slope 1-1y=x+5y = -x + 5
Read the intersection point(2,3)(2, 3)
Check in both: 3=2+13 = 2 + 1 ✓ and 3=2+53 = -2 + 5

Answer: (2,3)(2, 3)

Example 2: parallel lines, no solution

Solve the system by graphing: y=3x+2y = 3x + 2 and y=3x4y = 3x - 4.

Compare the slopesm1=3,m2=3m_1 = 3, \quad m_2 = 3
Compare the yy-intercepts242 \neq -4
Same slope, different intercepts — the lines are parallel
Parallel lines never cross, so nothing satisfies both equations

Answer: No solution

Example 3: same line, infinitely many

Solve the system by graphing: y=2x3y = 2x - 3 and 4x2y=64x - 2y = 6.

Put the second equation in slope-intercept form2y=4x+6-2y = -4x + 6
Divide both sides by 2-2y=2x3y = 2x - 3
Both equations are the same line, so every point on it works

Answer: Infinitely many solutions

Try one yourself

Common questions

How do I write the solution to a system?

As an ordered pair (x,y)(x, y) — both coordinates, in that order. If the lines cross at x=5x = 5 and y=3y = 3, the solution is (5,3)(5, 3), not x=5x = 5 alone or y=3y = 3 alone.

What if the lines cross between grid lines?

Graphing only gives an exact answer when the intersection lands on clean coordinates. If it looks like the lines cross at something messy, use substitution or elimination instead — those methods give exact answers every time.

How can I tell how many solutions there are without graphing?

Write both equations as y=mx+by = mx + b and compare. Different slopes: one solution. Same slope, different yy-intercepts: no solution. Same slope and same intercept: infinitely many, because the equations describe one line.

Does it matter which line I graph first?

No. The intersection point is the same either way. Graph whichever equation looks easier first, and take your time plotting at least two accurate points per line.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1