14.8 Logarithms and Non-Linear Data
A-level Maths Year 1 (AS) · Edexcel 9MA0 · Chapter 14: Exponentials and Logarithms
A free A-level Maths Year 1 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: turning curves into straight lines to find the constants in y = axⁿ and y = kbˣ. Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.
What you will learn
- Take logs of y = axⁿ and y = kbˣ to get the equation of a straight line
- Decide which graph to plot to test a model
- Find the constants a, n, k and b from the gradient and intercept of a log graph
- Fit a model to data and interpret the constants in context
Key words
- Power law: A relationship y = axⁿ, where a and n are constants.
- Exponential relationship: A relationship y = kbˣ, where k and b are constants.
- Log graph: A graph with log y on the vertical axis and x or log x on the horizontal axis.
- Intercept: Where a line crosses the vertical axis. On a log graph it is log a or log k, not a or k.
Power laws: y = axⁿ
Curves are hard to read constants from, but straight lines are easy. Take logs (base 10) of both sides of y = axⁿ and use the laws of logs:
Key fact: y = axⁿ gives log y = n log x + log a Plot log y against log x: a straight line with gradient n and intercept log a.
Compare with Y = mX + c: here Y = log y, X = log x, m = n and c = log a.
Worked example: reading the constants
A graph of log y against log x is a straight line with gradient 2.5 and intercept 0.3. Find a and n in y = axⁿ.
n = 2.5. log a = 0.3, so a = 10^(0.3) = 1.995...
Answer: y = 2.00x^(2.5) (3 s.f.)
Exponential relationships: y = kbˣ
Now take logs of y = kbˣ. The power law of logs brings the x down: log y = log k + log bˣ = x log b + log k.
Key fact: y = kbˣ gives log y = (log b)x + log k Plot log y against x: a straight line with gradient log b and intercept log k.
Worked example: reading the constants
A graph of log y against x is a straight line with gradient 0.176 and intercept 0.699. Find k and b in y = kbˣ.
log b = 0.176, so b = 10^(0.176) = 1.4996...
log k = 0.699, so k = 10^(0.699) = 5.000...
Answer: y = 5 × 1.5ˣ
- y = axⁿ; Plot log y against log x; Gradient n; Intercept log a
- y = kbˣ; Plot log y against x; Gradient log b; Intercept log k
Using two points on the line
Often you are given two points on the straight line rather than its gradient and intercept. Find the gradient first, then substitute one point into Y = mX + c to find c.
Worked example: a power law from two points
The graph of log y against log x is a straight line through (1, 2.2) and (3, 3.4). Find y in terms of x.
Gradient = (3.4 − 2.2)/(3 − 1) = 0.6, so n = 0.6
2.2 = 0.6 × 1 + c, so c = 1.6 = log a and a = 10^(1.6) = 39.81...
Answer: y = 39.8x^(0.6) (3 s.f.)
Fitting a model to data
To decide which model fits, work out the logs and see which plot gives a straight line. For y = kbˣ, equal steps in x give equal steps in log y.
- y; 1 6; 2 18; 3 54; 4 162
- log y (3 d.p.); 1 0.778; 2 1.255; 3 1.732; 4 2.210
Worked example: finding k and b
The values of log y go up by 0.477 each time, so log y against x is a straight line and y = kbˣ fits.
Gradient = 0.477 = log b, so b = 10^(0.477) ≈ 3.00
Intercept: log k = 0.778 − 0.477 = 0.301, so k = 10^(0.301) ≈ 2.00
Answer: y = 2 × 3ˣ
Interpreting: in y = kbˣ, k is the value of y when x = 0 and b is the factor y is multiplied by each time x goes up by 1. So b = 3 means y triples; b = 0.8 would mean y falls by 20% each time.
Common mistakes
- Giving the intercept as the constant: if the intercept is 0.699, then k = 10^(0.699) = 5, not 0.699.
- Plotting log y against log x to test y = kbˣ. For an exponential, plot log y against x.
- Forgetting that the gradient for y = kbˣ is log b, so b = 10ᵍʳᵃᵈⁱᵉⁿᵗ.
- Rounding the logs too early. Keep at least 3 decimal places in the logs to get 3 s.f. in the constants.
Revision questions
Try these, then check your answers below each one.
Question 1. Data is thought to fit y = axⁿ. Which graph should be a straight line? (Choose from: log y against log x; log y against x; y against log x; y against x.)
Answer: log y against log x
Working: log y = n log x + log a, which is linear in log x.
Question 2. Given that y = 5 × 2ˣ, which equation is correct? (Choose from: log y = x log 2 + log 5; log y = 5 log x + log 2; log y = log 5 × x log 2; log y = 2 log x + log 5.)
Answer: log y = x log 2 + log 5
Working: log y = log 5 + log 2ˣ = x log 2 + log 5.
Question 3. Leah says that plotting log y against x for y = 4x³ gives a straight line. Is Leah correct?
Answer: No
Working: log y = 3 log x + log 4. This is linear in log x, not in x.
Related lessons
- Previous lesson: 14.7 Working with Natural Logarithms
- In this chapter: 14.1 Exponential Functions
- In this chapter: 14.2 y = eˣ
- In this chapter: 14.3 Exponential Modelling
Continue in the full course
This lesson is section 14.8 of our free A-level Maths Year 1 (AS) course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved. Go to the full A-level Maths Year 1 (AS) course.