Derivative of $x^{x}$

Differentiated with respect to x. Edit the function · Differentiation rules

Step-by-step solution

Input function
$$x^{x}$$

Start of the differentiation
$$\frac{d}{dx}{\left[x^{x}\right]}$$

Yellow: the expression being replaced. Green: its replacement.

Step 1 — General Power Rule Differentiation rule
📖 Rule
$$\frac{d}{dx}\left(u^{v}\right)=u^{v}\,\big(v'\,\ln(u)+\frac{v\,u'}{u}\big)$$
With:
  • $u = x$
  • $v = x$

Why: Both the base and the exponent depend on x. Both changes contribute to the derivative. This real formula assumes a positive base.

🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x^{x}\right]}\,}}}$$
✨ After: General Power Rule
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,x^{x}\,\left(\frac{d}{dx}{\left[x\right]}\,\ln\left(x\right) + x \cdot \frac{\frac{d}{dx}{\left[x\right]}}{x}\right)\,}}}$$
Step 2 — Derivative of a Variable Differentiation rule
📖 Rule
$$\frac{d}{dx}(x)=1$$

Why: When x increases by one, the value of this term also increases by one. Its derivative is therefore one.

Changed part: $\frac{d}{dx}{\left[x\right]} \;\Longrightarrow\; 1$
🧮 Current expression
$$x^{x}\,\left(\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x\right]}\,}}}\,\ln\left(x\right) + x \cdot \frac{\frac{d}{dx}{\left[x\right]}}{x}\right)$$
✨ After: Derivative of a Variable
$$x^{x}\,\left(\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,1\,}}}\,\ln\left(x\right) + x \cdot \frac{\frac{d}{dx}{\left[x\right]}}{x}\right)$$
Step 3 — Remove a factor of one Simplification
📖 Rule
$$1\cdot a=a,\quad \frac{a}{1}=a$$

Why: Multiplication or division by one leaves the value unchanged.

Changed part: $1\,\ln\left(x\right) \;\Longrightarrow\; \ln\left(x\right)$
🧮 Current expression
$$x^{x}\,\left(\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,1\,\ln\left(x\right)\,}}} + x \cdot \frac{\frac{d}{dx}{\left[x\right]}}{x}\right)$$
✨ After: Remove a factor of one
$$x^{x}\,\left(\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\ln\left(x\right)\,}}} + x \cdot \frac{\frac{d}{dx}{\left[x\right]}}{x}\right)$$
Step 4 — Derivative of a Variable Differentiation rule
📖 Rule
$$\frac{d}{dx}(x)=1$$

Why: When x increases by one, the value of this term also increases by one. Its derivative is therefore one.

Changed part: $\frac{d}{dx}{\left[x\right]} \;\Longrightarrow\; 1$
🧮 Current expression
$$x^{x}\,\left(\ln\left(x\right) + x \cdot \frac{\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x\right]}\,}}}}{x}\right)$$
✨ After: Derivative of a Variable
$$x^{x}\,\left(\ln\left(x\right) + x \cdot \frac{\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,1\,}}}}{x}\right)$$
Step 5 — Combine into one fraction Simplification
📖 Rule
$$a\cdot\frac{b}{c}=\frac{a\cdot b}{c}$$

Why: A factor in front of a fraction multiplies its numerator, giving a single fraction.

Changed part: $x \cdot \frac{1}{x} \;\Longrightarrow\; \frac{x}{x}$
🧮 Current expression
$$x^{x}\,\left(\ln\left(x\right) + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,x \cdot \frac{1}{x}\,}}}\right)$$
✨ After: Combine into one fraction
$$x^{x}\,\left(\ln\left(x\right) + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{x}{x}\,}}}\right)$$
Step 6 — Cancel a common factor Simplification
📖 Rule
$$\frac{a^m}{a^n}=a^{m-n}$$

Why: The same factor appears in numerator and denominator. Cancelling subtracts the exponents. Points where this factor is zero remain excluded by the original conditions.

Changed part: $\frac{x}{x} \;\Longrightarrow\; 1$
🧮 Current expression
$$x^{x}\,\left(\ln\left(x\right) + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{x}{x}\,}}}\right)$$
✨ After: Cancel a common factor
$$x^{x}\,\left(\ln\left(x\right) + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,1\,}}}\right)$$
Final result
$$x^{x}\,\left(\ln\left(x\right) + 1\right)$$
Valid where:
  • $x>0$ – The general real power rule is applied on a positive base.

The derivative is only valid where the original function is defined.

Copy link to this solution
Cross-check with a computer algebra system

The derivative computed directly by the computer algebra system Maxima:

$$x^{x}\,\left(\log\left(x\right) + 1\right)$$

Step-by-step result ↔ Maxima: identical ✓