I want to solve the homogeneous first-order ODE $$y'=\sin(y/x)+(y/x)$$ Using substitution $v=y/x$ we separate variables to get $$\csc(v)\;dv=1/x\;dx$$ and hence $$|\csc(v)+\cot(v)|^{-1}=A|x|,\;\;\;A>0.$$ But this is nasty and I don't see how to give a closed-form general solution. Maybe I made a mistake in my work above.
Ideas?
Thanks!
You can rewrite $$\csc v + \cot v = \cot\left(\frac{v}{2}\right)$$ so after separation of variables
You get (rewriting the constant): $$-\log\left(\cot\left(\frac{v}{2}\right)\right)=\log x + c \iff \log\left(\cot\left(\frac{v}{2}\right)\right)=\log x^{-1} - c\iff \cot\left(\frac{v}{2}\right)= \frac{a}{x}$$ This allows to explicitly solve for $v$ and via $v=y/x$ for y as well: $$\frac{v}{2}=\cot^{-1}\left(\frac{a}{x}\right)\iff y=2x\cot^{-1}\left(\frac{a}{x}\right)$$