Logarithmic graphs

Logarithmic graphs

Spec F6 · AQA A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Taking logs turns y=axny=ax^n and y=kbxy=kb^x into straight lines you can measure.
  • Power law: plot lg⁡y\lg y against lg⁡x\lg x; gradient nn, intercept lg⁡a\lg a.
  • Exponential law: plot lg⁡y\lg y against xx; gradient lg⁡b\lg b, intercept lg⁡k\lg k.
  • The intercept is a logarithm: undo it with a=10intercepta=10^{\text{intercept}}.
  • Predictions outside the data (extrapolation) are less reliable.

y=axny=ax^n

Plot:
lg⁡y\lg y against lg⁡x\lg x
Gradient:
nn
Intercept:
lg⁡a\lg a

y=kbxy=kb^x

Plot:
lg⁡y\lg y against xx
Gradient:
lg⁡b\lg b
Intercept:
lg⁡k\lg k

Why straighten data

A straight line has a gradient and intercept you can measure, which a curve does not.

The two relationships in the specification are the power law y=axny=ax^n and the exponential law y=kbxy=kb^x. The graph you draw shows which model you are testing.

lg⁡\lg means log⁡10\log_{10}, but any base works if you are consistent.

−1−0.50.511.52−112345xyintercept 0.48lg y = 2 lg x + 0.48
lg y against lg x for y = 3x² is a straight line: gradient n = 2, intercept lg a = lg 3 ≈ 0.48.
  • Curve y=axny=ax^n or y=kbxy=kb^xtake logs to get a line Y=mX+cY=mX+c

Which graph is a straight line if y=3×2xy=3\times2^x?

Power law

lg⁡y\lg y against lg⁡x\lg x is a straight line with gradient nn and intercept lg⁡a\lg a.

lg⁡y=lg⁡(axn)=lg⁡a+nlg⁡x\lg y=\lg(ax^n)=\lg a+n\lg x. Compare with Y=mX+cY=mX+c where Y=lg⁡yY=\lg y and X=lg⁡xX=\lg x. So a=10intercepta=10^{\text{intercept}}.

If this graph is a straight line the data fit a power law.

0.20.40.60.811.21.41.61.820.511.522.533.54xy(0, 0.6)(2, 3.6)Y = 1.5X + 0.6
Power law: lg y against lg x, gradient 1.5, intercept 0.6.

Worked example

A graph of lg⁡y\lg y against lg⁡x\lg x is a straight line through (0,0.6)(0,0.6) and (2,3.6)(2,3.6). Find y=axny=ax^n.

A graph of lg⁡y\lg y against lg⁡x\lg x has gradient 22 and intercept 11. What is yy?

Exponential law

lg⁡y\lg y against xx is a straight line with gradient lg⁡b\lg b and intercept lg⁡k\lg k.

lg⁡y=lg⁡(kbx)=lg⁡k+xlg⁡b\lg y=\lg(kb^x)=\lg k+x\lg b. The horizontal axis is xx itself, not lg⁡x\lg x. So b=10gradientb=10^{\text{gradient}} and k=10interceptk=10^{\text{intercept}}.

0.511.522.533.544.550.511.522.533.54xy(0, 2)(4, 3.2)lg y = 2 + 0.3x
Exponential law: lg y against x through (0, 2) and (4, 3.2).

Worked example

A graph of lg⁡y\lg y against xx is a line through (0,2)(0,2) and (4,3.2)(4,3.2). Find kk and bb in y=kbxy=kb^x.

A graph of lg⁡y\lg y against xx has gradient 0.60.6 and intercept 11. What are kk and bb?

Estimating parameters

Decide which graph is straight, find the gradient and intercept, then undo the logarithm.

You may be given (x,y)(x,y) pairs, a table of (lg⁡x,lg⁡y)(\lg x,\lg y) values, or two points on a line of best fit.

Find the gradient from two points far apart, m=Y2−Y1X2−X1m=\frac{Y_2-Y_1}{X_2-X_1}, then the intercept by substituting a point into Y=mX+cY=mX+c.

  1. 1

    Choose the straight graph

    lg y vs lg x, or lg y vs x

  2. 2

    Gradient

    From two points far apart

  3. 3

    Intercept

    Substitute into Y = mX + c

  4. 4

    Undo the log

    Use 10 to the power

Finding the parameters.

Worked example

A line of best fit for lg⁡y\lg y against lg⁡x\lg x passes through (0.60,1.38)(0.60,1.38) and (1.20,2.28)(1.20,2.28). Find y=axny=ax^n.

Why choose two points far apart on the line of best fit to find the gradient?

Using the model and its limits

Estimates are less reliable outside the range of the data.

Once the parameters are known, substitute into the original relationship to estimate yy, or into the line equation to find xx.

Extrapolation is unreliable, and exponential models cannot grow without limit in real situations.

1234567891020406080100120xydata ends hereexponential modelreal growth levels off
Illustrative: an exponential model fitted to early data (solid) and real growth that levels off (dashed). Extrapolating beyond the data goes wrong.

Within the data

  • Interpolation
  • Reasonably reliable

Outside the data

  • Extrapolation
  • Unreliable: the pattern may not continue

Worked example

A model satisfies lg⁡y=2.1+0.2x\lg y=2.1+0.2x. Find xx when y=50 000y=50\,000.

Why is a prediction far outside the range of the data unreliable?

Try an exam question

Data are modelled by y=axny=ax^n. A graph of lg⁡y\lg y against lg⁡x\lg x is a straight line through (0.5,1.4)(0.5,1.4) and (1.5,3.4)(1.5,3.4). Find aa and nn.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which equation links lg⁡y\lg y and lg⁡x\lg x?

1 mark, marked against the mark scheme

Revision notes