Derivative of $x^{2\,x}$

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

Step-by-step solution

Input function
$$x^{2\,x}$$

Start of the differentiation
$$\frac{d}{dx}{\left[x^{2\,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 = 2\,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^{2\,x}\right]}\,}}}$$
✨ After: General Power Rule
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,x^{2\,x}\,\left(\frac{d}{dx}{\left[2\,x\right]}\,\ln\left(x\right) + 2\,x \cdot \frac{\frac{d}{dx}{\left[x\right]}}{x}\right)\,}}}$$
Step 2 — Constant Factor Rule Differentiation rule
📖 Rule
$$\frac{d}{dx}(c\,u)=c\,u'$$
With:
  • $c = 2$
  • $u = x$

Why: Keep the constant multiplier outside the derivative. Next, differentiate only the part depending on x.

Changed part: $\frac{d}{dx}{\left[2\,x\right]} \;\Longrightarrow\; 2\,\frac{d}{dx}{\left[x\right]}$
🧮 Current expression
$$x^{2\,x}\,\left(\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[2\,x\right]}\,}}}\,\ln\left(x\right) + 2\,x \cdot \frac{\frac{d}{dx}{\left[x\right]}}{x}\right)$$
✨ After: Constant Factor Rule
$$x^{2\,x}\,\left(\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,\frac{d}{dx}{\left[x\right]}\,}}}\,\ln\left(x\right) + 2\,x \cdot \frac{\frac{d}{dx}{\left[x\right]}}{x}\right)$$
Step 3 — 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^{2\,x}\,\left(2\,\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x\right]}\,}}}\,\ln\left(x\right) + 2\,x \cdot \frac{\frac{d}{dx}{\left[x\right]}}{x}\right)$$
✨ After: Derivative of a Variable
$$x^{2\,x}\,\left(2 \cdot \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,1\,}}}\,\ln\left(x\right) + 2\,x \cdot \frac{\frac{d}{dx}{\left[x\right]}}{x}\right)$$
Step 4 — 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: $2 \cdot 1 \;\Longrightarrow\; 2$
🧮 Current expression
$$x^{2\,x}\,\left(\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2 \cdot 1\,}}}\,\ln\left(x\right) + 2\,x \cdot \frac{\frac{d}{dx}{\left[x\right]}}{x}\right)$$
✨ After: Remove a factor of one
$$x^{2\,x}\,\left(\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,}}}\,\ln\left(x\right) + 2\,x \cdot \frac{\frac{d}{dx}{\left[x\right]}}{x}\right)$$
Step 5 — 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^{2\,x}\,\left(2\,\ln\left(x\right) + 2\,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^{2\,x}\,\left(2\,\ln\left(x\right) + 2\,x \cdot \frac{\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,1\,}}}}{x}\right)$$
Step 6 — 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: $2\,x \cdot \frac{1}{x} \;\Longrightarrow\; \frac{2\,x}{x}$
🧮 Current expression
$$x^{2\,x}\,\left(2\,\ln\left(x\right) + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,x \cdot \frac{1}{x}\,}}}\right)$$
✨ After: Combine into one fraction
$$x^{2\,x}\,\left(2\,\ln\left(x\right) + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{2\,x}{x}\,}}}\right)$$
Step 7 — 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{2\,x}{x} \;\Longrightarrow\; 2$
🧮 Current expression
$$x^{2\,x}\,\left(2\,\ln\left(x\right) + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{2\,x}{x}\,}}}\right)$$
✨ After: Cancel a common factor
$$x^{2\,x}\,\left(2\,\ln\left(x\right) + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,2\,}}}\right)$$
Final result
$$x^{2\,x}\,\left(2\,\ln\left(x\right) + 2\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^{2\,x}\,\left(2\,\log\left(x\right) + 2\right)$$

Step-by-step result ↔ Maxima: identical ✓