Log scales & linearising data
Taking logarithms turns curves into straight lines. If against is a straight line, the data follow a power model ; if against is a straight line, they follow an exponential model . You find the line with linear regression and convert its gradient and intercept back into the model.
1What you need to know
Tick these off as you go. By the end of the page you should be able to do all of them without notes.
- Use logarithmic scales for quantities that range over many orders of magnitudeAHL 2.10
- Linearise a power model with a log-log graphAHL 2.10
- Linearise an exponential model or with a semi-log graphAHL 2.10
- Find model parameters from the gradient and intercept of the straight lineAHL 2.10
- Use linear regression on transformed data with the GDCAHL 2.10
2Notes & worked examples
Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.
Our eyes are good at spotting straight lines and bad at telling one curve from another. Logs turn multiplication into addition, so a power law becomes , and an exponential becomes . Both are straight lines, which you can test and fit with linear regression.
2.1 Log scales
On a logarithmic axis, equal distances represent equal ratios: 1, 10, 100 and 1000 are equally spaced. Log scales show data that range from tiny to huge (sound intensity, earthquake energy, sizes of planets) on one sensible diagram.
2.2 Power models: log-log graphs
Plot against : a straight line with gradient and intercept . Logs to base 10 or base both work, as long as you are consistent.
: 1, 2, 4, 6, 8, 10; : 3.1, 8.4, 24.5, 43.0, 68.9, 96.2
2.3 Exponential models: semi-log graphs
Plot (or ) against : a straight line means an exponential model.
: 0, 2, 4, 6, 8, 10; : 250, 183, 138, 101, 76, 56. Fit a model of the form and find the half-life.
2.4 Which graph straightens the data?
| Straight line on a graph of … | Model |
|---|---|
| against | linear |
| against | exponential |
| against | power |
| against | logarithmic |
In a Lists & Spreadsheet page, put the data in columns xx and yy, then in the header cells of two new columns type =log(xx) and =log(yy) (or ln). Use menu → Statistics → Stat Calculations → Linear Regression (mx+b) on the new columns. The TI-Nspire also has Power Regression and Exponential Regression, which give the same model directly: use them to check, but show the linear regression on logs if the question asks you to linearise.
3Explore it
Data from a power model (or an exponential model) form a curve on ordinary axes. Switch to the log-log or semi-log view: the right transformation straightens the points exactly.
4Common mistakes & exam tips
Common mistakes
- Taking the intercept of the log-log line as . The intercept is , so (or for ln).
- Mixing bases: using for and for .
- Using a semi-log graph for a power model, or a log-log graph for an exponential model.
- Rounding the regression coefficients before converting them back.
- Forgetting that the regression is of on , so measures how straight the logged data are, not the original data.
Exam tips
- Write the linear equation in logs first, then convert it into the model: examiners give a mark for each step.
- Say why a model is suitable: "the graph of against is approximately linear" or " is close to −1".
- Label the axes of a log graph with what is plotted, such as "", not just "".
- Use the GDC’s power or exponential regression to check your answer.
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB Maths AI HL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.
Two quantities and are related by . A graph of against is a straight line that passes through the points and .
- (a)Find the gradient of the line.[2]
- (b)Find the value of and the value of .[3]
- (c)Find when .[1]
| (a) | |
| (M1) | |
| A1 | |
| (b) | |
| (M1) | |
| A1 | |
| A1 | |
| (c) | |
| A1 | |
The mass, grams, of a radioactive sample is measured every two days. The results are shown in the table.
(days): 0, 2, 4, 6, 8, 10
(g): 250, 183, 138, 101, 76, 56
- (a)Find the equation of the regression line of on .[2]
- (b)Write down the value of the correlation coefficient of and , and explain why it shows that an exponential model is suitable.[2]
- (c)Hence write down a model of the form .[2]
- (d)Find the half-life of the sample.[2]
- (e)Estimate the mass after 15 days.[1]
| (a) | |
| A1A1 | |
| (b) | |
| A1 | |
| very strong linear correlation between and | R1 |
| (c) | |
| (M1) | |
| A1 | |
| (d) | |
| (M1) | |
| days | A1 |
| (e) | |
| g | A1 |
| Accept 26.6 to 26.8 from rounded values. | |
7Check yourself
Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.
8Past-paper practice
Once you are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2023 · TZ1 · Paper 1 | Q14 | Reading a power model from a log-log graph | ★★☆ |
| May 2025 · TZ2 · Paper 1 | Q14 | Linearising puppy growth data with logs | ★★☆ |
| Nov 2023 · Paper 1 | Q10 | Exponential decay from a semi-log regression | ★★☆ |
