d/dx x^x = x^x(ln x + 1) · logarithmic differentiation

Derivative of xx

0methods worked0practice questions0students taught0teaching online since
the answer

The derivative of x^x is x^x(ln x + 1), by logarithmic differentiation. Defined for x > 0.

the rule

📐 Logarithmic differentiation

Take ln of both sides, differentiate implicitly, multiply back by y.

d/dx xx = xx(ln x + 1).

step by step

✍️ Differentiating xx

  1. Neither the power rule (base varies) nor the exponential rule (exponent varies) applies on its own: both x's vary.
  2. Let y = xx and take logs: ln y = x ln x.
  3. Differentiate both sides: (1/y)·dy/dx = ln x + x·(1/x) = ln x + 1 (product rule on the right).
  4. Multiply by y: dy/dx = y(ln x + 1) = xx(ln x + 1).
why it is true

🔍 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.

at a point

📍 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.

Pointxxxx(ln x + 1)Tangent line
x = 0.50.70710.217y = 0.217x + 0.5986
x = 111y = x
x = 246.7726y = 6.7726x − 9.5452
x = 32756.6625y = 56.6625x − 142.9876
the family

👪 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.

FunctionDerivative
a constant0the page
|x|x/|x|, and none at 0the page
xyy + x·dy/dxthe page
an integralf(x), by the fundamental theoremthe page
an inverse function1 / f′(f−1(x))the page
a fraction(u′v − uv′)/v2the page
mistakes

⚠️ 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.
try another number

🧮 Calculator

The answer appears here, with the working in words.

practice

✏️ 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

where this is taught

📚 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.

Book a free demoLet's go!

The maths library, by topic
Questions

Asked about Derivative of xx

1What is the derivative of x^x?
x^x(ln x + 1), by logarithmic differentiation. Defined for x > 0.
2Which rule differentiates x^x?
Logarithmic differentiation: Take ln of both sides, differentiate implicitly, multiply back by y.
3How do you differentiate x^x step by step?
Neither the power rule (base varies) nor the exponential rule (exponent varies) applies on its own: both x's vary. Let y = x^x and take logs: ln y = x ln x.
4What is the slope of y = x^x at x = 3?
56.6625 (to four decimal places): the derivative evaluated at that point. The tangent line there is y = 56.6625x − 142.9876.