CHAPTER 05 · FUNCTIONS
Linear functions & models
Progress stays on this device
papers AI SL chapter & section analysis
Your chapter
Use equations and evidence to turn a practical question into a useful model.
Read all chapter notes
5.1
Functions
A function assigns exactly one output to each allowed input. State what the input and output represent, including units. Use to the output at x, rather than a multiplication of f by x.
The domain contains allowed inputs; the range contains outputs actually reached. A context may restrict a formula to non-negative time, integer quantities or a finite interval. Read intercepts, maxima, minima and intersections with these restrictions in mind.
An inverse reverses an input-output relationship when each output comes from one input. Swap x and y and solve, or read the reversed relationship from a graph. Restrict a domain when necessary; a quadratic on the whole real line is not one-to-one.
Watch out: The inverse is not ; a physical domain can exclude an algebraic solution.
Worked example
A delivery charge is pounds for km. Find .
- Substitute into the charge model.
- =£16.
5.2
Linear models
A linear model describes a constant rate of change. The gradient m is change in output divided by change in input and has output-units per input-unit. The intercept c is the predicted output at input zero, if zero is meaningful.
Two distinct input-output pairs determine a line. Calculate the gradient before finding the intercept, and retain the correct scale when a variable is measured in hundreds or thousands. Intersections compare two models, such as revenue and cost.
Use a line only over a justified domain. An apparently negative cost or an unlimited prediction may show that the model is being used outside its intended range. Check predictions against observations and explain assumptions.
Watch out: A fixed fee is an intercept, not part of the rate charged for each unit.
Worked example
A printer charges £14 for 100 leaflets and £26 for 300. Model cost . Give m and c.
- pounds per leaflet.
- Using gives .
5.3
Arithmetic sequences
An arithmetic sequence changes by a fixed amount d at each step. Distinguish the first term from a value at time zero. If the first observation is labelled year 0, adapt the indexing explicitly rather than automatically using .
The nth term predicts one value; a series adds several values. Recover a common difference from two known terms by dividing the difference in values by the difference in indices. Use the first and last terms to sum a finite arithmetic series.
In a context, n is usually an integer. For a threshold, solve the corresponding inequality and then choose the first permitted integer, checking the preceding term. A constant annual increment differs from compound percentage growth.
Watch out: The twentieth term has nineteen increments after the first term.
Worked example
A theatre has 18 seats in row 1 and 3 more in every successive row. How many seats are in row 12?
- Use and .
- seats.
5.4
The modelling process
Start a model by stating a clear question, identifying variables and units, collecting relevant information and making explicit assumptions. Simplify the situation enough to make mathematical work possible while keeping the features needed to answer the question.
Choose a relation, fit or calculate its parameters, then interpret predictions in the original context. A model’s output is not automatically a valid practical decision: apply capacity, non-negativity and integer constraints when appropriate.
Validate against data not merely the equations used to construct the model. Examine residuals and plausible parameter meanings, identify systematic errors, and revise assumptions or the model family if evidence warrants it. Extrapolation is less secure than interpolation.
Watch out: A model that passes exactly through its fitted points has not thereby been validated at new points.
Worked example
A model predicts 240 visitors; the observed attendance is 260. Find observed minus predicted.
- Use residual=observation−prediction.
- The residual is visitors: the model underpredicts.
