Logarithmic differentiation
For y = u^v (a variable raised to a variable power) or a long product, take log of both sides first, then differentiate.
The method
Here u^v means u raised to the power v.
- 1Take log of both sides: for y = u^v, log y = v log u.
- 2Differentiate both sides with respect to x: (1/y) dy/dx = v′ log u + v × u′/u.
- 3★Multiply both sides by y.
- 4Replace y by the original expression u^v.
★ key step
Example 1: a variable power
Differentiate y = x^(√x), x > 0.
- Take log: log y = √x log x
- Differentiate (product rule): (1/y) dy/dx = [1/(2√x)] log x + √x × (1/x)
- = (log x)/(2√x) + 1/√x = (log x + 2)/(2√x)
- dy/dx = y × (2 + log x)/(2√x)
dy/dx = x^(√x) (2 + log x)/(2√x)
Example 2: a sum of two powers
Find dy/dx if y = xˣ + (sin x)ˣ, 0 < x < π.
- Let u = xˣ and v = (sin x)ˣ. Then dy/dx = du/dx + dv/dx.
- log u = x log x, so (1/u) du/dx = log x + 1, and du/dx = xˣ(1 + log x).
- log v = x log(sin x), so (1/v) dv/dx = log(sin x) + x × (cos x/sin x).
- dv/dx = (sin x)ˣ [log(sin x) + x cot x]
- Add the two parts.
dy/dx = xˣ(1 + log x) + (sin x)ˣ [log(sin x) + x cot x]
Example 3: a long product and quotient
Find dy/dx if y = (x + 1)²(x − 2)³/(x + 3)⁴, x > 2.
- Take log: log y = 2 log(x + 1) + 3 log(x − 2) − 4 log(x + 3)
- Differentiate: (1/y) dy/dx = 2/(x + 1) + 3/(x − 2) − 4/(x + 3)
- Multiply by y.
dy/dx = [(x + 1)²(x − 2)³/(x + 3)⁴] × [2/(x + 1) + 3/(x − 2) − 4/(x + 3)]
Log of a product vs log of a sum
This one mistake costs the most marks in this topic.
Before calculators, engineers and scientists multiplied large numbers with log tables, turning products into sums. Logarithmic differentiation uses the same trick to tame hard powers and products.
2 marks: “Find dy/dx if y = xˣ, x > 0.” log y = x log x. (1/y) dy/dx = log x + 1. So dy/dx = xˣ(1 + log x).
3 marks: “Find dy/dx if y = (sin x)^(cos x), 0 < x < π/2.” log y = cos x log(sin x). (1/y) dy/dx = −sin x log(sin x) + cos x cot x. So dy/dx = (sin x)^(cos x) [cos x cot x − sin x log(sin x)].
5 marks: “Find dy/dx if y = x^(cos x) + (cos x)^(sin x), 0 < x < π/2.” u = x^(cos x): du/dx = x^(cos x)[(cos x)/x − sin x log x]. v = (cos x)^(sin x): dv/dx = (cos x)^(sin x)[cos x log(cos x) − sin x tan x]. dy/dx = du/dx + dv/dx.
Power on power? Take log first. Sum of powers? Split first.