Skip to study

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 f(x)\displaystyle f\left(x\right) to mean⁡\displaystyle \operatorname{mean} 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.

y=f(x)\displaystyle y = f\left(x\right); f−1(f(x))=x\displaystyle f^{-1}\left(f\left(x\right)\right) = x on a domain where the inverse exists. Intersections satisfy f(x)=g(x)\displaystyle f\left(x\right) = g\left(x\right).

Watch out: The inverse f−1(x)\displaystyle f^{-1}\left(x\right) is not 1f(x)\displaystyle \frac{1}{f\left(x\right)}; a physical domain can exclude an algebraic solution.

Worked example

A delivery charge is C(d)=4+1.5d\displaystyle C\left(d\right) = 4 + 1.5 d pounds for 0≤d≤12\displaystyle 0 \le d \le 12 km. Find C(8)\displaystyle C\left(8\right).

  1. Substitute d=8\displaystyle d = 8 into the charge model.
  2. C(8)=4+1.5×8\displaystyle C\left(8\right) = 4 + 1.5 \times 8=£16.

5.2

Linear models

A linear model y=mx+c\displaystyle y = mx + c 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.

m=y2−y1x2−x1\displaystyle m = \frac{y_{2} - y_{1}}{x_{2} - x_{1}}; y=mx+c\displaystyle y = mx + c; c=y1−mx1\displaystyle c = y_{1} - mx_{1}.

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 C(n)=mn+c\displaystyle C\left(n\right) = mn + c. Give m and c.

  1. m=26−14300−100=12200=0.06\displaystyle m = \frac{26 - 14}{300 - 100} = \frac{12}{200} = 0.06 pounds per leaflet.
  2. Using 14=0.06×100+c\displaystyle 14 = 0.06 \times 100 + c gives c=8\displaystyle c = 8.

5.3

Arithmetic sequences

An arithmetic sequence changes by a fixed amount d at each step. Distinguish the first term u1\displaystyle u_{1} from a value at time zero. If the first observation is labelled year 0, adapt the indexing explicitly rather than automatically using n−1\displaystyle n - 1.

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.

un=u1+(n−1)d\displaystyle u_{n} = u_{1} + \left(n - 1\right) d; Sn=n(u1+un)2\displaystyle S_{n} = \frac{n \left(u_{1} + u_{n}\right)}{2}.

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?

  1. Use u1=18\displaystyle u_{1} = 18 and d=3\displaystyle d = 3.
  2. u12=18+11×3=51\displaystyle u_{12} = 18 + 11 \times 3 = 51 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.

Residual=observed−predicted. Percentage error=|prediction−observation|/|observation|×100%, for non-zero observation.

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.

  1. Use residual=observation−prediction.
  2. The residual is 260−240=20\displaystyle 260 - 240 = 20 visitors: the model underpredicts.