01 / 21

Logarithmic Scales
& Transformations

Learn how logarithmic transformations linearise exponential and power data, enabling powerful modelling with semi-log and log-log plots.

IB Math: Applications & Interpretation

What Is a Logarithmic Scale?

On a linear scale, equal distances represent equal differences: 1, 2, 3, 4 ... On a logarithmic scale, equal distances represent equal ratios: 1, 10, 100, 1000 ... Each step is a factor of 10.

Linear Scale 0 250 500 750 1000 Logarithmic Scale 1 10 100 1000 ×10 ×10 ×10

Why Use Logarithmic Scales?

Huge Ranges
Earthquake magnitudes span factors of billions. A log scale fits them on one axis.
Reveal Patterns
Exponential growth that looks like a wall on a linear plot becomes a straight line on a log plot.
Better Models
Linearising data lets us use linear regression to find parameters of non-linear models.

The Key Idea: Linearisation

If data follows a non-linear model, applying \( \log \) to one or both variables can transform it into a linear relationship. We then apply linear regression to the transformed data and convert back.

Original Data x y → take log After log Transform x log y

Exponential Model: Semi-Log Plot

1
Gradient of the line \( = \log b \), so \( b = 10^{\text{gradient}} \).
2
\( Y \)-intercept of the line \( = \log a \), so \( a = 10^{\text{intercept}} \).
3
This is called a semi-log plot: one axis linear (\( x \)), one axis logarithmic (\( \log y \)).

Power Model: Log-Log Plot

1
Gradient of the line \( = n \) (the power/exponent).
2
\( Y \)-intercept \( = \log a \), so \( a = 10^{\text{intercept}} \).
3
This is called a log-log plot: both axes are logarithmic.

Semi-Log vs Log-Log

Semi-Log Plot Log-Log Plot
Model type \( y = a \cdot b^x \) \( y = a \cdot x^n \)
Axes \( x \) vs \( \log y \) \( \log x \) vs \( \log y \)
Gradient gives \( \log b \) \( n \)
Intercept gives \( \log a \) \( \log a \)
Example Population growth Kepler's third law

How to Apply the Transformation

1
Plot the raw data. Does it look exponential or power-like?
2
Create a new table with \( \log y \) (and \( \log x \) if testing a power model).
3
Plot the transformed data. If it is roughly linear, your model is confirmed.
4
Run linear regression on the transformed data to find gradient \( m \) and intercept \( c \).
5
Convert back to original parameters: \( a = 10^c \) and \( b = 10^m \) (or \( n = m \)).

Example 1: Bacterial Growth

A biologist counts bacteria every hour. The data is:

Time \( t \) (hours) 0 1 2 3 4
Population \( P \) 50 120 290 700 1680
\( \log_{10} P \) 1.70 2.08 2.46 2.85 3.23

Example 1: Semi-Log Plot

0 1 2 3 4 t (hours) 1.5 2.0 2.5 3.0 log P best-fit line

Example 2: Planet Orbits

Kepler's third law relates a planet's orbital period \( T \) (years) to its distance \( d \) (AU) from the Sun. We suspect \( T = a \cdot d^n \).

Planet \( d \) (AU) \( T \) (years) \( \log_{10} d \) \( \log_{10} T \)
Mercury0.390.24-0.41-0.62
Earth1.001.000.000.00
Mars1.521.880.180.27
Jupiter5.2011.860.721.07
Saturn9.5429.460.981.47

Example 2: Log-Log Plot

log d log T -0.5 0 0.5 1.0 -0.5 0 0.5 1.0 1.5 gradient ≈ 1.5

Example 3: Finding Parameters from Regression

A GDC regression on the semi-log data \( (x, \log y) \) gives the line \( Y = 0.204x + 1.48 \). Find the original model \( y = a \cdot b^x \).

1
Intercept: \( \log a = 1.48 \), so \( a = 10^{1.48} \approx \) 30.2.
2
Gradient: \( \log b = 0.204 \), so \( b = 10^{0.204} \approx \) 1.60.
3
Model: \( y \approx 30.2 \times 1.60^x \).

\( \ln \) vs \( \log_{10} \): Which to Use?

\( \ln \) (natural log)
Used when model is \( y = ae^{kx} \). Gradient gives \( k \) directly. Common in calculus and continuous-growth contexts.
\( \log_{10} \)
Used when model is \( y = a \cdot b^x \) or \( y = ax^n \). Gradient gives \( \log_{10} b \) or \( n \). Common in IB exams and GDC output.

Common Mistakes

✕ Wrong Base
Using \( \ln \) to transform but then writing \( a = 10^c \) instead of \( a = e^c \). Always match the base.
✕ Logging Both Axes for Exponential
An exponential model needs only \( \log y \), not \( \log x \). Taking \( \log x \) turns it into a log-log plot, which tests for a power model.
✕ Forgetting to Convert Back
Leaving the answer as \( \log a = 1.48 \) instead of computing \( a = 10^{1.48} \approx 30.2 \). The question asks for the original model.

Summary of Transformations

Original Model Transform Linear Form Recover Parameters
\( y = a \cdot b^x \) \( Y = \log y \) \( Y = (\log b)x + \log a \) \( b = 10^m,\; a = 10^c \)
\( y = a e^{kx} \) \( Y = \ln y \) \( Y = kx + \ln a \) \( k = m,\; a = e^c \)
\( y = a x^n \) \( X = \log x,\; Y = \log y \) \( Y = nX + \log a \) \( n = m,\; a = 10^c \)

Question 1 of 5

If data follows the model \( y = a \cdot b^x \), which plot will produce a straight line?

Question 2 of 5

A log-log plot of \( \log x \) vs \( \log y \) gives a straight line with gradient 2.5 and \( Y \)-intercept 0.7. What is the original model?

Question 3 of 5

A regression on \( (x, \ln y) \) gives the line \( Y = 0.3x + 2.0 \). What are \( a \) and \( k \) in the model \( y = ae^{kx} \)?

Question 4 of 5

On a semi-log plot, the gradient of the best-fit line is \( 0.48 \). Using \( \log_{10} \), what is the base \( b \) in the exponential model \( y = ab^x \)?

Question 5 of 5

You suspect data follows a power model \( y = ax^n \). To test this, you should plot: