Question:

Find \( \dfrac{dy}{dx} \), when \( x^y + y^x = 1 \).

Show Hint

Write \( u = x^y \) and \( v = y^x \), take logs of each and differentiate, then use \( u' + v' = 0 \).
Show Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

Step 1: Understand the problem:
The variable \( y \) appears in the exponent in \( x^y \), and \( x \) appears in the exponent in \( y^x \). Such powers cannot be differentiated by the ordinary power rule.
The method for them is logarithmic differentiation: write each term as \( u = x^y \) and \( v = y^x \), take the log of each separately, and differentiate.
The equation becomes \( u + v = 1 \), so \( \dfrac{du}{dx} + \dfrac{dv}{dx} = 0 \).

Step 2: Differentiate the first term:
Let \( u = x^y \). Taking logs gives \( \ln u = y \ln x \).
Differentiate both sides with respect to \( x \). The right side is a product of \( y \) and \( \ln x \), and \( y \) depends on \( x \):
\[ \frac{1}{u}\frac{du}{dx} = y\cdot\frac{1}{x} + \ln x \cdot \frac{dy}{dx} \]
Multiply by \( u = x^y \):
\[ \frac{du}{dx} = x^y\left( \frac{y}{x} + \ln x\,\frac{dy}{dx} \right) = y\,x^{y-1} + x^y \ln x\,\frac{dy}{dx} \]

Step 3: Differentiate the second term:
Let \( v = y^x \). Taking logs gives \( \ln v = x \ln y \).
Differentiate both sides with respect to \( x \). Again use the product rule, and the chain rule for \( \ln y \):
\[ \frac{1}{v}\frac{dv}{dx} = \ln y + x\cdot\frac{1}{y}\frac{dy}{dx} \]
Multiply by \( v = y^x \):
\[ \frac{dv}{dx} = y^x \ln y + x\,y^{x-1}\frac{dy}{dx} \]

Step 4: Add the two derivatives:
Since \( \dfrac{du}{dx} + \dfrac{dv}{dx} = 0 \), we get
\[ y\,x^{y-1} + x^y \ln x\,\frac{dy}{dx} + y^x \ln y + x\,y^{x-1}\frac{dy}{dx} = 0 \]
Collect the terms that contain \( \dfrac{dy}{dx} \) on the left and move the rest to the right:
\[ \left( x^y \ln x + x\,y^{x-1} \right)\frac{dy}{dx} = -\left( y\,x^{y-1} + y^x \ln y \right) \]

Step 5: Solve for dy/dx:
Divide both sides by the bracket on the left:
\[ \frac{dy}{dx} = -\,\frac{y\,x^{y-1} + y^x \ln y}{x^y \ln x + x\,y^{x-1}} \]
A quick check: the numerator and denominator are exactly the two partial derivatives of \( x^y + y^x \), which is what the implicit rule gives.

Final Answer:
Differentiating each power by taking logs and adding the results gives the derivative below. \[ \boxed{\frac{dy}{dx} = -\,\frac{y\,x^{y-1} + y^x \ln y}{x^y \ln x + x\,y^{x-1}}} \]
Was this answer helpful?
0
0