Linear Models (AI HL)
A linear model describes a quantity that changes by the same amount for every unit increase in : the gradient is the rate of change and is the value when . A piecewise linear model uses a different line over each interval. It also covers interpreting and in context. It's part of the broader Linear, Quadratic & Cubic Models topic.
12 questions on this sub-topic.
Syllabus
| Code | Syllabus content |
|---|---|
| SL2.5 | Modelling with linear models , including piecewise linear models. Quadratic models , : axis of symmetry, vertex, zeros and roots, intercepts. Exponential growth/decay models or , with horizontal asymptote. Direct/inverse variation , including the y-axis as a vertical asymptote when . Cubic models . Sinusoidal models or : amplitude, period, principal axis. |
Official IB source: Mathematics: applications and interpretation subject brief (PDF, ibo.org).
Skills practised on this page:
- Model a data set or context with a linear function.
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
In the formula booklet. is the constant rate of change, is the fixed value when .
Setting up a linear model
Identify the fixed starting value () and the constant rate of change () from the context, then write . 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 is the change in divided by the change in . In context it is the rate of change, and it has units such as pounds per hour.
e.g. A line through and has .
What does the constant c mean in context?
The constant is the value of the model when , so it represents a starting value or a fixed charge.
e.g. A taxi charges a fixed amount of plus per kilometre, so and 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. for and for , so and .
What does the x-intercept of a linear model mean?
The -intercept is the value of where , found by solving . In context it shows when the quantity runs out or reaches zero.
e.g. For , when , so the value reaches zero after years.
Worked examples
A laptop bought for $1200 loses $200 of value each year.
(a) Write the value after years.
(b) Find when it reaches zero value.
Worked solution
(a) M1 A1
(b) M1
years. A1On the GDC. Solve for the solution near . The calculator shows about 6. The calculator steps below are for (b).
A phone plan charges \$0.15 per minute for the first 100 minutes, then \$0.10 per minute thereafter.
(a) Write the cost as a piecewise function.
(b) Find the cost of 250 minutes.
Worked solution
(a) M1 A1
(b) M1
A1
The radius of a circle grows as cm.
(a) Express the area as a function of
(b) Find the area at
Worked solution
(a) A1
(b) At : M1
A1
cm. A1On the GDC. Find the area when t is 4 The calculator shows about 50.3. The calculator steps below are for (b).
Common mistakes
- Swapping the rate and the fixed value. is what changes each step, is the one-off starting amount - mixing them up (e.g. writing instead of ) 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.
The heart of AI modelling - find the best-fitting curve for a data set, not just a straight line.
- Enter the data in two lists (x and y).
- STAT → EDIT to enter L1/L2, then STAT → CALC → QuadReg / CubicReg / ExpReg / PwrReg / SinReg.TI-84
- In a Lists & Spreadsheet page enter the data, then menu → Statistics → Stat Calculations → choose the regression type.Nspire
- 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.
After fitting several models (linear, quadratic, exponential…), you need to decide which fits the data best - R² is the key tool.
- Fit each candidate model in turn and note the R² value each time.
- Turn DiagnosticOn first (2nd → 0, scroll to DiagnosticOn, ENTER) - then R² appears after every regression.TI-84
- R² is shown automatically after each regression calculation in the Statistics menu.Nspire
- R² (displayed as r²) appears in the regression output; run CALC → REG for each model type and compare.Casio
- The model with R² closest to 1 explains the most variation in y - but also consider whether the model makes sense for the context.
- 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 () - the value when the input is zero - and the constant rate of change () from the context, then write .
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 . From and , , then gives , so .
What does a negative gradient mean?
The quantity decreases as increases. A gradient of means the quantity falls by units for each unit increase in .
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 . The values at rise by each time, so a linear model fits.
Ready to practise properly?
12 linear-model questions, marked instantly like the real exam.