What is a Linear Function?
A linear function is a relationship between two variables where the change in one variable produces a constant rate of change in the other. When graphed, a linear function always produces a straight line.
In science, we use mathematical models to describe and predict the behaviour of the natural world. Linear functions are among the most powerful and commonly used models — from the relationship between distance and time at constant speed, to how temperature changes as you add heat energy.
A linear function can be written in the general form:
Where:
- = the dependent variable (what you measure or observe)
- = the independent variable (what you control or change)
- = the gradient (or slope) — how steeply the line rises or falls
- = the y-intercept — the value of when
Think of a linear function like a taxi fare. You pay a fixed starting charge (the y-intercept) just for getting in, plus a constant rate per kilometre (the gradient). Every kilometre costs the same amount — that constant rate is what makes it linear!
The Gradient (Slope)
The gradient of a linear function describes the rate of change of the dependent variable with respect to the independent variable. It tells you how much changes for every one-unit increase in .
The gradient is calculated using:
Where (delta) means "change in".
Interpreting the sign of the gradient:
- Positive gradient (): The line slopes upward from left to right. As increases, increases. Example: a car travelling at 60 km/h covers 60 km more for every additional hour driven.
- Negative gradient (): The line slopes downward from left to right. As increases, decreases. Example: a cooling object loses temperature over time.
- Zero gradient (): The line is horizontal. does not change as changes. Example: an object at rest — distance stays constant over time.

In science, the gradient is rarely just a number — it has units. Always divide the units of by the units of to find the unit of the gradient. For example, if is in metres (m) and is in seconds (s), the gradient has units of m/s — which is speed!
10 more sections in this topic
Pick this up in your Library: it holds the whole topic, notes, cheatsheet and questions.