Blog · Calculus guides · 5 November 2026 · 4 min read
By the Asymptote team. Every answer on this page is checked by the same machine that grades the game.
Logarithmic Differentiation: Steps, x^x & Practice Problems

Logarithmic differentiation means taking of both sides of , using the log laws to break products, quotients and powers apart, then differentiating implicitly. It is the standard way to differentiate a variable raised to a variable power, like , and a shortcut for long products and quotients. Since , you finish by multiplying through by .
The formula
Logs turn multiplication into addition and powers into multiplication. You spend one line taking logs and save five lines of quotient rule.
When to use it
Use it in two situations. First, whenever appears in both the base and the exponent: , , . Neither the power rule (which needs a constant exponent) nor the rule for (which needs a constant base) applies, and logs are the way in. Second, for a product or quotient of three or more factors with powers and roots, where the quotient rule would be long and error-prone. The method rests on implicit differentiation: the left side becomes by the chain rule.
How to do it, step by step
- Take of both sides. becomes . You need for this; for the derivative it is fine to use and get the same answer.
- Expand with the log laws. , , and . Pull every power down to the front.
- Differentiate both sides. The left side gives . The right side is now a sum of simple logs, each differentiated with the chain rule.
- Multiply by and substitute it back. Replace with the original function so the answer is in alone.
Worked examples
Example 1: The classic: x to the x
EasyDifferentiate, for :
Take logs and bring the exponent down: .
Differentiate both sides. The right side is a product, times :
Multiply by to get on its own. The tempting wrong answer, , treats the exponent as a constant; it is not, which is the entire reason for this method.
Answer
Example 2: A trig function in the exponent
MediumDifferentiate, for :
Take logs: .
Differentiate the right side with the product rule:
Multiply both sides by and you are done. Notice the shape: the original function, times the derivative of its logarithm. Every logarithmic differentiation answer looks like this.
You can also get here without logs by writing and using the chain rule. It is the same calculation in a different coat, and some people find it easier to trust.
Answer
Example 3: A quotient without the quotient rule
HarderDifferentiate, for :
Three factors, a root and two powers: by the quotient rule this is a page of algebra. Take logs instead and let the log laws split it up:
Each term is now a one-line chain rule. The middle one gives .
Multiply by , written out in full. You can combine the bracket into one fraction if a question insists, but this form is correct and much harder to get wrong.
For comparison, the quotient rule here would need the product rule inside it for the top, plus a chain rule for the root, before any simplifying. Logs replaced all of that with three short derivatives and some addition.
Answer
Logarithmic differentiation practice problems
Three to try, easy to harder. Type an answer and it is checked instantly by the same checker that grades the game; any correct form counts. Stuck? The answer and the first step are under each one.
Problem 1
EasyDifferentiate, for :
Stuck? Show the answer
Answer
How to start
Take logs: . Differentiate the right side with the product rule, then multiply by .
Problem 2
MediumDifferentiate, for :
Stuck? Show the answer
Answer
How to start
. The product rule gives ; put both over before multiplying by .
Problem 3
HarderDifferentiate, for , without the quotient rule:
Stuck? Show the answer
Answer
How to start
Logs split it: . Differentiate each term with the chain rule, then multiply by .
Want more? Asymptote has 500 related problems, free, with no account.
Common mistakes
- Using the power rule on . is wrong: the power rule needs a constant exponent. So is , which treats the base as constant. The real answer contains both pieces: .
- Forgetting to multiply by . After differentiating you have , not . Stopping there gives the derivative of instead of the derivative of .
- Breaking the log laws. is not . The laws split products and quotients, never sums, so stays whole.
- Leaving in the answer. Substitute the original function back in, so the derivative is in terms of only.
- Confusing with . because the base is the constant . For the base moves too, so the derivative picks up the extra term.
Practice it now
Five minutes, no account
There are no logarithmic differentiation problems in Asymptote as such, so no yet. The closest thing is the derivative of of a polynomial, the same chain-rule step this method uses on every term, which a Sprint serves from about the sixth problem.
FAQ
- When should I use logarithmic differentiation?
- When is in both the base and the exponent, or when a product or quotient has three or more factors with powers or roots.
- Is logarithmic differentiation the same as implicit differentiation?
- It is a special case. Taking logs creates the equation , and you then differentiate it implicitly, with .
- Why does logarithmic differentiation work?
- Because turns the hard operations into easy ones: products into sums, quotients into differences, powers into multiples. Differentiating a sum is far easier than differentiating a product, and the chain rule on brings back the you need at the end.
- What is the derivative of ?
- , for . It is the first example above.
- Do I need the quotient rule if I use logarithmic differentiation?
- No, which is half the point. In our answer data the quotient rule is right 76% of the time against 84% for the product rule; logs turn quotients into subtraction and sidestep it.
- Where can I find logarithmic differentiation practice problems?
- Right on this page: the practice problems section has three logarithmic differentiation problems, easy, medium and harder, with the answer and the first step under each one, and a box that checks what you type with the same checker that grades Asymptote. The game has 500 related problems after that, free and with no account: try a five-minute Sprint.
Keep going
Implicit Differentiation: 3 Examples & Practice Problems
Implicit differentiation: differentiate both sides, tag every y-term with dy/dx, solve for dy/dx. 3 worked examples and practice problems with answers.
Derivatives of e^x and ln x: 3 Examples & Practice Problems
The derivative of e^x is e^x and of ln x is 1/x. Using both with the chain rule, 3 worked examples, common mistakes and practice problems with answers.
Quotient Rule: Formula, 3 Examples & Practice Problems
The quotient rule: (f/g)' = (f'g − fg')/g². Low d-high minus high d-low, 3 step-by-step examples and practice problems with answers, checked instantly.