SL AI · Functions

Linear functions and modelling (IB Math AI SL)

Updated October 2026

Quick answer: A linear model has the form y = mx + c. The gradient m is the change in y for each increase of 1 in x, so in context it is a rate, such as euros per kilometre. The intercept c is the value of y when x = 0, such as a fixed charge. Find m from two data points, then c from either one.

Slope, intercept, and interpreting the gradient in context. SL AI dresses linear models as taxi fares, phone plans, and rental costs — always ask what the gradient MEANS in the real-world context.

Practise Linear functions and modelling with AI marking

Open the full SL AI engine — every question in this unit is worked through with instant AI-graded feedback on your handwritten workings.

Practise SL AI Functions →

Key ideas

Worked example

A taxi ride of 4 km costs €9.80 and a ride of 10 km costs €18.20. The cost, C euros, is a linear function of the distance, d km. Find the model, interpret the gradient and the intercept, and find the distance you can travel for €25.

  1. Gradient: m = (18.20 − 9.80) ÷ (10 − 4) = 8.40 ÷ 6 = 1.40.
  2. Intercept: 9.80 = 1.40 × 4 + c, so c = 9.80 − 5.60 = 4.20. The model is C = 1.40d + 4.20.
  3. The gradient means each extra kilometre costs €1.40; the intercept means there is a fixed charge of €4.20 for any ride.
  4. For €25: 1.40d + 4.20 = 25, so d = 20.80 ÷ 1.40 ≈ 14.9 km.

Answer: C = 1.40d + 4.20; €1.40 per km plus a €4.20 fixed charge; about 14.9 km for €25.

Exam-style SL AI questions on this topic

Try it now

1 of 5

  1. Question 1 of 5
  2. Question 2 of 5
  3. Question 3 of 5
  4. Question 4 of 5
  5. Question 5 of 5

5 quick questions on gradient of a line. No sign-in needed.

Find the gradient of the line through \((-2, 7)\) and \((4, -5)\).
Choose your answer · keys 1–4

Do it on your GDC

A GDC is allowed on every AI paper. Keystrokes for the TI-84 Plus CE, TI-Nspire CX II and Casio fx-CG50, with a checked worked example:

See it on a graph

Maths IA ideas that use linear functions and modelling

Related in Functions

Revise Linear functions and modelling for the exam

Stretch yourself: original algebra problems at Senior level (ages 16 to 18), with hints and full solutions: Problem S26 · Problem S90 · Problem S25 · Problem S89. All 22 →

More on this topic

Formulas in this topic: Equation of a straight line · Gradient formula. All formulas A–Z

FAQ

What does the gradient mean in a linear model?

It is the rate of change: how much y changes for each increase of 1 in x, with units of y per unit of x. In a cost model it is the cost per item or per kilometre; in a temperature model it might be degrees per hour.

Where can I practise linear functions and modelling questions?

On the Direct/Inverse Variation and Cubic Models questions page: 14 exam-style SL AI questions with full mark schemes, plus free step-by-step worked examples.

Can I use my calculator for linear functions and modelling?

Yes: a GDC is allowed on every SL AI paper, so practise the calculator method as well as the working. The Tables of values guide gives the keystrokes for the TI-84 Plus CE, TI-Nspire CX II and Casio fx-CG50.

What else is free here

Save your progress as you reviseA free account remembers the questions you have done on every topic and brings you back to this page.

Join free

Already have an account? Sign in