Optimal. Leaf size=20 \[ 3 \tan ^{-1}(x)-\sqrt{2} \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0121168, antiderivative size = 20, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1, Rules used = {522, 203} \[ 3 \tan ^{-1}(x)-\sqrt{2} \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 522
Rule 203
Rubi steps
\begin{align*} \int \frac{4+x^2}{\left (1+x^2\right ) \left (2+x^2\right )} \, dx &=-\left (2 \int \frac{1}{2+x^2} \, dx\right )+3 \int \frac{1}{1+x^2} \, dx\\ &=3 \tan ^{-1}(x)-\sqrt{2} \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right )\\ \end{align*}
Mathematica [A] time = 0.0089066, size = 20, normalized size = 1. \[ 3 \tan ^{-1}(x)-\sqrt{2} \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 18, normalized size = 0.9 \begin{align*} 3\,\arctan \left ( x \right ) -\arctan \left ({\frac{x\sqrt{2}}{2}} \right ) \sqrt{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.54356, size = 23, normalized size = 1.15 \begin{align*} -\sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2} x\right ) + 3 \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.67032, size = 62, normalized size = 3.1 \begin{align*} -\sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2} x\right ) + 3 \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.132992, size = 19, normalized size = 0.95 \begin{align*} 3 \operatorname{atan}{\left (x \right )} - \sqrt{2} \operatorname{atan}{\left (\frac{\sqrt{2} x}{2} \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.0889, size = 23, normalized size = 1.15 \begin{align*} -\sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2} x\right ) + 3 \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]