Skip to content
ihateDesmos

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.

0.51.01.52.0246
Open in calculator
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.

  1. 1
    Let y = xˣ, and take the natural log of both sides: ln y = x ln x.
  2. 2
    Differentiate both sides, using the product rule on the right: (1/y) dy/dx = ln x + 1.
  3. 3
    Multiply both sides by y: dy/dx = y (ln x + 1).
  4. 4
    Substitute 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.

Values of xˣ and its derivative
xxˣxˣ(ln x + 1)Slope, measured
1/4√2/2−0.273151−0.273151
0.3678790.6922010−0
1111
3/21.837122.5822.582
246.772596.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.

Open the derivative calculator