I recently had a quiz on separable and exact differential equations.
The question was this:

**Answer using the exact method.  

No points will be awarded for any other method.**  

$$ y'(x) + y(x) = y(x)^2 $$  

My question is that I'm confused with this type of notation.   

Whereas the usual exact differential equation would look like $Mdx + Ndy = 0$.   

This looks nothing like it.   

So what I did was as follows:   

$$y'(x) + y(x) = y(x)^2$$
$$y' + x = x^2$$
$$y' + (x - x^2) = 0$$
$$(x - x^2)dx + dy = 0$$
Then I proceeded to solving it with the exact method and found my answer:   

$$y = \frac{x^3}{3} - \frac{x^2}{2} + c$$

Did I do this right? Thank you.