y''(x)=y(x) \left(-\csc ^2(x)\right) \left(-\left(a^2 b^2-(a+1)^2\right) \sin ^2(x)-a (a+1) b \sin (2 x)-(a-1) a\right)