Graphing Linear Functions
Key Terms
- A linear function graphs as a straight line. The standard form is y = mx + c, where m is the gradient and c is the y-intercept.
- The gradient (m) measures steepness: m = rise ÷ run = (y&sub2; − y&sub1;) ÷ (x&sub2; − x&sub1;). Positive m rises left-to-right; negative m falls left-to-right.
- The y-intercept (c) is where the line crosses the y-axis (set x = 0). The x-intercept is where it crosses the x-axis (set y = 0).
- General form
- : ax + by + c = 0. To graph, rearrange to y = mx + c first.
- Parallel lines
- have the same gradient (same m, different c).
- Perpendicular lines
- : m&sub1; × m&sub2; = −1, so m&sub2; = −1/m&sub1; (negative reciprocal).
Gradient–intercept form: y = mx + c (m = gradient, c = y-intercept)
Gradient from two points: m = (y&sub2; − y&sub1;) / (x&sub2; − x&sub1;)
Equation from point and gradient: y − y&sub1; = m(x − x&sub1;)
Perpendicular gradient: m⊥ = −1/m (negative reciprocal)
Parallel condition: same m Perpendicular condition: m&sub1; × m&sub2; = −1
Worked Example 1 — Rearrange to gradient–intercept form
Find the gradient and y-intercept of: 3x − 2y + 6 = 0
Step 1 — Rearrange to y = mx + c: isolate y on the left.
3x − 2y + 6 = 0
−2y = −3x − 6 (subtract 3x and 6 from both sides)
y = (3/2)x + 3 (divide both sides by −2)
Gradient m = 3/2 = 1.5 y-intercept c = 3
Interpretation: the line rises 1.5 units for every 1 unit across, and cuts the y-axis at (0, 3).
Worked Example 2 — Equation from two points
Find the equation of the line through (2, 5) and (6, 13).
Step 1 — Find gradient:
m = (13 − 5) / (6 − 2) = 8/4 = 2
Step 2 — Use point–gradient form with (2, 5):
y − 5 = 2(x − 2)
y − 5 = 2x − 4
y = 2x + 1
Check with (6, 13): y = 2(6) + 1 = 13 ✓
Introduction
Linear functions are the foundation of all mathematical modelling. Their graphs — straight lines — are defined entirely by two numbers: gradient and y-intercept. Once you can read and write these two values, you can describe, compare, and apply any straight-line relationship.
The Gradient–Intercept Form: y = mx + c
The gradient m tells you how steep the line is and which direction it runs. A gradient of 3 means “go 1 right, go 3 up.” A gradient of −2 means “go 1 right, go 2 down.” The y-intercept c is the starting value when x = 0 — where the line hits the vertical axis.
For y = −3x + 7: gradient m = −3, y-intercept c = 7.
For 2x + y − 5 = 0: rearrange → y = −2x + 5, so m = −2, c = 5.
Finding Gradient from Two Points
Use the gradient formula: m = (y&sub2; − y&sub1;) / (x&sub2; − x&sub1;). It does not matter which point you label (x&sub1;, y&sub1;) and which you label (x&sub2;, y&sub2;) — you will get the same answer either way.
Points: (−3, 1) and (5, −7).
m = (−7 − 1) / (5 − (−3)) = −8/8 = −1
The line falls at 45° from left to right.
Writing the Equation of a Line
Three common scenarios:
1. Given m and c directly: write y = mx + c immediately.
2. Given m and one point (x&sub1;, y&sub1;): use y − y&sub1; = m(x − x&sub1;), then rearrange to y = mx + c.
3. Given two points: find m first (step 1), then apply method 2.
y − (−2) = 4(x − 3)
y + 2 = 4x − 12
y = 4x − 14
Parallel and Perpendicular Lines
Parallel lines never intersect because they have identical gradients. If you know one line is y = 3x + 5, any line parallel to it has the form y = 3x + c (different c value).
Perpendicular lines cross at exactly 90°. Their gradients satisfy m&sub1; × m&sub2; = −1. To find a perpendicular gradient, take the negative reciprocal: “flip and negate.”
Find the line perpendicular to y = ½x + 3, passing through (4, 1).
Original gradient: m = ½. Perpendicular gradient: m⊥ = −2.
Using point (4, 1): y − 1 = −2(x − 4) → y = −2x + 9
Summary
y = mx + c: m is gradient (rise/run), c is y-intercept. Find equation using: m and c directly; point–gradient form; or two-point method. Parallel lines share gradient; perpendicular gradients multiply to −1. Rearrange general form ax + by + c = 0 by isolating y.
Mastery Practice
-
Fluency
Identify the gradient m and y-intercept c for each line.
- (a) y = 3x − 4
- (b) y = −2x + 7
- (c) 2x + y = 5
- (d) 3x − 4y + 8 = 0
-
Fluency
Calculate the gradient of the line passing through each pair of points.
- (a) (1, 3) and (4, 9)
- (b) (−2, 5) and (3, −5)
- (c) (0, −3) and (6, 0)
-
Fluency
Write the equation of the line described.
- (a) Gradient m = 4 and y-intercept c = −2.
- (b) Gradient m = −½, passing through (4, 3).
- (c) Passing through (2, −1) and (5, 8).
-
Understanding
For the line y = −3x + 6:
- (a) Find the x-intercept and y-intercept.
- (b) Describe the key features needed to sketch this line.
- (c) State the gradient and explain what it means as a rate of change.
-
Understanding
Classify each pair of lines as parallel, perpendicular, or neither. Justify your answer.
- (a) y = 2x + 3 and y = 2x − 5
- (b) y = 4x − 1 and y = −¼x + 2
- (c) y = 3x + 1 and y = −3x + 1
-
Understanding
Find the equation of each line.
- (a) Parallel to y = 3x − 2, passing through (1, 4).
- (b) Perpendicular to y = 2x + 1, passing through (6, 3).
-
Understanding
A line passes through (−3, 7) and (1, −1). Find:
- (a) The gradient of the line.
- (b) The y-intercept.
- (c) The x-intercept.
- (d) The equation in general form ax + by + c = 0.
-
Understanding
The line y = −2x + 8 represents the remaining phone credit ($) after making a number of calls (x).
- (a) What does the y-intercept represent in this context?
- (b) What does the gradient represent in this context?
- (c) After how many calls does the credit run out?
-
Problem Solving
The midpoint of line segment AB is M(3, 1). Point A is at (−1, 4). Find:
- (a) The coordinates of point B.
- (b) The gradient of AB.
- (c) The equation of the perpendicular bisector of AB (the line through M perpendicular to AB).
-
Problem Solving
The line through (k, 3) and (2k, −1) has a gradient of −2.
- (a) Use the gradient formula to write an equation in k and solve for k.
- (b) Write the coordinates of both points, then find the equation of the line in the form y = mx + c.