IB Maths AI HL Non-linear Regression Paper 1 & 2 ~7 min read

Logarithmic Scales

Some data spans a huge range — country populations run from a few hundred to over a billion. A normal axis can’t show that without cramming most values into a tiny strip. A logarithmic scale fixes this: instead of going 1, 2, 3, 4… it goes 1, 10, 100, 1000… so each step multiplies. Swap the variable for its logarithm and those exploding intervals become evenly spaced. The payoff: power curves straighten out on log-log graphs, and exponential curves straighten out on semi-log graphs — far easier to read.

📘 What you need to know

Normal scale vs log scale

On a normal scale, equal gaps mean equal differences. On a log scale, equal gaps mean equal multiples (×10 each step).

linear scale vs logarithmic scale
Linear 0 250 500 750 1000 each step ADDS 250 Logarithmic 1 10 100 1000 each step MULTIPLIES by 10
Equal spacing on a log scale means equal multiples — so values from 1 to 1000 fit in the same room as 0 to 1000 on a linear scale.
The trick: if x runs 1, 10, 100, 1000… use log x and it becomes 0, 1, 2, 3…. If x runs 1, e, e², e³… use ln x instead.

Log-log vs semi-log graphs

Which graph straightens which curve is the key fact — and it’s exactly what the exam tests.

Log-log graph
power → line
BOTH axes logged (log x and log y). A power function y = axb becomes a straight line.
Semi-log graph
exponential → line
ONLY the y-axis logged (log y). An exponential function y = abx becomes a straight line.

🧠 Memory aid — “two logs for power, one for exponential”

Power needs both variables logged (log-log) to straighten — because the variable x is the thing being raised to a power. Exponential only needs the y-axis logged (semi-log) — because x is already in the exponent. So: power = log-log, exponential = semi-log.

Reading values off a log graph

When you read a value off a log axis, you’re reading a logarithm — so undo it to get the real value.

Undoing a logarithm log x = k  ⇒  x = 10k     ln x = k  ⇒  x = ek check the base: log → power of 10, ln → power of e

🧭 Recipe — estimating a value from a log-log / semi-log graph

  1. Check the axes: is it log x, log y, or both? Note the base (log or ln).
  2. Convert your given value to its logarithm (e.g. x = 56 → log 56 = 1.748).
  3. Read across/up the graph to find the matching logged value on the other axis.
  4. Undo the logarithm to get the actual value (10k or ek).

Worked examples

WE 1

Which graph straightens which curve?

State the type of graph on which each becomes a straight line. (a) y = 3x2.5. (b) y = 4(1.8)x.

(a) y = 3x^2.5 is a power function (a) log-log graph (b) y = 4(1.8)^x is exponential (b) semi-log graph power → log-log; exponential → semi-log.
WE 2

Pick the right variable

An x-axis shows values 1, e, e², e³, … To get evenly spaced steps, which variable should you plot?

the values multiply by e each step taking ln turns 1, e, e², e³ into 0, 1, 2, 3. plot ln x match the log base to the scale: powers of 10 → log, powers of e → ln.
WE 3

Estimate from a log-log graph

A function y = f(x) is drawn on a log-log graph (axes log x and log y, base 10). Show that when x = 56, y ≈ 24. (Reading the graph at log x = 1.748 gives log y ≈ 1.375.)

Step 1: log x x = 56 → log 56 = 1.748… Step 2: read off log y from the graph log y ≈ 1.375 Step 3: undo the log y = 10^1.375 = 23.71… y ≈ 24 ✓ log the input, read off, then raise 10 to the power.
WE 4

Undo a natural log reading

On a semi-log graph the y-axis is ln y. At a certain point ln y = 2.3. Find the actual value of y.

ln y = k ⇒ y = e^k y = e^2.3 y ≈ 9.97 base e → raise e to the power (not 10).
WE 5

Why a log scale here?

Country populations range from about 800 to 1 450 000 000. Why is a logarithmic scale better than a normal one for plotting these?

the range is enormous on a normal scale, all the small countries would be squashed into a tiny strip near zero. a log scale spreads the values out evenly log scales suit data spanning many orders of magnitude.

💡 Top tips

⚠ Common mistakes

Next up — Linearising using Logarithms. You’ve seen that logs straighten power and exponential curves; next you’ll use that to actually find the model. By taking logs of y = abx or y = axb, you turn it into a straight line Y = mX + c, run a linear regression, then recover a and b.

Need help with Non-linear Regression?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →