GoalDraw the graph of a straight line from its equation, and find the equation of a line from two points.
New words
table of values Β· a table that pairs x-values with the matching y-valuesscale Β· the numbers chosen for each axis so that the graph fits on the gridsubstitute Β· replace a letter with a number
Explanation
To draw a straight line, make a table of values. Three points are enough, but a fourth is a good check, because all points should lie on one line. Choose x-values that are easy to work with, such as 0 and values that give whole numbers. Choose a sensible scale so the graph fills the page. Plot the points and draw a long straight line with a ruler. To find an equation from two points, work out the gradient m. Then use one point to find c. To check whether a point is on a line, substitute its coordinates into the equation. The point is on the line only if both sides are equal.
x
β2
0
2
4
y = 2.5x β 4
β9
β4
1
6
Worked examples
Draw the graph of y = 2.5x β 4 for values of x from β2 to 4. Use x = β2, 0, 2 and 4. The y-values are β9, β4, 1 and 6. Plot the four points, which lie on a straight line, and draw the line. The y-intercept is β4 and the gradient is 2.5.
Find the equation of the line through (β1, β3) and (3, 5). Gradient m = (5 β (β3)) Γ· (3 β (β1)) = 8 Γ· 4 = 2. So y = 2x + c. Substitute (3, 5): 5 = 6 + c, so c = β1. The equation is y = 2x β 1. Check with (β1, β3): 2 Γ (β1) β 1 = β3, which is correct.
Does (6, 13) lie on y = 2x β 1? Does (2, 3) lie on 3x + 2y = 12? For (6, 13): 2 Γ 6 β 1 = 11, which is not 13, so no. For (2, 3): 3 Γ 2 + 2 Γ 3 = 12, so yes.
Class activity
Plot it. On squared paper, draw the line y = 2x + 1 by calculating y for x = 0, 1 and 2. Ask someone at home to choose any other x-value, such as 3. Predict y with the equation, then check if the point is on your line.
Practice
1
Make a table of values for y = 3 β x using x = β2, 0 and 4, then draw the graph. State the gradient.
The points are (β2, 5), (0, 3) and (4, β1). Gradient = β1.
2
Find the equation of the line through (0, 7) and (3, 1).
Gradient = (1 β 7) Γ· 3 = β2. c = 7. So y = β2x + 7.
3
(a) Does (β3, β5) lie on y = 2x + 1? (b) Does (5, 12) lie on 3x + y = 15?
(a) 2 Γ (β3) + 1 = β5, so yes. (b) 3 Γ 5 + 12 = 27, not 15, so no.
4
Find the equation of the line through (β2, 4) and (4, 1).
Gradient = (1 β 4) Γ· (4 β (β2)) = β3 Γ· 6 = β0.5. y = β0.5x + c. Using (4, 1): 1 = β2 + c, so c = 3. y = β0.5x + 3. Check with (β2, 4): 1 + 3 = 4.