← Back to all lessons
Class 12Calculus10:44Published 22 Aug 2024

Two Sure Questions from Logarithmic Differentiation

Two exam-style differentiation problems worked in full: finding dy/dx for the implicit equation x to the power y plus y to the power x equals 1, and evaluating the derivative of a four-factor product at x equals 1.

This Class XII lesson walks through two questions that rely on logarithmic differentiation. The first splits the implicit equation into two pieces, takes logarithms of each, and combines them to find dy/dx. The second takes the log of a product of four factors so it becomes a sum, differentiates term by term, and substitutes x equals 1 to reach the final value of 80.

What you'll learn

  • How to split an implicit equation into parts and take logarithms of each before differentiating
  • How to apply the product rule when a power has both base and exponent depending on the variable
  • How taking the log of a product turns it into a sum that is easy to differentiate term by term
  • How to substitute a value at the end to evaluate the derivative as a single number

Lesson chapters

0:00Problem 1: differentiating x^y + y^x = 1
0:50Logarithmic differentiation of x^y
2:13Logarithmic differentiation of y^x
4:06Collecting terms and solving for dy/dx
5:36Problem 2: derivative of a four-factor product
9:24Substituting x = 1 to get f'(1) = 80

Lesson notes

This lesson works through two differentiation questions that both use logarithmic differentiation: an implicit equation in xx and yy, and the value of a derivative of a product of four factors at a point.

Problem 1: Differentiate xy+yx=1x^y + y^x = 1

We are given

xy+yx=1x^y + y^x = 1

and we want dydx\tfrac{dy}{dx}. Set u=xyu = x^y and v=yxv = y^x, so the equation becomes

u+v=1.u + v = 1.

Differentiating with respect to xx,

dudx+dvdx=0.(1)\frac{du}{dx} + \frac{dv}{dx} = 0. \qquad (1)

We now find dudx\tfrac{du}{dx} and dvdx\tfrac{dv}{dx} separately.

Differentiating u=xyu = x^y

Take logs on both sides:

logu=ylogx.\log u = y \log x.

Differentiate with respect to xx:

1ududx=y1x+logxdydx.\frac{1}{u}\frac{du}{dx} = y\cdot\frac{1}{x} + \log x \cdot \frac{dy}{dx}.

Multiply through by u=xyu = x^y:

dudx=xy(yx+logxdydx).(2)\frac{du}{dx} = x^y\left(\frac{y}{x} + \log x \,\frac{dy}{dx}\right). \qquad (2)

Differentiating v=yxv = y^x

Take logs on both sides:

logv=xlogy.\log v = x \log y.

Differentiate with respect to xx, applying the product rule on the right:

1vdvdx=x1ydydx+logy.\frac{1}{v}\frac{dv}{dx} = x\cdot\frac{1}{y}\frac{dy}{dx} + \log y.

Multiply through by v=yxv = y^x:

dvdx=yx(xydydx+logy).(3)\frac{dv}{dx} = y^x\left(\frac{x}{y}\frac{dy}{dx} + \log y\right). \qquad (3)

Combining and solving for dydx\tfrac{dy}{dx}

Substitute (2)(2) and (3)(3) into (1)(1):

xy(yx+logxdydx)+yx(xydydx+logy)=0.x^y\left(\frac{y}{x} + \log x \,\frac{dy}{dx}\right) + y^x\left(\frac{x}{y}\frac{dy}{dx} + \log y\right) = 0.

Collect the dydx\tfrac{dy}{dx} terms on one side and move everything else to the right:

dydx(xylogx+xyx1)=(yxy1+yxlogy).\frac{dy}{dx}\left(x^y \log x + x\,y^{x-1}\right) = -\left(y\,x^{y-1} + y^x \log y\right).

Therefore

dydx=yxy1+yxlogyxylogx+xyx1.\frac{dy}{dx} = -\,\frac{y\,x^{y-1} + y^x \log y}{x^y \log x + x\,y^{x-1}}.

Problem 2: Find f(1)f'(1) for a product of four factors

We are given

f(x)=(1+x)(1+x2)(1+x3)(1+x4)f(x) = (1+x)(1+x^2)(1+x^3)(1+x^4)

and we want f(1)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).\log f(x) = \log(1+x) + \log(1+x^2) + \log(1+x^3) + \log(1+x^4).

Differentiate term by term

1f(x)f(x)=11+x+2x1+x2+3x21+x3+4x31+x4.\frac{1}{f(x)}f'(x) = \frac{1}{1+x} + \frac{2x}{1+x^2} + \frac{3x^2}{1+x^3} + \frac{4x^3}{1+x^4}.

Multiply by f(x)f(x):

f(x)=(1+x)(1+x2)(1+x3)(1+x4)(11+x+2x1+x2+3x21+x3+4x31+x4).f'(x) = (1+x)(1+x^2)(1+x^3)(1+x^4)\left(\frac{1}{1+x} + \frac{2x}{1+x^2} + \frac{3x^2}{1+x^3} + \frac{4x^3}{1+x^4}\right).

Substitute x=1x = 1

Each factor becomes 1+1=21 + 1 = 2, so the product is 2222=162\cdot 2\cdot 2\cdot 2 = 16. The bracket becomes

12+22+32+42=1+2+3+42=102=5.\frac{1}{2} + \frac{2}{2} + \frac{3}{2} + \frac{4}{2} = \frac{1+2+3+4}{2} = \frac{10}{2} = 5.

Hence

f(1)=16×5=80.f'(1) = 16 \times 5 = 80.

Key takeaways

  • For an implicit equation like xy+yx=1x^y + y^x = 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 xx, 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)=80f'(1) = 80.