I have the following differential equation that I try to solve:
\begin{equation} (1 + t^2) \dot{y} = 2yt + t^2 + t^4 \end{equation}
what I do is to first put all $t$'s on one side:
\begin{equation} \dot{y} = \frac{2yt + t^2 + t^4}{1+t^2} \end{equation}
and then to integrate both sides
\begin{equation} \int \dot{y} dy = \int \frac{2yt + t^2 + t^4}{1+t^2} dt \end{equation}
and well now I am stuck because I don't really know how to evaluate these complex integrals. I think I should use the method by parts but whenever I try I think I am making mistake somewhere and I am not sure if my steps up till now are correct as well.

Rewrite the equation:
$$y'-\frac{2t}{1+t^2}y = \frac{t^4+t^2}{t^2+1} = t^2.$$
The standard technique for linear, first-order DE's is to multiply by the integrating factor
$$\mu = \exp\left(\int p(t) \; dt\right) = \exp\left(\int \frac{-2t}{1+t^2} \; dt\right)$$
$$=\exp(-\ln(t^2+1)) = \frac{1}{t^2+1}.$$
So now the DE is
$$\frac{1}{t^2+1}y' + \frac{-2t}{(1+t^2)^2}y = \frac{t^2}{1+t^2}. $$
The left side is the derivative of $\frac{1}{t^2+1}y$, so you have
$$\frac{y}{t^2+1} = \int \frac{t^2}{t^2+1} \; dt.$$