Draw a line by plotting points
Leans on
Quick review (2 minutes)
Picture a city map.
Rule: Graph a linear function by plotting at least two distinct coordinate pairs (x, f(x)) and drawing the entire straight line through them. A third point checks the arithmetic.
1. Choose input values. If the slope contains a fraction, try multiples of its denominator. Multiples are results of multiplying by whole numbers: for a denominator of 3, use 0 × 3 = 0, 1 × 3 = 3 and 2 × 3 = 6.
2. Substitute each input into the function to find its output.
3. Record the pairs in a values picture, then plot each input across and output up.
4. Draw a straight line through the points and extend it both ways.
5. If a third point misses the line, recalculate before drawing.
Choose convenient inputs.
Compute one output per input using multiplication before addition.
Plot at least two distinct points and check a third.
Extend the straight line through the points.
Graph the linear function f(x) = −x + 5 by plotting points. Choose three inputs, find their outputs, record the coordinate pairs in a values picture, plot them, and draw the line. Use the third point to check the arithmetic before drawing.
The graph is the straight line through (0, 5), (5, 2) and (10, −1), extended in both directions. It crosses the y-axis at (0, 5) and falls 3 units for every 5 units to the right.
Plotting (3, 3) as output first can hide the mistake because both numbers match. Practice with (0, 5): across 0, then up 5. The input always comes first.
linear function
A rule of the form f(x) = mx + b, with fixed numbers m and b. Its graph is a straight nonvertical line, and equal input changes give equal output changes.
graph
A picture of number pairs. Each plotted point places its first number horizontally and its second number vertically. A function's graph shows its inputs and corresponding outputs.
input
The number you put into a function's rule. It appears inside the function's parentheses and is usually the horizontal coordinate x on its graph.
output
The number a function gives after using its input. It is written f(x), and it is the vertical coordinate y when the function is graphed.
coordinate pair
An address written (x, y). The first number tells your horizontal position and the second tells your vertical position. On a function's graph, they are input and output.
x-axis
The horizontal number line on a coordinate graph. Every point on it has y = 0. Positive x goes right and negative x goes left.
y-axis
The vertical number line on a coordinate graph. Every point on it has x = 0. Positive y goes up and negative y goes down.
slope
A line's signed vertical change divided by its signed horizontal change. It tells the output change per input unit. A vertical line has no defined slope because its horizontal change is 0.
function
A rule assigning exactly one output to each allowed input. Different inputs may share an output, but one input cannot receive two different outputs.
coefficient
The number multiplying a variable. In a linear function's slope-intercept form, the coefficient of the input variable is its slope.
denominator
The bottom number of a fraction. It specifies the equal parts in a whole, or the divisor. A denominator cannot be zero in a defined fraction.
fraction
One number divided by another nonzero number, written with a top and bottom. It can describe part of a whole, a quotient or a comparison.
order of operations
The agreed calculation order: grouping, powers, multiplication and division, then addition and subtraction. Within equal-priority operations, work left to right. A power repeats multiplication.
term
One piece being added or subtracted in an expression.
constant
A fixed number. A constant term has no changing variable attached.
1 In plain words
Picture a city map. A location needs two instructions: how far across, then how far up. A coordinate pair, such as (2, 5), records those two instructions in that order.
A function is a rule that gives one output for each input. Its graph is a picture of all the input and output pairs. You put the input on the horizontal x-axis and the output on the vertical y-axis.
A linear function gives a straight line. You can mark a few addresses that obey its rule and draw the line through them. Two different addresses locate the line. A third address helps you notice a calculation mistake before you draw.
2 Picture it
Reminder
Reminder: Coordinate pairs, Function notation, Order of operations, Fraction multiplication, Signed addition
- Coordinate pairs. (−2, 3) means left 2, then up 3; the input is first.
- Function notation. f(3) asks for the output at input 3; if f(x) = 2x, then f(3) = 6.
- Order of operations. Multiply before adding: 2 × 3 + 1 = 7.
- Fraction multiplication. × 6 = = 4; multiply the top, then divide.
- Signed addition. −4 + 5 = 1 because five forward steps undo four backward steps.
3 Why
For f(x) = mx + b, changing x by any amount changes the output by m times that amount. Every step right 1 changes height by m. Repeating that same step traces a straight line, so the graph never changes its slant. Two distinct points determine one straight line. A third calculated point must fall on it if the arithmetic is correct. Connecting only the marked points would leave out other accepted inputs, so an unrestricted linear function extends in both directions.
4 The rule
Graph a linear function by plotting at least two distinct coordinate pairs (x, f(x)) and drawing the entire straight line through them.
A third point checks the arithmetic.
The same idea, five ways
put an input in, find its output, and mark their address.
The graph contains every point whose output obeys the function rule.
- y = f(x)
- (x, f(x))
- f(x) = mx + b
A street map locates an address with two directions.
The same idea, other ways
The point (1, 2) means one unit across and two up. For f(x) = 2x, the address (2, 4) also fits, because twice 2 is 4.
Each chosen input makes one output. Plotting is recording the machine's answers on a map.
5 How
- Choose input values. If the slope contains a fraction, try multiples of its denominator. Multiples are results of multiplying by whole numbers: for a denominator of 3, use 0 × 3 = 0, 1 × 3 = 3 and 2 × 3 = 6.
- Substitute each input into the function to find its output.
- Record the pairs in a values picture, then plot each input across and output up.
- Draw a straight line through the points and extend it both ways.
- If a third point misses the line, recalculate before drawing.
Graph from a formula by choosing points
- Choose convenient inputs.
- Compute one output per input using multiplication before addition.
- Plot at least two distinct points and check a third.
- Extend the straight line through the points.
6 Worked example
Worked example
Plot points to graph f(x) = −x + 5
Graph the linear function f(x) = −x + 5 by plotting points. Choose three inputs, find their outputs, record the coordinate pairs in a values picture, plot them, and draw the line. Use the third point to check the arithmetic before drawing.
Show the steps and the answer
- Choose the inputs and .The slope − has denominator 5. Multiplying it by a multiple of 5 cancels the denominator, so every output is a whole number. An input such as x = 1 would give f(1) = − + 5 = = 4.4, which is hard to plot accurately.
- Substitute x = 0: .Replacing x with an input and evaluating gives that input's output. At x = 0 the slope term is 0, so the output is the constant term 5.
- Substitute x = 5: . × 5 = = 3, so the fraction clears and the output is a whole number.
- Substitute x = 10: . × 10 = = 6. Two points are enough to fix the line. This third pair is there to check the arithmetic.
- Record the pairs in a values picture: the inputs 0, 5 and 10 have the outputs 5, 2 and . This gives the points (0, 5), (5, 2) and .Writing each output beside its input keeps the pairs together, and each point is written (input, output).
- Draw axes from to 12 across and from to 9 up. Plot each point by going across by the input and up by the output: (0, 5) is 5 up on the y-axis, (5, 2) is 5 across and 2 up, and is 10 across and 1 down.The input is the horizontal coordinate and the output is the vertical one, so a negative output means moving down. The axes leave room to extend the line past the points on both sides.
- Lay a ruler through (0, 5) and (5, 2) and look at . It sits on the ruler's edge: each move from one point to the next is 5 across and 3 down.Equal steps in input along a line give equal steps in output, and 3 down for every 5 across is the slope −. If the third point had missed the ruler, the outputs would be recalculated before drawing.
- Draw the straight line through the three points. Extend it to the edges of the grid in both directions and put an arrow at each end.The graph of a linear function is a straight line. Also, f has an output for every input, not just 0, 5 and 10, so the line continues both ways.
Work to write
- Inputs are multiples of 5: x = 0, 5, 10
- Values picture: x = 0, 5, 10; f(x) = 5, 2, −1
- Points (0, 5), (5, 2), (10, −1) plotted; (10, −1) lies on the line through the other two
- Straight line drawn through the points and extended both ways
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Choose 0 as one input when possible. Multiplication by 0 leaves the starting value.
7 The trap
Plotting (3, 3) as output first can hide the mistake because both numbers match. Practice with (0, 5): across 0, then up 5. The input always comes first.