F6 - Linearising exponential and power data

F6 - Linearising exponential and power data

Choose logarithmic axes that turn a power or exponential model into a straight line. Use its gradient and intercept to estimate the original constants, then check the model against data and the range of any prediction.

Power-law logarithmic axes

The outputs 2,8,32,1282,8,32,128 occur at inputs 1,2,4,81,2,4,8. Can a straight line reveal the relationship hiding in these curved data?

Doubling xx multiplies yy by 44, suggesting y=2x2y=2x^2. Logging both coordinates turns that repeated multiplication into equal additions. Throughout, take logs of numerical measurements expressed in fixed stated units; do not mix units within a table.

You already know

A line Y=mX+cY=mX+c has gradient m=ΔY/ΔXm=\Delta Y/\Delta X and intercept c=Y−mXc=Y-mX. Also, log⁡10(axn)=log⁡10a+nlog⁡10x\log_{10}(ax^n)=\log_{10}a+n\log_{10}x for a,x>0a,x>0. These results are not in the formula booklet: learn them.

For y=axny=ax^n, set X=log⁡10xX=\log_{10}x, Y=log⁡10yY=\log_{10}y. Both xx and yy must be positive. A log–log plot puts the transformed output against the transformed input.

Straightening a power law

For a>0a>0 and x>0x>0,

y=axn⟹Y=nX+cX=log⁡10xY=log⁡10yc=log⁡10an=gradienta=10c\begin{aligned} y=ax^n&\quad\Longrightarrow\quad Y=nX+c \\ X&=\log_{10}x\qquad Y=\log_{10}y\qquad c=\log_{10}a \\ n&=\text{gradient}\qquad a=10^c \end{aligned}

If both logs are natural, c=ln⁡ac=\ln a and a=eca=e^c, while the gradient is still nn.

Not in the formula booklet: learn it.

On ordinary paper, calculate the logs and space their values uniformly. Logarithmic graph paper instead spaces the original labels by their logarithms. Either way, the horizontal mathematical coordinate is log⁡x\log x, not xx.

Worked example 1: recovering the opening model

Question. Use a log–log line to identify y=axny=ax^n for the following exact data.

xx11224488
yy22883232128128
X=log⁡10xX=\log_{10}x, 4 d.p.000.30100.30100.60210.60210.90310.9031
Y=log⁡10yY=\log_{10}y, 4 d.p.0.30100.30100.90310.90311.50511.50512.10722.1072

Plan. Use well-separated transformed points for the gradient and the point with X=0X=0 for the intercept.

n=log⁡10128−log⁡102log⁡108−log⁡101=2gradient using unrounded logsc=log⁡102X=0 at x=1a=10log⁡102=2undo the logarithm\begin{aligned} n&=\frac{\log_{10}128-\log_{10}2}{\log_{10}8-\log_{10}1}=2 && \text{gradient using unrounded logs} \\ c&=\log_{10}2 && X=0\text{ at }x=1 \\ a&=10^{\log_{10}2}=2 && \text{undo the logarithm} \end{aligned}

Why this step? The intercept is the logarithm of the multiplier, so it needs back transformation before it can be used as aa.

Answer. y=2x2y=2x^2.

Check. At x=4x=4, 2(42)=322(4^2)=32; the model also gives the other three entries.

Power data become a straight line on log–log axes, while exponential data use an untransformed horizontal axis

The left panel is the opening dataset. Now change only the power from 22 to −2-2, keeping the multiplier 22. The transformed line's gradient reverses; its intercept stays fixed.

Worked example 2: a negative power

Question. A log–log fitted line passes through (X,Y)=(0,log⁡102)(X,Y)=(0,\log_{10}2) and (1,log⁡102−2)(1,\log_{10}2-2). Find a,na,n in y=axny=ax^n and predict yy at x=4x=4.

Plan. Calculate the line's gradient, undo its intercept, then use the original model.

n=(log⁡102−2)−log⁡1021−0=−2gradienta=10log⁡102=2back transform intercepty(4)=2(4−2)=1/8original variables\begin{aligned} n&=\frac{(\log_{10}2-2)-\log_{10}2}{1-0}=-2 && \text{gradient} \\ a&=10^{\log_{10}2}=2 && \text{back transform intercept} \\ y(4)&=2(4^{-2})=1/8 && \text{original variables} \end{aligned}

Why this step? The negative gradient is the exponent nn, not a negative multiplier; the original outputs remain positive.

Answer. y=2x−2y=2x^{-2}, and y=1/8y=1/8 at x=4x=4.

Check. At X=1X=1, x=10x=10 and the model gives y=0.02y=0.02; log⁡10(0.02)=log⁡102−2\log_{10}(0.02)=\log_{10}2-2, the stated line point.

Changing units can move a log–log line without changing its gradient. In the opening model, replace xx by u=10xu=10x. Then y=2(u/10)2=0.02u2y=2(u/10)^2=0.02u^2: the exponent remains 22, while the multiplier changes from 22 to 0.020.02. This follows from the unsupplied power-law transformation above, and is why a fitted exponent can survive a change of length units.

Watch out

Wrong: “The intercept is 0.30100.3010, so a=0.3010a=0.3010.” The intercept is log⁡10a\log_{10}a, so a=100.3010≈2a=10^{0.3010}\approx2. Only the gradient is read directly as a parameter of the power model.

Try another fitted line, changing the line data while keeping the same axes and recovery method.

Exponential semilogarithmic axes

An exponential model needs only its output logged: the original input already appears as the coefficient of a logarithm.

For example, y=4e0.4xy=4e^{0.4x} gives ln⁡y=ln⁡4+0.4x\ln y=\ln4+0.4x, a straight line in xx. Logging xx as well would spoil that linear relationship.

Straightening an exponential model

For y=kbxy=kb^x, with k,b>0k,b>0,

L=ln⁡y=mx+cm=ln⁡bc=ln⁡kb=emk=ecy=ecemx\begin{aligned} L=\ln y&=mx+c\qquad m=\ln b\qquad c=\ln k \\ b&=e^m\qquad k=e^c\qquad y=e^ce^{mx} \end{aligned}

With log⁡10y\log_{10}y instead, m=log⁡10bm=\log_{10}b, c=log⁡10kc=\log_{10}k, so b=10mb=10^m and k=10ck=10^c.

Not in the formula booklet: learn it.

A semilog plot uses xx horizontally and ln⁡y\ln y vertically. It requires y>0y>0; xx may be zero or negative. A positive gradient gives b>1b>1, a negative gradient gives 0<b<10<b<1, and zero gradient gives the constant model y=ky=k. These interpretation rules follow from the back transformation and are not supplied separately.

Worked example 3: a positive logged gradient

Question. A fitted line is ln⁡y=0.4x+ln⁡4\ln y=0.4x+\ln4. Find k,bk,b in y=kbxy=kb^x, then predict yy at x=3x=3 to three significant figures.

Plan. Exponentiate the intercept and gradient separately, and use their unrounded values for the prediction.

k=eln⁡4=4intercept gives ln⁡kb=e0.4≈1.49gradient gives ln⁡by(3)=4e0.4(3)=4e1.2≈13.3use unrounded parameter\begin{aligned} k&=e^{\ln4}=4 && \text{intercept gives }\ln k \\ b&=e^{0.4}\approx1.49 && \text{gradient gives }\ln b \\ y(3)&=4e^{0.4(3)}=4e^{1.2}\approx13.3 && \text{use unrounded parameter} \end{aligned}

Why this step? The slope is 0.4=ln⁡b0.4=\ln b, not bb. A base 0.40.4 would describe decay, contradicting the positive slope.

Answer. k=4k=4, b=e0.4≈1.49b=e^{0.4}\approx1.49, and the prediction is y≈13.3y\approx13.3.

Check. At x=0x=0, y=4y=4; increasing xx by 11 multiplies the model output by e0.4>1e^{0.4}>1.

The right panel of the earlier diagram shows that line. Change only its gradient to −0.4-0.4. The original multiplier stays 44, but the exponential base becomes its reciprocal.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account