Simple differential equation $\frac{x}{y}=\frac{y'}{x+1}$ $$\frac{x}{y}=\frac{y'}{x+1}$$ 
The solution to this is very easy, we just multiply both sides by 
$$(x+1)y\ \mathrm dx$$
Then we have 
$$(x^2+x)\ \mathrm dx=y\ \mathrm dy$$
Then we integrate both sides to get solution
$$\frac{x^3}{3}+ \frac{x^2}{2}=\frac{y^2}{2} + C, C\in \mathbb{R}$$
But I don't understand how can we divide by $y$ and $x+1$. What if $y=0$ or $x=-1$? What happens then?

$$\frac{x}{y}=\frac{1}{x+1}\frac{\mathrm dy}{\mathrm dx}$$
The above equation does not hold for $x=-1$ and $y=0$ because division by zero is undefined. This implies that $-1$ is excluded from the domain of $y$ and $0$ is excluded from the codomain of $y$. Therefore we can safely divide by $x+1$ and $y$, respectively. We can also proceed as follows
$$x^2+x=y\frac{\mathrm dy}{\mathrm dx}$$
$$\int x^2+x\ \mathrm dx=\int y\frac{\mathrm dy}{\mathrm dx}\ \mathrm dx$$
$$\int x^2\ \mathrm dx+\int x\ \mathrm dx=\int y\ \mathrm dy$$
$$\frac{x^3}{3}+\frac{x^2}{2}+C=\frac{y^2}{2}$$
$$y^2=\frac{2x^3}{3}+x^2+C$$
$$\left|y\right|=\sqrt{\frac{2x^3}{3}+x^2+C}$$
Therefore the solutions are
$$y=\pm\sqrt{\frac{2x^3}{3}+x^2+C}$$
Where $-1$ is excluded from the domain of $y$ and $0$ is excluded from the codomain of $y$.
