DSolve[Sin[x]*y[x] - (Sin[x] + Cos[x]^2*y[x])*Derivative[1][y][x] - (-Cos[x]^2 + Sin[x]*y[x])*Derivative[1][y][x]^2 + Sin[x]*Derivative[1][y][x]^3 == 0,y[x],x]
dsolve(diff(y(x),x)^3*sin(x)-(y(x)*sin(x)-cos(x)^2)*diff(y(x),x)^2-(y(x)*cos(x)^2+sin(x))*diff(y(x),x)+y(x)*sin(x)=0,y(x))