Skip to content
Exercise 5.5 · Q12

Q.Find dydx\frac{dy}{dx} in the following: xy+yx=1x^y + y^x = 1

Uttarakhand UbseTextbookSubjective· 3mImportance★★★★★
40% · 111/281 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

When both the base and exponent are variables, take logarithms and use implicit differentiation — the derivative of xy+yx=1x^y + y^x = 1 is dydx=−yxy−1+yxlog⁡yxylog⁡x+xyx−1\frac{dy}{dx} = -\frac{y x^{y-1} + y^x \log y}{x^y \log x + x y^{x-1}}.

We have an equation where the variable appears in both the base and the exponent: xyx^y and yxy^x. The standard power rule (ddxxn=nxn−1\frac{d}{dx} x^n = n x^{n-1}) only works when the exponent is a constant. The exponential rule (ddxax=axlog⁡a\frac{d}{dx} a^x = a^x \log a) only works when the base is a constant. Here, both are moving — so neither rule applies directly.

The trick is to take the natural logarithm of each term separately, which brings the exponent down as a coefficient, turning the problem into one of implicit differentiation.


  1. Rewrite each term using logarithms. Let u=xyu = x^y and v=yxv = y^x. Then log⁡u=ylog⁡x\log u = y \log x and log⁡v=xlog⁡y\log v = x \log y. So u=eylog⁡xu = e^{y \log x} and v=exlog⁡yv = e^{x \log y}. The equation becomes:

eylog⁡x+exlog⁡y=1e^{y \log x} + e^{x \log y} = 1

  1. Differentiate both sides with respect to xx. Remember yy is a function of xx, so every time we differentiate a yy, we multiply by dydx\frac{dy}{dx} (implicit differentiation). For the first term:

ddxeylog⁡x=eylog⁡x⋅ddx(ylog⁡x)\frac{d}{dx} e^{y \log x} = e^{y \log x} \cdot \frac{d}{dx}(y \log x)

Now ddx(ylog⁡x)=dydx⋅log⁡x+y⋅1x\frac{d}{dx}(y \log x) = \frac{dy}{dx} \cdot \log x + y \cdot \frac{1}{x}.

So the derivative of the first term is:

xy(log⁡x⋅dydx+yx)x^y \left( \log x \cdot \frac{dy}{dx} + \frac{y}{x} \right)

For the second term:

ddxexlog⁡y=exlog⁡y⋅ddx(xlog⁡y)\frac{d}{dx} e^{x \log y} = e^{x \log y} \cdot \frac{d}{dx}(x \log y)

Now ddx(xlog⁡y)=1⋅log⁡y+x⋅1y⋅dydx\frac{d}{dx}(x \log y) = 1 \cdot \log y + x \cdot \frac{1}{y} \cdot \frac{dy}{dx}.

So the derivative of the second term is:

yx(log⁡y+xy⋅dydx)y^x \left( \log y + \frac{x}{y} \cdot \frac{dy}{dx} \right)

The derivative of the right-hand side (1) is 0.

  1. Assemble the differentiated equation:

xy(log⁡x⋅dydx+yx)+yx(log⁡y+xy⋅dydx)=0x^y \left( \log x \cdot \frac{dy}{dx} + \frac{y}{x} \right) + y^x \left( \log y + \frac{x}{y} \cdot \frac{dy}{dx} \right) = 0

  1. Collect all terms containing dydx\frac{dy}{dx} on one side. Expand:

xylog⁡x⋅dydx+xy⋅yx+yxlog⁡y+yx⋅xy⋅dydx=0x^y \log x \cdot \frac{dy}{dx} + x^y \cdot \frac{y}{x} + y^x \log y + y^x \cdot \frac{x}{y} \cdot \frac{dy}{dx} = 0

Simplify xy⋅yx=yxy−1x^y \cdot \frac{y}{x} = y x^{y-1} and yx⋅xy=xyx−1y^x \cdot \frac{x}{y} = x y^{x-1}.

So: …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.