General solution of the differential equation $x \cos y \mathrm{~d} y=\left(x \mathrm{e}^x \log…
General solution of the differential equation $x \cos y \mathrm{~d} y=\left(x \mathrm{e}^x \log x+\mathrm{e}^x\right) \mathrm{d} x$ is (where $C$ is a constant of integration.)
$\sin y=\mathrm{e}^x \log x+C$
$\sin y=\mathrm{e}^x+C \log x$
$\sin y=C \mathrm{e}^x+\log x$
$\mathrm{e}^x \sin y=\log x+C$
Solution
$\begin{aligned} & x \cos y \mathrm{~d} y=\left(x \mathrm{e}^x \log x+\mathrm{e}^x\right) \mathrm{d} x \\ & \Rightarrow \int \cos y \mathrm{~d} y=\int \mathrm{e}^x\left\{\log x+\frac{1}{x}\right\} \mathrm{d} x \\ & \Rightarrow \sin y=\mathrm{e}^x \log x+C\left[\because \int \mathrm{e}^x\left\{f(x)+f^{\prime}(x)\right\} \mathrm{d} x=\mathrm{e}^x f(x)+C\right]\end{aligned}$