Optimal. Leaf size=26 \[ \frac{x^3}{3}-2 x+\frac{5 \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right )}{\sqrt{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0107413, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {1154, 203} \[ \frac{x^3}{3}-2 x+\frac{5 \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1154
Rule 203
Rubi steps
\begin{align*} \int \frac{1+x^4}{2+x^2} \, dx &=\int \left (-2+x^2+\frac{5}{2+x^2}\right ) \, dx\\ &=-2 x+\frac{x^3}{3}+5 \int \frac{1}{2+x^2} \, dx\\ &=-2 x+\frac{x^3}{3}+\frac{5 \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right )}{\sqrt{2}}\\ \end{align*}
Mathematica [A] time = 0.0080328, size = 26, normalized size = 1. \[ \frac{x^3}{3}-2 x+\frac{5 \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 22, normalized size = 0.9 \begin{align*} -2\,x+{\frac{{x}^{3}}{3}}+{\frac{5\,\sqrt{2}}{2}\arctan \left ({\frac{x\sqrt{2}}{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.4592, size = 28, normalized size = 1.08 \begin{align*} \frac{1}{3} \, x^{3} + \frac{5}{2} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2} x\right ) - 2 \, x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.63274, size = 69, normalized size = 2.65 \begin{align*} \frac{1}{3} \, x^{3} + \frac{5}{2} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2} x\right ) - 2 \, x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.086571, size = 26, normalized size = 1. \begin{align*} \frac{x^{3}}{3} - 2 x + \frac{5 \sqrt{2} \operatorname{atan}{\left (\frac{\sqrt{2} x}{2} \right )}}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.22294, size = 28, normalized size = 1.08 \begin{align*} \frac{1}{3} \, x^{3} + \frac{5}{2} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2} x\right ) - 2 \, x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]