Solve $$xy\,dx + x^2\,dy = \tan\left(\frac{y}{x}\right)(xy\,dy - y^2\,dx)$$
Divyank Gupta, AIR 21, 2024
The given ODE can be rewritten as
$x\,(y\,dx + x\,dy) = \tan\left(\frac{y}{x}\right)\cdot y\left(\frac{x\,dy - y\,dx}{x^2}\right)\cdot x^2$
$\Rightarrow d(xy) = \tan\left(\frac{y}{x}\right)\cdot\left(\frac{y}{x}\right)\,d\left(\frac{y}{x}\right)$
Let $\frac{y}{x} = t$
then
$d(xy) = t\cdot(\tan t)\cdot dt$
Integrating both sides we get
$xy = t\cdot\ln(\sec t) - \int \ln(\sec t)\cdot dt$
So