Linear Models (AI HL)

A linear model f(x)=mx+cf(x)=mx+c describes a quantity that changes by the same amount for every unit increase in xx: the gradient mm is the rate of change and cc is the value when x=0x=0. A piecewise linear model uses a different line over each interval. It also covers interpreting mm and cc in context. It's part of the broader Linear, Quadratic & Cubic Models topic.

12 questions on this sub-topic.

Syllabus

CodeSyllabus content
SL2.5Modelling with linear models f(x)=mx+cf(x)=mx+c, including piecewise linear models. Quadratic models f(x)=ax2+bx+cf(x)=ax^2+bx+c, a≠0a\ne0: axis of symmetry, vertex, zeros and roots, intercepts. Exponential growth/decay models f(x)=kax+cf(x)=ka^x+c or kerx+cke^{rx}+c, with horizontal asymptote. Direct/inverse variation f(x)=axn, n∈Zf(x)=ax^n,\ n\in\mathbb{Z}, including the y-axis as a vertical asymptote when n<0n<0. Cubic models f(x)=ax3+bx2+cx+df(x)=ax^3+bx^2+cx+d. Sinusoidal models f(x)=asin⁡(bx)+df(x)=a\sin(bx)+d or acos⁡(bx)+da\cos(bx)+d: amplitude, period, principal axis.

Official IB source: Mathematics: applications and interpretation subject brief (PDF, ibo.org).

Skills practised on this page:

The model and setting it up

The linear form itself is in the formula booklet; turning a context into that form is the skill this sub-topic tests.

Linear model

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

In the formula booklet. mm is the constant rate of change, cc is the fixed value when x=0x=0.

Setting up a linear model

Identify the fixed starting value (cc) and the constant rate of change (mm) from the context, then write f(x)=mx+cf(x)=mx+c. For a piecewise version, repeat this for each interval where the rate changes.

Need the full syllabus wording, the formula reference table, and GDC regression steps? See Linear, Quadratic & Cubic Models.

Key terms

What is the gradient of a linear model?

The gradient mm is the change in yy divided by the change in xx. In context it is the rate of change, and it has units such as pounds per hour.

e.g. A line through (2,7)(2,7) and (6,19)(6,19) has m=19−76−2=3m=\dfrac{19-7}{6-2}=3.

What does the constant c mean in context?

The constant cc is the value of the model when x=0x=0, so it represents a starting value or a fixed charge.

e.g. A taxi charges a fixed amount of 33 plus 22 per kilometre, so C=2d+3C=2d+3 and c=3c=3 is the fixed charge.

What is a piecewise function?

A piecewise function uses a different rule on different intervals of the input. The pieces often join at a breakpoint where the rate changes.

e.g. f(x)=2xf(x)=2x for 0≤x≤50\le x\le5 and f(x)=10+3(x−5)f(x)=10+3(x-5) for x>5x>5, so f(5)=10f(5)=10 and f(7)=16f(7)=16.

What does the x-intercept of a linear model mean?

The xx-intercept is the value of xx where f(x)=0f(x)=0, found by solving mx+c=0mx+c=0. In context it shows when the quantity runs out or reaches zero.

e.g. For V(t)=900−150tV(t)=900-150t, V=0V=0 when t=6t=6, so the value reaches zero after 66 years.

Worked examples

1
Easy
GDC
[4 marks]

A laptop bought for $1200 loses $200 of value each year.

(a) Write the value V(t)V(t) after tt years.

(b) Find when it reaches zero value.

Worked solution

(a) V(t)=1200−200t.V(t) = 1200 - 200t. M1 A1

(b) 1200−200t=0⇒t1200 - 200t = 0 \Rightarrow t M1
t=6t = 6 years. A1On the GDC. Solve 1200−200x=01200-200x=0 for the solution near x=1x=1. The calculator shows about 6. The calculator steps below are for (b).

TI-84 Plus CE: math ▲ C:Numeric Solver E1 1200-200x E2 0 OK, X = 1 alpha enterCasio fx-CG50: MENU Equation F3 type 1200-200x=0 EXE X = 1 EXE ▲ F6Casio fx-CG100: HOME Equation Type tab Solver OK Eq line 1200-200x=0 OK start estimate 1 Execute OKTI-Nspire CX: menu Algebra Numerical Solve 1200-200x=0,x=1 enterFull GDC guide: Solve an equation numerically Topic page

M1 Straight-line model A1 V(t)V(t) M1 Set V=0V=0 A1 t=6t=6
2
Medium
Calculator
[4 marks]

A phone plan charges \$0.15 per minute for the first 100 minutes, then \$0.10 per minute thereafter.

(a) Write the cost C(m)C(m) as a piecewise function.
(b) Find the cost of 250 minutes.

Worked solution

(a) C(m)={0.15m,0≤m≤10015+0.10(m−100),m>100C(m) = \begin{cases} 0.15m, & 0 \le m \le 100 \\ 15 + 0.10(m-100), & m > 100 \end{cases} M1 A1

(b) C(250)=15+0.10(150)C(250) = 15 + 0.10(150) M1
=$30.= $30. A1

M1 First piece A1 Second piece M1 Use second piece A1 $30$30
3
Hard
GDC
[4 marks]

The radius of a circle grows as r(t)=2+0.5tr(t) = 2 + 0.5t cm.

(a) Express the area as a function of t.t.

(b) Find the area at t=4.t=4.

Worked solution

(a) A(t)=π(2+0.5t)2.A(t) = \pi(2 + 0.5t)^2. A1

(b) At t=4t = 4: r=4, Ar = 4,\ A M1
A=16πA = 16\pi A1
≈50.3\approx 50.3 cm2^{2}. A1On the GDC. Find the area when t is 4 The calculator shows about 50.3. The calculator steps below are for (b).

TI-84 Plus CE: 2nd mode then type π*(2+0.5*4)^2 enterCasio fx-CG50: MENU Run-Matrix then type π*(2+0.5*4)^2 EXECasio fx-CG100: HOME Calculate then type π*(2+0.5*4)^2 EXETI-Nspire CX: home Calculator then type π*(2+0.5*4)^2 enterFull GDC guide: Enter a calculation on the home screen Topic page

A1 Compose A(r(t))A(r(t)) M1 Substituting t=4t = 4 to get r=4r = 4 and A=π(4)2A = \pi(4)^2 A1 16π16\pi A1 Correct answer of ≈50.3\approx50.3

Common mistakes

  • Swapping the rate and the fixed value. mm is what changes each step, cc is the one-off starting amount - mixing them up (e.g. writing 200−1200t200 - 1200t instead of 1200−200t1200-200t) gives a model with completely the wrong shape.
  • Using the wrong piece of a piecewise model. Before substituting, check which interval the input actually falls in - plugging 250 minutes into the "first 100 minutes" rule instead of the one for minutes above 100 gives an answer that's simply wrong, not just imprecise.
  • Trusting the model outside its sensible range. A straight-line depreciation model eventually gives a negative value, which makes no sense for an asset's worth - the model is only valid up to the point it hits zero (or whatever the context allows).

Using your GDC

Every step below is a real button sequence, not a vague "use your calculator" hint - covering the TI-84 Plus, TI-Nspire, and Casio fx-9860/fx-CG50. Pick your model to filter down to just the steps that apply to you.

Show steps for:
Fit a model (quadratic, cubic, exponential, power, sinusoidal)

The heart of AI modelling - find the best-fitting curve for a data set, not just a straight line.

  1. Enter the data in two lists (x and y).
  2. STAT → EDIT to enter L1/L2, then STAT → CALC → QuadReg / CubicReg / ExpReg / PwrReg / SinReg.TI-84
  3. In a Lists & Spreadsheet page enter the data, then menu → Statistics → Stat Calculations → choose the regression type.Nspire
  4. Main menu → Statistics, enter the data in lists, then CALC → REG and pick X² / X³ / Exp / Power / Sin.Casio

Tip: Turn DiagnosticOn (TI-84: 2nd → 0 → DiagnosticOn) to see R². Choose the model with the best R² that also makes sense for the context.

Compare regression models using R²

After fitting several models (linear, quadratic, exponential…), you need to decide which fits the data best - R² is the key tool.

  1. Fit each candidate model in turn and note the R² value each time.
  2. Turn DiagnosticOn first (2nd → 0, scroll to DiagnosticOn, ENTER) - then R² appears after every regression.TI-84
  3. R² is shown automatically after each regression calculation in the Statistics menu.Nspire
  4. R² (displayed as r²) appears in the regression output; run CALC → REG for each model type and compare.Casio
  5. The model with R² closest to 1 explains the most variation in y - but also consider whether the model makes sense for the context.
  6. An exponential model with R² = 0.98 is better than a linear model with R² = 0.91 for the same data.

Tip: R² alone doesn't tell you whether the model is appropriate - always look at the scatter plot too. A high R² on a model that shouldn't apply is meaningless.

See the full GDC guide for more calculator models and topics.

Quick questions

How do I set up a linear model from a word problem?

Identify the fixed starting value (cc) - the value when the input is zero - and the constant rate of change (mm) from the context, then write f(x)=mx+cf(x) = mx + c.

What is a piecewise linear model?

A model built from two or more linear pieces, each valid over its own interval of the input, such as one rate for the first 100 units and a different rate after that. Always check which piece applies before substituting a value in. For calculator steps, see Using your GDC on the full topic page.

How do I find a linear model from two data points?

Find the gradient from the two points, then substitute one point to find cc. From (1,5)(1,5) and (3,11)(3,11), m=3m=3, then 5=3+c5=3+c gives c=2c=2, so f(x)=3x+2f(x)=3x+2.

What does a negative gradient mean?

The quantity decreases as xx increases. A gradient of m=−4m=-4 means the quantity falls by 44 units for each unit increase in xx.

How can I tell whether a linear model is suitable for data?

Check whether the values change by a constant amount for equal steps in xx. The values 3,7,11,153,7,11,15 at x=1,2,3,4x=1,2,3,4 rise by 44 each time, so a linear model fits.

Ready to practise properly?

12 linear-model questions, marked instantly like the real exam.