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=uvw, where u, v and w are functions of x. The goal is to show
dxdy=uvdxdw+vwdxdu+uwdxdv.
Method 1: ordinary product rule
Treat uv as the first function and w as the second:
dxdy=uvdxdw+wdxd(uv).
Applying the product rule again to dxd(uv)=udxdv+vdxdu gives
dxdy=uvdxdw+wudxdv+wvdxdu.
Method 2: logarithmic differentiation
Take logs of both sides of y=uvw:
logy=logu+logv+logw.
Differentiate with respect to x:
y1dxdy=u1dxdu+v1dxdv+w1dxdw.
Multiply through by y=uvw. Each term keeps the two factors that are not being differentiated:
dxdy=vwdxdu+uwdxdv+uvdxdw,
which is the same result as Method 1.
Differentiating xy=ex−y
Take logs of both sides:
log(xy)=(x−y)loge=x−y,
since loge=1. So logx+logy=x−y. Differentiate with respect to x:
x1+y1dxdy=1−dxdy.
Collect the dxdy terms:
dxdy(y1+1)=1−x1=xx−1.
Since y1+1=y1+y, we get
dxdy=x(1+y)y(x−1).
Differentiating yx=xy
Take logs of both sides:
xlogy=ylogx.
Differentiate with respect to x, using the product rule on each side:
x⋅y1dxdy+logy=xy+logxdxdy.
Collect the dxdy terms on one side:
dxdy(yx−logx)=xy−logy.
So
dxdy=yx−logxxy−logy.
Taking common denominators in the numerator and the denominator and simplifying gives
dxdy=x(x−ylogx)y(y−xlogy).
Key takeaways
- For a product of three functions, dxd(uvw)=vwdxdu+uwdxdv+uvdxdw, 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=ex−y or yx=xy, logarithmic differentiation is usually the cleanest route.