Step-by-step explanation:
Take the natural log of both sides:
[tex]ln ({x}^{y} ) = ln ({y}^{x} )[/tex]
Logarithm rules allow you to bring down the exponents:
[tex]yln(x) = xln(y)[/tex]
Now differentiate. We will have to implicitly differentiate 'y' since it is a function of 'x'. Both sides require the product rule:
[tex] \frac{dy}{dx} ln(x) + \frac{y}{x} = ln(y) + \frac{x}{y} \frac{dy}{dx} [/tex]
Isolate the terms that have y' since that is what we want:
[tex] \frac{dy}{dx} ln(x) - \frac{x}{y} \frac{dy}{dx}= ln(y) - \frac{y}{x} [/tex]
Factor out y' to get:
[tex] \frac{dy}{dx}( ln(x) - \frac{x}{y})= ln(y) - \frac{y}{x} [/tex]
Therefore:
[tex] \frac{dy}{dx} = \frac{ln(y) - \frac{y}{x} }{ln(x) - \frac{x}{y} } [/tex]