MethodMath
Ask
Join
HomeTopicsAskAlerts
Profile

© 2026 MethodMath. Built for mathematical knowledge sharing.

AboutContactGuidelinesPrivacyTermsCookies
Sarah Mitchell
Sarah Mitchell
May 4, 2026

Why is the derivative of x^x not x*x^(x-1)?

I keep making this mistake on my calculus exams.

When I see f(x)=xxf(x) = x^xf(x)=xx, my instinct is to use the power rule:

f′(x)=x⋅xx−1=xxf'(x) = x \cdot x^{x-1} = x^xf′(x)=x⋅xx−1=xx

But thats wrong! The correct answer involves ln⁡x\ln xlnx:

ddxxx=xx(1+ln⁡x)\frac{d}{dx} x^x = x^x (1 + \ln x)dxd​xx=xx(1+lnx)

But WHY doesnt the power rule work? The power rule says ddxxn=nxn−1\frac{d}{dx} x^n = nx^{n-1}dxd​xn=nxn−1, so if n=xn = xn=x, isnt it x⋅xx−1x \cdot x^{x-1}x⋅xx−1?

I think the issue is that the power rule requires the exponent to be a CONSTANT, not a variable. But why does that matter?

Can someone explain with the definition of derivative why the power rule fails when the exponent varies?

1 answers1.3k views

1 Answer

2
Chen Wei
Chen Wei
May 4, 2026
Accepted
Youre identifying the correct issue: **the power rule requires a constant exponent.** $$\frac{d}{dx} x^n = nx^{n-1}$$ This holds when $n$ is fixed and $x$ varies. If $n$ itself depends on $x$, you need both: 1. The power rule (treating the exponent as constant) 2. The exponential rule (treating the base as constant) This is a classic case for **logarithmic differentiation**: Let $y = x^x$. Take $\ln$ of both sides: $\ln y = x \ln x$. Differentiate: $\frac{y'}{y} = \ln x + x \cdot \frac{1}{x} = \ln x + 1$. So $y' = y(\ln x + 1) = x^x(\ln x + 1)$. **Alternatively using the multivariable chain rule:** Define $f(u,v) = u^v$. Then $\frac{\partial f}{\partial u} = v u^{v-1}$ and $\frac{\partial f}{\partial v} = u^v \ln u$. Let $u = x$, $v = x$. Then: $$\frac{df}{dx} = \frac{\partial f}{\partial u}\frac{du}{dx} + \frac{\partial f}{\partial v}\frac{dv}{dx} = x \cdot x^{x-1} + x^x \ln x \cdot 1 = x^x(1 + \ln x)$$ The first term ($x \cdot x^{x-1}$) is what the naive power rule gives. The second term accounts for the changing exponent.
Still unsure? Join to comment or ask a follow-up.
Login or Register to post your answer

Suggested questions

Why does 0 factorial equal 1 instead of 0? Simple proof

31.4k

Do I need Calculus 3 before learning Fourier series?

3501

Does 1+2+3+4+... really equal -1/12? Math explained

25.6k

Does the Banach-Steinhaus theorem hold for non-complete normed spaces?

31.1k

Can someone finally explain the Monty Hall problem?

24.2k