In simple terms
A friendly intro before the formal notes — no formulas yet.
Straight Lines Made Simple
A linear model describes any situation that changes at a constant rate. It has just two ingredients: where you start (the intercept) and how fast you change (the gradient). Nail those two numbers, with their units, and you can describe the relationship in one sentence and predict any value you like.
Think of a taxi meter. The moment you sit down the meter already reads a fixed fee - that is the intercept, the value when distance is zero. Then for every kilometre the meter ticks up by the same amount - that is the gradient, the cost per kilometre. Your total fare is the fixed fee plus the per-kilometre cost times the distance. Because the rate never changes, the fare grows in a perfectly straight line.
- 1
Identify what changes at a constant rate. That constant rate is the gradient ; the value when the input is zero is the intercept .
- 2
If you are given two points and , find the gradient with ; if you are given a point and a gradient, you already have .
- 3
Substitute the gradient and one point into (or use ) to find the intercept, then write the full equation.
- 4
Interpret and predict: state what the gradient and intercept mean in context WITH units, then substitute to forecast a value.
Explore the concept
Use the live diagram and synced steps — play it or tap a step card to walk through.
Key formulas
Tap any symbol to reveal exactly what it means and its units.
Full topic notes
Formal explanation with the rigour you need for the exam.
The anatomy of a straight line
A straight line is completely described by two numbers: how steep it is and where it crosses the vertical axis. The gradient-intercept form makes both visible at once.
You will meet three equivalent forms. Use whichever the information hands you, then rearrange if the question wants another.
and are the variables. In a model they are renamed for context - for distance, for time, for cost - but the structure is identical.
is the gradient: the rate of change. For every one-unit increase in , changes by units. A positive rises, a negative falls.
is the -intercept: the value of when . In a model this is the starting value - a fixed fee, an initial amount, a value at time zero.
Gradient-intercept form - best for reading off, or writing down, a rate and a starting value.
Point-gradient form - best when you know the gradient and one point; no need to solve for separately.
General form - a tidy way to present a final answer with integer coefficients, and the only form that also covers vertical lines.
Finding the gradient, and a line from two points
Given two points on a line, the gradient is the change in divided by the change in . Once you have the gradient, one point fixes the intercept.
A line from a point and a gradient
Sometimes you are handed the gradient directly - often through a parallel or perpendicular condition - together with a single point. Point-gradient form is then the fastest route.
Parallel lines have equal gradients: . A line parallel to also has gradient .
Perpendicular lines satisfy , so each gradient is the negative reciprocal of the other: . A line perpendicular to a line of gradient has gradient .
Interpreting a real-world linear model
This is where Applications and Interpretation earns its name. Once a situation is written as , the two parameters carry real meaning - and stating that meaning WITH UNITS is a marked skill in its own right.
The gradient is a rate of change. It answers 'how much does the output change for each extra unit of input?' Its units are (units of ) per (unit of ): dollars per km, litres per minute, degrees per hour.
The intercept is a starting value. It answers 'what is the output when the input is zero?' - a fixed fee, an initial amount, a value at time zero - again with units.
The equation is a prediction machine. Substitute a value of the input to forecast the output. Predicting inside the data range (interpolation) is reasonably safe; outside it (extrapolation) is risky.
Model answer - marked the way our engine marks it
In AI, method marks (M) reward the correct approach, accuracy marks (A) reward correct values and DEPEND on the method mark they follow, and follow-through (FT) means an earlier slip need not cost the later marks that build on it, provided each later step is done correctly on your own figures. Interpretation marks are only awarded when the units are present. The marks below are shielded by all of this - but only if the working is on the page. Study how each mark is tied to a specific line.
Common mistakes examiners penalise
Interpreting the gradient without units - a rate of change is meaningless bare. Write 'the cost rises by $1.20 per km', not 'the cost rises by 1.20'. This is the single most common lost mark in AI interpretation questions.
Confusing the gradient with the intercept - the gradient is the RATE of change (per unit), the intercept is the STARTING value (when the input is zero). Calling the fixed fee the 'rate', or the per-km charge the 'starting cost', reverses the meaning.
Flipping the gradient fraction - use with the points in the SAME order top and bottom; swapping one but not the other changes the sign.
Muddling the parallel and perpendicular conditions - parallel means EQUAL gradients (); perpendicular means the product is (). Using for a perpendicular line (or vice versa) throws away the question.
Doing only half the negative reciprocal - the perpendicular gradient both flips AND changes sign: perpendicular to is , not or .
Not reading the general form correctly - rearrange fully to before quoting the gradient; the gradient of is , not .
Trusting an extrapolation blindly - predicting far outside the data range assumes the straight-line trend continues; say when a prediction is an extrapolation and therefore less reliable.
Over-rounding mid-calculation - carry full figures and round only the final answer, to 3 significant figures unless the context (like money) dictates otherwise.
Where this leads
The straight line is the template for every model that follows. The gradient reappears as the slope of a regression line in 4.2, where 'rate of change with units' becomes the interpretation of a real trend; the same interpret-with-units discipline carries into exponential and other non-linear models in 2.5, where a gradient becomes an instantaneous rate. Master the two headlines here - a starting value and a constant rate, each stated with its units - and you have the grammar that the whole modelling strand of Applications and Interpretation is written in.
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
A straight line passes through the points and . (a) Find the gradient of the line. (b) Find its equation in the form . (c) Hence write the equation in the general form with integer coefficients. [5]
- 1
(a) Gradient. Take and : [M1 substitution, A1 value]
Line has equation . Line is perpendicular to and passes through . Find the equation of , giving your answer in the form . [4]
- 1
Gradient of . From , .
A taxi fare, euros, for a journey of km is modelled by two recorded trips: a 5 km journey costs €12 and a 12 km journey costs €22.50. (a) Find the fare model in the form . (b) Interpret the gradient and the intercept in context, with units. (c) Predict the cost of a 20 km journey, and comment on the reliability of your prediction. [6]
- 1
(a) Model. Use the points and : [M1 gradient, A1]\nSubstitute : So [A1]
A taxi charges a $3.50 fixed fee plus $1.20 per km. Write a linear model for the cost of a journey of km, interpret the gradient, and find the cost of a 9 km journey. [5]
- 1
Model answer - full working.
How it all connects
The big idea sits in the middle — tap a linked idea to explore the link.
Tap a linked idea to see how it connects back to the main topic — that connection is what examiners reward.
Glossary
Try to recall each definition before you reveal it.
Quick check
Answer in your head first — then tap to check. No pressure.
Revision flashcards
Flip the card. Test yourself before the exam.
Gradient-intercept form
, where is the gradient and is the -intercept. This is the form you use to read off a rate of change and a starting value at a glance.
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
- ✓
and are the variables. In a model they are renamed for context - for distance, for time, for cost - but the structure is identical.
- ✓
is the gradient: the rate of change. For every one-unit increase in , changes by units. A positive rises, a negative falls.
- ✓
is the -intercept: the value of when . In a model this is the starting value - a fixed fee, an initial amount, a value at time zero.
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Get a linear-model question marked: write the model, interpret the gradient with units, and predict - with full working
Get a linear-model question marked: write the model, interpret the gradient with units, and predict - with full working
Extra simulations & links
PhET, GeoGebra and other curated tools — open in a new tab.
Frequently asked
Checkpoint
One marked question is worth ten re-reads — close the loop before you move on.
Reading it isn’t knowing it — prove it.
Before you move on: do Get a linear-model question marked: write the model, interpret the gradient with units, and predict - with full working on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.