Optimal. Leaf size=34 \[ -\frac {(1-x) \left (x^3+x^2+x+1\right )^{-n} \left (1-x^4\right )^n}{n+1} \]
[Out]
________________________________________________________________________________________
Rubi [F] time = 0.06, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \[ \int \left (1+x+x^2+x^3\right )^{-n} \left (1-x^4\right )^n \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \left (1+x+x^2+x^3\right )^{-n} \left (1-x^4\right )^n \, dx &=\int \left (1+x+x^2+x^3\right )^{-n} \left (1-x^4\right )^n \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 31, normalized size = 0.91 \[ \frac {(x-1) \left (x^3+x^2+x+1\right )^{-n} \left (1-x^4\right )^n}{n+1} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.62, size = 31, normalized size = 0.91 \[ \frac {{\left (-x^{4} + 1\right )}^{n} {\left (x - 1\right )}}{{\left (x^{3} + x^{2} + x + 1\right )}^{n} {\left (n + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.46, size = 81, normalized size = 2.38 \[ \frac {\frac {x e^{\left (n \log \left (x^{3} + x^{2} + x + 1\right ) + n \log \left (-x + 1\right )\right )}}{{\left (x^{3} + x^{2} + x + 1\right )}^{n}} - \frac {e^{\left (n \log \left (x^{3} + x^{2} + x + 1\right ) + n \log \left (-x + 1\right )\right )}}{{\left (x^{3} + x^{2} + x + 1\right )}^{n}}}{n + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 32, normalized size = 0.94 \[ \frac {\left (x -1\right ) \left (-x^{4}+1\right )^{n} \left (x^{3}+x^{2}+x +1\right )^{-n}}{n +1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.09, size = 16, normalized size = 0.47 \[ \frac {{\left (x - 1\right )} {\left (-x + 1\right )}^{n}}{n + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.45, size = 31, normalized size = 0.91 \[ \frac {{\left (1-x^4\right )}^n\,\left (x-1\right )}{\left (n+1\right )\,{\left (x^3+x^2+x+1\right )}^n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 72.39, size = 73, normalized size = 2.15 \[ \begin {cases} \frac {x \left (1 - x^{4}\right )^{n}}{n \left (x^{3} + x^{2} + x + 1\right )^{n} + \left (x^{3} + x^{2} + x + 1\right )^{n}} - \frac {\left (1 - x^{4}\right )^{n}}{n \left (x^{3} + x^{2} + x + 1\right )^{n} + \left (x^{3} + x^{2} + x + 1\right )^{n}} & \text {for}\: n \neq -1 \\- \log {\left (x - 1 \right )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________