Answer
$$3\arctan x + \frac{1}{2}\ln \left( {{x^2} + 3} \right) + C$$
Work Step by Step
$$\eqalign{
& \int {\frac{{{x^3} + 3{x^2} + x + 9}}{{\left( {{x^2} + 1} \right)\left( {{x^2} + 3} \right)}}} dx \cr
& {\text{The partial fraction decomposition of the integrand is}} \cr
& \frac{{{x^3} + 3{x^2} + x + 9}}{{\left( {{x^2} + 1} \right)\left( {{x^2} + 3} \right)}} = \frac{{Ax + B}}{{{x^2} + 1}} + \frac{{Cx + D}}{{{x^2} + 3}} \cr
& {\text{Multiplying by }}\left( {{x^2} + 1} \right)\left( {{x^2} + 3} \right){\text{ yields}} \cr
& {x^3} + 3{x^2} + x + 9 = \left( {Ax + B} \right)\left( {{x^2} + 3} \right) + \left( {Cx + D} \right)\left( {{x^2} + 1} \right) \cr
& {x^3} + 3{x^2} + x + 9 = A{x^3} + 3Ax + B{x^2} + 3B + C{x^3} + Cx + D{x^2} + D \cr
& {\text{Collecting like powers of }}x{\text{, this becomes}} \cr
& {x^3} + 3{x^2} + x + 9 = \left( {A{x^3} + C{x^3}} \right) + \left( {B{x^2} + D{x^2}} \right) + \left( {3Ax + Cx} \right) + 3B + D \cr
& {\text{Equating corresponding coefficients yields the following system }} \cr
& {\text{of linear equations}} \cr
& \,\,\,\,\,\,\,\,\,\,\,\,\,A + C = 1 \cr
& \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,B + D = 3 \cr
& \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,3A + C = 1 \cr
& \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,3B + D = 9 \cr
& {\text{Solving the system of linear equations by a calculator we obtain}} \cr
& \,\,\,A = 0,\,\,\,B = 3,\,\,\,C = 1,\,\,\,D = 0 \cr
& \cr
& {\text{Then}}{\text{, the integrand can be written as}} \cr
& \frac{{{x^3} + 3{x^2} + x + 9}}{{\left( {{x^2} + 1} \right)\left( {{x^2} + 3} \right)}} = \frac{3}{{{x^2} + 1}} + \frac{x}{{{x^2} + 3}} \cr
& \int {\frac{{{x^3} + 3{x^2} + x + 9}}{{\left( {{x^2} + 1} \right)\left( {{x^2} + 3} \right)}}} = \int {\left( {\frac{3}{{{x^2} + 1}} + \frac{x}{{{x^2} + 3}}} \right)} dx \cr
& {\text{Integrating}} \cr
& = 3\arctan x + \frac{1}{2}\ln \left( {{x^2} + 3} \right) + C \cr} $$