How do you tell if something is Homogeneous? Do all the powers need to be the same on the top, as well as on the bottom to make it into the form of $\cfrac yx$?

Anyways, I have this problem[![enter image description here](https://i.stack.imgur.com/zY8Mo.png)](https://i.stack.imgur.com/zY8Mo.png)

So the first thing I did was try to see if it was homogenous:

$$y' = \frac{-y}{x}-\frac{y^2}{x}$$
I got stuck here, and believed this was not homogeneous since there's noway I can represent it as a function of $\cfrac yx$.

Anyways, I then tried to see if it was a separable equation:

$$x\frac{dy}{dx} = -y^2-y$$
$$\frac{dy}{-y^2-y} = \frac{dx}{x}$$

then I figured I could factor out a $y$ from the LHS and do partial fractions. Not too sure to be honest.