Pure · Exponentials & Logarithms · Year 1

Linearising with Logs

Taking logs turns power laws and exponential laws into straight lines — so the hidden constants read straight off a gradient and intercept.

10 min read 3 worked examples

Turning curves into straight lines

Straight lines are easy: plot the data, read the gradient and intercept, done. Curves are not. But two very common non-linear relationships — $y = ax^n$ (a power law) and $y = kb^x$ (an exponential law) — can be turned into straight lines by taking logs. Once linear, you plot the transformed data, fit a line, and read the unknown constants off its gradient and intercept. This is how scientists find the hidden law behind a set of measurements.

Why taking logs straightens these curves

The laws of logs split products and pull powers down to the front. Applied to $y = ax^n$ or $y = kb^x$, they separate the variable term from the constants and drop any exponent into a multiplier — exactly the structure of $Y = mX + c$. The curve doesn't change; you're just plotting $\log y$ (and sometimes $\log x$) instead of the raw values, and in those new coordinates the same relationship looks straight.

Case 1 — the power law y = axⁿ

Take logs of both sides and apply the product and power laws:

$\log y = \log(ax^n) = \log a + n\log x.$

Compare with $Y = mX + c$: plotting $\log y$ against $\log x$ gives a straight line with gradient $n$ and vertical intercept $\log a$. So the power $n$ is the gradient, and $a = 10^{\text{intercept}}$.

A log-log plot: log y on the vertical axis against log x on the horizontal axis, showing data points lying on a straight line. The gradient of the line is labelled n and the vertical intercept is labelled log a.
For y = axⁿ, plotting log y against log x gives a straight line. Its gradient is the power n, and its intercept on the vertical axis is log a.

Case 2 — the exponential law y = kbˣ

Here the variable is already in the exponent, so take logs and use the power law on $b^x$:

$\log y = \log(kb^x) = \log k + x\log b.$

This time plot $\log y$ against $x$ (not $\log x$) — the line has gradient $\log b$ and intercept $\log k$. So $b = 10^{\text{gradient}}$ and $k = 10^{\text{intercept}}$.

A semi-log plot: log y on the vertical axis against x on the horizontal axis, showing data points lying on a straight line. The gradient of the line is labelled log b and the vertical intercept is labelled log k.
For y = kbˣ, plotting log y against x (not log x) gives a straight line. Its gradient is log b and its intercept is log k.
Strategy — which axes? Look at where the variable sits

The single decision is what to plot. If the model is a power of $x$ ($y=ax^n$), take logs of both variables: $\log y$ against $\log x$. If the variable is in the exponent ($y=kb^x$), take the log of $y$ only: $\log y$ against $x$. A quick test: is $x$ raised to a fixed power, or is a fixed number raised to the power $x$? The first is log–log; the second is log–linear.

Worked example 1

Reduce a power law to linear form
The variables $x$ and $y$ satisfy $y = ax^{n}$. Taking logs gives a straight line through $(\log x, \log y)$ with gradient $1.5$ and vertical intercept $0.6$. Find $a$ and $n$.
MethodMatch to log y = log a + n log x
1
The linear form is $\log y = n\log x + \log a$, so gradient $= n$ and intercept $= \log a$.
Compare with $Y=mX+c$.
2
Gradient is $1.5$, so $n = 1.5$.
The power reads off the gradient.
3
Intercept is $0.6$, so $\log a = 0.6 \Rightarrow a = 10^{0.6} \approx 3.98$.
Undo the log (base 10).
4
So the relationship is $y \approx 3.98\, x^{1.5}$.
Both constants found.
▪ solved
Examiner's eye

The gradient gives the power directly — no undoing needed — but the intercept gives $\log a$, so you must raise $10$ to it to recover $a$. Mixing these up (reading $a$ as the intercept, or trying to "un-log" the gradient) is the classic error. Gradient → power, intercept → $10^{\text{intercept}}$ for the coefficient.

Worked example 2

Reduce an exponential law to linear form
Data for $y = kb^{x}$ is plotted as $\log y$ against $x$, giving a straight line with gradient $0.2$ and intercept $1$. Find $k$ and $b$.
MethodMatch to log y = log k + x log b
1
Linear form: $\log y = (\log b)x + \log k$, so gradient $=\log b$ and intercept $=\log k$.
Note: log y against x here.
2
Gradient $=0.2$, so $\log b = 0.2 \Rightarrow b = 10^{0.2} \approx 1.58$.
Undo the log.
3
Intercept $=1$, so $\log k = 1 \Rightarrow k = 10^{1} = 10$.
Undo the log.
4
So $y \approx 10\times 1.58^{x}$.
Both constants found.
▪ solved
The key insight

Contrast this with example 1. There, the power law needed $\log y$ against $\log x$ and the gradient was the power. Here, the exponential law needs $\log y$ against $x$, and now both gradient and intercept must be un-logged, because $b$ and $k$ each sit inside a log. The structure of the model — power of $x$ versus number to the power $x$ — decides both the axes and what you do with the results.

Worked example 3

From two data points · finding the line yourself
A quantity follows $y = kb^{x}$. When the data is plotted as $\log y$ against $x$, two points lie on the line: $(2,\ 1.4)$ and $(6,\ 2.2)$. Find $k$ and $b$.
MethodGradient and intercept from two points, then un-log
1
Gradient $= \dfrac{2.2 - 1.4}{6 - 2} = \dfrac{0.8}{4} = 0.2$. This is $\log b$.
Change in log y over change in x.
2
So $b = 10^{0.2} \approx 1.58$.
Undo the log for b.
3
Intercept: using $\log y = 0.2x + c$ at $(2, 1.4)$: $1.4 = 0.2(2) + c \Rightarrow c = 1.0$. This is $\log k$.
Substitute a known point.
4
So $k = 10^{1.0} = 10$, giving $y \approx 10\times 1.58^{x}$.
Both constants found.
▪ solved
Look deeper — this is just straight-line geometry on transformed data

Every technique here is the equation of a straight line lesson applied to $\log$-transformed coordinates: gradient from two points, intercept by substituting one back in. The only extra step is un-logging at the end to recover the real-world constants. If you can find the equation of a line through two points, you can fit any power or exponential law to data.

Common mistake

Choosing the wrong axes is the big one: $y=ax^n$ needs $\log y$ vs $\log x$ (log–log), while $y=kb^x$ needs $\log y$ vs $x$ (log–linear). Plotting $\log x$ when you should plot $x$ turns a straight line into a curve. The second trap is forgetting to un-log the intercept — the intercept is $\log a$ or $\log k$, so the constant is $10$ to that power, not the intercept value itself.

Check yourself

Data believed to follow $y = ax^{n}$ is plotted as $\log y$ against $\log x$, giving a straight line of gradient $2$ passing through $(1,\ 2.3)$. Find $a$ and $n$.
(Hint: gradient is $n$; find the intercept $\log a$ using the point, then un-log.)

Method
1
Power law linear form: $\log y = n\log x + \log a$, so gradient $=n=2$.
Gradient is the power.
2
Find the intercept: at $(\log x, \log y) = (1, 2.3)$, $\;2.3 = 2(1) + \log a \Rightarrow \log a = 0.3$.
Substitute the point.
3
$a = 10^{0.3} \approx 2.0$.
Un-log the intercept.
4
So $y \approx 2.0\, x^{2}$.
Both constants found.
▪ solved

The gradient $2$ gave the power immediately. The intercept had to be computed from the point (it's $\log a = 0.3$), then un-logged to $a = 10^{0.3} \approx 2$.