Did I take the derivative correctly? $x^y=y^x$ Need to differentiate following equation:
$$x^y=y^x$$
My attempt:
$$x^y\log(x) \cdot y' = y^x\log(y)\cdot1;  $$
$$y'=\frac{y^x\log(y)}{x^y\log(x)}$$
Please tell me if I've made a mistake.
Not quite. The idea is to take the $\log$ of both sides and implicitly differentiate. $$ \begin {eqnarray*} x^y &amp;=&amp; y^x \\ y \cdot \log (x) &amp;=&amp; x \cdot \log (y) \\ y' \cdot \log(x) + \dfrac {y}{x} &amp;=&amp; \dfrac {x}{y} \cdot y' + \log (y) \\ y' \cdot \left( \log(x) - \dfrac {x}{y} \right) &amp;=&amp; \log(y) - \dfrac {y}{x} \\ y' &amp;=&amp; \dfrac {\log (y) - \dfrac {y}{x}}{\log (x) - \dfrac {x}{y}}, \end {eqnarray*} $$so our answer is $$ y' = \boxed {\dfrac {x \cdot \log (y) - y}{y \cdot \log (x) - x} \cdot \dfrac {y}{x}}. $$
$ y^x = x^y $

$ \ln y^x = \ln x^y$

$x \ln y = y \ln x $

$\ln y + (x/y)(dy/dx) = (dy/dx)(ln x) + y/x $

$(x/y)(dy/dx) - (dy/dx)(\ln x) = y/x - \ln y $

$(dy/dx)(x/y - \ln x) = y/x - \ln y $

$(dy/dx) = (y/x - \ln y)/(x/y - \ln x)$

$(dy/dx) = (y^2 - xy\ln y)/(x^2 - xy\ln x)$