Allday Education

Graphing Linear Equations from a Table

A linear equation like y=2x1y = 2x - 1 has infinitely many solutions — you cannot list them all, but you can graph them all. The graph is a straight line, and a table of values is the tool that gets you there: a few chosen xx-values, their matching yy-values, and suddenly you have points to plot.

The routine never changes: pick easy xx-values, compute each yy, plot the points, and draw the line through them. Better still, the method checks itself — if one of your points refuses to line up with the others, you know exactly where to look for the arithmetic slip.

The three steps

Step 1: pick easy xx-values. Small numbers around zero, like 1-1, 00, 11, and 22, keep the arithmetic light and the points on your grid.

Step 2: substitute each xx into the equation to get its yy. Follow the order of operations — multiply before you add or subtract. Each row of the table becomes an ordered pair (x,y)(x, y).

Step 3: plot the pairs and draw a straight line through them, extending past the points in both directions. The graph below shows y=2x1y = 2x - 1 with the four points from the table (1,3)(-1, -3), (0,1)(0, -1), (1,1)(1, 1), and (2,3)(2, 3).

-4-3-2-11234-4-3-2-11234xy

Choosing good x-values

Always include x=0x = 0 — it takes one step to compute and hands you the yy-intercept, the point where the line crosses the yy-axis. Then add a negative value or two so your line is anchored on both sides of the axis.

There is no wrong choice, only slow ones. If the equation has a fraction in it, like y=12x+3y = \dfrac{1}{2}x + 3, pick even xx-values so the yy-values come out whole and easy to plot.

The built-in check

Points from a linear equation must line up perfectly straight. Equal steps in xx produce equal steps in yy — if yy drops by 33 from one row to the next, it drops by 33 every time.

The table below is the one behind the graph up top, y=2x1y = 2x - 1. Each step right of 11 in xx raises yy by exactly 22 — that steady jump is the signature of a straight line.

So if three of your points form a line and the fourth sits off to the side, the fourth row of your table has an arithmetic error. Recompute that one substitution — the usual suspect is a sign slip when multiplying by a negative.

xxyy
1-13-3
001-1
1111
2233

Worked examples

Example 1: build the table and plot

Make a table for y=2x1y = 2x - 1 using x=1,0,1,2x = -1, 0, 1, 2.

Substitute x=1x = -1y=2(1)1=3y = 2(-1) - 1 = -3
Substitute x=0x = 0y=2(0)1=1y = 2(0) - 1 = -1
Substitute x=1x = 1y=2(1)1=1y = 2(1) - 1 = 1
Substitute x=2x = 2y=2(2)1=3y = 2(2) - 1 = 3
Plot (1,3)(-1, -3), (0,1)(0, -1), (1,1)(1, 1), (2,3)(2, 3) and draw the line

Answer: The points line up on the line y=2x1y = 2x - 1

Example 2: a negative slope

Make a table for y=x+2y = -x + 2 using x=1,0,1,2x = -1, 0, 1, 2.

Substitute x=1x = -1y=(1)+2=3y = -(-1) + 2 = 3
Substitute x=0x = 0y=0+2=2y = 0 + 2 = 2
Substitute x=1x = 1y=1+2=1y = -1 + 2 = 1
Substitute x=2x = 2y=2+2=0y = -2 + 2 = 0

Answer: Plot (1,3)(-1, 3), (0,2)(0, 2), (1,1)(1, 1), (2,0)(2, 0) — the line falls 11 for each step right

Example 3: catch the bad row

A table for y=3x2y = 3x - 2 lists the pair (2,6)(2, 6). Is that row correct?

Substitute x=2x = 2 into the equationy=3(2)2y = 3(2) - 2
Multiply first, then subtracty=62=4y = 6 - 2 = 4
The equation gives 44, but the table says 66464 \neq 6

Answer: No — the row should be (2,4)(2, 4), and the point (2,6)(2, 6) would sit off the line

Try one yourself

Common questions

How many points do I need?

Two points determine a line, but plot three or four. The extra points are your error check — if they all line up, your arithmetic is almost certainly right.

Which x-values should I pick?

Easy ones near zero: 1-1, 00, 11, 22 is a reliable set. Always include 00, since it gives the yy-intercept with almost no work.

What if my points do not line up?

One of the substitutions has a slip. Recompute each row, watching the order of operations — multiply before adding — and the signs when xx is negative.

Do the points have to be whole numbers?

No, but life is easier when they are. If the equation multiplies xx by a fraction, choose xx-values that cancel the denominator — even numbers for halves, multiples of 33 for thirds.

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