Question
Find dxd(xx).
Solution — Step by Step
xx is a variable raised to a variable power. Neither the power rule (dxdxn=nxn−1) nor the exponential rule (dxdax=axlna) applies here — those rules require either a constant exponent or a constant base. For xx, both base and exponent vary.
Logarithmic differentiation converts the problem into something manageable.
Let y=xx. Take ln of both sides:
lny=ln(xx)
Using the logarithm power rule ln(ab)=blna:
lny=xlnx
Differentiate implicitly. Left side uses the chain rule:
y1⋅dxdy=dxd(xlnx)
Right side uses the product rule: dxd(xlnx)=1⋅lnx+x⋅x1=lnx+1
So:
y1⋅dxdy=lnx+1
Multiply both sides by y:
dxdy=y(lnx+1)
Substitute back y=xx:
dxdy=xx(lnx+1)
Why This Works
xx can be rewritten as exlnx (using a=elna). Then:
dxd(exlnx)=exlnx⋅dxd(xlnx)=xx(lnx+1)
This is the same answer — logarithmic differentiation is just an organised way of applying this eln(⋅) trick. Taking ln first makes the algebra cleaner.
Logarithmic differentiation is used whenever you have:
- Variable to the power of variable: xx, xsinx, (sinx)x
- Long products/quotients: easier to differentiate ln(f⋅g) than f⋅g directly
The result xx(lnx+1) should pass a sanity check. At x=1: derivative =11(ln1+1)=1(0+1)=1. You can verify numerically: 1.0011.001≈1.001001..., giving slope ≈1. ✓
Write xx=exlnx directly.
Let u=xlnx, so y=eu.
dudy=eu and dxdu=lnx+1 (product rule).
By chain rule: dxdy=eu⋅dxdu=exlnx(lnx+1)=xx(lnx+1)
Both methods are equivalent — use whichever feels more natural.
Common Mistake
The most common error is treating xx as if the exponent is a constant: writing dxd(xx)=x⋅xx−1=xx. This incorrectly uses the power rule with the exponent “treated as constant.” The correct derivative xx(lnx+1) equals xx only when lnx+1=1, i.e., lnx=0, i.e., x=1. At any other x, the power rule approach gives the wrong answer.