- Practice
- About 16 min
- 5 practice questions
Logarithmic differentiation
Differentiate xˣ, powers such as (sin x)^(cos x) and long products and quotients of brackets by taking logarithms first, split sums correctly, and solve equations such as xʸ = e^(x − y).
If something looks wrong, please tell us.
Neither the power rule nor the exponential rule can handle xˣ, because the variable is in the base and in the exponent at the same time. Taking logarithms brings the exponent down and turns products into sums. The same trick shortens the derivative of a long product or quotient of brackets, which is the other place it is used in exams.
The method
- Write y = the function and take ln of both sides (where the function is positive).
- Simplify with the log laws: ln(uv) = ln u + ln v, ln(u/v) = ln u − ln v, ln(uᵏ) = k ln u.
- Differentiate implicitly: the left side becomes (1/y) dy/dx.
- Multiply by y and write y back in terms of x.
Worked example 1: y = xˣ
For x > 0, ln y = x ln x. Differentiate: (1/y) y′ = ln x + x × (1/x) = ln x + 1. So y′ = xˣ(1 + ln x). Notice that x × xˣ⁻¹ (the power rule, treating the exponent as constant) equals xˣ, and xˣ ln x (the exponential rule, treating the base as constant) is the other part. The correct derivative is their sum. Either part alone is a classic wrong option.
If y = u^v with u > 0, then dy/dx = u^v [v′ ln u + v u′/u]: the power-rule part plus the exponential-rule part.
Worked example 2: (sin x)^(cos x)
For 0 < x < π, so that sin x > 0, let y = (sin x)^(cos x). Then ln y = cos x × ln(sin x). Differentiate: y′/y = −sin x ln(sin x) + cos x × (cos x/sin x). So y′ = (sin x)^(cos x) [cos x cot x − sin x ln(sin x)].
Worked example 3: a product of many brackets
Find y′(0) for y = (x + 1)²(x + 2)³/(x + 3)⁴. Taking logs: ln y = 2 ln(x + 1) + 3 ln(x + 2) − 4 ln(x + 3), so y′/y = 2/(x + 1) + 3/(x + 2) − 4/(x + 3). At x = 0: y = 1 × 8/81 = 8/81 and y′/y = 2 + 3/2 − 4/3 = 13/6. So y′(0) = (8/81) × (13/6) = 52/243. The quotient rule with product rules inside would take far longer.
Sums must be split
Logarithms do not split sums: ln(u + v) is not ln u + ln v. For y = xˣ + x^(1/x), write u = xˣ and v = x^(1/x) and differentiate each separately. We know u′ = xˣ(1 + ln x). For v, ln v = (ln x)/x, so v′/v = (1 − ln x)/x² and v′ = x^(1/x)(1 − ln x)/x². Then y′ = xˣ(1 + ln x) + x^(1/x)(1 − ln x)/x².
Worked example 4: x and y both in powers
If xʸ = e^(x − y), find dy/dx. Take logs: y ln x = x − y, so y(1 + ln x) = x and y = x/(1 + ln x). The quotient rule now gives y′ = [(1 + ln x) − x × (1/x)]/(1 + ln x)² = ln x/(1 + ln x)². Taking logs and then solving for y avoids implicit differentiation altogether when it is possible.
Key takeaways: take logs when the variable is in an exponent, or when there are many factors. The derivative of u^v is the power-rule part plus the exponential-rule part. Differentiate each term of a sum separately. After taking logs, try solving for y before differentiating.
Check your understanding
-
1. If y = x^(sin x) for x > 0, what is dy/dx?
- x^(sin x) cos x ln x
- x^(sin x) [cos x ln x + (sin x)/x]
- sin x × x^(sin x − 1)
- x^(sin x) [cos x ln x − (sin x)/x]
Show answer
Answer: B. ln y = sin x ln x, so y′/y = cos x ln x + (sin x)/x. Multiply by y: y′ = x^(sin x)[cos x ln x + (sin x)/x]. Each of the first two wrong options is only one of the two parts.
-
2. If y = xˣ, what is dy/dx at x = e?
- eᵉ
- 2e
- e^(e + 1)
- 2eᵉ
Show answer
Answer: D. y′ = xˣ(1 + ln x). At x = e: eᵉ(1 + 1) = 2eᵉ.
-
3. If xʸ = e^(x − y), what is dy/dx?
- ln x/(1 + ln x)²
- 1/(1 + ln x)
- ln x/(1 + ln x)
- −ln x/(1 + ln x)²
Show answer
Answer: A. Taking logs: y ln x = x − y, so y = x/(1 + ln x). Quotient rule: [(1 + ln x) − x × (1/x)]/(1 + ln x)² = ln x/(1 + ln x)².
-
4. If y = (1 + x)³ √(1 + 2x)/(1 + 3x)², what is dy/dx at x = 0?
- −2
- 10
- −5/2
- 4
Show answer
Answer: A. ln y = 3 ln(1 + x) + ½ ln(1 + 2x) − 2 ln(1 + 3x), so y′/y = 3/(1 + x) + 1/(1 + 2x) − 6/(1 + 3x). At x = 0: y = 1 and y′/y = 3 + 1 − 6 = −2, so y′(0) = −2.
-
5. If y = (ln x)ˣ for x > 1, what is dy/dx?
- (ln x)ˣ⁻¹
- (ln x)ˣ [ln(ln x) + 1/ln x]
- (ln x)ˣ ln(ln x)
- (ln x)ˣ [ln(ln x) + x/ln x]
Show answer
Answer: B. ln y = x ln(ln x). Differentiate: y′/y = ln(ln x) + x × (1/ln x) × (1/x) = ln(ln x) + 1/ln x. Multiply by y.
Sign in to keep track of the lessons you finish.