Linear Functions & Simultaneous Equations

Understand linear functions and their graphs, solve simultaneous equations using substitution and elimination, and get an introduction to quadratic expressions.

What You'll Learn

  • Find the gradient and y-intercept of a linear function
  • Plot linear graphs from equations and tables of values
  • Find the equation of a line from its graph or two points
  • Solve simultaneous equations by substitution and elimination
  • Understand parallel and perpendicular line relationships
  • Recognise and expand quadratic expressions (introduction)

IB Assessment Focus

Criterion A: Apply algebraic methods to unfamiliar problems with multiple steps.

Criterion B: Discover the relationship between gradient, y-intercept, and the graph. Justify your solutions.

Criterion C: Use correct algebraic notation and communicate reasoning clearly.

Criterion D: Apply linear functions to real-world contexts (distance-time, cost models).

Key Vocabulary

TermDefinition
FunctionA rule that assigns each input exactly one output. Written f(x) or y = ...
Linear functionA function whose graph is a straight line: y = mx + c
Gradient (m)The steepness of a line; rise ÷ run; rate of change
y-intercept (c)Where the line crosses the y-axis (when x = 0)
x-interceptWhere the line crosses the x-axis (when y = 0)
Simultaneous equationsTwo equations with two unknowns; solved for values satisfying both
QuadraticAn expression where the highest power of x is 2
Arithmetic sequenceA sequence with a constant difference between consecutive terms

Linear Functions: y = mx + c

Every linear function can be written in the form y = mx + c, where m is the gradient and c is the y-intercept.

Understanding Gradient (m)

The gradient measures how steep a line is and the direction it slopes. It is the rate of change — how much y changes for each unit increase in x.

Gradient Formula (from two points)
m = y2 − y1x2 − x1 = riserun
GradientMeaningGraph
m > 0Line slopes upward left to rightPositive slope ↗
m < 0Line slopes downward left to rightNegative slope ↘
m = 0Horizontal line (no slope)Flat —
Large |m|Steep lineNearly vertical
Small |m|Gentle lineNearly horizontal
Worked Example — Finding Gradient
Points (2, 3) and (6, 11) given
m = 11 − 36 − 2 = 84 gradient formula
m = 2

Understanding the y-intercept (c)

The y-intercept is the value of y when x = 0. It tells you where the line crosses the y-axis. In y = 3x + 5, the y-intercept is 5, meaning the line passes through (0, 5).

Finding the Equation of a Line

Method 1: Given gradient and y-intercept

Simply substitute into y = mx + c.
If m = 3 and c = −2, the equation is y = 3x − 2.

Method 2: Given gradient and a point
  1. Start with y = mx + c and substitute the known gradient.
  2. Substitute the coordinates of the given point to find c.
  3. Write the final equation.

Example: Gradient = 2, passes through (3, 7).
y = 2x + c → 7 = 2(3) + c → 7 = 6 + c → c = 1.
Equation: y = 2x + 1

Method 3: Given two points
  1. Calculate the gradient: m = (y&sub2; − y&sub1;) / (x&sub2; − x&sub1;).
  2. Substitute m and one point into y = mx + c to find c.
  3. Write the final equation.

Example: Points (1, 4) and (3, 10).
m = (10 − 4) / (3 − 1) = 6/2 = 3.
Using (1, 4): 4 = 3(1) + c → c = 1.
Equation: y = 3x + 1

Parallel and Perpendicular Lines

RelationshipGradient RuleExample
Parallel linesSame gradient (m&sub1; = m&sub2;)y = 3x + 1 and y = 3x − 5 are parallel
Perpendicular linesProduct of gradients = −1 (m&sub1; × m&sub2; = −1)y = 2x + 3 and y = −½x + 1 are perpendicular
Common Mistake: Students often confuse the gradient and y-intercept in equations not written in y = mx + c form. Always rearrange first! For example, 2y = 6x + 4 should be rewritten as y = 3x + 2 (gradient = 3, not 6).

Arithmetic Sequences as Linear Functions

An arithmetic sequence has a constant difference (d) between terms. The nth term formula is a linear function:

nth term
Tn = a + (n − 1)d    where a = first term, d = common difference
Example: Sequence: 5, 8, 11, 14, ...

a = 5, d = 3. Tn = 5 + (n − 1)(3) = 5 + 3n − 3 = 3n + 2
Check: T&sub1; = 3(1) + 2 = 5 ✓, T&sub2; = 3(2) + 2 = 8 ✓

Graphing Linear Functions

Every linear equation can be drawn as a straight line. You need at least two points to plot a line.

x y −1 1 2 0 1 2 3 −1 y = 2x + 1 (0, 1) run = 1 rise = 2
Graph of y = 2x + 1 · y-intercept at (0, 1) · slope triangle shows rise = 2, run = 1, gradient m = 2

Method 1: Table of Values

Plot y = 2x − 1
xy = 2x − 1(x, y)
−22(−2) − 1 = −5(−2, −5)
02(0) − 1 = −1(0, −1)
12(1) − 1 = 1(1, 1)
32(3) − 1 = 5(3, 5)

Plot these points and draw a straight line through them. The y-intercept is −1 and the gradient is 2.

Method 2: Gradient-Intercept Method

  1. Plot the y-intercept (c) on the y-axis.
  2. From that point, use the gradient: rise ÷ run. If m = 3, go up 3, right 1.
  3. If m is negative (e.g., m = −2), go down 2, right 1.
  4. If m is a fraction (e.g., m = 2/3), go up 2, right 3.
  5. Plot at least 2 points and draw the line.

Method 3: Intercepts Method

  1. Find the y-intercept: set x = 0 and solve for y.
  2. Find the x-intercept: set y = 0 and solve for x.
  3. Plot both intercepts and draw the line through them.

Example: 3x + 2y = 12
y-intercept: x = 0 → 2y = 12 → y = 6 → (0, 6)
x-intercept: y = 0 → 3x = 12 → x = 4 → (4, 0)
Plot (0, 6) and (4, 0) and draw the line.

Special Lines

EquationTypeDescription
y = c (e.g., y = 3)Horizontal lineAll points have y-coordinate = 3; gradient = 0
x = c (e.g., x = −2)Vertical lineAll points have x-coordinate = −2; gradient is undefined
y = xIdentity linePasses through origin at 45°; gradient = 1
y = −xReflection linePasses through origin at −45°; gradient = −1

Simultaneous Equations

Simultaneous equations are two (or more) equations with two unknowns. You need to find the values of x and y that satisfy BOTH equations at the same time.

Method 1: Elimination

The goal is to make the coefficient of one variable the same in both equations, then add or subtract to eliminate it.

Example: Solve 3x + 2y = 16 and 5x + 2y = 22
  1. The coefficient of y is already the same (2) in both equations.
  2. Subtract equation 1 from equation 2: (5x + 2y) − (3x + 2y) = 22 − 16 → 2x = 6 → x = 3
  3. Substitute x = 3 into equation 1: 3(3) + 2y = 16 → 9 + 2y = 16 → 2y = 7 → y = 3.5
  4. Verify: Eq.1: 3(3) + 2(3.5) = 9 + 7 = 16 ✓. Eq.2: 5(3) + 2(3.5) = 15 + 7 = 22 ✓
Example with multiplication needed: Solve 2x + 3y = 12 and 4x + y = 14
  1. To eliminate y: multiply equation 2 by 3 → 12x + 3y = 42
  2. Subtract equation 1: (12x + 3y) − (2x + 3y) = 42 − 12 → 10x = 30 → x = 3
  3. Substitute into eq. 2: 4(3) + y = 14 → y = 14 − 12 = 2
  4. Verify: Eq.1: 2(3) + 3(2) = 6 + 6 = 12 ✓. Eq.2: 4(3) + 2 = 14 ✓

Method 2: Substitution

Rearrange one equation to express one variable in terms of the other, then substitute into the second equation.

Worked Example — Substitution Method
y = 2x + 1   &&   3x + y = 11 two equations
3x + (2x + 1) = 11 substitute eq.1 into eq.2
5x + 1 = 11 → 5x = 10 simplify
x = 2 → y = 2(2) + 1 = 5 solve & back-substitute
Check: 3(2) + 5 = 11 ✓ verify in both equations
x = 2, y = 5

Graphical Interpretation

Solving simultaneous equations is the same as finding where two lines intersect (cross). The solution (x, y) is the point of intersection.

One solution Lines cross at one point (most cases)
No solution Lines are parallel (same gradient, different y-intercept)
Infinite solutions Lines are identical (same equation)
Critical Rule: ALWAYS verify your solution by substituting both values into BOTH original equations. This catches arithmetic errors and is essential for full marks on Criterion B/C.

Introduction to Quadratics

A quadratic expression has x² as the highest power. At Grade 8, you need to recognise, expand, and factorise simple quadratic expressions.

Expanding Double Brackets (FOIL)

FOIL Method
(a + b)(c + d) = ac + ad + bc + bd
Example: Expand (x + 3)(x + 5)

= x² + 5x + 3x + 15 = x² + 8x + 15

Example: Expand (x − 4)(x + 2)

= x² + 2x − 4x − 8 = x² − 2x − 8

Example: Expand (2x + 1)(x − 3)

= 2x² − 6x + x − 3 = 2x² − 5x − 3

Special Products

PatternFormulaExample
Perfect square(a + b)² = a² + 2ab + b²(x + 4)² = x² + 8x + 16
Perfect square(a − b)² = a² − 2ab + b²(x − 3)² = x² − 6x + 9
Difference of squares(a + b)(a − b) = a² − b²(x + 5)(x − 5) = x² − 25

Factorising Quadratics

Factorising is the reverse of expanding: turning x² + bx + c into (x + p)(x + q).

  1. Find two numbers p and q that multiply to give c and add to give b.
  2. Write as (x + p)(x + q).
  3. Check by expanding back.
Example: Factorise x² + 7x + 12

Need two numbers that multiply to 12 and add to 7. Try: 3 × 4 = 12, 3 + 4 = 7 ✓
Answer: (x + 3)(x + 4)
Check: (x + 3)(x + 4) = x² + 4x + 3x + 12 = x² + 7x + 12 ✓

Example: Factorise x² − 5x + 6

Need two numbers that multiply to 6 and add to −5. Try: (−2) × (−3) = 6, (−2) + (−3) = −5 ✓
Answer: (x − 2)(x − 3)

Example: Factorise x² − 16

This is a difference of two squares: x² − 4² = (x + 4)(x − 4)

Tip: Always check your factorisation by expanding. If you get back to the original expression, your factors are correct.

Worked Examples

Multi-step problems showing Grade 8 level reasoning with full justification.

EXAMPLE 1Find the equation of the line passing through (2, 5) and (6, 13).
+
Full Solution
Step 1: Find gradient: m = (13 − 5) / (6 − 2) = 8/4 = 2
Step 2: Use y = mx + c with m = 2 and point (2, 5):
5 = 2(2) + c → 5 = 4 + c → c = 1
Equation: y = 2x + 1
Verify: At (6, 13): y = 2(6) + 1 = 13 ✓
EXAMPLE 2Solve simultaneously: 2x + y = 7 and x − y = 2. Verify your answer.
+
Full Solution
Method: Elimination (adding eliminates y).
(2x + y) + (x − y) = 7 + 2
3x = 9 → x = 3
Substitute into x − y = 2: 3 − y = 2 → y = 1
Verify: Eq.1: 2(3) + 1 = 7 ✓. Eq.2: 3 − 1 = 2 ✓
Solution: (x, y) = (3, 1)
EXAMPLE 3A taxi charges a $5 base fee plus $2 per km. Write the cost function and find the cost for 12 km. If a customer paid $31, how far did they travel?
+
Full Solution
Cost function: C = 2d + 5 (where d is distance in km)
This is a linear function with gradient 2 (cost per km) and y-intercept 5 (base fee).

Cost for 12 km: C = 2(12) + 5 = 24 + 5 = $29

Distance for $31: 31 = 2d + 5 → 26 = 2d → d = 13 km
Verify: 2(13) + 5 = 26 + 5 = 31 ✓
EXAMPLE 4Line A has equation y = 3x − 1. Find the equation of Line B which is perpendicular to A and passes through (6, 2).
+
Full Solution
Step 1: Gradient of A = 3. Perpendicular gradient: m = −1/3 (since 3 × (−1/3) = −1).
Step 2: Use y = mx + c with m = −1/3 and point (6, 2):
2 = (−1/3)(6) + c → 2 = −2 + c → c = 4
Equation: y = −(1/3)x + 4
EXAMPLE 5Find the 50th term of the sequence 7, 11, 15, 19, ...
+
Full Solution
This is an arithmetic sequence with a = 7 and d = 4.
Tn = a + (n − 1)d = 7 + (n − 1)(4) = 7 + 4n − 4 = 4n + 3
T50 = 4(50) + 3 = 200 + 3 = 203
Check: T&sub1; = 4(1) + 3 = 7 ✓, T&sub2; = 4(2) + 3 = 11 ✓
EXAMPLE 6Factorise x² + 2x − 15 and use it to solve x² + 2x − 15 = 0.
+
Full Solution
Factorise: Need two numbers that multiply to −15 and add to 2.
Try: 5 × (−3) = −15 and 5 + (−3) = 2 ✓
x² + 2x − 15 = (x + 5)(x − 3)

Solve: (x + 5)(x − 3) = 0
Either x + 5 = 0 → x = −5, or x − 3 = 0 → x = 3
Solutions: x = −5 or x = 3

Practice Q&A

Attempt each question before revealing the answer. Show full working and justify each step.

DESCRIBEDescribe the meaning of the gradient and y-intercept of y = −2x + 5.
+
Model Answer
The gradient is −2: for every 1 unit increase in x, y decreases by 2 units. The line slopes downward from left to right.
The y-intercept is 5: the line crosses the y-axis at (0, 5). This is the value of y when x = 0.
SOLVESolve simultaneously: 3x + 4y = 18 and x + 4y = 10.
+
Model Answer
Subtract eq. 2 from eq. 1: (3x + 4y) − (x + 4y) = 18 − 10 → 2x = 8 → x = 4.
Substitute into eq. 2: 4 + 4y = 10 → 4y = 6 → y = 1.5.
Verify: Eq.1: 3(4) + 4(1.5) = 12 + 6 = 18 ✓. Eq.2: 4 + 4(1.5) = 4 + 6 = 10 ✓.
Solution: (4, 1.5)
FINDFind the equation of the line parallel to y = 4x − 3 that passes through (1, 6).
+
Model Answer
Parallel lines have the same gradient, so m = 4.
y = 4x + c. Substitute (1, 6): 6 = 4(1) + c → c = 2.
Equation: y = 4x + 2
EXPANDExpand and simplify (x + 6)² − (x + 2)(x − 2).
+
Model Answer
(x + 6)² = x² + 12x + 36 (perfect square)
(x + 2)(x − 2) = x² − 4 (difference of squares)
Subtraction: (x² + 12x + 36) − (x² − 4) = x² + 12x + 36 − x² + 4 = 12x + 40
FACTORISEFactorise x² − 9x + 20. Then solve x² − 9x + 20 = 0.
+
Model Answer
Two numbers that multiply to 20 and add to −9: −4 and −5.
x² − 9x + 20 = (x − 4)(x − 5)
Solve: x − 4 = 0 or x − 5 = 0 → x = 4 or x = 5
Check: 4² − 9(4) + 20 = 16 − 36 + 20 = 0 ✓
FINDAn arithmetic sequence has T&sub3; = 14 and T&sub7; = 26. Find the first term and common difference.
+
Model Answer
Tn = a + (n − 1)d.
T&sub3;: a + 2d = 14 ... (1)
T&sub7;: a + 6d = 26 ... (2)
Subtract (1) from (2): 4d = 12 → d = 3
Substitute into (1): a + 6 = 14 → a = 8
Sequence: 8, 11, 14, 17, 20, 23, 26, ... ✓
REAL-WORLDTwo phone plans: Plan A costs $20/month + $0.05/text. Plan B costs $30/month with unlimited texts. After how many texts is Plan A more expensive?
+
Model Answer
Plan A: C = 0.05t + 20. Plan B: C = 30.
Set equal: 0.05t + 20 = 30 → 0.05t = 10 → t = 200 texts.
At 200 texts, both cost $30. After 200 texts, Plan A is more expensive.
This is a simultaneous equations problem solved graphically: the intersection is at t = 200.

Flashcard Review

Tap each card to reveal the answer.

What is the general form of a linear equation?
y = mx + c, where m is the gradient and c is the y-intercept.
Tap to reveal
How do you calculate gradient from two points?
m = (y&sub2; − y&sub1;) / (x&sub2; − x&sub1;)
= rise / run
Tap to reveal
What does a negative gradient mean?
The line slopes downward from left to right. As x increases, y decreases.
Tap to reveal
How do you know two lines are parallel?
They have the same gradient (m&sub1; = m&sub2;) but different y-intercepts.
Tap to reveal
How do you know two lines are perpendicular?
The product of their gradients is −1.
m&sub1; × m&sub2; = −1
Tap to reveal
What are the two methods for solving simultaneous equations?
1. Elimination (add/subtract equations)
2. Substitution (express one variable in terms of the other)
Tap to reveal
After solving simultaneous equations, what must you always do?
Verify by substituting both values into BOTH original equations.
Tap to reveal
What does solving simultaneous equations mean graphically?
Finding the point of intersection of two lines.
Tap to reveal
State the FOIL expansion pattern.
(a + b)(c + d) = ac + ad + bc + bd
First, Outer, Inner, Last
Tap to reveal
What is (a + b)(a − b)?
a² − b²
(Difference of two squares)
Tap to reveal
What is (a + b)²?
a² + 2ab + b²
(Perfect square expansion)
Tap to reveal
How do you factorise x² + bx + c?
Find two numbers that multiply to c and add to b. Write as (x + p)(x + q).
Tap to reveal
What is the nth term of an arithmetic sequence?
Tn = a + (n − 1)d
where a = first term, d = common difference
Tap to reveal
What is the x-intercept?
The point where the line crosses the x-axis. Found by setting y = 0 and solving for x.
Tap to reveal
Why might simultaneous equations have no solution?
The lines are parallel (same gradient, different y-intercept), so they never intersect.
Tap to reveal

Practice Test — 20 Questions

0Score / 20
Q 1 / 20
Correct
Wrong
Score