✓ Maple : cpu = 0.503 (sec), leaf count = 28
This is Ricatti first order non-linear ODE.
Hence
Hence
Or
Integrating factor is
Hence
Let
restart; ode:=diff(y(x),x)+y(x)^2*sin(x)-2*sin(x)/cos(x)^2 = 0; my_sol:=1/cos(x)+ 3*cos(x)^2/(_C1-cos(x)^3); odetest(y(x)=my_sol,ode); 0