Im stuck on this question, been trying to figure out on the train, just ended up with crossed off working out.

dy/dx = y^2 x

Ans: y = 2/C-x^2

I end up separating it to

| dy/y^2 = | xdx

| 1/y^2 dy = | xdx

|1/y^2 dy = 1/2 x^2 + C

but i get stuck with trying to integrate y, im missing something, do i have to use the substitution rule?

help appreciated