Optimal. Leaf size=59 \[ 2 \tanh ^{-1}\left (\frac {x}{\sqrt {2 x^4-2 x^3+x^2-2}}\right )-2 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {2 x^4-2 x^3+x^2-2}}\right ) \]
________________________________________________________________________________________
Rubi [F] time = 1.86, 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 {-2+x^2-2 x^3+2 x^4} \left (2-x^3+2 x^4\right )}{\left (-1-x^3+x^4\right ) \left (-2-x^2-2 x^3+2 x^4\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {\sqrt {-2+x^2-2 x^3+2 x^4} \left (2-x^3+2 x^4\right )}{\left (-1-x^3+x^4\right ) \left (-2-x^2-2 x^3+2 x^4\right )} \, dx &=\int \left (-\frac {x (-3+4 x) \sqrt {-2+x^2-2 x^3+2 x^4}}{-1-x^3+x^4}+\frac {2 \left (-1-3 x+4 x^2\right ) \sqrt {-2+x^2-2 x^3+2 x^4}}{-2-x^2-2 x^3+2 x^4}\right ) \, dx\\ &=2 \int \frac {\left (-1-3 x+4 x^2\right ) \sqrt {-2+x^2-2 x^3+2 x^4}}{-2-x^2-2 x^3+2 x^4} \, dx-\int \frac {x (-3+4 x) \sqrt {-2+x^2-2 x^3+2 x^4}}{-1-x^3+x^4} \, dx\\ &=2 \int \left (\frac {\sqrt {-2+x^2-2 x^3+2 x^4}}{2+x^2+2 x^3-2 x^4}-\frac {3 x \sqrt {-2+x^2-2 x^3+2 x^4}}{-2-x^2-2 x^3+2 x^4}+\frac {4 x^2 \sqrt {-2+x^2-2 x^3+2 x^4}}{-2-x^2-2 x^3+2 x^4}\right ) \, dx-\int \left (-\frac {3 x \sqrt {-2+x^2-2 x^3+2 x^4}}{-1-x^3+x^4}+\frac {4 x^2 \sqrt {-2+x^2-2 x^3+2 x^4}}{-1-x^3+x^4}\right ) \, dx\\ &=2 \int \frac {\sqrt {-2+x^2-2 x^3+2 x^4}}{2+x^2+2 x^3-2 x^4} \, dx+3 \int \frac {x \sqrt {-2+x^2-2 x^3+2 x^4}}{-1-x^3+x^4} \, dx-4 \int \frac {x^2 \sqrt {-2+x^2-2 x^3+2 x^4}}{-1-x^3+x^4} \, dx-6 \int \frac {x \sqrt {-2+x^2-2 x^3+2 x^4}}{-2-x^2-2 x^3+2 x^4} \, dx+8 \int \frac {x^2 \sqrt {-2+x^2-2 x^3+2 x^4}}{-2-x^2-2 x^3+2 x^4} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.68, size = 109133, normalized size = 1849.71 \begin {gather*} \text {Result too large to show} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.23, size = 59, normalized size = 1.00 \begin {gather*} 2 \tanh ^{-1}\left (\frac {x}{\sqrt {-2+x^2-2 x^3+2 x^4}}\right )-2 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {-2+x^2-2 x^3+2 x^4}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.26, size = 168, normalized size = 2.85 \begin {gather*} \frac {1}{2} \, \sqrt {2} \log \left (-\frac {4 \, x^{8} - 8 \, x^{7} + 32 \, x^{6} - 28 \, x^{5} + 9 \, x^{4} + 8 \, x^{3} - 4 \, \sqrt {2} {\left (2 \, x^{5} - 2 \, x^{4} + 3 \, x^{3} - 2 \, x\right )} \sqrt {2 \, x^{4} - 2 \, x^{3} + x^{2} - 2} - 28 \, x^{2} + 4}{4 \, x^{8} - 8 \, x^{7} + 4 \, x^{5} - 7 \, x^{4} + 8 \, x^{3} + 4 \, x^{2} + 4}\right ) + \log \left (-\frac {x^{4} - x^{3} + x^{2} + \sqrt {2 \, x^{4} - 2 \, x^{3} + x^{2} - 2} x - 1}{x^{4} - x^{3} - 1}\right ) \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*} \int \frac {{\left (2 \, x^{4} - x^{3} + 2\right )} \sqrt {2 \, x^{4} - 2 \, x^{3} + x^{2} - 2}}{{\left (2 \, x^{4} - 2 \, x^{3} - x^{2} - 2\right )} {\left (x^{4} - x^{3} - 1\right )}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 12.12, size = 140, normalized size = 2.37
method | result | size |
trager | \(\RootOf \left (\textit {\_Z}^{2}-2\right ) \ln \left (-\frac {-2 \RootOf \left (\textit {\_Z}^{2}-2\right ) x^{4}+2 \RootOf \left (\textit {\_Z}^{2}-2\right ) x^{3}-3 \RootOf \left (\textit {\_Z}^{2}-2\right ) x^{2}+4 \sqrt {2 x^{4}-2 x^{3}+x^{2}-2}\, x +2 \RootOf \left (\textit {\_Z}^{2}-2\right )}{2 x^{4}-2 x^{3}-x^{2}-2}\right )+\ln \left (-\frac {x^{4}-x^{3}+\sqrt {2 x^{4}-2 x^{3}+x^{2}-2}\, x +x^{2}-1}{x^{4}-x^{3}-1}\right )\) | \(140\) |
default | \(\text {Expression too large to display}\) | \(12512\) |
elliptic | \(\text {Expression too large to display}\) | \(1159913\) |
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*} \int \frac {{\left (2 \, x^{4} - x^{3} + 2\right )} \sqrt {2 \, x^{4} - 2 \, x^{3} + x^{2} - 2}}{{\left (2 \, x^{4} - 2 \, x^{3} - x^{2} - 2\right )} {\left (x^{4} - x^{3} - 1\right )}}\,{d x} \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^3+2\right )\,\sqrt {2\,x^4-2\,x^3+x^2-2}}{\left (-x^4+x^3+1\right )\,\left (-2\,x^4+2\,x^3+x^2+2\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] 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]
________________________________________________________________________________________