Topic 10

Logarithmic Differentiation

In MATH 100, log⁡\log always means the natural log, and the one derivative you need is ddxlog⁡u=u′u\dfrac{d}{dx}\log u = \dfrac{u'}{u}. Log rules turn products, quotients and powers into sums, so a log of a product is expanded before you differentiate. When xx sits in both the base and the exponent, or a function is a pile of products and powers, take log⁡\log of both sides first and multiply back at the end.

3 kinds of question. Open the one you are stuck on.

1

Differentiate a log of a product or quotient by expanding first

e.g. “Differentiate log⁡(x3x+1(x−2)2)\log\left(\dfrac{x^3\sqrt{x + 1}}{(x - 2)^2}\right)”
  1. 1
    Split the log into a sum of simple logs

    log⁡(ab)=log⁡a+log⁡b\log(ab) = \log a + \log b,  log⁡ab=log⁡a−log⁡b\ \log\dfrac{a}{b} = \log a - \log b,  log⁡ak=klog⁡a\ \log a^{k} = k\log a,  log⁡eu=u\ \log e^{u} = u. A root is a power: u=u1/2\sqrt{u} = u^{1/2}.

  2. 2
    Differentiate each term with ddxlog⁡u=u′u\dfrac{d}{dx}\log u = \dfrac{u'}{u}

    Keep each constant in front. If an inside can be negative, write log⁡∣u∣\log|u|; the derivative u′u\dfrac{u'}{u} is the same.

  3. 3
    Simplify, or plug in the point

    Combine over a common denominator only if the question asks for one form.

Remember: Split first, then each log gives u′ over u.

See it in a problem3 worked examples

Differentiate f(x)=log⁡(x3x+1(x−2)2)f(x) = \log\left(\dfrac{x^3\sqrt{x + 1}}{(x - 2)^2}\right) for x>0x > 0, x≠2x \neq 2.

  1. 1
    Split the log into a sum of simple logs

    f(x)=3log⁡x+12log⁡(x+1)−2log⁡∣x−2∣f(x) = 3\log x + \tfrac{1}{2}\log(x + 1) - 2\log|x - 2| (since (x−2)2=∣x−2∣2(x - 2)^2 = |x - 2|^2).

  2. 2
    Differentiate each term with ddxlog⁡u=u′u\dfrac{d}{dx}\log u = \dfrac{u'}{u}

    f′(x)=3x+12(x+1)−2x−2f'(x) = \dfrac{3}{x} + \dfrac{1}{2(x + 1)} - \dfrac{2}{x - 2}.

  3. 3
    Simplify, or plug in the point

    Already simple: three fractions, no quotient rule. Leave it as a sum.

Answer:

f′(x)=3x+12(x+1)−2x−2f'(x) = \dfrac{3}{x} + \dfrac{1}{2(x + 1)} - \dfrac{2}{x - 2}

Common mistakes3
  • Splitting a sum: log⁡(x2+1)\log(x^2 + 1) stays as it is. There is no rule for log⁡(a+b)\log(a + b).
  • Dropping the coefficient: log⁡x+1=12log⁡(x+1)\log\sqrt{x + 1} = \tfrac{1}{2}\log(x + 1), so its derivative is 12(x+1)\dfrac{1}{2(x + 1)}.
  • Writing (log⁡u)′=1u(\log u)' = \dfrac{1}{u} and forgetting the u′u' on top.
2

Differentiate a variable base raised to a variable power

e.g. “Let y=xxy = x^{x} (or xsin⁡xx^{\sin x}, (log⁡x)x(\log x)^{x}, …). Find dydx\dfrac{dy}{dx} in terms of xx”
  1. 1
    Take log⁡\log of both sides

    y=f(x)g(x)y = f(x)^{g(x)} becomes log⁡y=log⁡(f(x)g(x))\log y = \log\big(f(x)^{g(x)}\big).

  2. 2
    Bring the exponent down: log⁡y=g(x)log⁡f(x)\log y = g(x)\log f(x)
  3. 3
    Differentiate both sides: left side is y′y\dfrac{y'}{y}

    The right side is a product, so use the product rule (and the chain rule inside the log).

  4. 4
    Multiply by yy and write yy in terms of xx

Remember: Log, drop the exponent, differentiate, multiply back.

See it in a problem4 worked examples

Find dydx\dfrac{dy}{dx} if y=xxy = x^{x}, x>0x > 0.

  1. 1
    Take log⁡\log of both sides

    log⁡y=log⁡(xx)\log y = \log\big(x^{x}\big).

  2. 2
    Bring the exponent down: log⁡y=g(x)log⁡f(x)\log y = g(x)\log f(x)

    log⁡y=xlog⁡x\log y = x\log x.

  3. 3
    Differentiate both sides: left side is y′y\dfrac{y'}{y}

    y′y=1⋅log⁡x+x⋅1x=log⁡x+1\dfrac{y'}{y} = 1 \cdot \log x + x \cdot \dfrac{1}{x} = \log x + 1.

  4. 4
    Multiply by yy and write yy in terms of xx

    y′=xx(log⁡x+1)y' = x^{x}(\log x + 1).

Answer:

dydx=xx(log⁡x+1)\dfrac{dy}{dx} = x^{x}(\log x + 1)

Common mistakes4
  • Using the power rule: (xx)′≠x⋅xx−1(x^{x})' \neq x \cdot x^{x - 1}. The exponent is not a constant.
  • Using the exponential rule: (xx)′≠xxlog⁡x(x^{x})' \neq x^{x}\log x. The base is not a constant.
  • Stopping at y′y=…\dfrac{y'}{y} = \dots or leaving yy in the answer when it asks for "in terms of xx".
  • Taking log⁡\log of a sum such as y=xx+x2y = x^{x} + x^2. Log rules do not split sums: log-differentiate xxx^{x} alone, then add 2x2x.
3

Use logarithmic differentiation on a messy product or quotient

e.g. “Differentiate (x2+1)32x−1(x+4)5\dfrac{(x^2 + 1)^3\sqrt{2x - 1}}{(x + 4)^5} (many factors, powers and roots)”
  1. 1
    Take log⁡\log of both sides

    If ff can be negative, use log⁡∣f∣\log|f|; the derivative is the same.

  2. 2
    Expand with log rules until no products, quotients or powers remain

    log⁡(ab)=log⁡a+log⁡b\log(ab) = \log a + \log b,  log⁡ab=log⁡a−log⁡b\ \log\dfrac{a}{b} = \log a - \log b,  log⁡ak=klog⁡a\ \log a^{k} = k\log a.

  3. 3
    Differentiate term by term: f′f=G(x)\dfrac{f'}{f} = G(x)
  4. 4
    Multiply back: f′(x)=f(x) G(x)f'(x) = f(x)\,G(x)

    For f′(a)f'(a), compute f(a)f(a) and G(a)G(a) separately, then multiply.

Remember: Logs turn products into sums.

See it in a problem3 worked examples

Find f′(x)f'(x) if f(x)=(x2+1)32x−1(x+4)5f(x) = \dfrac{(x^2 + 1)^3\sqrt{2x - 1}}{(x + 4)^5}.

  1. 1
    Take log⁡\log of both sides

    log⁡f(x)=log⁡((x2+1)32x−1(x+4)5)\log f(x) = \log\left(\dfrac{(x^2 + 1)^3\sqrt{2x - 1}}{(x + 4)^5}\right).

  2. 2
    Expand with log rules until no products, quotients or powers remain

    log⁡f(x)=3log⁡(x2+1)+12log⁡(2x−1)−5log⁡(x+4)\log f(x) = 3\log(x^2 + 1) + \tfrac{1}{2}\log(2x - 1) - 5\log(x + 4).

  3. 3
    Differentiate term by term: f′f=G(x)\dfrac{f'}{f} = G(x)

    f′(x)f(x)=6xx2+1+12x−1−5x+4\dfrac{f'(x)}{f(x)} = \dfrac{6x}{x^2 + 1} + \dfrac{1}{2x - 1} - \dfrac{5}{x + 4}.

  4. 4
    Multiply back: f′(x)=f(x) G(x)f'(x) = f(x)\,G(x)

    f′(x)=(x2+1)32x−1(x+4)5(6xx2+1+12x−1−5x+4)f'(x) = \dfrac{(x^2 + 1)^3\sqrt{2x - 1}}{(x + 4)^5}\left(\dfrac{6x}{x^2 + 1} + \dfrac{1}{2x - 1} - \dfrac{5}{x + 4}\right).

Answer:

f′(x)=f(x)(6xx2+1+12x−1−5x+4)f'(x) = f(x)\left(\dfrac{6x}{x^2 + 1} + \dfrac{1}{2x - 1} - \dfrac{5}{x + 4}\right)

Common mistakes3
  • "Expanding" log⁡(a+b)\log(a + b) as log⁡a+log⁡b\log a + \log b. Log rules work on products, never on sums.
  • Forgetting the chain rule inside each log: ddxlog⁡(x2+1)=2xx2+1\dfrac{d}{dx}\log(x^2 + 1) = \dfrac{2x}{x^2 + 1}.
  • Forgetting to multiply back by f(x)f(x) at the end.

Need the formulas? Must memorize · Flashcards

Found this helpful? Leave us a review on Google ↗Spotted a mistake?

Which topics are you reviewing?

The topic list, Flashcards, Must memorize and Exam words will only show these. Change it any time with the Topics button above the topic list.

Limits & continuity
Derivatives
Applications
Theorems & approximation
10 of 17 topics selected