James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI HL › Functions › Log scales & linearising

Log scales & linearising data

Taking logarithms turns curves into straight lines. If logy against logx is a straight line, the data follow a power model y=axb; if lny against x is a straight line, they follow an exponential model y=aekx. You find the line with linear regression and convert its gradient and intercept back into the model.

AHL 2.10HL onlyPaper 1Paper 2GDC allowed≈ 45 min to work through
Before you start: laws of logarithms (Laws of logarithms) and linear regression (Correlation & regression).

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 y=axb with a log-log graphAHL 2.10
  • Linearise an exponential model y=abx or y=aekx 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.

The big idea

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 y=axb becomes logy=loga+blogx, and an exponential y=aekx becomes lny=lna+kx. 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

Linearising a power model Not in booklet: learn it
y=axb⟺logy=blogx+loga

Plot logy against logx: a straight line with gradient b and intercept loga. Logs to base 10 or base e both work, as long as you are consistent.

Worked example 1Paper 1
A log-log graph of log10y against log10x is a straight line with gradient 1.5 and intercept 0.3. Find the relationship between y and x.
logy=1.5logx+0.3
y=100.3x1.5
Raise 10 to both sides: 101.5logx=x1.5.
y=2.00x1.5
Worked example 2Paper 2
Data are shown below. Show that a power model is suitable and find it.
x: 1, 2, 4, 6, 8, 10; y: 3.1, 8.4, 24.5, 43.0, 68.9, 96.2
Find logx and logy for each point, then the linear regression of logy on logx.
In a spreadsheet: columns log(x) and log(y).
logy=1.494logx+0.4844, with r=0.99988
r very close to 1: the logged data are almost perfectly linear, so a power model fits.
a=100.4844=3.05, b=1.49: y=3.05x1.49

2.3 Exponential models: semi-log graphs

Linearising an exponential model Not in booklet: learn it
y=aekx⟺lny=kx+lnay=abx⟺logy=xlogb+loga

Plot lny (or logy) against x: a straight line means an exponential model.

Worked example 3Paper 1
A graph of lny against x is a straight line with gradient 0.25 and intercept 1.2. Find y in terms of x.
lny=0.25x+1.2
y=e1.2e0.25x=3.32e0.25x
Worked example 4Paper 2
The mass, m grams, of a radioactive sample is measured every two days.
t: 0, 2, 4, 6, 8, 10; m: 250, 183, 138, 101, 76, 56. Fit a model of the form m=Aekt and find the half-life.
Regression of lnm on t: lnm=−0.1490t+5.516, r=−0.99992
Strong linear relationship in the semi-log data.
k=−0.149, A=e5.516=249: m=249e−0.149t
Half-life: e−0.149t=0.5⇒t=ln20.149=4.65 days
Use the unrounded k.

2.4 Which graph straightens the data?

Straight line on a graph of …Model
y against xlinear y=mx+c
lny against xexponential y=aekx
lny against lnxpower y=axb
y against lnxlogarithmic y=a+blnx
Worked example 5 (faded)Paper 1
logy=2logx+1. Write y in terms of x.
y=101x2= 10x2  ← you work this out
On your TI-Nspire Calculator tricks →

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 a. The intercept is loga, so a=10intercept (or eintercept for ln).
  • Mixing bases: using log10 for x and ln for y.
  • 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 logy on logx, so r 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 lny against x is approximately linear" or "r is close to −1".
  • Label the axes of a log graph with what is plotted, such as "lnm", not just "m".
  • 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.

FluencyP1
lny=3lnx−0.5. Find y in terms of x.
y=e−0.5x3=0.607x3
FluencyP2
logy=0.2x+1.4. Write y in the form abx.
y=101.4(100.2)x=25.1(1.58)x
FluencyP3
Which graph straightens y=5x0.7?
logy against logx
FluencyP4
On a log scale, how many times larger is the value at 6 than the value at 4 (base 10)?
102=100 times
Problem solvingP5
A log-log graph passes through (0,0.48) and (2,3.48). Find the power model.
Gradient 1.5, a=100.48=3.02: y=3.02x1.5
Problem solvingP6
Explain how to tell from two graphs whether data follow y=aekx or y=axb.
Plot lny against x and lny against lnx; the one that is a straight line identifies the model.

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.

Question 1Paper 1[6 marks]

Two quantities x and y are related by y=axb. A graph of log10y against log10x is a straight line that passes through the points (0,0.48) and (2,3.48).

  • (a)Find the gradient of the line.[2]
  • (b)Find the value of a and the value of b.[3]
  • (c)Find y when x=5.[1]
(a)
3.48−0.482−0(M1)
1.5A1
(b)
logy=1.5logx+0.48(M1)
b=1.5A1
a=100.48=3.02A1
(c)
33.8A1
Question 2Paper 2[9 marks]

The mass, m grams, of a radioactive sample is measured every two days. The results are shown in the table.
t (days): 0, 2, 4, 6, 8, 10
m (g): 250, 183, 138, 101, 76, 56

  • (a)Find the equation of the regression line of lnm on t.[2]
  • (b)Write down the value of the correlation coefficient of lnm and t, and explain why it shows that an exponential model is suitable.[2]
  • (c)Hence write down a model of the form m=Aekt.[2]
  • (d)Find the half-life of the sample.[2]
  • (e)Estimate the mass after 15 days.[1]
(a)
lnm=−0.149t+5.52A1A1
(b)
r=−0.99992A1
very strong linear correlation between lnm and tR1
(c)
A=e5.516=249(M1)
m=249e−0.149tA1
(d)
e−0.149t=0.5(M1)
4.65 daysA1
(e)
26.6 gA1
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.

PaperQuestionFocusDifficulty
May 2023 · TZ1 · Paper 1Q14Reading a power model from a log-log graph★★☆
May 2025 · TZ2 · Paper 1Q14Linearising puppy growth data with logs★★☆
Nov 2023 · Paper 1Q10Exponential decay from a semi-log regression★★☆
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake