01 · Gradient at one
Find the tangent to y = xˣ at x = 1.
Hint
1¹ = 1 and ln 1 = 0.
Worked solution
The gradient is 1, and the point is (1, 1). The tangent is y − 1 = x − 1, or y = x.
Understand · explore · practise
Differentiate x to the power x and other variable powers using logarithms. Separate base and exponent contributions, simplify products and quotients, and keep real-domain restrictions.
Before you startImplicit differentiation; chain rule; natural logarithm laws
01 / Let logarithms expose a changing exponent
If y = uᵛ with u > 0:
ln y = v ln u
y′/y = v′ ln u + v u′/u
The formula has two contributions: one from the changing exponent and one from the changing base. Multiply by y at the end to obtain y′. Here u and v are differentiable functions of x on the interval being considered.
u = x; v = x. Base term = 1; exponent term = ln x.
x = 1; y = 1; y′/y = 1; y′ = 1.
Both base and exponent vary. Add their relative contributions, then multiply by the function value.
All model inputs have a positive base. Negative bars mean a negative contribution. The bars show y′/y, while the gold tangent shows the actual derivative y′.
02 / Differentiate x to the power x
ln y = x ln x
Take natural logs on the positive domain.
y′/y = ln x + 1
Differentiate the right side with the product rule.
y′ = y(ln x + 1)
Multiply by y; the left derivative was y′/y, not y′.
y′ = xˣ(ln x + 1)
Replace y with the original function.
Pause, replay or seek freely. The notes explain the same idea and stay in view.
Find the tangent to y = xˣ at x = 1.
1¹ = 1 and ln 1 = 0.
The gradient is 1, and the point is (1, 1). The tangent is y − 1 = x − 1, or y = x.
03 / Distinguish constant and variable powers
y = x²: y′ = 2x
Only the base varies; the ordinary power rule applies.
y = 2ˣ: y′ = 2ˣ ln 2
Only the exponent varies; use the exponential derivative.
y = xˣ: y′ = xˣ(ln x + 1)
Both vary, so both contributions are needed.
A student writes d/dx(xˣ) = x·x^(x − 1) = xˣ. Why is that incomplete?
The power-rule calculation has treated the exponent as constant.
It captures only the changing-base contribution. The additional changing-exponent term is xˣ ln x, so the full derivative is xˣ(1 + ln x).
Differentiate y = x^(2x), for x > 0.
ln y = 2x ln x.
y′/y = 2 ln x + 2, hence y′ = 2x^(2x)(ln x + 1).
04 / Differentiate a changing base and exponent
ln y = x ln(x + 2)
The positive-base condition gives the stated domain.
y′/y = ln(x + 2) + x/(x + 2)
Differentiate both factors.
y′ = (x + 2)ˣ[ln(x + 2) + x/(x + 2)]
Restore the original function.
Find the derivative of (x + 2)ˣ at x = 0.
The function value is 2⁰ = 1.
The derivative is ln 2, since the base-change contribution x/(x + 2) vanishes at zero.
Differentiate (3x + 1)^(x²) for x > −1/3.
Differentiate x² ln(3x + 1).
The derivative is (3x + 1)^(x²)[2x ln(3x + 1) + 3x²/(3x + 1)].
05 / Use trig functions in a variable power
ln y = sin x · ln x
Take natural logs.
y′/y = cos x ln x + sin x/x
The derivative of sin x assumes radians.
y′ = x^(sin x)[cos x ln x + sin x/x]
Multiply by the original y.
Differentiate (sin x)ˣ on 0 < x < π.
The sine is positive on this interval.
The derivative is (sin x)ˣ[ln(sin x) + x cot x]. The formula is justified on the stated open interval.
Differentiate (eˣ)^(cos x) for real x.
Rewrite it as e^(x cos x).
The derivative is e^(x cos x)(cos x − x sin x). This agrees with logarithmic differentiation and the base is positive everywhere.
06 / Turn a product into a sum of logarithms
ln y = 2 ln x + 3 ln(x + 1) − ln(x + 2)
All factors in these logarithms are positive on the chosen domain.
y′/y = 2/x + 3/(x + 1) − 1/(x + 2)
Differentiate each term.
y′ = [x²(x + 1)³/(x + 2)] [2/x + 3/(x + 1) − 1/(x + 2)]
A factored answer is often clearer than an expansion.
For this y, find y′ at x = 1.
First find y = 8/3 and the bracket 2 + 3/2 − 1/3.
The bracket is 19/6, so y′ = (8/3)(19/6) = 76/9.
Differentiate y = √x (x + 2)²/(x + 1), for x > 0.
Use ln y = ½ ln x + 2 ln(x + 2) − ln(x + 1).
y′ = [√x (x + 2)²/(x + 1)] [1/(2x) + 2/(x + 2) − 1/(x + 1)].
07 / Use ln|y| on a nonzero branch
d/dx[ln|y|] = y′/y, where y ≠ 0
ln|y| = 2 ln|x| + ln|x − 2|
Work on intervals excluding x = 0 and x = 2.
y′/y = 2/x + 1/(x − 2)
The log derivatives keep the signed denominators.
y′ = x²(x − 2)[2/x + 1/(x − 2)] = 3x² − 4x
This simplifies to the polynomial derivative away from the zeros.
At x = 0 and x = 2, differentiate the original polynomial
The derivative exists there: 0 and 4 respectively. The log step itself was not valid at those zeros.
For y = x²(x − 2), find the value and derivative at x = 1.
The value is negative, so ln y is not real. ln|y| is valid.
y = −1; y′ = −1. Logarithmic differentiation gives y′/y = 2 − 1 = 1, then y′ = (−1)·1 = −1.
Why can the log formula for this polynomial not be substituted into at x = 2, although its derivative is 4 there?
The function value is zero.
ln|y| and y′/y are undefined at y = 0. Use the original polynomial or a justified limit of the simplified derivative; do not substitute into a formula containing 1/(x − 2).
08 / State where the logarithmic argument is valid
For a general real exponent v(x), define u(x)^v(x) = exp[v(x) ln u(x)] on intervals where u(x) > 0. Negative bases may give isolated real values for certain rational exponents, but this does not create an open real domain for the same general logarithmic formula.
Do not claim that every power with a negative base is undefined: a fixed integer power such as x³ is defined for negative x. Choose the domain for the actual function and method.
Give a positive-base interval and derivative for (x − 1)^(x + 1).
Require x − 1 > 0.
On x > 1, the derivative is (x − 1)^(x + 1)[ln(x − 1) + (x + 1)/(x − 1)]. No claim is made about an extension at or below x = 1.
09 / Use the sign of the logarithmic derivative
y′ = xˣ(ln x + 1)
The factor xˣ is positive.
ln x + 1 = 0 gives x = e⁻¹
There is exactly one stationary input.
y′ < 0 before e⁻¹ and y′ > 0 after e⁻¹
The function decreases then increases.
Minimum point: (e⁻¹, e^(−1/e))
The minimum is attained on the positive domain.
Find the stationary point of y = x^(2x), x > 0, and classify it.
The sign comes from 2(ln x + 1).
The minimum is at (e⁻¹, e^(−2/e)). The derivative changes from negative to positive.
10 / Separate a relative rate from an absolute rate
y = 4
Evaluate the original function.
y′/y = ln 2 + 1
This is the relative rate per unit x.
y′ = 4(ln 2 + 1)
Multiply to obtain the actual gradient.
For y = (x + 1)ˣ, a solution stops at ln(x + 1) + x/(x + 1). What quantity has it found?
It came from differentiating ln y.
It has found y′/y. Multiply by (x + 1)ˣ to obtain y′, on x > −1.
If y = 6 and y′/y = −0.4 at a point, find y′.
Multiply the relative rate by y.
y′ = 6(−0.4) = −2.4. The two quantities have different meanings.
11 / Take logs, differentiate and restore y
Differentiate y = (x² + 1)^(2x) for real x.
The base is positive for every real x.
y′ = (x² + 1)^(2x)[2 ln(x² + 1) + 4x²/(x² + 1)].
Section 1 of 11 · Let logarithms expose a changing exponent