Draw and match straight lines from points that fit their equations
Every point whose coordinates fit an equation, such as x+y=4,{x + y = 4\text{,}}x+y=4, lies on its graph. To draw a straight-line graph, called a linear graph, plot three points that fit and rule one line through them.
Linear graph
A linear graph is a straight-line graph, whose equation can be written as y=mx+c,{y = mx + c\text{,}}y=mx+c, or as x=a{x = a}x=a for a vertical line.
Recognise these four lines from their equations:
- y=b{y = b}y=b is horizontal, through b{b}b on the y{y}y-axis.
- x=a{x = a}x=a is vertical, through a{a}a on the x{x}x-axis.
- y=x{y = x}y=x slopes up through the origin, (0,0).{(0, 0)\text{.}}(0,0).
- x+y=c{x + y = c}x+y=c slopes down, crossing both axes at c.{c\text{.}}c.
Three points that fit each equation are enough to rule its whole line.
Wrong. To draw x=4,{x = 4\text{,}}x=4, a student rules the horizontal line through 4 on the y{y}y-axis.
Right. Every point on x=4{x = 4}x=4 has x{x}x-coordinate 4, such as (4,−1),{(4, -1)\text{,}}(4,−1), (4,0){(4, 0)}(4,0) and (4,3),{(4, 3)\text{,}}(4,3), so the line is vertical, ruled through 4 on the x{x}x-axis.
To match an equation to its graph, check that two points on the line fit the equation, since two different lines can pass through one point.
Matching equations to lines
Line P passes through (0,3){(0, 3)}(0,3) and (3,0),{(3, 0)\text{,}}(3,0), Q through (−2,−1){(-2, -1)}(−2,−1) and (4,−1),{(4, -1)\text{,}}(4,−1), and R through (−1,−1){(-1, -1)}(−1,−1) and (2,2).{(2, 2)\text{.}}(2,2). Match y=−1,{y = -1\text{,}}y=−1, y=x{y = x}y=x and x+y=3{x + y = 3}x+y=3 to the lines.
- Both points on Q have y{y}y-coordinate −1,{-1\text{,}}−1, so Q is y=−1.{y = -1\text{.}}y=−1.
- (−1,−1){(-1, -1)}(−1,−1) on R fits both y=−1{y = -1}y=−1 and y=x,{y = x\text{,}}y=x, but (2,2){(2, 2)}(2,2) fits only y=x,{y = x\text{,}}y=x, so R is y=x.{y = x\text{.}}y=x.
- On P, 0+3=3{0 + 3 = 3}0+3=3 and 3+0=3,{3 + 0 = 3\text{,}}3+0=3, so P is x+y=3.{x + y = 3\text{.}}x+y=3.
Draw the graph of y=mx+c{y = mx + c}y=mx+c from a table of values
Draw the graph of an equation such as y=2x−1{y = 2x - 1}y=2x−1 from a table of values, which gives the points to plot.
Table of values
A table of values lists chosen values of x{x}x with the value of y{y}y the equation gives for each.
Each column of the table, such as x=−2{x = -2}x=−2 and y=−5,{y = -5\text{,}}y=−5, becomes the point (−2,−5).{(-2, -5)\text{.}}(−2,−5).
An equation like y=2x−1{y = 2x - 1}y=2x−1 has the form
y=mx+c y = mx + c y=mx+cwhere m,{m\text{,}}m, the gradient, is the change in y{y}y for each step of 1 in x,{x\text{,}}x, and the line crosses the y{y}y-axis at (0,c).{(0, c)\text{.}}(0,c). In y=3x+2,{y = 3x + 2\text{,}}y=3x+2, m=3{m = 3}m=3 and c=2.{c = 2\text{.}}c=2.
To draw y=mx+c{y = mx + c}y=mx+c for a given range of x:{x\text{:}}x:
- If no table is printed, draw one with every whole number in the range along the top.
- Substitute each x,{x\text{,}}x, with negative numbers in brackets, as the guide Substitution shows.
- Check that each step of 1 in x{x}x changes y{y}y by the same amount, m.{m\text{.}}m.
- Read what one square is worth on each axis, then plot each (x,y){(x, y)}(x,y) as a cross.
- Rule one straight line through the crosses. A cross off the line shows a slip.
Wrong. For y=3x+2{y = 3x + 2}y=3x+2 at x=−2,{x = -2\text{,}}x=−2, a student writes 3×−2=6,{3 \times -2 = 6\text{,}}3×−2=6, so y=8.{y = 8\text{.}}y=8.
Right. A positive times a negative is negative, so y=3×(−2)+2=−6+2=−4.y = 3 \times (-2) + 2 = -6 + 2 = -4\text{.}y=3×(−2)+2=−6+2=−4. Then x=−1{x = -1}x=−1 and x=0{x = 0}x=0 give −1{-1}−1 and 2,{2\text{,}}2, going up by m=3{m = 3}m=3 each time.
Draw the graph needs one ruled line from the first x{x}x in the range to the last. Unjoined crosses, or a line that stops short, lose marks.
The line y=mx+c{y = mx + c}y=mx+c slopes down from left to right when m{m}m is negative
A minus before the x{x}x-term, as in y=1−2x,{y = 1 - 2x\text{,}}y=1−2x, makes m{m}m negative, so y{y}y falls as x{x}x rises.
Only the sign of the x{x}x-term changes, and that change makes one line rise and the other fall.
Drawing a graph with no table printed
Draw the graph of y=5−3x{y = 5 - 3x}y=5−3x for values of x{x}x from −1{-1}−1 to 3.{3\text{.}}3.
- No table is printed, so draw one for x=−1,0,1,2,3.{x = -1, 0, 1, 2, 3\text{.}}x=−1,0,1,2,3.
- At x=−1,{x = -1\text{,}}x=−1, y=5−3×(−1)=5+3=8.y = 5 - 3 \times (-1) = 5 + 3 = 8\text{.}y=5−3×(−1)=5+3=8. Likewise, 5−3×0=5,{5 - 3 \times 0 = 5\text{,}}5−3×0=5, 5−3×1=2,{5 - 3 \times 1 = 2\text{,}}5−3×1=2, 5−3×2=−1{5 - 3 \times 2 = -1}5−3×2=−1 and 5−3×3=−4.{5 - 3 \times 3 = -4\text{.}}5−3×3=−4.
- Each step of 1 in x{x}x takes 3 off y,{y\text{,}}y, so the line falls, as m=−3{m = -3}m=−3 says.
- Read both axis scales, then plot (−1,8),{(-1, 8)\text{,}}(−1,8), (0,5),{(0, 5)\text{,}}(0,5), (1,2),{(1, 2)\text{,}}(1,2), (2,−1){(2, -1)}(2,−1) and (3,−4).{(3, -4)\text{.}}(3,−4).
- Rule one straight line from (−1,8){(-1, 8)}(−1,8) to (3,−4).{(3, -4)\text{.}}(3,−4).
The −1{-1}−1 and 3{3}3 in the question are values of x,{x\text{,}}x, not the point (−1,3).{(-1, 3)\text{.}}(−1,3).
- Why is it better to plot three points than two before ruling a straight line?
- How can you check a table of values for y=mx+c{y = mx + c}y=mx+c before you plot it?
- Why does the line y=4−x{y = 4 - x}y=4−x slope down?
How many of (3,1),{(3, 1)\text{,}}(3,1), (1,3),{(1, 3)\text{,}}(1,3), (3,−4){(3, -4)}(3,−4) and (0,3){(0, 3)}(0,3) lie on the line x=3?{x = 3\text{?}}x=3?
Solution
2
For y=5x+2,{y = 5x + 2\text{,}}y=5x+2, what is y{y}y when x=−2?{x = -2\text{?}}x=−2?
Solution
−8{-8}−8
Which of y=4,{y = 4\text{,}}y=4, y=x{y = x}y=x and x+y=4{x + y = 4}x+y=4 passes through (3,1)?{(3, 1)\text{?}}(3,1)?
Solution
x+y=4{x + y = 4}x+y=4
How many crosses does y=2x+1{y = 2x + 1}y=2x+1 need for every whole number from x=−3{x = -3}x=−3 to x=2?{x = 2\text{?}}x=2?
Solution
6