Optimal. Leaf size=23 \[ \frac{2}{x^2+1}-\frac{1}{4 \left (x^2+1\right )^2}+\tan ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0246163, antiderivative size = 23, 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, Rules used = {1814, 12, 203} \[ \frac{2}{x^2+1}-\frac{1}{4 \left (x^2+1\right )^2}+\tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1814
Rule 12
Rule 203
Rubi steps
\begin{align*} \int \frac{1-3 x+2 x^2-4 x^3+x^4}{\left (1+x^2\right )^3} \, dx &=-\frac{1}{4 \left (1+x^2\right )^2}-\frac{1}{4} \int \frac{-4+16 x-4 x^2}{\left (1+x^2\right )^2} \, dx\\ &=-\frac{1}{4 \left (1+x^2\right )^2}+\frac{2}{1+x^2}+\frac{1}{8} \int \frac{8}{1+x^2} \, dx\\ &=-\frac{1}{4 \left (1+x^2\right )^2}+\frac{2}{1+x^2}+\int \frac{1}{1+x^2} \, dx\\ &=-\frac{1}{4 \left (1+x^2\right )^2}+\frac{2}{1+x^2}+\tan ^{-1}(x)\\ \end{align*}
Mathematica [A] time = 0.0112247, size = 23, normalized size = 1. \[ \frac{2}{x^2+1}-\frac{1}{4 \left (x^2+1\right )^2}+\tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 19, normalized size = 0.8 \begin{align*}{\frac{1}{ \left ({x}^{2}+1 \right ) ^{2}} \left ( 2\,{x}^{2}+{\frac{7}{4}} \right ) }+\arctan \left ( x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.66992, size = 32, normalized size = 1.39 \begin{align*} \frac{8 \, x^{2} + 7}{4 \,{\left (x^{4} + 2 \, x^{2} + 1\right )}} + \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.46814, size = 90, normalized size = 3.91 \begin{align*} \frac{8 \, x^{2} + 4 \,{\left (x^{4} + 2 \, x^{2} + 1\right )} \arctan \left (x\right ) + 7}{4 \,{\left (x^{4} + 2 \, x^{2} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.122589, size = 20, normalized size = 0.87 \begin{align*} \frac{8 x^{2} + 7}{4 x^{4} + 8 x^{2} + 4} + \operatorname{atan}{\left (x \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18253, size = 26, normalized size = 1.13 \begin{align*} \frac{8 \, x^{2} + 7}{4 \,{\left (x^{2} + 1\right )}^{2}} + \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]