This question was asked in Ex 9.4, 13
The answer for [ xsin²(y/x) - y]dx + xdy=0 ; y=π/4 when x=1 is log|x| - cot(y/x) = -1 ?

Kalai SK's image