3.5.54 \(\int \frac {-1-2 x^2+2 x^4}{(2-3 x^2+x^4) \sqrt {1+x^6}} \, dx\)

Optimal. Leaf size=36 \[ -\frac {\tanh ^{-1}\left (\frac {x \sqrt {x^6+1}}{\sqrt {2} \left (x^4-x^2+1\right )}\right )}{\sqrt {2}} \]

________________________________________________________________________________________

Rubi [F]  time = 0.69, 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 {-1-2 x^2+2 x^4}{\left (2-3 x^2+x^4\right ) \sqrt {1+x^6}} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

Int[(-1 - 2*x^2 + 2*x^4)/((2 - 3*x^2 + x^4)*Sqrt[1 + x^6]),x]

[Out]

(x*(1 + x^2)*Sqrt[(1 - x^2 + x^4)/(1 + (1 + Sqrt[3])*x^2)^2]*EllipticF[ArcCos[(1 + (1 - Sqrt[3])*x^2)/(1 + (1
+ Sqrt[3])*x^2)], (2 + Sqrt[3])/4])/(3^(1/4)*Sqrt[(x^2*(1 + x^2))/(1 + (1 + Sqrt[3])*x^2)^2]*Sqrt[1 + x^6]) -
(3*Defer[Int][1/((Sqrt[2] - x)*Sqrt[1 + x^6]), x])/(2*Sqrt[2]) + Defer[Int][1/((-1 + x)*Sqrt[1 + x^6]), x]/2 -
 Defer[Int][1/((1 + x)*Sqrt[1 + x^6]), x]/2 - (3*Defer[Int][1/((Sqrt[2] + x)*Sqrt[1 + x^6]), x])/(2*Sqrt[2])

Rubi steps

\begin {align*} \int \frac {-1-2 x^2+2 x^4}{\left (2-3 x^2+x^4\right ) \sqrt {1+x^6}} \, dx &=\int \left (\frac {2}{\sqrt {1+x^6}}-\frac {5-4 x^2}{\left (2-3 x^2+x^4\right ) \sqrt {1+x^6}}\right ) \, dx\\ &=2 \int \frac {1}{\sqrt {1+x^6}} \, dx-\int \frac {5-4 x^2}{\left (2-3 x^2+x^4\right ) \sqrt {1+x^6}} \, dx\\ &=\frac {x \left (1+x^2\right ) \sqrt {\frac {1-x^2+x^4}{\left (1+\left (1+\sqrt {3}\right ) x^2\right )^2}} F\left (\cos ^{-1}\left (\frac {1+\left (1-\sqrt {3}\right ) x^2}{1+\left (1+\sqrt {3}\right ) x^2}\right )|\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{\sqrt [4]{3} \sqrt {\frac {x^2 \left (1+x^2\right )}{\left (1+\left (1+\sqrt {3}\right ) x^2\right )^2}} \sqrt {1+x^6}}-\int \left (-\frac {6}{\left (-4+2 x^2\right ) \sqrt {1+x^6}}-\frac {2}{\left (-2+2 x^2\right ) \sqrt {1+x^6}}\right ) \, dx\\ &=\frac {x \left (1+x^2\right ) \sqrt {\frac {1-x^2+x^4}{\left (1+\left (1+\sqrt {3}\right ) x^2\right )^2}} F\left (\cos ^{-1}\left (\frac {1+\left (1-\sqrt {3}\right ) x^2}{1+\left (1+\sqrt {3}\right ) x^2}\right )|\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{\sqrt [4]{3} \sqrt {\frac {x^2 \left (1+x^2\right )}{\left (1+\left (1+\sqrt {3}\right ) x^2\right )^2}} \sqrt {1+x^6}}+2 \int \frac {1}{\left (-2+2 x^2\right ) \sqrt {1+x^6}} \, dx+6 \int \frac {1}{\left (-4+2 x^2\right ) \sqrt {1+x^6}} \, dx\\ &=\frac {x \left (1+x^2\right ) \sqrt {\frac {1-x^2+x^4}{\left (1+\left (1+\sqrt {3}\right ) x^2\right )^2}} F\left (\cos ^{-1}\left (\frac {1+\left (1-\sqrt {3}\right ) x^2}{1+\left (1+\sqrt {3}\right ) x^2}\right )|\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{\sqrt [4]{3} \sqrt {\frac {x^2 \left (1+x^2\right )}{\left (1+\left (1+\sqrt {3}\right ) x^2\right )^2}} \sqrt {1+x^6}}+2 \int \left (\frac {1}{4 (-1+x) \sqrt {1+x^6}}-\frac {1}{4 (1+x) \sqrt {1+x^6}}\right ) \, dx+6 \int \left (-\frac {1}{4 \sqrt {2} \left (\sqrt {2}-x\right ) \sqrt {1+x^6}}-\frac {1}{4 \sqrt {2} \left (\sqrt {2}+x\right ) \sqrt {1+x^6}}\right ) \, dx\\ &=\frac {x \left (1+x^2\right ) \sqrt {\frac {1-x^2+x^4}{\left (1+\left (1+\sqrt {3}\right ) x^2\right )^2}} F\left (\cos ^{-1}\left (\frac {1+\left (1-\sqrt {3}\right ) x^2}{1+\left (1+\sqrt {3}\right ) x^2}\right )|\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{\sqrt [4]{3} \sqrt {\frac {x^2 \left (1+x^2\right )}{\left (1+\left (1+\sqrt {3}\right ) x^2\right )^2}} \sqrt {1+x^6}}+\frac {1}{2} \int \frac {1}{(-1+x) \sqrt {1+x^6}} \, dx-\frac {1}{2} \int \frac {1}{(1+x) \sqrt {1+x^6}} \, dx-\frac {3 \int \frac {1}{\left (\sqrt {2}-x\right ) \sqrt {1+x^6}} \, dx}{2 \sqrt {2}}-\frac {3 \int \frac {1}{\left (\sqrt {2}+x\right ) \sqrt {1+x^6}} \, dx}{2 \sqrt {2}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [F]  time = 0.24, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {-1-2 x^2+2 x^4}{\left (2-3 x^2+x^4\right ) \sqrt {1+x^6}} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

Integrate[(-1 - 2*x^2 + 2*x^4)/((2 - 3*x^2 + x^4)*Sqrt[1 + x^6]),x]

[Out]

Integrate[(-1 - 2*x^2 + 2*x^4)/((2 - 3*x^2 + x^4)*Sqrt[1 + x^6]), x]

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 13.69, size = 36, normalized size = 1.00 \begin {gather*} -\frac {\tanh ^{-1}\left (\frac {x \sqrt {1+x^6}}{\sqrt {2} \left (1-x^2+x^4\right )}\right )}{\sqrt {2}} \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[(-1 - 2*x^2 + 2*x^4)/((2 - 3*x^2 + x^4)*Sqrt[1 + x^6]),x]

[Out]

-(ArcTanh[(x*Sqrt[1 + x^6])/(Sqrt[2]*(1 - x^2 + x^4))]/Sqrt[2])

________________________________________________________________________________________

fricas [B]  time = 0.56, size = 78, normalized size = 2.17 \begin {gather*} \frac {1}{8} \, \sqrt {2} \log \left (-\frac {17 \, x^{8} - 6 \, x^{6} + 13 \, x^{4} - 4 \, \sqrt {2} \sqrt {x^{6} + 1} {\left (3 \, x^{5} - x^{3} + 2 \, x\right )} + 4 \, x^{2} + 4}{x^{8} - 6 \, x^{6} + 13 \, x^{4} - 12 \, x^{2} + 4}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*x^4-2*x^2-1)/(x^4-3*x^2+2)/(x^6+1)^(1/2),x, algorithm="fricas")

[Out]

1/8*sqrt(2)*log(-(17*x^8 - 6*x^6 + 13*x^4 - 4*sqrt(2)*sqrt(x^6 + 1)*(3*x^5 - x^3 + 2*x) + 4*x^2 + 4)/(x^8 - 6*
x^6 + 13*x^4 - 12*x^2 + 4))

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {2 \, x^{4} - 2 \, x^{2} - 1}{\sqrt {x^{6} + 1} {\left (x^{4} - 3 \, x^{2} + 2\right )}}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*x^4-2*x^2-1)/(x^4-3*x^2+2)/(x^6+1)^(1/2),x, algorithm="giac")

[Out]

integrate((2*x^4 - 2*x^2 - 1)/(sqrt(x^6 + 1)*(x^4 - 3*x^2 + 2)), x)

________________________________________________________________________________________

maple [C]  time = 0.30, size = 69, normalized size = 1.92

method result size
trager \(\frac {\RootOf \left (\textit {\_Z}^{2}-2\right ) \ln \left (\frac {3 \RootOf \left (\textit {\_Z}^{2}-2\right ) x^{4}-\RootOf \left (\textit {\_Z}^{2}-2\right ) x^{2}-4 \sqrt {x^{6}+1}\, x +2 \RootOf \left (\textit {\_Z}^{2}-2\right )}{\left (x^{2}-2\right ) \left (-1+x \right ) \left (1+x \right )}\right )}{4}\) \(69\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*x^4-2*x^2-1)/(x^4-3*x^2+2)/(x^6+1)^(1/2),x,method=_RETURNVERBOSE)

[Out]

1/4*RootOf(_Z^2-2)*ln((3*RootOf(_Z^2-2)*x^4-RootOf(_Z^2-2)*x^2-4*(x^6+1)^(1/2)*x+2*RootOf(_Z^2-2))/(x^2-2)/(-1
+x)/(1+x))

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {2 \, x^{4} - 2 \, x^{2} - 1}{\sqrt {x^{6} + 1} {\left (x^{4} - 3 \, x^{2} + 2\right )}}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*x^4-2*x^2-1)/(x^4-3*x^2+2)/(x^6+1)^(1/2),x, algorithm="maxima")

[Out]

integrate((2*x^4 - 2*x^2 - 1)/(sqrt(x^6 + 1)*(x^4 - 3*x^2 + 2)), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int -\frac {-2\,x^4+2\,x^2+1}{\sqrt {x^6+1}\,\left (x^4-3\,x^2+2\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(2*x^2 - 2*x^4 + 1)/((x^6 + 1)^(1/2)*(x^4 - 3*x^2 + 2)),x)

[Out]

int(-(2*x^2 - 2*x^4 + 1)/((x^6 + 1)^(1/2)*(x^4 - 3*x^2 + 2)), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {2 x^{4} - 2 x^{2} - 1}{\sqrt {\left (x^{2} + 1\right ) \left (x^{4} - x^{2} + 1\right )} \left (x - 1\right ) \left (x + 1\right ) \left (x^{2} - 2\right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*x**4-2*x**2-1)/(x**4-3*x**2+2)/(x**6+1)**(1/2),x)

[Out]

Integral((2*x**4 - 2*x**2 - 1)/(sqrt((x**2 + 1)*(x**4 - x**2 + 1))*(x - 1)*(x + 1)*(x**2 - 2)), x)

________________________________________________________________________________________