This lesson works through two differentiation questions that both use logarithmic differentiation: an implicit equation in x and y, and the value of a derivative of a product of four factors at a point.
Problem 1: Differentiate xy+yx=1
We are given
xy+yx=1
and we want dxdy. Set u=xy and v=yx, so the equation becomes
u+v=1.
Differentiating with respect to x,
dxdu+dxdv=0.(1)
We now find dxdu and dxdv separately.
Differentiating u=xy
Take logs on both sides:
logu=ylogx.
Differentiate with respect to x:
u1dxdu=y⋅x1+logx⋅dxdy.
Multiply through by u=xy:
dxdu=xy(xy+logxdxdy).(2)
Differentiating v=yx
Take logs on both sides:
logv=xlogy.
Differentiate with respect to x, applying the product rule on the right:
v1dxdv=x⋅y1dxdy+logy.
Multiply through by v=yx:
dxdv=yx(yxdxdy+logy).(3)
Combining and solving for dxdy
Substitute (2) and (3) into (1):
xy(xy+logxdxdy)+yx(yxdxdy+logy)=0.
Collect the dxdy terms on one side and move everything else to the right:
dxdy(xylogx+xyx−1)=−(yxy−1+yxlogy).
Therefore
dxdy=−xylogx+xyx−1yxy−1+yxlogy.
Problem 2: Find f′(1) for a product of four factors
We are given
f(x)=(1+x)(1+x2)(1+x3)(1+x4)
and we want f′(1). Because this is a product of more than two factors, we use logarithmic differentiation.
Take logs to turn the product into a sum
logf(x)=log(1+x)+log(1+x2)+log(1+x3)+log(1+x4).
Differentiate term by term
f(x)1f′(x)=1+x1+1+x22x+1+x33x2+1+x44x3.
Multiply by f(x):
f′(x)=(1+x)(1+x2)(1+x3)(1+x4)(1+x1+1+x22x+1+x33x2+1+x44x3).
Substitute x=1
Each factor becomes 1+1=2, so the product is 2⋅2⋅2⋅2=16. The bracket becomes
21+22+23+24=21+2+3+4=210=5.
Hence
f′(1)=16×5=80.
Key takeaways
- For an implicit equation like xy+yx=1, split it into named parts, take the log of each part, and differentiate before combining.
- When a power has both its base and exponent depending on x, taking logs first lets you apply the product rule cleanly.
- Taking the log of a product turns it into a sum, so each factor can be differentiated on its own; here f′(1)=80.