Question:medium

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

Solution and Explanation

Step 1: Plan:
Let $F(x, y) = x^y + y^x - 1$. The given relation is $F(x, y) = 0$.
For an implicit relation $F(x,y)=0$, the slope is $\dfrac{dy}{dx} = -\dfrac{F_x}{F_y}$, where $F_x$ and $F_y$ are the partial derivatives. Here we treat the other variable as a constant each time.

Step 2: Find F_x:
Keep $y$ fixed. Then $x^y$ is a power of $x$ with constant exponent, and $y^x$ is an exponential in $x$ with constant base.
\[ \frac{\partial}{\partial x}\left(x^y\right) = y\,x^{y-1}, \qquad \frac{\partial}{\partial x}\left(y^x\right) = y^x \ln y \]
\[ F_x = y\,x^{y-1} + y^x \ln y \]

Step 3: Find F_y:
Now keep $x$ fixed. Then $x^y$ is an exponential in $y$ with constant base, and $y^x$ is a power of $y$ with constant exponent.
\[ \frac{\partial}{\partial y}\left(x^y\right) = x^y \ln x, \qquad \frac{\partial}{\partial y}\left(y^x\right) = x\,y^{x-1} \]
\[ F_y = x^y \ln x + x\,y^{x-1} \]

Step 4: Use the implicit formula:
Put these into $\dfrac{dy}{dx} = -\dfrac{F_x}{F_y}$:
\[ \frac{dy}{dx} = -\frac{y\,x^{y-1} + y^x \ln y}{x^y \ln x + x\,y^{x-1}} \]
This agrees with what we get by taking logs of $x^y$ and $y^x$ separately and differentiating each term.

Final Answer:
The slope of the curve at any point $(x, y)$ on it is given 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