Derivative of xx
The derivative of x^x is x^x(ln x + 1), by logarithmic differentiation. Defined for x > 0.
📐 Logarithmic differentiation
Take ln of both sides, differentiate implicitly, multiply back by y.
d/dx xx = xx(ln x + 1).
✍️ Differentiating xx
- Neither the power rule (base varies) nor the exponential rule (exponent varies) applies on its own: both x's vary.
- Let y = xx and take logs: ln y = x ln x.
- Differentiate both sides: (1/y)·dy/dx = ln x + x·(1/x) = ln x + 1 (product rule on the right).
- Multiply by y: dy/dx = y(ln x + 1) = xx(ln x + 1).
🔍 Where the rule comes from
xx = ex ln x, so the chain rule on eu with u = x ln x gives ex ln x·(ln x + 1), the same answer: logarithmic differentiation is this rewriting in disguise. The slope is zero at x = 1/e, the minimum of xx.
📍 The slope of xx at a point, and the tangent line
f′(a) is the slope of the graph at x = a, and the tangent line there is y = f′(a)(x − a) + f(a). Values to four decimal places; the calculator below gives any other point.
| Point | xx | xx(ln x + 1) | Tangent line |
|---|---|---|---|
| x = 0.5 | 0.7071 | 0.217 | y = 0.217x + 0.5986 |
| x = 1 | 1 | 1 | y = x |
| x = 2 | 4 | 6.7726 | y = 6.7726x − 9.5452 |
| x = 3 | 27 | 56.6625 | y = 56.6625x − 142.9876 |
👪 Rules and special cases: the derivatives side by side
The same rule, or the same trap, runs through the whole family; each row has its own worked page.
⚠️ The mistakes that lose the marks
- Using the power rule: x·xx−1 is wrong.
- Using the exponential rule: xx ln x is wrong; the correct derivative has both terms, ln x + 1.
🧮 Calculator
The answer appears here, with the working in words.
✏️ Five questions, answers hidden
1. Differentiate x^(2x).
Answer: 2x^(2x)(ln x + 1)
2. Differentiate (2x)^x.
Answer: (2x)^x(ln(2x) + 1)
3. Where is the slope of y = x^x zero?
Answer: x = 1/e ≈ 0.368
4. What is the slope of y = x^x at x = 1?
Answer: 1
5. Differentiate x^(1/x).
Answer: x^(1/x)(1 − ln x)/x^2
📚 The class this belongs to
Derivatives are taught in AP Calculus AB and BC and in Calculus 1 in the US (the power, product, quotient and chain rules, trigonometric, exponential and logarithmic derivatives, implicit differentiation), in A-level Maths (Year 12 and 13, Pure) in the UK, in IB Mathematics Analysis and Approaches (Topic 5), in Class 11 and 12 in CBSE (NCERT Limits and Derivatives, Continuity and Differentiability) and in Mathematical Methods (Units 3 and 4) and Specialist Mathematics in Australia.
If this page is the homework and the method is not sticking, that is what a 1-on-1 class fixes: one tutor with a master's degree, one child, on a shared whiteboard, in your time zone, about US$10 to $13 an hour. How 1-on-1 online tutoring works.
