6. Logarithmic Differentiation0%

Differentiation · Topic 6 of 10

6. Logarithmic Differentiation

Video coming soon4 worked examples

Theory

Logarithmic differentiation takes the natural log of both sides first, using log laws to turn products, quotients and powers into sums and multiples, and then differentiates implicitly. It is essential when the variable appears in the index, such as y=xxy = x^x.

The Golden Rule: take ln\ln of both sides, simplify with log laws, differentiate implicitly (the left side becomes 1ydydx\frac{1}{y}\frac{dy}{dx}), then multiply through by yy and substitute it back.

⚠️ Common Examiner Traps

  • The left side: differentiating lny\ln y gives 1ydydx\frac{1}{y}\frac{dy}{dx} — don't forget the dydx\frac{dy}{dx}.
  • Not substituting yy back: the final answer should be in terms of xx.
  • Log laws: ln(ab)=lna+lnb\ln(ab) = \ln a + \ln b and ln(an)=nlna\ln(a^n) = n\ln a — apply them before differentiating.

Worked examples

Example 1

Differentiate y=xxy = x^x for x>0x > 0.

Step 1: Take natural logs and simplify:

lny=ln(xx)=xlnx\ln y = \ln(x^x) = x\ln x

Step 2: Differentiate implicitly (product rule on the right):

1ydydx=lnx+x1x=lnx+1\frac{1}{y}\frac{dy}{dx} = \ln x + x \cdot \frac{1}{x} = \ln x + 1

Step 3: Multiply by y=xxy = x^x:

dydx=xx(lnx+1)\frac{dy}{dx} = x^x(\ln x + 1)

Example 2

Use logarithmic differentiation to find dydx\dfrac{dy}{dx} for y=(2x+1)3(x1)2y = \dfrac{(2x+1)^3}{(x-1)^2}.

Step 1: Take logs and use the log laws:

lny=3ln(2x+1)2ln(x1)\ln y = 3\ln(2x+1) - 2\ln(x-1)

Step 2: Differentiate implicitly:

1ydydx=62x+12x1\frac{1}{y}\frac{dy}{dx} = \frac{6}{2x+1} - \frac{2}{x-1}

Step 3: Multiply by yy:

dydx=(2x+1)3(x1)2(62x+12x1)\frac{dy}{dx} = \frac{(2x+1)^3}{(x-1)^2}\left(\frac{6}{2x+1} - \frac{2}{x-1}\right)

Example 3

Show that if y=axy = a^x, where aa is a positive constant, then dydx=axlna\dfrac{dy}{dx} = a^x \ln a.

Step 1: The variable is in the index, so take natural logs of both sides and use ln(ax)=xlna\ln(a^x) = x\ln a:

lny=xlna\ln y = x \ln a

Step 2: Differentiate implicitly. Note that lna\ln a is a constant, so the right-hand side differentiates to just lna\ln a:

1ydydx=lna\frac{1}{y}\frac{dy}{dx} = \ln a

Step 3: Multiply through by yy and substitute y=axy = a^x:

dydx=ylna=axlna\frac{dy}{dx} = y\ln a = a^x \ln a

This is a standard result worth remembering — and it confirms why exe^x is special: when a=ea = e, lne=1\ln e = 1 and the derivative is exe^x itself.

Example 4

Differentiate y=(x2+1)xy = (x^2+1)^x.

Step 1: Both the base and the index involve xx, so neither the power rule nor the result above applies. Take logs:

lny=xln(x2+1)\ln y = x\ln(x^2+1)

Step 2: Differentiate implicitly. The right-hand side is a product, and ln(x2+1)\ln(x^2+1) needs the chain rule:

1ydydx=ln(x2+1)+x×2xx2+1\frac{1}{y}\frac{dy}{dx} = \ln(x^2+1) + x \times \frac{2x}{x^2+1}

Step 3: Tidy the second term:

1ydydx=ln(x2+1)+2x2x2+1\frac{1}{y}\frac{dy}{dx} = \ln(x^2+1) + \frac{2x^2}{x^2+1}

Step 4: Multiply by yy and substitute it back:

dydx=(x2+1)x(ln(x2+1)+2x2x2+1)\frac{dy}{dx} = (x^2+1)^x\left(\ln(x^2+1) + \frac{2x^2}{x^2+1}\right)