Scroll to turn the page
Math: Applications and Interpretation · Functions
choosing, fitting and testing a model
A cup of coffee at 90.6 °C cools in a 22 °C room, measured every 4 minutes. Which function describes it, and how well?
The shape suggests a model that falls quickly, then levels off just above room temperature: . It has one free parameter, . In the figure slides until the red curve passes as close as it can to the points: the red residuals (measured minus modelled) shrink, and the sum of their squares is least at .
That is what your calculator does when it fits a model. This chapter is the IB toolkit of models (linear, piecewise, quadratic, exponential, power, cubic and sinusoidal), how to read them with technology, the modelling cycle, and correlation. HL adds logistic models, logarithmic scales and .
the gradient is a rate of change
A taxi charges $5 for the first 2 km, then a fixed amount per kilometre. Two trips: 3 km costs $7.40 and 8 km costs $19.40.
In context the gradient is a rate, in dollars per kilometre: each extra kilometre adds $2.40. The point–gradient form gives , that is . The same line can be written or . Parallel lines share a gradient; perpendicular gradients multiply to .
The intercept, $0.20, means nothing here: the line only applies for . The whole fare is a piecewise linear model (2.5), and its two pieces meet at , where :
what goes in, what comes out, and back again
A function gives each input exactly one output. turns degrees Celsius into degrees Fahrenheit.
The domain is the set of inputs the model is used for, and context decides it. For liquid water at sea level, , so the range is : the red bars on the axes.
The inverse undoes the function. Swap the roles and solve: , written . So : body temperature. Every point on is a point on , so the blue graph is the red one reflected in . The domain of is the range of , and .
The two graphs meet on the mirror, at : −40 degrees is the same in both scales.
key features found with technology
In this course you graph with a calculator and read the key features (2.3): intercepts, local maxima and minima, zeros, asymptotes and symmetry. Then you solve equations with the graph (2.4).
For : the -intercept is ; there is a local maximum at and a local minimum at ; the zeros are .
To solve , graph both sides and find where they intersect: . The same method solves equations algebra can’t, such as : or .
In an exam, sketch means show the shape and the key features labelled; draw means accurately, to scale. Give answers to 3 significant figures unless told otherwise.
up and back down
A ball is thrown up at 14 m/s from 1.5 m above the ground. Its height after seconds is modelled by
A quadratic model has an axis of symmetry . Here , so the parabola opens down and the vertex is a maximum: at s the ball is 11.5 m up.
The ball lands at the positive zero, s (from the calculator, or the quadratic formula). So in context the domain is and the range : the other zero, below , means nothing.
The blue ball on the axis is the real motion, straight up and down; the graph spreads it out in time. Given data instead of a formula, quadratic regression on the calculator finds , and .
growth and decay by a constant factor
Exponential models multiply by the same factor in each equal time step: , or with base , . The line is a horizontal asymptote.
A bacteria colony: , in hours. Each hour it is multiplied by : 22.1% growth per hour. It doubles when , every hours.
A drug in the blood: mg. A negative exponent is decay, with a half-life of the same 3.47 hours: 800, 400, 200, 100 mg.
The two curves cross where , at h. Here ; the opener’s coffee has , the room it cools toward.
y = axⁿ, and a box to fold
In , varies directly with when , and inversely when . Every such curve passes through .
Inverse variation: the time for a 240 km trip is ; double the speed and the time halves. Direct variation: a dropped stone falls metres, so in twice the time it falls four times as far. Given one data point you find ; given too, you have the model.
A cubic model comes from multiplying three lengths. Cut squares of side from the corners of a 30 cm by 20 cm card and fold up the sides:
The calculator’s maximum: cm gives the largest box, cm³. The domain is : at 10 cm the shorter side is used up.
what goes round comes round
A Ferris wheel of radius 18 m turns once every 30 minutes, its centre 20 m up. You board at the bottom. Your height after minutes is a sinusoidal model (angles in degrees):
In or : the amplitude is (18 m, centre to top), the period is (so ), and the principal axis is , halfway between the maximum 38 m and the minimum 2 m. A negative starts the cosine at its lowest point.
When are you above 30 m? Graph too and intersect: from to min, about 9.4 minutes of each turn. Tides, daylight hours and temperatures through a year are modelled the same way.
choose, fit, test, reflect
Modelling is a cycle: pose the problem, choose a model, fit it to data, test it, reflect, and improve it.
A sunflower is measured for 8 weeks. The points lie close to a line (), so a linear model is a reasonable first choice: . The gradient says it grows about 24.5 cm a week.
Test it: the model predicts cm in week 14. The real sunflower is 253.3 cm. The prediction was an extrapolation, beyond the data, and the context breaks it: sunflowers stop growing.
Reflect: a good model fits the data, makes sense in context (no negative heights, no endless growth), and states its limits. Here the fix is a model with a ceiling: the logistic model on the HL page. A model is judged by its use, not by being true.
Pearson’s r, and predicting y from x
Ten students’ hours of revision and test scores . Pearson’s product-moment correlation coefficient measures how close the points lie to a straight line: .
Here : a strong positive linear correlation. Near is strong, near 0 is little linear correlation. Correlation is not causation: a third factor can drive both.
The regression line of on minimises the squared vertical residuals:
It passes through the mean point , and its gradient means about 5 more marks per extra hour. Use it only to predict from .
Predicting inside the data’s range is interpolation: 5.5 hours gives . Outside it is extrapolation, and unreliable: 15 hours “predicts” 112.7 out of 100.
does one go up when the other does?
Shares of a post on each of its first 8 days: 6, 4, 9, 14, 25, 46, 88, 170. They rise faster and faster, so they are far from a line: .
Spearman’s rank correlation coefficient replaces each value by its rank (1 for the smallest) and finds Pearson’s for the ranks. In the figure the points walk to their ranks. Only days 1 and 2 disagree: day 1 had more shares. With no tied ranks,
where is the difference in ranks. means the order agrees perfectly: whenever one increases, so does the other.
Prefer when the relationship is monotonic but not linear (as here), when there are outliers (ranks blunt them), or when the data are ranks already, such as two judges’ placings. Use Pearson’s for straight-line relationships, and before fitting a regression line.
growth with a ceiling
The sunflower needs a model that grows like an exponential at first and then levels off. That is the logistic model:
is the carrying capacity, the horizontal asymptote. For the sunflower , , : it starts at cm and grows fastest at half the ceiling, 130 cm, when weeks.
Early on, is large and the model is close to the exponential . By week 14 they part completely: the logistic gives 254.4 cm (the sunflower: 253.3 cm); the exponential, 10,891 cm.
HL also uses natural logarithmic models , sinusoidal models with a horizontal shift, , and piecewise models built from any of these, joined where the context changes.
log–log and semi-log graphs
Planets’ distances from the Sun (in AU) and years span two orders of magnitude. On ordinary axes Mercury, Venus, Earth and Mars crowd into a corner. Logarithms spread them out.
If , take logs of both sides:
a straight line on a log–log graph of against , with gradient and intercept . For the planets the line has gradient and intercept , so and : Kepler’s third law, .
If , then : straight on a semi-log graph of against , gradient . So: plot the logs, and whichever graph is straight tells you the kind of model; its gradient and intercept give the parameters.
how much of the variation a model explains
A test car’s stopping distance at 11 speeds. Which model fits: linear, quadratic or exponential? The calculator fits each by least squares and reports the coefficient of determination:
the proportion of the variation in that the model explains. For a linear model .
Here: linear , quadratic 0.998, exponential 0.902. Watch the residuals in the figure: the line misses in a pattern (above, below, above), the quadratic’s are small and random.
The quadratic, , also makes sense: thinking distance grows like , braking distance like . Choose by context and residuals as well as : adding parameters never lowers , so the highest is not always the best model.