Optimal. Leaf size=55 \[ 2 \text {ArcTan}\left (\frac {x}{\sqrt {-1-x-x^2+x^4}}\right )-2 \sqrt {2} \text {ArcTan}\left (\frac {\sqrt {2} x}{\sqrt {-1-x-x^2+x^4}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [F]
time = 1.14, 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 {\sqrt {-1-x-x^2+x^4} \left (2+x+2 x^4\right )}{\left (-1-x+x^4\right ) \left (-1-x+x^2+x^4\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {\sqrt {-1-x-x^2+x^4} \left (2+x+2 x^4\right )}{\left (-1-x+x^4\right ) \left (-1-x+x^2+x^4\right )} \, dx &=\int \left (\frac {\sqrt {-1-x-x^2+x^4}}{1-x}+\frac {\left (2-x+2 x^2\right ) \sqrt {-1-x-x^2+x^4}}{1+2 x+x^2+x^3}+\frac {\left (1+4 x^2-x^3\right ) \sqrt {-1-x-x^2+x^4}}{-1-x+x^4}\right ) \, dx\\ &=\int \frac {\sqrt {-1-x-x^2+x^4}}{1-x} \, dx+\int \frac {\left (2-x+2 x^2\right ) \sqrt {-1-x-x^2+x^4}}{1+2 x+x^2+x^3} \, dx+\int \frac {\left (1+4 x^2-x^3\right ) \sqrt {-1-x-x^2+x^4}}{-1-x+x^4} \, dx\\ &=\int \frac {\sqrt {-1-x-x^2+x^4}}{1-x} \, dx+\int \left (\frac {2 \sqrt {-1-x-x^2+x^4}}{1+2 x+x^2+x^3}-\frac {x \sqrt {-1-x-x^2+x^4}}{1+2 x+x^2+x^3}+\frac {2 x^2 \sqrt {-1-x-x^2+x^4}}{1+2 x+x^2+x^3}\right ) \, dx+\int \left (\frac {\sqrt {-1-x-x^2+x^4}}{-1-x+x^4}+\frac {4 x^2 \sqrt {-1-x-x^2+x^4}}{-1-x+x^4}-\frac {x^3 \sqrt {-1-x-x^2+x^4}}{-1-x+x^4}\right ) \, dx\\ &=2 \int \frac {\sqrt {-1-x-x^2+x^4}}{1+2 x+x^2+x^3} \, dx+2 \int \frac {x^2 \sqrt {-1-x-x^2+x^4}}{1+2 x+x^2+x^3} \, dx+4 \int \frac {x^2 \sqrt {-1-x-x^2+x^4}}{-1-x+x^4} \, dx+\int \frac {\sqrt {-1-x-x^2+x^4}}{1-x} \, dx-\int \frac {x \sqrt {-1-x-x^2+x^4}}{1+2 x+x^2+x^3} \, dx+\int \frac {\sqrt {-1-x-x^2+x^4}}{-1-x+x^4} \, dx-\int \frac {x^3 \sqrt {-1-x-x^2+x^4}}{-1-x+x^4} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.16, size = 55, normalized size = 1.00 \begin {gather*} 2 \text {ArcTan}\left (\frac {x}{\sqrt {-1-x-x^2+x^4}}\right )-2 \sqrt {2} \text {ArcTan}\left (\frac {\sqrt {2} x}{\sqrt {-1-x-x^2+x^4}}\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 = 13.21, size = 7840, normalized size = 142.55
method | result | size |
trager | \(\RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (-\frac {\RootOf \left (\textit {\_Z}^{2}+1\right ) x^{4}-2 \RootOf \left (\textit {\_Z}^{2}+1\right ) x^{2}-x \RootOf \left (\textit {\_Z}^{2}+1\right )+2 \sqrt {x^{4}-x^{2}-x -1}\, x -\RootOf \left (\textit {\_Z}^{2}+1\right )}{x^{4}-x -1}\right )+\RootOf \left (\textit {\_Z}^{2}+2\right ) \ln \left (-\frac {-\RootOf \left (\textit {\_Z}^{2}+2\right ) x^{4}+3 \RootOf \left (\textit {\_Z}^{2}+2\right ) x^{2}+4 \sqrt {x^{4}-x^{2}-x -1}\, x +\RootOf \left (\textit {\_Z}^{2}+2\right ) x +\RootOf \left (\textit {\_Z}^{2}+2\right )}{\left (-1+x \right ) \left (x^{3}+x^{2}+2 x +1\right )}\right )\) | \(162\) |
default | \(\text {Expression too large to display}\) | \(7840\) |
elliptic | \(\text {Expression too large to display}\) | \(788632\) |
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 [A]
time = 0.44, size = 77, normalized size = 1.40 \begin {gather*} -\sqrt {2} \arctan \left (\frac {2 \, \sqrt {2} \sqrt {x^{4} - x^{2} - x - 1} x}{x^{4} - 3 \, x^{2} - x - 1}\right ) + \arctan \left (\frac {2 \, \sqrt {x^{4} - x^{2} - x - 1} x}{x^{4} - 2 \, x^{2} - x - 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.02 \begin {gather*} \int \frac {\left (2\,x^4+x+2\right )\,\sqrt {x^4-x^2-x-1}}{\left (-x^4+x+1\right )\,\left (-x^4-x^2+x+1\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________