asymptote
ShopSeason 1BlogSign in
Play
BlogHow to playFormulasFor teachersCreatorsJoin a class gameBadges and levelsLeaderboardsDailyCurvePracticeShopGift a PassTip jarFounderPricing
/
You approach it and never arrive.

Asymptote is a free online calculus game: a calculus practice game for derivatives, limits and integrals, with typed answers and a live mode for class. Newest guide: Area Under a Curve: Definite Integrals & Practice Problems.

Guides with practice problems: Chain rule · U-substitution · Implicit differentiation · Integration by parts · Product rule · Quotient rule · Power rule · L'Hôpital's rule · Related rates · All guides →
SupportTermsPrivacyRefundsInstagramXPressMade with ♥ by the_calculusguy© Boolean Productions 2026

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

An illustration of Logarithmic differentiation

Logarithmic differentiation means taking ln of both sides of y=f(x), 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 xx, and a shortcut for long products and quotients. Since dxd​lny=yy′​, you finish by multiplying through by y.

On this page

  • Formula
  • When to use it
  • Steps
  • Worked examples
  • Practice problems
  • Common mistakes
  • FAQ

The formula

lny=lnf(x)⟹yy′​=dxd​lnf(x)⟹y′=f(x)⋅dxd​lnf(x)

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 x appears in both the base and the exponent: xx, xsinx, (lnx)x. Neither the power rule (which needs a constant exponent) nor the rule for ax (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 yy′​ by the chain rule.

How to do it, step by step

  1. Take ln of both sides. y=f(x) becomes lny=lnf(x). You need y>0 for this; for the derivative it is fine to use ln∣y∣ and get the same answer.
  2. Expand with the log laws. ln(ab)=lna+lnb, lnba​=lna−lnb, and lnak=klna. Pull every power down to the front.
  3. Differentiate both sides. The left side gives yy′​. The right side is now a sum of simple logs, each differentiated with the chain rule.
  4. Multiply by y and substitute it back. Replace y with the original function so the answer is in x alone.

Worked examples

Example 1: The classic: x to the x

Easy

Differentiate, for x>0:

y=xx

Take logs and bring the exponent down: lny=ln(xx)=xlnx.

Differentiate both sides. The right side is a product, x times lnx:

yy′​=1⋅lnx+x⋅x1​=lnx+1

Multiply by y=xx to get y′ on its own. The tempting wrong answer, x⋅xx−1, treats the exponent as a constant; it is not, which is the entire reason for this method.

Answer

dxdy​=xx(lnx+1)

Example 2: A trig function in the exponent

Medium

Differentiate, for x>0:

y=xsinx

Take logs: lny=sinx⋅lnx.

Differentiate the right side with the product rule:

yy′​=cosx⋅lnx+sinx⋅x1​

Multiply both sides by y=xsinx 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 xsinx=esinxlnx and using the chain rule. It is the same calculation in a different coat, and some people find it easier to trust.

Answer

dxdy​=xsinx(cosxlnx+xsinx​)

Example 3: A quotient without the quotient rule

Harder

Differentiate, for x>0:

y=(x+1)3x23x+1​​

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:

lny=2lnx+21​ln(3x+1)−3ln(x+1)

Each term is now a one-line chain rule. The middle one gives 21​⋅3x+13​.

yy′​=x2​+2(3x+1)3​−x+13​

Multiply by y, 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

dxdy​=(x+1)3x23x+1​​⋅(x2​+2(3x+1)3​−x+13​)

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

Easy

Differentiate, for x>0:

y=x2x

Stuck? Show the answer

Answer

x2x(2lnx+2)

How to start

Take logs: lny=2xlnx. Differentiate the right side with the product rule, then multiply by y.

Problem 2

Medium

Differentiate, for x>0:

y=xx​

Stuck? Show the answer

Answer

xx​⋅2x​lnx+2​

How to start

lny=x​lnx. The product rule gives 2x​lnx​+xx​​; put both over 2x​ before multiplying by y.

Problem 3

Harder

Differentiate, for x>0, without the quotient rule:

y=x​(x2+1)3​

Stuck? Show the answer

Answer

x​(x2+1)3​⋅(x2+16x​−2x1​)

How to start

Logs split it: lny=3ln(x2+1)−21​lnx. Differentiate each term with the chain rule, then multiply by y.

Want more? Asymptote has 500 related problems, free, with no account.

Common mistakes

  • Using the power rule on xx. x⋅xx−1 is wrong: the power rule needs a constant exponent. So is xxlnx, which treats the base as constant. The real answer contains both pieces: xx(lnx+1).
  • Forgetting to multiply by y. After differentiating you have yy′​, not y′. Stopping there gives the derivative of lny instead of the derivative of y.
  • Breaking the log laws. ln(a+b) is not lna+lnb. The laws split products and quotients, never sums, so ln(3x+1) stays whole.
  • Leaving y in the answer. Substitute the original function back in, so the derivative is in terms of x only.
  • Confusing xx with ex. dxd​ex=ex because the base is the constant e. For xx the base moves too, so the derivative picks up the extra lnx term.

Practice it now

Five minutes, no account

There are no logarithmic differentiation problems in Asymptote as such, so no xx yet. The closest thing is the derivative of ln of a polynomial, the same chain-rule step this method uses on every term, which a Sprint serves from about the sixth problem.

Play a SprintSee it on the formula sheet

FAQ

When should I use logarithmic differentiation?
When x 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 lny=lnf(x), and you then differentiate it implicitly, with dxd​lny=yy′​.
Why does logarithmic differentiation work?
Because ln 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 lny brings back the y you need at the end.
What is the derivative of xx?
xx(lnx+1), for x>0. 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.