Optimal. Leaf size=43 \[ \frac{7 x}{16 \left (x^2+1\right )}-\frac{x}{24 \left (x^2+1\right )^2}+\frac{x}{6 \left (x^2+1\right )^3}+\frac{7}{16} \tan ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0135686, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {1157, 385, 199, 203} \[ \frac{7 x}{16 \left (x^2+1\right )}-\frac{x}{24 \left (x^2+1\right )^2}+\frac{x}{6 \left (x^2+1\right )^3}+\frac{7}{16} \tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1157
Rule 385
Rule 199
Rule 203
Rubi steps
\begin{align*} \int \frac{1+x^2+x^4}{\left (1+x^2\right )^4} \, dx &=\frac{x}{6 \left (1+x^2\right )^3}-\frac{1}{6} \int \frac{-5-6 x^2}{\left (1+x^2\right )^3} \, dx\\ &=\frac{x}{6 \left (1+x^2\right )^3}-\frac{x}{24 \left (1+x^2\right )^2}+\frac{7}{8} \int \frac{1}{\left (1+x^2\right )^2} \, dx\\ &=\frac{x}{6 \left (1+x^2\right )^3}-\frac{x}{24 \left (1+x^2\right )^2}+\frac{7 x}{16 \left (1+x^2\right )}+\frac{7}{16} \int \frac{1}{1+x^2} \, dx\\ &=\frac{x}{6 \left (1+x^2\right )^3}-\frac{x}{24 \left (1+x^2\right )^2}+\frac{7 x}{16 \left (1+x^2\right )}+\frac{7}{16} \tan ^{-1}(x)\\ \end{align*}
Mathematica [A] time = 0.0119681, size = 30, normalized size = 0.7 \[ \frac{1}{48} \left (\frac{x \left (21 x^4+40 x^2+27\right )}{\left (x^2+1\right )^3}+21 \tan ^{-1}(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 28, normalized size = 0.7 \begin{align*}{\frac{1}{ \left ({x}^{2}+1 \right ) ^{3}} \left ({\frac{7\,{x}^{5}}{16}}+{\frac{5\,{x}^{3}}{6}}+{\frac{9\,x}{16}} \right ) }+{\frac{7\,\arctan \left ( x \right ) }{16}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.40947, size = 51, normalized size = 1.19 \begin{align*} \frac{21 \, x^{5} + 40 \, x^{3} + 27 \, x}{48 \,{\left (x^{6} + 3 \, x^{4} + 3 \, x^{2} + 1\right )}} + \frac{7}{16} \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.04415, size = 132, normalized size = 3.07 \begin{align*} \frac{21 \, x^{5} + 40 \, x^{3} + 21 \,{\left (x^{6} + 3 \, x^{4} + 3 \, x^{2} + 1\right )} \arctan \left (x\right ) + 27 \, x}{48 \,{\left (x^{6} + 3 \, x^{4} + 3 \, x^{2} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.13525, size = 36, normalized size = 0.84 \begin{align*} \frac{21 x^{5} + 40 x^{3} + 27 x}{48 x^{6} + 144 x^{4} + 144 x^{2} + 48} + \frac{7 \operatorname{atan}{\left (x \right )}}{16} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.05616, size = 38, normalized size = 0.88 \begin{align*} \frac{21 \, x^{5} + 40 \, x^{3} + 27 \, x}{48 \,{\left (x^{2} + 1\right )}^{3}} + \frac{7}{16} \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]