How to integrate $$\int{\frac{x^2+5}{x^3+3x}}dx$$
I have computed it in a solver with steps. It uses partial fraction decomposition. And it gets two different denominators even if there exists only one real root: $x^3+3x=x(x^2+3) \Rightarrow x = 0$. What is the most easy and most common way to solve that integral?
Do partial fractions:
$$\frac{x^2+5}{x(x^2+3)}=\frac Ax+\frac{Bx+C}{x^2+3}\implies x^2+5=A(x^2+3)+(Bx+C)x$$
Put now:
$$x=0\implies 5=3A\implies A=\frac53\,,\,\,\text{coeff. of}\;x^2: \; 1=A+B\implies B=-\frac23$$
and finally, comapring coefficients of $\;x\;$ in both sides wer get $\;C=0\;$, so
$$\frac{x^2+5}{x(x^2+3)}=\frac5{3x}-\frac{2x}{3(x^2+3)}$$
Now integrate the above.