3.346 \(\int \frac{9+x+3 x^2+x^3}{\left (1+x^2\right ) \left (3+x^2\right )} \, dx\)

Optimal. Leaf size=15 \[ \frac{1}{2} \log \left (x^2+3\right )+3 \tan ^{-1}(x) \]

[Out]

3*ArcTan[x] + Log[3 + x^2]/2

_______________________________________________________________________________________

Rubi [A]  time = 0.190183, antiderivative size = 15, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115 \[ \frac{1}{2} \log \left (x^2+3\right )+3 \tan ^{-1}(x) \]

Antiderivative was successfully verified.

[In]  Int[(9 + x + 3*x^2 + x^3)/((1 + x^2)*(3 + x^2)),x]

[Out]

3*ArcTan[x] + Log[3 + x^2]/2

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 32.7411, size = 12, normalized size = 0.8 \[ \frac{\log{\left (x^{2} + 3 \right )}}{2} + 3 \operatorname{atan}{\left (x \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((x**3+3*x**2+x+9)/(x**2+1)/(x**2+3),x)

[Out]

log(x**2 + 3)/2 + 3*atan(x)

_______________________________________________________________________________________

Mathematica [A]  time = 0.0122429, size = 15, normalized size = 1. \[ \frac{1}{2} \log \left (x^2+3\right )+3 \tan ^{-1}(x) \]

Antiderivative was successfully verified.

[In]  Integrate[(9 + x + 3*x^2 + x^3)/((1 + x^2)*(3 + x^2)),x]

[Out]

3*ArcTan[x] + Log[3 + x^2]/2

_______________________________________________________________________________________

Maple [A]  time = 0.006, size = 14, normalized size = 0.9 \[ 3\,\arctan \left ( x \right ) +{\frac{\ln \left ({x}^{2}+3 \right ) }{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((x^3+3*x^2+x+9)/(x^2+1)/(x^2+3),x)

[Out]

3*arctan(x)+1/2*ln(x^2+3)

_______________________________________________________________________________________

Maxima [A]  time = 0.901664, size = 18, normalized size = 1.2 \[ 3 \, \arctan \left (x\right ) + \frac{1}{2} \, \log \left (x^{2} + 3\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x^3 + 3*x^2 + x + 9)/((x^2 + 3)*(x^2 + 1)),x, algorithm="maxima")

[Out]

3*arctan(x) + 1/2*log(x^2 + 3)

_______________________________________________________________________________________

Fricas [A]  time = 0.262736, size = 18, normalized size = 1.2 \[ 3 \, \arctan \left (x\right ) + \frac{1}{2} \, \log \left (x^{2} + 3\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x^3 + 3*x^2 + x + 9)/((x^2 + 3)*(x^2 + 1)),x, algorithm="fricas")

[Out]

3*arctan(x) + 1/2*log(x^2 + 3)

_______________________________________________________________________________________

Sympy [A]  time = 0.263852, size = 12, normalized size = 0.8 \[ \frac{\log{\left (x^{2} + 3 \right )}}{2} + 3 \operatorname{atan}{\left (x \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x**3+3*x**2+x+9)/(x**2+1)/(x**2+3),x)

[Out]

log(x**2 + 3)/2 + 3*atan(x)

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.263762, size = 18, normalized size = 1.2 \[ 3 \, \arctan \left (x\right ) + \frac{1}{2} \,{\rm ln}\left (x^{2} + 3\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x^3 + 3*x^2 + x + 9)/((x^2 + 3)*(x^2 + 1)),x, algorithm="giac")

[Out]

3*arctan(x) + 1/2*ln(x^2 + 3)