9.2 Differentiating Exponentials and Logarithms
A-level Maths Year 2 · Edexcel 9MA0 · Chapter 9: Differentiation
A free A-level Maths Year 2 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: derivatives of e to the power kx, a to the power x and ln x, with gradients, tangents and growth models. 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
- Differentiate eᵏˣ and sums and multiples of exponential terms
- Differentiate ln x and use log laws to differentiate expressions such as ln (kx) and ln (xⁿ)
- Differentiate aˣ and aᵏˣ by writing a = e^(ln a)
- Use these derivatives to find gradients, tangents, stationary points and rates of growth
Key words
- e: The constant e ≈ 2.718, chosen so that the gradient of y = eˣ at (0, 1) is exactly 1.
- Natural logarithm: ln x is the logarithm to base e. It is the inverse of eˣ, so e^(ln x) = x.
- Exponential function: A function with the variable in the power, such as e³ˣ or 2ˣ.
- Rate of growth: The derivative dP/dt of a quantity P that changes over time t.
Differentiating e to the power kx
The graph of y = eˣ has a special property: at every point its gradient equals its y-value. At (0, 1) the gradient is 1 and at (1, e) the gradient is e. So eˣ is its own derivative.
Key fact: (d/dx)(eˣ) = eˣ (d/dx)(eᵏˣ) = keᵏˣ
Worked example: sums of exponentials
Differentiate y = 3e²ˣ − e⁻ˣ + 4x
3 × 2e²ˣ = 6e²ˣ and −1 × (−e⁻ˣ) = e⁻ˣ
Answer: dy/dx = 6e²ˣ + e⁻ˣ + 4
Differentiating ln x
The graph of y = ln x is the reflection of y = eˣ in y = x. Its gradient at x = 1 is 1, at x = 3 it is one third, and it keeps getting smaller as x grows.
Key fact: (d/dx)(ln x) = 1/x, for x > 0
Use the laws of logarithms before you differentiate. Since ln (kx) = ln k + ln x and ln k is a constant, (d/dx)ln (kx) = 1/x for any positive k.
Worked example: using log laws first
Differentiate y = ln (5x) + ln (x³)
y = ln 5 + ln x + 3 ln x = ln 5 + 4 ln x
Answer: dy/dx = 4/x
Differentiating a to the power x
Any positive number can be written as a power of e: a = e^(ln a). So aˣ = e^(x ln a), which is eᵏˣ with k = ln a.
Key fact: (d/dx)(aˣ) = aˣ ln a (d/dx)(aᵏˣ) = kaᵏˣ ln a
Worked example: base 2 and base 5
(a) Differentiate y = 2³ˣ (b) Find the gradient of y = 5ˣ at x = 1
(a) k = 3, a = 2, so dy/dx = 3 × 2³ˣ ln 2
(b) dy/dx = 5ˣ ln 5, so at x = 1 the gradient is 5 ln 5
Answer: (a) 3(2³ˣ) ln 2 (b) 5 ln 5 = 8.05 (3 s.f.)
The power rule does not apply here: xⁿ has a fixed power, but aˣ has the variable in the power.
Stationary points and rates of growth
To solve dy/dx = 0 you will often need to take logs. Leave answers in terms of ln when the question asks for exact values.
Worked example: an exact stationary point
Find the stationary point of y = e²ˣ − 6x
dy/dx = 2e²ˣ − 6 = 0, so e²ˣ = 3 and x = (1/2)ln 3
y = 3 − 6 × (1/2)ln 3 = 3 − 3 ln 3
Answer: ((1/2)ln 3, 3 − 3 ln 3)
Worked example: a growth model
The number of members of a club is modelled by P = 200e^(0.03t), where t is in months. Find the rate of growth when t = 10.
dP/dt = 200 × 0.03e^(0.03t) = 6e^(0.03t). At t = 10: 6e^(0.3) = 8.099...
Answer: about 8.10 members per month
Notice that dP/dt = 0.03P: in exponential growth the rate of growth is proportional to the size.
Common mistakes
- Dropping the k: (d/dx)(e³ˣ) = 3e³ˣ, not e³ˣ and not 3xe^(3x − 1).
- Thinking (d/dx)ln (4x) = 4/x. Use ln 4x = ln 4 + ln x: the answer is 1/x.
- Using the power rule on aˣ: (d/dx)(3ˣ) = 3ˣ ln 3, not x × 3ˣ⁻¹.
- Writing ln (x + 3) = ln x + ln 3. The log laws split products, not sums.
Revision questions
Try these, then check your answers below each one.
Question 1. Differentiate y = e⁴ˣ. (Choose from: 4e⁴ˣ; e⁴ˣ; 4xe^(4x − 1); (1/4)e⁴ˣ.)
Answer: 4e⁴ˣ
Working: With k = 4: 4e⁴ˣ.
Question 2. Find the gradient of y = ln (6x) at the point where x = 2.
Answer: 0.5
Working: dy/dx = 1/x, so the gradient at x = 2 is 1/2.
Question 3. Differentiate y = 3ˣ. (Choose from: 3ˣ ln 3; x × 3^(x − 1); 3ˣ; 3ˣ/(ln 3).)
Answer: 3ˣ ln 3
Working: (d/dx)(eˣ ln 3)) = ln 3 × eˣ ln 3) = 3ˣ ln 3. The power rule does not apply when the variable is in the power.
Related lessons
- Previous lesson: 9.1 Differentiating sin x and cos x
- Next lesson: 9.3 The Chain Rule
- In this chapter: 9.4 The Product Rule
- In this chapter: 9.5 The Quotient Rule
- In this chapter: 9.6 Differentiating Trigonometric Functions
Continue in the full course
This lesson is section 9.2 of our free A-level Maths Year 2 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 2 course.