Im having trouble separating functions into the form $\displaystyle q(y)dy=p(x)dx$. It seems like they should be simple but im stuck on these. Any help would be appreciated. Thanks.

Here are two examples

$\displaystyle \frac{dy}{dx}=\frac{y^2+1}{xy+y}$

I can only get this far..

$\displaystyle ydy=\frac{y^2+1}{(x+1)}dx$

and im also having trouble with this one.

$\displaystyle \frac{dy}{dx}=xy^2-x-y^2+1$