IA modelling, step by step · Logarithmic
Logarithmic model, step by step: y = a ln x + b
When something keeps growing but more and more slowly — skills, learning, diminishing returns — try y = a ln x + b. Plot y against ln x: if the points lie on a line, its gradient is a and its intercept is b.
Example data, invented for this guide. The context is realistic, but the numbers were made up to show the method. Use your own measured or sourced data in your IA.
When to use it
The shape of the data
- Steep at first, then flattening out, but with no sign of a ceiling.
- Equal ratios of x give equal steps in y (doubling x adds the same amount each time).
- A plot of y against ln x is close to straight.
The context
- Learning and practice: speed or score against time spent.
- Diminishing returns: sales against advertising spend, yield against fertiliser.
- Scales that are already logarithmic: decibels, pH, earthquake magnitude.
Course fit: AA (logarithms and the laws of logs) and AI HL (logarithmic models and linearising data). At AI SL it is fine in an IA if you explain the method as new to you.
The example data
A student learning to touch-type records their speed on a 1-minute test at the end of chosen practice days.
| i | x: Day of practice | y: Typing speed (words per minute) |
|---|---|---|
| 1 | 1 | 18 |
| 2 | 2 | 25 |
| 3 | 3 | 27 |
| 4 | 5 | 33 |
| 5 | 7 | 35 |
| 6 | 10 | 39 |
| 7 | 14 | 41 |
| 8 | 20 | 45 |
| 9 | 28 | 48 |
The method: linearise, fit a line, back-substitute
Transform x to X = ln x, fit the least-squares line to (ln x, y) with the usual sums, then read a and b from its gradient and intercept.
Step 1 · Linearise
If y = a ln x + b, then plotting y against X = ln x gives a straight line with gradient a and intercept b. Transform the x values (natural log, ln):
Step 2 · Tabulate the sums
| i | ln x | y | (ln x)² | (ln x)y | y² |
|---|---|---|---|---|---|
| 1 | 0 | 18 | 0 | 0 | 324 |
| 2 | 0.69315 | 25 | 0.48045 | 17.329 | 625 |
| 3 | 1.0986 | 27 | 1.2069 | 29.663 | 729 |
| 4 | 1.6094 | 33 | 2.5903 | 53.111 | 1089 |
| 5 | 1.9459 | 35 | 3.7866 | 68.107 | 1225 |
| 6 | 2.3026 | 39 | 5.3019 | 89.801 | 1521 |
| 7 | 2.6391 | 41 | 6.9646 | 108.20 | 1681 |
| 8 | 2.9957 | 45 | 8.9744 | 134.81 | 2025 |
| 9 | 3.3322 | 48 | 11.104 | 159.95 | 2304 |
| Σ | 16.6167 | 311.000 | 40.4088 | 660.965 | 11523.0 |
n = 9 points. The transformed values are rounded here; keep them unrounded in your calculator or spreadsheet.
In the full worked example
- The rest of the method: steps 3 to 7 and the residual plot
- What the model tells you, in context
- GDC key sequences: TI-84 Plus CE, TI-Nspire CX and Casio fx-CG50
- Desmos regression syntax
- How to write it up in your IA
- Common mistakes
- Is this good enough for Criterion E? The checklist
Evaluate this model
Questions to answer in your own words, about your own data. They are prompts, not sentences to copy.
- The model has no ceiling: should your quantity level off instead?
- What does the model do as x gets close to 0, and does that make sense?
Then work through the general questions on evaluating a model (extrapolation, the parameters, residuals, comparing models, outliers, assumptions and improvements) and the notes on accuracy and rounding. In the free Grapher, fit the model with ~ and open “What this model means” for the same prompts with your own numbers.
IA ideas that use a logarithmic model
Explorations from our idea list whose mathematics includes this model. Each research question is a starting point to make your own.
- Does money buy a longer life? GDP and life expectancy: Is life expectancy better modelled as a linear or logarithmic function of GDP per person across countries, and has the relationship shifted between 1990 and today?
How this earns marks
A logarithmic model can earn marks under every criterion: the fit and its explanation under Criterion E, your judgement of it (residuals, the domain, what the parameters mean) under Criterion D, and the reasons you chose it under Criterion C. What examiners look for, criterion by criterion and the mistakes that cost marks are on the modelling guide.
Get feedback on your write-up Self-check your draft Model my data
Frequently asked questions
Can I use log base 10 instead of ln?
Yes: y = a log₁₀ x + b is the same family of curves with a different a (a₁₀ = a × ln 10). Use one base throughout and say which.
Next steps
- Criterion E: use of mathematicsWhat “maths at the level of the course” means for a model, at SL and HL.
- Criterion D: reflectionJudging a model: residuals, comparisons, limitations and implications.
- Self-check your draftTick through the criteria for your own exploration.
- Get feedback on your write-upCriterion-by-criterion feedback on your draft, with evidence from your own text.
Related models: Power y = a·xⁿ (log–log) · Exponential y = a e^(kx) + c and y = a·bˣ · Choosing and comparing models. Or model your own data, and see what the IA package adds.
Free: the IA checklist, criterion by criterion
Every check for Criteria A–E in a 4-page PDF, the mistakes that cost the most marks and a self-assessment grid. We'll email it to you, and for three weeks your weekly email carries one IA tip, timed to your deadline if you give it. Free — no account, no payment.
While you wait for the email: read the full modelling workflow →