Use implicit differentiation where LaTeX:  \displaystyle y is a function of LaTeX:  \displaystyle x to find the derivative of LaTeX:  \displaystyle 9 x \cos{\left(y \right)} - 6 \log{\left(x \right)} \log{\left(y \right)}=-6

Taking the derivative of both sides using implicit differentiation gives: LaTeX:   - 9 x y' \sin{\left(y \right)} + 9 \cos{\left(y \right)} - \frac{6 y' \log{\left(x \right)}}{y} - \frac{6 \log{\left(y \right)}}{x} = 0  Solving for LaTeX:  \displaystyle y' gives LaTeX:  \displaystyle y' = \frac{y \left(3 x \cos{\left(y \right)} - 2 \log{\left(y \right)}\right)}{x \left(3 x y \sin{\left(y \right)} + 2 \log{\left(x \right)}\right)}