Optimal. Leaf size=87 \[ \text {ArcTan}\left (\frac {x \sqrt {1-x^2-x^4-x^6}}{-1+x^2+x^4+x^6}\right )-\sqrt {2} \text {ArcTan}\left (\frac {\sqrt {2} x \sqrt {1-x^2-x^4-x^6}}{-1+x^2+x^4+x^6}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [F]
time = 1.72, 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 = {}
\begin {gather*} \int \frac {\left (1-x^2+2 x^4\right ) \sqrt {1-x^2-x^4-x^6}}{\left (-1+x^2\right ) \left (1+x^2\right ) \left (-1+x^4+x^6\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {\left (1-x^2+2 x^4\right ) \sqrt {1-x^2-x^4-x^6}}{\left (-1+x^2\right ) \left (1+x^2\right ) \left (-1+x^4+x^6\right )} \, dx &=\int \left (\frac {\sqrt {1-x^2-x^4-x^6}}{-1+x^2}+\frac {2 \sqrt {1-x^2-x^4-x^6}}{1+x^2}-\frac {x^2 \left (2+3 x^2\right ) \sqrt {1-x^2-x^4-x^6}}{-1+x^4+x^6}\right ) \, dx\\ &=2 \int \frac {\sqrt {1-x^2-x^4-x^6}}{1+x^2} \, dx+\int \frac {\sqrt {1-x^2-x^4-x^6}}{-1+x^2} \, dx-\int \frac {x^2 \left (2+3 x^2\right ) \sqrt {1-x^2-x^4-x^6}}{-1+x^4+x^6} \, dx\\ &=2 \int \left (\frac {i \sqrt {1-x^2-x^4-x^6}}{2 (i-x)}+\frac {i \sqrt {1-x^2-x^4-x^6}}{2 (i+x)}\right ) \, dx+\int \left (\frac {\sqrt {1-x^2-x^4-x^6}}{2 (-1+x)}-\frac {\sqrt {1-x^2-x^4-x^6}}{2 (1+x)}\right ) \, dx-\int \left (\frac {2 x^2 \sqrt {1-x^2-x^4-x^6}}{-1+x^4+x^6}+\frac {3 x^4 \sqrt {1-x^2-x^4-x^6}}{-1+x^4+x^6}\right ) \, dx\\ &=i \int \frac {\sqrt {1-x^2-x^4-x^6}}{i-x} \, dx+i \int \frac {\sqrt {1-x^2-x^4-x^6}}{i+x} \, dx+\frac {1}{2} \int \frac {\sqrt {1-x^2-x^4-x^6}}{-1+x} \, dx-\frac {1}{2} \int \frac {\sqrt {1-x^2-x^4-x^6}}{1+x} \, dx-2 \int \frac {x^2 \sqrt {1-x^2-x^4-x^6}}{-1+x^4+x^6} \, dx-3 \int \frac {x^4 \sqrt {1-x^2-x^4-x^6}}{-1+x^4+x^6} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 62, normalized size = 0.71 \begin {gather*} -\text {ArcTan}\left (\frac {x}{\sqrt {1-x^2-x^4-x^6}}\right )+\sqrt {2} \text {ArcTan}\left (\frac {\sqrt {2} x}{\sqrt {1-x^2-x^4-x^6}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 1.63, size = 175, normalized size = 2.01
method | result | size |
trager | \(-\frac {\RootOf \left (\textit {\_Z}^{2}+2\right ) \ln \left (-\frac {\RootOf \left (\textit {\_Z}^{2}+2\right ) x^{6}+\RootOf \left (\textit {\_Z}^{2}+2\right ) x^{4}+3 \RootOf \left (\textit {\_Z}^{2}+2\right ) x^{2}+4 \sqrt {-x^{6}-x^{4}-x^{2}+1}\, x -\RootOf \left (\textit {\_Z}^{2}+2\right )}{\left (-1+x \right ) \left (1+x \right ) \left (x^{2}+1\right )^{2}}\right )}{2}+\frac {\RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (-\frac {\RootOf \left (\textit {\_Z}^{2}+1\right ) x^{6}+\RootOf \left (\textit {\_Z}^{2}+1\right ) x^{4}+2 \RootOf \left (\textit {\_Z}^{2}+1\right ) x^{2}+2 \sqrt {-x^{6}-x^{4}-x^{2}+1}\, x -\RootOf \left (\textit {\_Z}^{2}+1\right )}{x^{6}+x^{4}-1}\right )}{2}\) | \(175\) |
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 [B] Leaf count of result is larger than twice the leaf count of optimal. 184 vs.
\(2 (79) = 158\).
time = 0.48, size = 184, normalized size = 2.11 \begin {gather*} -\frac {1}{10} \, \sqrt {2} \arctan \left (\frac {2 \, \sqrt {2} {\left (6 \, x^{7} + x^{5} - 4 \, x^{3} + x\right )} \sqrt {-x^{6} - x^{4} - x^{2} + 1}}{17 \, x^{10} + 11 \, x^{8} - 2 \, x^{6} - 18 \, x^{4} + 9 \, x^{2} - 1}\right ) + \frac {1}{5} \, \sqrt {2} \arctan \left (\frac {2 \, \sqrt {2} {\left (x^{7} + x^{3} - 2 \, x\right )} \sqrt {-x^{6} - x^{4} - x^{2} + 1}}{3 \, x^{10} + 3 \, x^{8} + 10 \, x^{6} + 6 \, x^{4} + 11 \, x^{2} - 1}\right ) + \frac {1}{2} \, \arctan \left (\frac {2 \, \sqrt {-x^{6} - x^{4} - x^{2} + 1} x}{x^{6} + x^{4} + 2 \, x^{2} - 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \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 \frac {\left (2\,x^4-x^2+1\right )\,\sqrt {-x^6-x^4-x^2+1}}{\left (x^2-1\right )\,\left (x^2+1\right )\,\left (x^6+x^4-1\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________