Optimal. Leaf size=32 \[ \frac{x^7}{7}-\frac{2 x^6}{3}+x^5-\frac{4 x^3}{3}+4 x-4 \tan ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0400596, antiderivative size = 32, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {1629, 203} \[ \frac{x^7}{7}-\frac{2 x^6}{3}+x^5-\frac{4 x^3}{3}+4 x-4 \tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1629
Rule 203
Rubi steps
\begin{align*} \int \frac{(-1+x)^4 x^4}{1+x^2} \, dx &=\int \left (4-4 x^2+5 x^4-4 x^5+x^6-\frac{4}{1+x^2}\right ) \, dx\\ &=4 x-\frac{4 x^3}{3}+x^5-\frac{2 x^6}{3}+\frac{x^7}{7}-4 \int \frac{1}{1+x^2} \, dx\\ &=4 x-\frac{4 x^3}{3}+x^5-\frac{2 x^6}{3}+\frac{x^7}{7}-4 \tan ^{-1}(x)\\ \end{align*}
Mathematica [A] time = 0.0240289, size = 32, normalized size = 1. \[ \frac{x^7}{7}-\frac{2 x^6}{3}+x^5-\frac{4 x^3}{3}+4 x-4 \tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 27, normalized size = 0.8 \begin{align*} 4\,x-{\frac{4\,{x}^{3}}{3}}+{x}^{5}-{\frac{2\,{x}^{6}}{3}}+{\frac{{x}^{7}}{7}}-4\,\arctan \left ( x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.71845, size = 35, normalized size = 1.09 \begin{align*} \frac{1}{7} \, x^{7} - \frac{2}{3} \, x^{6} + x^{5} - \frac{4}{3} \, x^{3} + 4 \, x - 4 \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.44205, size = 74, normalized size = 2.31 \begin{align*} \frac{1}{7} \, x^{7} - \frac{2}{3} \, x^{6} + x^{5} - \frac{4}{3} \, x^{3} + 4 \, x - 4 \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.090415, size = 29, normalized size = 0.91 \begin{align*} \frac{x^{7}}{7} - \frac{2 x^{6}}{3} + x^{5} - \frac{4 x^{3}}{3} + 4 x - 4 \operatorname{atan}{\left (x \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.43134, size = 35, normalized size = 1.09 \begin{align*} \frac{1}{7} \, x^{7} - \frac{2}{3} \, x^{6} + x^{5} - \frac{4}{3} \, x^{3} + 4 \, x - 4 \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]