← Back to all lessons
Class 12Calculus12:27Published 22 Aug 2024

More Questions on Logarithmic Differentiation

Three worked problems on logarithmic differentiation: proving the product rule for a product of three functions, and differentiating equations where the variable appears in the exponent.

This lesson works through three Class 12 problems that show when logarithmic differentiation is the right tool. It first proves the derivative of a product of three functions, both with the ordinary product rule and by taking logs, then differentiates the implicit equation xy = e to the power x minus y, and finally handles the relation where y to the power x equals x to the power y. Each example shows the full working so you can see how taking logs turns products and powers into sums you can differentiate term by term.

What you'll learn

  • How to prove the product rule for a product of three functions two different ways
  • When taking logs of both sides makes a derivative far easier to find
  • How to differentiate equations where the variable sits in the exponent

Lesson chapters

0:00Product rule for three functions
3:18Same proof by logarithmic differentiation
7:05Differentiating xy = e^(x-y)
9:50Differentiating y^x = x^y

Lesson notes

More questions on logarithmic differentiation

This lesson works through three problems that lean on logarithmic differentiation. The first proves the product rule for a product of three functions, both the direct way and by taking logs. The next two differentiate equations where the variable appears in an exponent, which is exactly where taking logs of both sides pays off.

Product rule for a product of three functions

Let y=uvwy = uvw, where uu, vv and ww are functions of xx. The goal is to show

dydx=uvdwdx+vwdudx+uwdvdx.\frac{dy}{dx} = u\,v\,\frac{dw}{dx} + v\,w\,\frac{du}{dx} + u\,w\,\frac{dv}{dx}.

Method 1: ordinary product rule

Treat uvuv as the first function and ww as the second:

dydx=uvdwdx+wddx(uv).\frac{dy}{dx} = uv\,\frac{dw}{dx} + w\,\frac{d}{dx}(uv).

Applying the product rule again to ddx(uv)=udvdx+vdudx\frac{d}{dx}(uv) = u\,\frac{dv}{dx} + v\,\frac{du}{dx} gives

dydx=uvdwdx+wudvdx+wvdudx.\frac{dy}{dx} = uv\,\frac{dw}{dx} + wu\,\frac{dv}{dx} + wv\,\frac{du}{dx}.

Method 2: logarithmic differentiation

Take logs of both sides of y=uvwy = uvw:

logy=logu+logv+logw.\log y = \log u + \log v + \log w.

Differentiate with respect to xx:

1ydydx=1ududx+1vdvdx+1wdwdx.\frac{1}{y}\frac{dy}{dx} = \frac{1}{u}\frac{du}{dx} + \frac{1}{v}\frac{dv}{dx} + \frac{1}{w}\frac{dw}{dx}.

Multiply through by y=uvwy = uvw. Each term keeps the two factors that are not being differentiated:

dydx=vwdudx+uwdvdx+uvdwdx,\frac{dy}{dx} = vw\,\frac{du}{dx} + uw\,\frac{dv}{dx} + uv\,\frac{dw}{dx},

which is the same result as Method 1.

Differentiating xy=exyxy = e^{x-y}

Take logs of both sides:

log(xy)=(xy)loge=xy,\log(xy) = (x - y)\log e = x - y,

since loge=1\log e = 1. So logx+logy=xy\log x + \log y = x - y. Differentiate with respect to xx:

1x+1ydydx=1dydx.\frac{1}{x} + \frac{1}{y}\frac{dy}{dx} = 1 - \frac{dy}{dx}.

Collect the dydx\frac{dy}{dx} terms:

dydx(1y+1)=11x=x1x.\frac{dy}{dx}\left(\frac{1}{y} + 1\right) = 1 - \frac{1}{x} = \frac{x-1}{x}.

Since 1y+1=1+yy\frac{1}{y} + 1 = \frac{1+y}{y}, we get

dydx=y(x1)x(1+y).\frac{dy}{dx} = \frac{y(x-1)}{x(1+y)}.

Differentiating yx=xyy^{x} = x^{y}

Take logs of both sides:

xlogy=ylogx.x\log y = y\log x.

Differentiate with respect to xx, using the product rule on each side:

x1ydydx+logy=yx+logxdydx.x\cdot\frac{1}{y}\frac{dy}{dx} + \log y = \frac{y}{x} + \log x\,\frac{dy}{dx}.

Collect the dydx\frac{dy}{dx} terms on one side:

dydx(xylogx)=yxlogy.\frac{dy}{dx}\left(\frac{x}{y} - \log x\right) = \frac{y}{x} - \log y.

So

dydx=yxlogyxylogx.\frac{dy}{dx} = \frac{\dfrac{y}{x} - \log y}{\dfrac{x}{y} - \log x}.

Taking common denominators in the numerator and the denominator and simplifying gives

dydx=y(yxlogy)x(xylogx).\frac{dy}{dx} = \frac{y\,(y - x\log y)}{x\,(x - y\log x)}.

Key takeaways

  • For a product of three functions, ddx(uvw)=vwdudx+uwdvdx+uvdwdx\dfrac{d}{dx}(uvw) = vw\,\dfrac{du}{dx} + uw\,\dfrac{dv}{dx} + uv\,\dfrac{dw}{dx}, and logs give the same answer as the product rule.
  • Taking logs of both sides turns products into sums and brings exponents down as coefficients, which makes implicit equations much easier to differentiate.
  • When the variable appears in an exponent, as in xy=exyxy = e^{x-y} or yx=xyy^x = x^y, logarithmic differentiation is usually the cleanest route.