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

i basically get how to do the separable equations, i change it to:

$\displaystyle \int{\frac{dy}{(y^2+1)}}=\int{\frac{xdx}{(x+1)}}$

and then i integrate both sides, i'm having trouble integrating the right side, i tried using integration by parts but it doesn't come out how the book has it. i think maybe there's an easier way but i can't remember. can someone help me with this?