There's a couple ways to solve this but a simple straightforward one will work here. Since we have a derivative, if we isolate our y's we can integrate and then isolate for y.
So
\(y' = - y^{2} sinx\)
to
\(y^{-2} y' = -sinx\)
And just to understand we can integrate it, think about this in differential form to create