Optimal. Leaf size=99 \[ x \left (1-\frac {2 x^2}{3-\sqrt {5}}\right )^{-n} \left (1-\frac {2 x^2}{3+\sqrt {5}}\right )^{-n} \left (1-3 x^2+x^4\right )^n \operatorname {AppellF1}\left (\frac {1}{2},-n,-n,\frac {3}{2},\frac {2 x^2}{3+\sqrt {5}},\frac {2 x^2}{3-\sqrt {5}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 99, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {1119, 440}
\begin {gather*} x \left (1-\frac {2 x^2}{3-\sqrt {5}}\right )^{-n} \left (1-\frac {2 x^2}{3+\sqrt {5}}\right )^{-n} \left (x^4-3 x^2+1\right )^n \operatorname {AppellF1}\left (\frac {1}{2},-n,-n,\frac {3}{2},\frac {2 x^2}{3+\sqrt {5}},\frac {2 x^2}{3-\sqrt {5}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 440
Rule 1119
Rubi steps
\begin {gather*} \begin {aligned} \text {Integral} &=\left (\left (1+\frac {2 x^2}{-3-\sqrt {5}}\right )^{-n} \left (1+\frac {2 x^2}{-3+\sqrt {5}}\right )^{-n} \left (1-3 x^2+x^4\right )^n\right ) \int \left (1+\frac {2 x^2}{-3-\sqrt {5}}\right )^n \left (1+\frac {2 x^2}{-3+\sqrt {5}}\right )^n \, dx\\ &=x \left (1-\frac {2 x^2}{3-\sqrt {5}}\right )^{-n} \left (1-\frac {2 x^2}{3+\sqrt {5}}\right )^{-n} \left (1-3 x^2+x^4\right )^n \operatorname {AppellF1}\left (\frac {1}{2},-n,-n,\frac {3}{2},\frac {2 x^2}{3+\sqrt {5}},\frac {2 x^2}{3-\sqrt {5}}\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 142, normalized size = 1.43 \begin {gather*} \left (3+\sqrt {5}\right )^n x \left (-\left (3+\sqrt {5}-2 x^2\right )^2\right )^{-n} \left (-3-\sqrt {5}+2 x^2\right )^n \left (-3+\sqrt {5}+2 x^2\right )^n \left (\frac {\left (-3+\sqrt {5}+2 x^2\right )^2}{-3+\sqrt {5}}\right )^{-n} \left (1-3 x^2+x^4\right )^n \operatorname {AppellF1}\left (\frac {1}{2},-n,-n,\frac {3}{2},-\frac {2 x^2}{-3+\sqrt {5}},\frac {2 x^2}{3+\sqrt {5}}\right ) \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.00, size = 0, normalized size = 0.00 \[\int \left (x^{4}-3 x^{2}+1\right )^{n}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.58, size = 14, normalized size = 0.14 \begin {gather*} {\rm integral}\left ({\left (x^{4} - 3 \, x^{2} + 1\right )}^{n}, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (x^{4} - 3 x^{2} + 1\right )^{n}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (x^4-3\,x^2+1\right )}^n \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Chatgpt [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {not solved} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________