$$\frac{1}{10} \int \frac{3x+20}{x^2+10}dx$$ I was trying to factor out the denominator: $$\frac{1}{10} \int \frac{3x+20}{x^2+(\sqrt{10})^2}dx$$
$$\frac{1}{10} \int \frac{3x+20}{(x+\sqrt{10})^2-2x\sqrt{10}}dx$$
I was trying to factor the denominator to use partial fractions but failed how should I approach this integral?
The idea is to split it into two integrals, one of the form $\int f'/f\,dx$, the other $\int dx/(x^2+a^2)$, which equals $\tfrac1a\tan^{-1}\tfrac xa$: \begin{align*} \int\frac{3x+20}{x^2+10}\,dx&=\frac32\int\frac{2x}{x^2+10}\,dx+20\int\frac{dx}{x^2+(\sqrt{10})^2}\\[15pt] &=\frac32\log(x^2+10)+\frac{20}{\sqrt{10}}\tan^{-1}\Big(\frac x{\sqrt{10}}\Big). \end{align*}