P3 3.3 - Straightening curves with logarithms

P3 3.3 - Straightening curves with logarithms

A curved graph can hide a simple relationship. Use logarithms to turn power and exponential models into straight lines, estimate their constants and translate the axes back into the original quantities.

Power models from log-log graphs

How could a straight ruler help you discover the equation of a curve? If doubling xx multiplies yy by four, a power model such as y=ax2y=ax^2 is plausible. Logarithms turn that multiplication into addition.

Throughout this lesson, log⁡\log means log⁡10\log_{10}. Both xx and yy must be positive when their logarithms are taken. For y=axny=ax^n, with a>0a>0, the log laws give

log⁡y=log⁡(axn)=log⁡a+nlog⁡x.\log y=\log(ax^n)=\log a+n\log x.

Compare this with Y=mX+cY=mX+c. Set X=log⁡xX=\log x and Y=log⁡yY=\log y: the gradient is nn, while the vertical intercept is log⁡a\log a.

Log-log graph

A log-log graph plots log⁡y\log y vertically against log⁡x\log x horizontally. A power model y=axny=ax^n becomes

log⁡y=nlog⁡x+log⁡a.\log y=n\log x+\log a.

The exponent nn is the gradient; the coefficient aa is the antilogarithm of the intercept. This transformation follows from the log laws; learn it rather than expecting it in the formula booklet.

[DIAGRAM: asset_name: A power curve becomes a line; asset_slug: power-log-line; caption: The power curve becomes a straight line when both coordinates are replaced by their logarithms.; description: Two panels show y equals five x squared for positive x and log base ten y against log base ten x. Original points one five and ten five hundred become zero log five and one two plus log five. The transformed gradient is two and vertical intercept is log five.]
The power curve becomes a straight line when both coordinates are replaced by their logarithms.

The transformed graph is a new plot of new coordinates. The original curve has not suddenly become straight on its original axes.

Worked example 1: a positive power

Write the straight-line equation obtained by plotting log⁡y\log y against log⁡x\log x when y=5x2y=5x^2, x>0x>0. State its gradient and intercept.

Plan. Take logarithms and separate the product and power.

log⁡y=log⁡(5x2)take logs=2log⁡x+log⁡5use the log laws.\begin{aligned} \log y&=\log(5x^2) &&\text{take logs}\\ &=2\log x+\log5 &&\text{use the log laws}. \end{aligned}

Answer. Gradient 22, vertical intercept log⁡5≈0.699\log5\approx0.699.

Check. At x=10x=10, y=500y=500. The transformed point is (1,log⁡500)(1,\log500), and log⁡500=2+log⁡5\log500=2+\log5.

Change only the exponent from 22 to −2-2. The line now slopes downwards; the coefficient stays the same.

Worked example 2: a negative power

Write the straight-line equation for y=5x−2y=5x^{-2}, x>0x>0, on the same transformed axes.

Plan. Keep the negative sign when bringing the power down.

log⁡y=log⁡5+log⁡(x−2)=−2log⁡x+log⁡5.\log y=\log5+\log(x^{-2})=-2\log x+\log5.

Answer. Gradient −2-2, vertical intercept log⁡5≈0.699\log5\approx0.699.

Check. At x=10x=10, y=0.05y=0.05, so log⁡y=−2+log⁡5\log y=-2+\log5, as the line predicts.

A negative gradient is compatible with positive values of both original variables.

Exponential models from semi-log graphs

An exponential model becomes linear when you take the logarithm of the output while leaving the input unchanged.

For y=kbxy=kb^x, take k>0k>0 and b>0b>0. The input xx may be negative, zero or positive; only yy is being logged. The log laws give

log⁡y=log⁡k+xlog⁡b.\log y=\log k+x\log b.

Now compare with Y=mX+cY=mX+c using X=xX=x, rather than log⁡x\log x.

Semi-log graph

A semi-log graph plots log⁡y\log y vertically against xx horizontally. For y=kbxy=kb^x,

log⁡y=(log⁡b)x+log⁡k.\log y=(\log b)x+\log k.

The gradient is log⁡b\log b; the vertical intercept is log⁡k\log k. Recover bb by taking the antilogarithm of the gradient. This transformation is not listed as a formula in the booklet.

[DIAGRAM: asset_name: Exponential growth and decay on semi-log axes; asset_slug: exponential-log-lines; caption: Reciprocal exponential bases give opposite gradients on semi-log axes.; description: Two panels show y equals four times two to x and y equals four times one half to x on ordinary axes, then their straight lines on log base ten y against x axes. Both transformed lines have intercept log four. Their gradients are log two and negative log two.]
Reciprocal exponential bases give opposite gradients on semi-log axes.

When b>1b>1, log⁡b>0\log b>0, giving growth. When 0<b<10<b<1, the gradient is negative, giving decay. If b=1b=1, the model is the constant y=ky=k.

Worked example 3: exponential growth

Write the straight-line equation for y=4×2xy=4\times2^x when log⁡y\log y is plotted against xx.

Plan. Bring down the exponent xx, leaving log⁡2\log2 as its coefficient.

log⁡y=log⁡4+log⁡(2x)=(log⁡2)x+log⁡4.\log y=\log4+\log(2^x)=(\log2)x+\log4.

Answer. Gradient log⁡2≈0.301\log2\approx0.301, intercept log⁡4≈0.602\log4\approx0.602.

Check. At x=0x=0, y=4y=4; its logarithm is the vertical intercept.

Continue this lesson.

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

Create free account