Allday Education

Solve Systems of Equations by Graphing

A system of equations is two equations that share the same two variables — something like y=x+1y = x + 1 and y=x+3y = -x + 3. A solution of the system is one ordered pair (x,y)(x, y) that makes both equations true at the same time. Not one or the other — both.

Graphing makes that idea visible. Every point on a line makes that line's equation true, so if you graph both equations, the one point where the lines cross is the one pair of numbers that works in both. Find the crossing point and you've solved the system.

What the solution of a system means

Each equation in a system has infinitely many solutions on its own — every point on its line. The system's solution is stricter: it has to satisfy both equations at once. A point that sits on only one of the two lines is not a solution of the system, no matter how nice it looks.

Write the solution as an ordered pair, xx-coordinate first: (2,3)(2, 3) means x=2x = 2 and y=3y = 3. Reversing the order gives a different point, so read carefully off the graph.

How to solve by graphing

Step 1: graph the first equation. If it's in slope-intercept form y=mx+by = mx + b, start at the yy-intercept bb and use the slope mm to plot a second point, then draw the line.

Step 2: graph the second equation on the same axes, the same way.

Step 3: find the point where the two lines cross and read its coordinates — xx first, then yy. That ordered pair is the solution of the system. The graph below shows y=x+1y = x + 1 and y=x+3y = -x + 3 crossing at (1,2)(1, 2).

-3-2-1123-3-2-1123xy

Always check the point in both equations

A graph is only as accurate as your drawing, so confirm the answer with substitution. Plug the coordinates of the crossing point into both original equations. If both come out true, you're done. If one fails, the lines were drawn slightly off — regraph and look again.

This check is also the whole test for "is this point a solution?" questions: substitute the pair into each equation. Both true means yes; anything less means no.

Worked examples

Example 1: solve a system by graphing

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

Graph the first line — yy-intercept 11, slope 11y=x+1y = x + 1
Graph the second line — yy-intercept 33, slope 1-1y=x+3y = -x + 3
The lines cross at one point(1,2)(1, 2)
Check both: 1+1=21 + 1 = 2 ✓ and 1+3=2-1 + 3 = 2

Answer: (1,2)(1, 2)

Example 2: a steeper line

Solve the system y=2x3y = 2x - 3 and y=x+3y = -x + 3 by graphing.

Graph the first line — yy-intercept 3-3, slope 22y=2x3y = 2x - 3
Graph the second line — yy-intercept 33, slope 1-1y=x+3y = -x + 3
The lines cross at one point(2,1)(2, 1)
Check both: 2(2)3=12(2) - 3 = 1 ✓ and 2+3=1-2 + 3 = 1

Answer: (2,1)(2, 1)

Example 3: test a point without graphing

Is (2,3)(2, 3) a solution of the system y=x+1y = x + 1 and y=2x1y = 2x - 1?

Substitute into the first equation2+1=32 + 1 = 3
Substitute into the second equation2(2)1=32(2) - 1 = 3
Both equations are true at (2,3)(2, 3)

Answer: Yes — (2,3)(2, 3) is a solution of the system.

Try one yourself

-2-1123456-2-1123456xy

Common questions

What if the lines cross at a point that isn't on nice grid lines?

Graphing gives you an estimate, and on messy numbers an estimate is all it gives. Read the closest grid point, then check it by substitution. If it doesn't check out exactly, the true solution is a fraction or decimal — algebra methods you'll learn later (substitution and elimination) find it exactly.

What if the two lines never cross?

Then the system has no solution — the lines are parallel, so no single pair (x,y)(x, y) works in both equations. Counting solutions is its own skill; see the article on how many solutions a system has.

Does it matter which line I graph first?

No. The crossing point is the same either way. Graph whichever equation looks easier first, and use a different color or pencil weight for each line so you can tell them apart.

How do I write the answer?

As an ordered pair: (x,y)(x, y). If the lines cross where x=2x = 2 and y=3y = 3, the solution is (2,3)(2, 3). You can also state it as x=2x = 2 and y=3y = 3 — same answer, different notation.

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