Find the function y solution of $$(x+1)(x^2+1)y'=2x^2+x$$
Initial conditions : $y = 1$ when $x=0 $ I tried to simplify the equation first by breaking down the fraction in two sides. so that I will find the primitive of both side then find y. But my problem is the second part $(3x-1)/(2x^2+2)$. I cannot find its primitive.
As Adrian Kleister mentioned within the comments and which was in fact your own attempt is to seperate the equation in the following way
$$\begin{align} (x+1)(x^2+1)y′=2x^2+x\Leftrightarrow y′=\frac{2x^2+x}{(x+1)(x^2+1)} \end{align}$$
Taking the integral leads to
$$y=\int \frac{2x^2+x}{(x+1)(x^2+1)} dx +c$$
where the integral can be solved by using the technique of partial decomposition. Therefore we write
$$\frac{2x^2+x}{(x+1)(x^2+1)}=\frac{A}{x+1}+\frac{Bx+C}{x^2+1}\Leftrightarrow2x^2+x=A(x^2+1)+(Bx+C)(x+1)$$
From hereon we get a system of equations for $A,B$ and $C$. Solving this system yields to $A=\frac12$, $B=\frac32$ and $C=-\frac12$ and so we have to integrate now
$$y=\int \frac{3x-1}{2(x^2+1)}+\frac{1}{2(x+1)} dx +c = \frac12\int \frac{3x}{x^2+1}-\frac{1}{x^2+1}+\frac{1}{x+1} dx +c$$
The solution to this can be obtained by using standard techniques based on the natural logarithm and the inverse tangens. So finally the anti-derivatives and so the function $y$ is given by
$$y=\frac12 \ln(x+1) + \frac34\ln(x^2+1) - \frac12\arctan(x) + c $$
Plugging in the IVP yields to
$$1=c$$
and therefore the solution is given by
$$y(x)=\frac12 \ln(x+1) + \frac34\ln(x^2+1) - \frac12\arctan(x) + 1 $$