1.06h - Linearising power and exponential models

1.06h - Linearising power and exponential models

Turn curved power and exponential relationships into straight lines by choosing suitable logarithmic coordinates. Recover the model's parameters, use experimental data and fitted graphs sensibly, and read logarithmic scales without confusing addition with multiplication.

Turning a power model into a line

What simple rule could connect the measurements (1,4.1)(1,4.1), (4,31.7)(4,31.7) and (9,108.5)(9,108.5)? The increases do not look constant. Yet multiplying the input by 44 almost multiplies the output by 88, which suggests a power near x3/2x^{3/2}. Logarithms let us test that suggestion with a straight line.

You already know

For positive arguments, ln⁡(uv)=ln⁡u+ln⁡v\ln(uv)=\ln u+\ln v and ln⁡(xn)=nln⁡x\ln(x^n)=n\ln x. The inverse of ln⁡\ln is the exponential: ln⁡a=c\ln a=c means a=eca=e^c.

A useful surprise is that changing the logarithm base changes both axis scales by the same factor, so the gradient of a power plot stays the same. Its intercept does change: you must still undo that intercept with the correct base.

Linearisation

Linearisation transforms a relationship into straight-line form. For a power model, use X=ln⁡xX=\ln x and Y=ln⁡yY=\ln y, with x,y>0x,y>0. The transformed points lie on a straight line if the power model holds exactly; experimental scatter normally makes the line approximate.

Apply the logarithm laws before comparing coefficients. A negative exponent is allowed; a non-positive coefficient is not allowed in this particular logarithmic transformation.

Power-model transformation

For y=axny=ax^n, where a>0a>0, x>0x>0 and nn is real,

ln⁡y=ln⁡a+nln⁡xY=nX+ln⁡a\begin{aligned} \ln y&=\ln a+n\ln x \\ Y&=nX+\ln a \end{aligned}

Thus gradient m=nm=n, intercept c=ln⁡ac=\ln a, and a=eca=e^c. Using base-ten logs instead gives a=10ca=10^c, with the same gradient nn.

Not in the formula sheet: learn it.

Here is the opening data in the new coordinates. Keep unrounded logarithms in a calculator; the displayed values help you see the pattern.

xx149
yy4.131.7108.5
ln⁡x\ln x, 3 dp0.0001.3862.197
ln⁡y\ln y, 3 dp1.4113.4564.687

Worked example 1: recovering a power model

Question. An approximate fitted line for these measurements is Y=1.50X+1.39Y=1.50X+1.39, where X=ln⁡xX=\ln x and Y=ln⁡yY=\ln y. Find the power model.

Plan. Compare the fitted line with Y=nX+ln⁡aY=nX+\ln a, then undo the logarithm of the coefficient.

n=1.50compare gradientsln⁡a=1.39compare interceptsa=e1.39≈4.01undo the natural log\begin{aligned} n&=1.50 &&\text{compare gradients}\\ \ln a&=1.39 &&\text{compare intercepts}\\ a&=e^{1.39}\approx4.01 &&\text{undo the natural log} \end{aligned}

Why this step? The vertical coordinate represents ln⁡y\ln y, so its intercept represents ln⁡a\ln a, not aa.

Answer. y≈4.01x1.50y\approx4.01x^{1.50}.

Check. Using the unrounded coefficient at x=4x=4 gives e1.3941.5≈32.1e^{1.39}4^{1.5}\approx32.1, close to the measurement 31.731.7.

Now change only the sign of the fitted gradient. The coefficient remains positive, but the model decreases as the input grows.

Worked example 2: a negative power

Question. A different experiment gives ln⁡y=−1.50ln⁡x+1.39\ln y=-1.50\ln x+1.39. Find the power model and its prediction at x=4x=4.

Plan. Read the exponent from the gradient and exponentiate the intercept as before.

n=−1.50read the signed gradienta=e1.39undo the intercepty(4)=e1.394−1.5≈0.502substitute in the model\begin{aligned} n&=-1.50 &&\text{read the signed gradient}\\ a&=e^{1.39} &&\text{undo the intercept}\\ y(4)&=e^{1.39}4^{-1.5}\approx0.502 &&\text{substitute in the model} \end{aligned}

Why this step? A negative gradient changes the exponent, not the sign of the coefficient.

Answer. y=e1.39x−1.50y=e^{1.39}x^{-1.50}, with y(4)≈0.502y(4)\approx0.502.

Check. Multiplying xx by 44 multiplies yy by 4−1.5=1/84^{-1.5}=1/8; e1.39/8≈0.502e^{1.39}/8\approx0.502.

If measurements have units, log their numerical values in the declared units, for example ln⁡(x/(1 s))\ln(x/(1\,\mathrm{s})). Changing units can alter the coefficient and intercept. Zero or negative measurements cannot simply be logged or silently removed: investigate them and the model.

Watch out

From ln⁡y=nln⁡x+c\ln y=n\ln x+c, writing y=cxny=cx^n is wrong. The coefficient is ece^c; the line's intercept is its logarithm.

Try a decreasing model with a different intercept.

Turning an exponential model into a line

For an exponential model, keep the input unchanged and log only the output. Equal input steps then produce equal changes in the logged output.

Exponential-model transformation

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

ln⁡y=ln⁡k+xln⁡b.\ln y=\ln k+x\ln b.

A plot of Y=ln⁡yY=\ln y against xx has gradient m=ln⁡bm=\ln b and intercept c=ln⁡kc=\ln k, so b=emb=e^m and k=eck=e^c. Equivalently, y=kerxy=ke^{rx} gives gradient rr.

Not in the formula sheet: learn it.

A positive gradient gives growth, a negative gradient gives decay, and a zero gradient gives b=1b=1, a constant output. Unlike a power plot, the gradient usually is not the exponent's base.

Worked example 3: an exponential fit

Question. Experimental data give the approximate line ln⁡y=0.183x+1.79\ln y=0.183x+1.79. Find kk and bb in y=kbxy=kb^x.

Plan. Exponentiate both the gradient and intercept using base ee.

ln⁡k=1.79compare interceptsk=e1.79≈5.99recover the coefficientln⁡b=0.183compare gradientsb=e0.183≈1.20recover the base\begin{aligned} \ln k&=1.79 &&\text{compare intercepts}\\ k&=e^{1.79}\approx5.99 &&\text{recover the coefficient}\\ \ln b&=0.183 &&\text{compare gradients}\\ b&=e^{0.183}\approx1.20 &&\text{recover the base} \end{aligned}

Why this step? Increasing xx by 11 adds 0.1830.183 to ln⁡y\ln y, which multiplies yy by e0.183e^{0.183}.

Answer. y=e1.79(e0.183)x≈5.99(1.201)xy=e^{1.79}(e^{0.183})^x\approx5.99(1.201)^x, retaining extra digits in the base for use.

Check. At x=0x=0, ln⁡y=1.79\ln y=1.79 and y=e1.79y=e^{1.79}, as required.

Change only the log base in the fitted equation. Identical-looking numerical coefficients now represent different parameters.

Worked example 4: reading the log base

Question. A fitted line is log⁡10y=0.183x+1.79\log_{10}y=0.183x+1.79. Find its exponential model.

Plan. Undo each base-ten logarithm with a power of 1010.

log⁡10k=1.79read the interceptk=101.79≈61.7use base tenlog⁡10b=0.183read the gradientb=100.183≈1.52use base ten again\begin{aligned} \log_{10}k&=1.79 &&\text{read the intercept}\\ k&=10^{1.79}\approx61.7 &&\text{use base ten}\\ \log_{10}b&=0.183 &&\text{read the gradient}\\ b&=10^{0.183}\approx1.52 &&\text{use base ten again} \end{aligned}

Why this step? 10u10^u, rather than eue^u, is the inverse of log⁡10u\log_{10}u.

Answer. y=101.79(100.183)xy=10^{1.79}(10^{0.183})^x.

Check. At x=1x=1, log⁡10y=1.973\log_{10}y=1.973; multiplying the two recovered factors gives 101.97310^{1.973}.

Always read the axes before deciding which parameter a gradient represents.

Watch out

For ln⁡y=mx+c\ln y=mx+c, writing y=ecmxy=e^cm^x uses the gradient as the base. The correct model is y=ec(em)x=ec+mxy=e^c(e^m)^x=e^{c+mx}.

Use the same recovery process with new line coefficients.

Estimating from fitted graphs

A fitted line summarises all the data. Choose two well-separated points on that line to estimate its gradient; they need not be measured data points.

Continue this lesson.

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

Create free account