01 / 20

Linear Functions
& Models

Master rate of change, intercepts, and how to build linear models that describe real-world relationships using \( y = mx + c \).

IB Math: Applications & Interpretation

What Is a Linear Function?

A linear function produces a straight-line graph. Its general form is:

$$ f(x) = mx + c $$

\( m \) : Gradient
The rate of change: how much \( y \) changes for each unit increase in \( x \).
\( c \) : \( y \)-intercept
The value of \( y \) when \( x = 0 \): where the line crosses the \( y \)-axis.

Visualising the Gradient

x y run = 1 rise = 2 (0, 1) (1, 3) c=1 y = 2x + 1

Why Linear Models Matter

Many real-world quantities change at a roughly constant rate. A linear model captures that relationship simply and powerfully.

Cost
A taxi charges a fixed fee plus a per-km rate: \( C = 2.50 + 1.80k \).
Distance
A car travelling at constant speed: \( d = 60t \).
Temperature
Cooling at a steady rate over a short interval: \( T = 80 - 3t \).

The Gradient Formula

$$ m = \frac{y_2 - y_1}{x_2 - x_1} $$

x y (x₁, y₁) (x₂, y₂) x₂ − x₁ y₂ − y₁

Intercepts Explained

\( y \)-intercept
Set \( x = 0 \) and solve. The point is \( (0, c) \). This is the starting value in context.
\( x \)-intercept
Set \( y = 0 \) and solve: \( x = -\dfrac{c}{m} \). This is where the quantity reaches zero.
x y (0, 3) : y-intercept (2, 0) : x-intercept y = −1.5x + 3 0 1 3

Gradient vs Intercept

Gradient \( m \) \( y \)-intercept \( c \)
What it tells you Rate of change per unit of \( x \) Starting value when \( x = 0 \)
How to find it \( \dfrac{y_2 - y_1}{x_2 - x_1} \) Read from graph or set \( x = 0 \)
Units (example) $ per km, °C per hour $, °C (same unit as \( y \))
Effect on graph Changes the steepness/direction Shifts the line up or down

How to Apply a Linear Model

1
Identify two data points or a point plus the rate of change from the problem context.
2
Calculate the gradient \( m = \dfrac{y_2 - y_1}{x_2 - x_1} \) and state its meaning in context.
3
Find the \( y \)-intercept by substituting one known point into \( y = mx + c \) and solving for \( c \).
4
Write the model \( y = mx + c \) with values, then use it to interpolate or extrapolate.
5
State limitations: the model may not hold for very large or very small \( x \) values.

Example 1: Taxi Fare

A taxi charges a base fare of $3.00 plus $1.50 per km. Write a linear model and find the fare for a 12 km trip.

d (km) C ($) 2 4 6 8 10 12 5 10 15 20 $3.00 $21.00

Example 2: Finding \( m \) and \( c \)

A spring stretches linearly. At a force of 2 N the length is 14 cm; at 5 N the length is 23 cm. Find the model.

1
Gradient: \( m = \dfrac{23 - 14}{5 - 2} = \dfrac{9}{3} = 3 \) cm per N
2
Intercept: Substitute \( (2, 14) \): \( 14 = 3(2) + c \implies c = 8 \)
3
Model: \( L = 3F + 8 \). The natural length (at 0 N) is 8 cm.

Example 3: Negative Gradient

A candle is 30 cm tall and burns down at 2.5 cm per hour. When does it burn out?

t (hr) h (cm) 2 4 6 8 10 12 10 20 30 30 cm 12 hr

Parallel & Perpendicular Lines

Parallel
Same gradient: \( m_1 = m_2 \). The lines never meet.
Perpendicular
Gradients multiply to \( -1 \): \( m_1 \times m_2 = -1 \).
y = 2x + 1 y = 2x − 2 Parallel: same m m = 2 m = −0.5 Perpendicular

Forms of a Linear Equation

Form Equation Best Used When
Gradient-intercept \( y = mx + c \) You know \( m \) and \( c \)
Point-gradient \( y - y_1 = m(x - x_1) \) You know \( m \) and one point
General form \( ax + by + d = 0 \) Standard/tidy presentation
Two-point \( \dfrac{y - y_1}{y_2 - y_1} = \dfrac{x - x_1}{x_2 - x_1} \) You know two points only

Domain & Range in Context

In real-world models the domain is restricted. You cannot use a taxi for negative kilometres, and a candle cannot have negative height.

Domain
The set of sensible \( x \)-values. E.g., \( 0 \le d \le 50 \) km for a city taxi ride.
Range
The resulting \( y \)-values. E.g., \( 3.00 \le C \le 78.00 \) dollars.

Common Mistakes

✕ Swapping rise and run
Writing \( m = \dfrac{x_2 - x_1}{y_2 - y_1} \) instead of \( \dfrac{y_2 - y_1}{x_2 - x_1} \). Remember: \( y \) on top.
✕ Sign errors
Subtracting coordinates in different orders: \( y_2 - y_1 \) but \( x_1 - x_2 \). Stay consistent.
✕ Ignoring context
Writing \( m = 3 \) without units or interpretation. IB expects: "the length increases by 3 cm per N."

Key Takeaways

1
A linear function has the form \( y = mx + c \) and graphs as a straight line.
2
The gradient \( m \) is the rate of change; the intercept \( c \) is the starting value.
3
Calculate \( m \) with \( \dfrac{y_2 - y_1}{x_2 - x_1} \); find \( c \) by substituting a known point.
4
Always interpret \( m \) and \( c \) in context, include units, and state the domain.
5
Parallel lines share the same \( m \); perpendicular lines satisfy \( m_1 \times m_2 = -1 \).

Question 1 of 5

A line passes through the points \( (1, 5) \) and \( (4, 14) \). What is the gradient?

Question 2 of 5

A plumber charges a call-out fee of $50 plus $35 per hour. Which model represents the total cost \( C \) for \( h \) hours?

Question 3 of 5

The line \( y = -4x + 20 \) has an \( x \)-intercept at:

Question 4 of 5

Line \( L_1 \) has gradient \( m = 4 \). A line perpendicular to \( L_1 \) has gradient:

Question 5 of 5

A water tank starts with 200 litres and loses 8 litres per minute. After how many minutes is the tank empty?