Plotting Linear Relationships
Key Ideas
• A linear relationship produces a straight line when graphed.
• To graph, create a table of values by substituting x values into the rule.
• Gradient = rise ÷ run = change in y ÷ change in x.
• A positive gradient slopes upward (left to right); negative slopes downward; zero is horizontal.
• The y-intercept is where the line crosses the y-axis (when x = 0).
Example: y = 2x − 1
Table of values for x = −2, −1, 0, 1, 2:
x: −2, −1, 0, 1, 2
y: −5, −3, −1, 1, 3
Gradient = 2 (rises 2 for every 1 across); y-intercept = −1
The Cartesian Plane and Tables of Values
To plot a linear relationship, start by making a table of values. Choose several values of x (the input), substitute each into the rule to find y (the output), then write the (x, y) pairs as coordinates.
Example: Rule is y = 2x + 1. Choose x = 0, 1, 2, 3, 4.
• x = 0: y = 2(0) + 1 = 1 → point (0, 1)
• x = 1: y = 2(1) + 1 = 3 → point (1, 3)
• x = 2: y = 2(2) + 1 = 5 → point (2, 5)
• x = 3: y = 2(3) + 1 = 7 → point (3, 7)
Plot these on a Cartesian plane (horizontal x-axis, vertical y-axis) and connect them with a ruler. The result is a perfectly straight line.
Recognising a Linear Relationship
A relationship is linear if the points you plot lie on a straight line. This happens when y changes by a constant amount each time x increases by 1. In the example above, y goes up by 2 each time x goes up by 1 — this constant increase is the key feature of linearity.
If the y-values increase by different amounts each step, the relationship is non-linear (it might be a curve). For instance, y = x2 gives y values 0, 1, 4, 9, 16 — these increase by 1, 3, 5, 7 (not constant), so it is not linear.
Direct Proportion vs Non-Direct Proportion
Direct proportion (also called direct variation) means y = kx for some constant k. The graph is a straight line through the origin (0, 0). Doubling x doubles y.
Example: Buying apples at $2 each. Cost = 2 × number. The graph passes through (0, 0).
Non-direct proportion: the graph is still a straight line but does NOT pass through the origin. There is an extra constant added. Example: A phone plan costs $15/month plus $0.10 per text. Cost = 0.10 × texts + 15. When texts = 0, cost = $15, not $0. The starting point is not the origin.
Reading Information from a Graph
Once a linear relationship is graphed, you can read off any value. Find x on the horizontal axis, go straight up to the line, then across to the y-axis to read the y-value. Or work in reverse — find a y-value and read across to find x.
Example: A pizza shop charges $8 base price plus $3 per topping. Rule: Cost = 3 × toppings + 8. For 4 toppings: cost = $20. For 7 toppings: cost = $29. Plot this and read off costs for any number of toppings.
Why Linear Relationships Matter
Linear relationships are the foundation of algebra. They appear in science (distance = speed × time), finance (earnings = hourly rate × hours), cooking (cost per serving), and engineering. Understanding how to plot them and read from the graph is a skill you will use constantly in maths from here on.
Mastery Practice
-
Complete a table of values for each rule using x = −2, −1, 0, 1, 2. Fluency
- y = x + 3
- y = 2x
- y = −x + 4
- y = 3x − 2
- y = −2x + 1
- y = x − 5
- y = 4x + 1
- y = −3x − 1
-
State the gradient and y-intercept for each linear rule. Fluency
- y = 3x + 5
- y = −2x + 7
- y = x − 4
- y = −x
- y = 5x
- y = −4x − 3
- y = 2x + 0
- y = ½x + 2
- y = −3x + 6
- y = 10 − x
-
Calculate the gradient between each pair of points. Fluency
- (0, 0) and (3, 6)
- (1, 5) and (3, 9)
- (0, 4) and (2, 0)
- (−1, 3) and (2, 9)
- (2, 8) and (5, 8)
- (0, 0) and (4, −12)
- (−2, −5) and (3, 10)
- (1, 7) and (4, 1)
- (−3, 2) and (1, 10)
- (5, −1) and (10, −6)
-
For each table, determine whether the relationship is linear. If it is, find the rule. Understanding
- x: 0, 1, 2, 3 | y: 1, 4, 7, 10
- x: 0, 1, 2, 3 | y: 0, 1, 4, 9
- x: −1, 0, 1, 2 | y: 5, 3, 1, −1
- x: 0, 2, 4, 6 | y: 3, 7, 11, 15
- x: 1, 2, 3, 4 | y: 3, 6, 10, 15
- x: 0, 1, 2, 3 | y: −2, 1, 4, 7
-
Describe each line without drawing it. Comment on its steepness, direction (positive/negative/zero gradient), and where it crosses the y-axis. Understanding
- y = 5x + 2
- y = −x + 3
- y = ¼x − 1
- y = −4x
- y = 3
- y = 2x − 6
-
Linear relationships in real contexts. Problem Solving
- A cyclist travels at a constant speed. After 1 hour they have gone 25 km; after 3 hours, 75 km. Write the rule (distance d in terms of time t), state the gradient and what it represents in context.
- A phone plan charges a $20 monthly fee plus $0.10 per text message. Write a rule for total cost C in terms of number of texts n. What is the y-intercept and gradient, and what do they represent?
- A straight line passes through (0, −3) and (4, 5). Find the gradient, write the equation, and calculate y when x = 10.
- Two linear rules are y = 3x + 1 and y = 3x − 5. Without graphing, describe how these two lines are related. Do they ever intersect? Explain.
-
Complete the table of values for y = 2x + 1, then use the graph below to check your answers. Understanding
x −2 −1 0 1 2 y = 2x + 1 ? ? ? ? ? - Complete the table above.
- What is the gradient of the line y = 2x + 1?
- What is the y-intercept of y = 2x + 1?
- Using the graph, read off: what is y when x = 1.5?
-
The graph below shows a straight line. Read information from the graph to answer the questions. Understanding
- Read the y-intercept from the graph. (What is y when x = 0?)
- Read the x-intercept from the graph. (What is x when y = 0?)
- Use two points on the graph to calculate the gradient.
- Write the equation of the line in y = mx + b form.
-
A swimming pool is being drained. The depth (in cm) at various times is recorded below. Problem Solving
Time (hours) 0 1 2 3 4 Depth (cm) 200 175 150 125 ? - Is this relationship linear? How can you tell from the table?
- What is the depth at t = 4 hours?
- Find the gradient and explain what it means in context.
- Write the equation for depth (D) in terms of time (t).
- After how many hours will the pool be completely empty (D = 0)?
-
The graph below shows two straight lines. Study both lines carefully and answer the questions. Problem Solving
- What do you notice about the two lines when you look at the graph?
- Compare the two rules y = x + 3 and y = x − 3. How are they the same, and how are they different?
- Use each rule to find the y-value when x = 2. Show your working.
- Will the two lines ever cross? Explain your answer using the rules, not just the picture.