Logarithmic Differentiation (x^x) Equation Solver with Worked Examples

Logarithmic differentiation finds derivatives such as by taking logs first. Type “differentiate x^x” and the solver gives the result.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Logarithmic differentiation (x^x) means

When the variable is in both the base and the exponent, the power rule and the exponential rule both fail. Take natural logs of both sides, differentiate implicitly, then multiply back by .

For : , so , and .

The same method simplifies long products and quotients. It is used for the derivative of a to the power x, depends on implicit differentiation, and the basic step is the derivative of ln x.

This page is part of Differentiation in Calculus. Topics that work alongside it: Derivative of a^x, Implicit differentiation (rule), Derivative of ln x, Mean value theorem, Leibniz rule for the nth derivative of a product and Intermediate value theorem.

What is it used for?

Logarithmic differentiation takes logs of both sides before differentiating. It handles functions such as xˣ, where the variable is in both the base and the power, and long products and quotients.

How to use logarithmic differentiation (x^x)

  1. Take of both sides.
  2. Use log laws to simplify.
  3. Differentiate implicitly.
  4. Multiply by and substitute back.

Graph

y = xˣ for x > 0minimum at x = 1/e0.20.40.60.811.21.41.61.822.22.40123456y = xˣ for x > 0xyy = xˣGraph with x from 0.05 to 2.5 and y from 0 to 6. Shows the curve y = xˣ; point minimum at x = 1/e at (0.368, 0.692).

Logarithmic differentiation gives dy/dx = xˣ(ln x + 1), which is zero at x = 1/e ≈ 0.368. That is the lowest point of the curve.

Worked examples

The examples marked with a button were worked out by the solver on this page. You can try each one yourself.

Example 1: differentiate x^x

Differentiate .

Derivative
Answer
xx(ln⁡(x)+1)x^{x} \left(\ln\left(x\right)+1\right)
  1. Differentiate with respect to
  2. Rules used
    power rule:
  3. Combine the terms

Example 2: differentiate 2^x

Differentiate with the same idea.

Derivative
Answer
2xln⁡(2)2^{x} \ln\left(2\right)
  1. Differentiate with respect to
  2. Rules used
    power rule:
  3. Combine the terms

Example 3: x to the power x again

Differentiate x^(2x).

Derivative
Answer
2x2x(ln⁡(x)+1)2 x^{2 x} \left(\ln\left(x\right)+1\right)
  1. Differentiate with respect to
  2. Rules used
    power rule: , product rule
  3. Combine the terms

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

y = xˣ

y′ = xˣ(ln x + 1)

Take logs, differentiate implicitly.

At x = 1

y′ = 1

ln 1 = 0.

y = 2ˣ

y′ = 2ˣ ln 2

Matches the aˣ rule.

y = x^(2x)

y′ = x^(2x)(2 ln x + 2)

ln y = 2x ln x.

Word problems

To differentiate a power with a variable exponent, take ln of both sides, differentiate implicitly, then multiply by y.

y = xˣ

Differentiate y = xˣ and find y′ at x = 2 to 4 decimal places.

  1. Take logsln y = x ln x
  2. Differentiatey′/y = ln x + 1
  3. Multiply by yy′ = xˣ(ln x + 1)
  4. x = 24(1.6931)
  5. Check: 6.7726 ✓6.7726.

y = 2ˣ

Differentiate y = 2ˣ and find y′ at x = 3 to 4 decimal places.

  1. ln yx ln 2
  2. y′/yln 2
  3. y′2ˣ ln 2
  4. Check: 8 ln 2 = 5.5452 ✓5.5452.

y = x^(2x) Higher

Differentiate y = x^(2x) and find y′ at x = 1.

  1. ln y2x ln x
  2. y′/y2 ln x + 2
  3. x = 11 × 2
  4. Check: 2 ✓2.

A product Higher

Differentiate y = x²(x + 1)³ by logs at x = 1.

  1. ln y2 ln x + 3 ln(x + 1)
  2. y′/y2/x + 3/(x + 1)
  3. At x = 1y = 8, y′ = 8 × 3.5
  4. Check: 28 ✓28.

Common mistakes

Using the power rule

d/dx xˣ = x·x^(x−1) ✗

xˣ(ln x + 1) ✓

The exponent varies.

Forgetting to multiply by y

y′ = ln x + 1 ✗

y′ = y(ln x + 1) ✓

Multiply back.

Differentiating ln y as 1/y only

d/dx ln y = 1/y ✗

(1/y) dy/dx ✓

Use the chain rule.

Treating xˣ like aˣ

d/dx xˣ = xˣ ln x ✗

xˣ(ln x + 1) ✓

Product rule on x ln x.

Exam tips

  1. Take ln of both sides.
  2. Differentiate implicitly.
  3. Multiply by y.
  4. Product rule for x ln x.
  5. Good for products and powers.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. y = xˣ: find y′ at x = 1 Foundation

1

2. y = 3ˣ: find y′ at x = 0 to 4 decimal places Foundation

1.0986

3. y = 2ˣ: find y′ at x = 1 to 4 decimal places Foundation

1.3863

4. y = xˣ: find y′ at x = 3 to 3 decimal places Higher

56.628

5. y = x^(3x): find y′ at x = 1 Higher

3

6. y = 5ˣ: find y′ at x = 2 to 3 decimal places Higher

40.236

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Logarithmic differentiation
Differentiating ln y.
Implicit differentiation
Differentiating both sides.
Chain rule
d/dx ln y = y′/y.
Product rule
Used on x ln x.
Variable exponent
x in the power.
Natural logarithm
ln.

Frequently asked questions

What is logarithmic differentiation?

Taking ln first to make differentiating easier.

What is d/dx xˣ?

xˣ(ln x + 1).

When do I use it?

For variable exponents or long products.

Why multiply by y at the end?

Because y′/y was found.

Which page covers aˣ?

derivative of aˣ.

Which page covers implicit differentiation?

implicit differentiation.

More in Calculus and the formula sheets.