Practice free
Unit 5 · Expressions, equations, and inequalities

Write an equation from a graph using a table

Grade 7 · X. Two-variable equations · 30 practice questions

How this works

Find how much y changes for each step of 1 in x (the slope), then find y at x = 0 (the intercept).

A graph is drawn from a table: x = 1 gives y = 5, x = 3 gives y = −1, and x = 5 gives y = −7. Which equation matches: y = −3x + 8, y = 3x + 8, y = −3x + 5, or y = 8x − 3?

Change in y from the 1st pair to the 2nd
−1 − 5 = −6
Change in x for the same pairs
3 − 1 = 2
Slope = change in y ÷ change in x
−6 ÷ 2 = −3
Use x = 1, y = 5: slope part first
−3 × 1 = −3
What is added to −3 to make 5?
5 + 3 = 8
Check with x = 5
−3 × 5 + 8 = −7

Answer: y = −3x + 8

Watch out: Using 5 as the intercept gives y = −3x + 5, but 5 is y when x = 1. The intercept is y when x = 0: 5 + 3 = 8.

Try it

1. A graph is drawn from a table of pairs: x = 0 gives y = 1, x = 1 gives y = -3, and x = 2 gives y = -7. Which equation matches the table?

2. A graph is drawn from a table of pairs: x = 3 gives y = -3, x = 5 gives y = -11, and x = 7 gives y = -19. Which equation matches the table?

3. A graph is drawn from a table of pairs: x = 2 gives y = 6, x = 5 gives y = -3, and x = 8 gives y = -12. Which equation matches the table?

Answers are checked in the free account — with a hint before the answer, and the full solution after a miss.

How to help at home

A straight relationship is fixed by two things: how much y moves for each step in x, and where y stands before any stepping has happened at all. Between the first two pairs y moves -4 while x moves 1, so a single step in x is worth: -4 / 1 = -4, and stepping back to the very start leaves y at 1.

More in X. Two-variable equations