2.2, 3.2 - Straightening curved relationships

2.2, 3.2 - Straightening curved relationships

A curve can become a straight line when its axes use logarithms. In this shared part of 2.2 and 3.2, you will transform power and exponential relationships, connect gradients and intercepts to their constants, and recover the original model from a transformed graph. The axis labels will decide what each constant means.

Power laws

Could the same straight line describe two different curved relationships? Yes: it depends on what the axes measure. First consider a power law, such as y=3x2y=3x^2, for positive xx. Taking logarithms brings the power down as a coefficient:

ln⁡y=ln⁡(3x2)=ln⁡3+2ln⁡x.\ln y=\ln(3x^2)=\ln3+2\ln x.

This is not linear in x,yx,y, but it is linear in the new coordinates X=ln⁡xX=\ln x, Y=ln⁡yY=\ln y.

Linear form of a power law

For y=kxny=kx^n, with k>0k>0 and x>0x>0,

ln⁡y=ln⁡k+nln⁡x.\ln y=\ln k+n\ln x.

A graph of ln⁡y\ln y against ln⁡x\ln x has gradient nn and vertical intercept ln⁡k\ln k. The same form works with a single other logarithm base throughout. Not in the formula booklet: learn it.

“ln⁡y\ln y against ln⁡x\ln x” places ln⁡x\ln x horizontally and ln⁡y\ln y vertically. A vertical intercept occurs when ln⁡x=0\ln x=0, which means original input x=1x=1, not x=0x=0.

Worked example 1: a positive power

Question. Transform y=3x2y=3x^2, x>0x>0, to linear form and state the gradient and vertical intercept of the transformed graph.

Plan. Take natural logarithms and compare with Y=mX+cY=mX+c.

ln⁡y=ln⁡3+2ln⁡x⟹Y=2X+ln⁡3.\ln y=\ln3+2\ln x \quad\Longrightarrow\quad Y=2X+\ln3.

Answer. Plot ln⁡y\ln y against ln⁡x\ln x; gradient 22, vertical intercept ln⁡3\ln3.

Check. At x=1x=1, y=3y=3, giving transformed point (0,ln⁡3)(0,\ln3). At x=ex=e, y=3e2y=3e^2, giving (1,ln⁡3+2)(1,\ln3+2): a rise of 22 for a run of 11.

Change only the sign of the power. The vertical intercept stays fixed, while the gradient reverses.

Worked example 2: a negative power

Question. Transform y=3x−2y=3x^{-2}, x>0x>0, and state the same graph features.

Plan. Apply the power law to the negative exponent.

ln⁡y=ln⁡3−2ln⁡x⟹Y=−2X+ln⁡3.\ln y=\ln3-2\ln x \quad\Longrightarrow\quad Y=-2X+\ln3.

Answer. With the same log axes, gradient −2-2, vertical intercept ln⁡3\ln3.

Check. The transformed points at x=1,ex=1,e are (0,ln⁡3)(0,\ln3) and (1,ln⁡3−2)(1,\ln3-2); the rise is now −2-2. Both original outputs remain positive.

The curved positive-power relationship becomes an ordinary line when both coordinates are logged.

[DIAGRAM: asset_name: A power curve becomes a line; asset_slug: power-law-linearisation; caption: Logging both positive coordinates turns a power into the gradient; description: A left panel shows y equals 3x squared for positive x with points at x equals 1 and e. A right panel shows the corresponding straight line with horizontal coordinate X equals ln x and vertical coordinate Y equals ln y. Its marked points are 0 comma ln 3 and 1 comma ln 3 plus 2, with gradient 2 and vertical intercept ln 3.]
Logging both positive coordinates turns a power into the gradient

Watch out

The transformed intercept is ln⁡k\ln k, not kk. Recover kk by exponentiating. Also, a log-coordinate zero means original coordinate 11.

Transform a fractional power without changing its value.

Exponential relationships

In an exponential relationship the unknown input is an exponent, rather than the base being raised to a fixed power. For y=4×3xy=4\times3^x, taking logarithms gives ln⁡y=ln⁡4+xln⁡3\ln y=\ln4+x\ln3. This is linear in xx and ln⁡y\ln y: the horizontal input itself stays unlogged.

Linear form of an exponential relationship

For y=kaxy=ka^x, with k>0k>0, a>0a>0,

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

A graph of ln⁡y\ln y against xx has gradient ln⁡a\ln a and vertical intercept ln⁡k\ln k. Equivalently, y=kebxy=ke^{bx} gives ln⁡y=ln⁡k+bx\ln y=\ln k+bx. Not in the formula booklet: learn it.

An exponential growth factor a>1a>1 gives a positive transformed gradient. A decay factor 0<a<10<a<1 gives a negative one. For a=1a=1, the original output is constant and the transformed line is horizontal.

Worked example 3: an exponential growth factor

Question. Transform y=4×3xy=4\times3^x to linear form and state suitable axes, gradient and vertical intercept.

Plan. Take natural logarithms and use ln⁡(3x)=xln⁡3\ln(3^x)=x\ln3.

ln⁡y=ln⁡4+xln⁡3.\ln y=\ln4+x\ln3.

Answer. Horizontal axis xx, vertical axis ln⁡y\ln y; gradient ln⁡3\ln3, vertical intercept ln⁡4\ln4.

Check. At x=0x=0, y=4y=4. At x=1x=1, y=12y=12. The transformed rise is ln⁡12−ln⁡4=ln⁡3\ln12-\ln4=\ln3 for a run of 11.

Replace the growth factor by its reciprocal. The transformed slope changes sign, with the same intercept.

Worked example 4: an exponential decay factor

Question. Transform y=4(1/3)xy=4(1/3)^x and state the same features.

Plan. Use ln⁡(1/3)=−ln⁡3\ln(1/3)=-\ln3 after taking logarithms.

ln⁡y=ln⁡4+xln⁡(1/3)=ln⁡4−xln⁡3.\ln y=\ln4+x\ln(1/3)=\ln4-x\ln3.

Answer. Horizontal axis xx, vertical axis ln⁡y\ln y; gradient −ln⁡3-\ln3, vertical intercept ln⁡4\ln4.

Check. At x=1x=1, y=4/3y=4/3, and its logarithm is ln⁡4−ln⁡3\ln4-\ln3, exactly the height given by the line.

For an exponential model, the transformed intercept occurs at original input x=0x=0, where y=ky=k. For a power model on two log axes it occurs at original input x=1x=1. Reading the horizontal label distinguishes them.

Continue this lesson.

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

Create free account