Derivative of xˣ
Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The derivative of xˣ
ddx(xx)=(ln(x)+1)xx
The derivative of xˣ is xˣ(ln x + 1), for x > 0. Neither the power rule nor the exponential rule applies, because the variable is in both the base and the exponent. Taking logs solves it.
y=xx
in blue and its derivative y=(ln(x)+1)xx
in red. Defined for x > 0.How to find the derivative of xˣ
Method: logarithmic differentiation.
- 1Let y = xˣ, and take the natural log of both sides: ln y = x ln x.
- 2Differentiate both sides, using the product rule on the right: (1/y) dy/dx = ln x + 1.
- 3Multiply both sides by y: dy/dx = y (ln x + 1).
- 4Substitute y = xˣ: dy/dx = xˣ(ln x + 1).
What it means on the graph
xˣ reaches its minimum where ln x + 1 = 0, at x = 1/e ≈ 0.368, with a value of about 0.692. After that, it grows faster than any exponential.
In the window shown, the derivative is zero at x = 0.367879. Those are the points where the graph of xˣ has a horizontal tangent.
Table of values
The derivative column uses the formula. The last column estimates the slope directly from the original function, as an independent check.
| x | xˣ | xˣ(ln x + 1) | Slope, measured |
|---|---|---|---|
| 1/4 | √2/2 | −0.273151 | −0.273151 |
| 0.367879 | 0.692201 | 0 | −0 |
| 1 | 1 | 1 | 1 |
| 3/2 | 1.83712 | 2.582 | 2.582 |
| 2 | 4 | 6.77259 | 6.77259 |
Common mistakes
- Using the power rule to get x·x^(x − 1) = xˣ. That is missing the ln x term.
- Using the exponential rule to get xˣ ln x. That is missing the +1 term.
Frequently asked questions
What is the derivative of xˣ?
The derivative of xˣ is xˣ(ln x + 1), for x > 0.
Why can’t I use the power rule on xˣ?
The power rule needs a constant exponent, and the exponential rule needs a constant base. Here both vary. Logarithmic differentiation handles them together, and the answer turns out to be the sum of what each rule would give.
Keep going
Differentiate any function
Type your own function into the derivative calculator and see every rule applied, step by step.