\(\int \frac {1-2 x^4+2 x^8}{\sqrt [4]{-1+x^4} (-2-x^4+2 x^8)} \, dx\) [1795]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [N/A] (verified)
Fricas [C] (verification not implemented)
Sympy [F(-1)]
Maxima [N/A]
Giac [N/A]
Mupad [N/A]
Reduce [N/A]

Optimal result

Integrand size = 36, antiderivative size = 121 \[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{-1+x^4} \left (-2-x^4+2 x^8\right )} \, dx=\frac {1}{2} \arctan \left (\frac {x}{\sqrt [4]{-1+x^4}}\right )+\frac {1}{2} \text {arctanh}\left (\frac {x}{\sqrt [4]{-1+x^4}}\right )-\frac {1}{4} \text {RootSum}\left [1-5 \text {$\#$1}^4+2 \text {$\#$1}^8\&,\frac {-2 \log (x)+2 \log \left (\sqrt [4]{-1+x^4}-x \text {$\#$1}\right )+3 \log (x) \text {$\#$1}^4-3 \log \left (\sqrt [4]{-1+x^4}-x \text {$\#$1}\right ) \text {$\#$1}^4}{-5 \text {$\#$1}+4 \text {$\#$1}^5}\&\right ] \] Output:

Unintegrable
                                                                                    
                                                                                    
 

Mathematica [A] (verified)

Time = 0.31 (sec) , antiderivative size = 118, normalized size of antiderivative = 0.98 \[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{-1+x^4} \left (-2-x^4+2 x^8\right )} \, dx=\frac {1}{4} \left (2 \left (\arctan \left (\frac {x}{\sqrt [4]{-1+x^4}}\right )+\text {arctanh}\left (\frac {x}{\sqrt [4]{-1+x^4}}\right )\right )-\text {RootSum}\left [1-5 \text {$\#$1}^4+2 \text {$\#$1}^8\&,\frac {-2 \log (x)+2 \log \left (\sqrt [4]{-1+x^4}-x \text {$\#$1}\right )+3 \log (x) \text {$\#$1}^4-3 \log \left (\sqrt [4]{-1+x^4}-x \text {$\#$1}\right ) \text {$\#$1}^4}{-5 \text {$\#$1}+4 \text {$\#$1}^5}\&\right ]\right ) \] Input:

Integrate[(1 - 2*x^4 + 2*x^8)/((-1 + x^4)^(1/4)*(-2 - x^4 + 2*x^8)),x]
 

Output:

(2*(ArcTan[x/(-1 + x^4)^(1/4)] + ArcTanh[x/(-1 + x^4)^(1/4)]) - RootSum[1 
- 5*#1^4 + 2*#1^8 & , (-2*Log[x] + 2*Log[(-1 + x^4)^(1/4) - x*#1] + 3*Log[ 
x]*#1^4 - 3*Log[(-1 + x^4)^(1/4) - x*#1]*#1^4)/(-5*#1 + 4*#1^5) & ])/4
 

Rubi [A] (verified)

Time = 0.78 (sec) , antiderivative size = 231, normalized size of antiderivative = 1.91, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {7279, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {2 x^8-2 x^4+1}{\sqrt [4]{x^4-1} \left (2 x^8-x^4-2\right )} \, dx\)

\(\Big \downarrow \) 7279

\(\displaystyle \int \left (\frac {1}{\sqrt [4]{x^4-1}}+\frac {3-x^4}{\sqrt [4]{x^4-1} \left (2 x^8-x^4-2\right )}\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {1}{2} \arctan \left (\frac {x}{\sqrt [4]{x^4-1}}\right )-\frac {\sqrt [4]{2047-439 \sqrt {17}} \arctan \left (\frac {\sqrt [4]{\frac {2}{5+\sqrt {17}}} x}{\sqrt [4]{x^4-1}}\right )}{4 \sqrt {17}}-\frac {\sqrt [4]{2047+439 \sqrt {17}} \arctan \left (\frac {\sqrt [4]{5+\sqrt {17}} x}{\sqrt {2} \sqrt [4]{x^4-1}}\right )}{4 \sqrt {17}}+\frac {1}{2} \text {arctanh}\left (\frac {x}{\sqrt [4]{x^4-1}}\right )-\frac {\sqrt [4]{2047-439 \sqrt {17}} \text {arctanh}\left (\frac {\sqrt [4]{\frac {2}{5+\sqrt {17}}} x}{\sqrt [4]{x^4-1}}\right )}{4 \sqrt {17}}-\frac {\sqrt [4]{2047+439 \sqrt {17}} \text {arctanh}\left (\frac {\sqrt [4]{5+\sqrt {17}} x}{\sqrt {2} \sqrt [4]{x^4-1}}\right )}{4 \sqrt {17}}\)

Input:

Int[(1 - 2*x^4 + 2*x^8)/((-1 + x^4)^(1/4)*(-2 - x^4 + 2*x^8)),x]
 

Output:

ArcTan[x/(-1 + x^4)^(1/4)]/2 - ((2047 - 439*Sqrt[17])^(1/4)*ArcTan[((2/(5 
+ Sqrt[17]))^(1/4)*x)/(-1 + x^4)^(1/4)])/(4*Sqrt[17]) - ((2047 + 439*Sqrt[ 
17])^(1/4)*ArcTan[((5 + Sqrt[17])^(1/4)*x)/(Sqrt[2]*(-1 + x^4)^(1/4))])/(4 
*Sqrt[17]) + ArcTanh[x/(-1 + x^4)^(1/4)]/2 - ((2047 - 439*Sqrt[17])^(1/4)* 
ArcTanh[((2/(5 + Sqrt[17]))^(1/4)*x)/(-1 + x^4)^(1/4)])/(4*Sqrt[17]) - ((2 
047 + 439*Sqrt[17])^(1/4)*ArcTanh[((5 + Sqrt[17])^(1/4)*x)/(Sqrt[2]*(-1 + 
x^4)^(1/4))])/(4*Sqrt[17])
 

Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 7279
Int[(u_)/((a_.) + (b_.)*(x_)^(n_.) + (c_.)*(x_)^(n2_.)), x_Symbol] :> With[ 
{v = RationalFunctionExpand[u/(a + b*x^n + c*x^(2*n)), x]}, Int[v, x] /; Su 
mQ[v]] /; FreeQ[{a, b, c}, x] && EqQ[n2, 2*n] && IGtQ[n, 0]
 
Maple [N/A] (verified)

Time = 4.78 (sec) , antiderivative size = 104, normalized size of antiderivative = 0.86

method result size
pseudoelliptic \(-\frac {\arctan \left (\frac {\left (x^{4}-1\right )^{\frac {1}{4}}}{x}\right )}{2}+\frac {\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (2 \textit {\_Z}^{8}-5 \textit {\_Z}^{4}+1\right )}{\sum }\frac {\left (3 \textit {\_R}^{4}-2\right ) \ln \left (\frac {-\textit {\_R} x +\left (x^{4}-1\right )^{\frac {1}{4}}}{x}\right )}{4 \textit {\_R}^{5}-5 \textit {\_R}}\right )}{4}+\frac {\ln \left (\frac {x +\left (x^{4}-1\right )^{\frac {1}{4}}}{x}\right )}{4}-\frac {\ln \left (\frac {\left (x^{4}-1\right )^{\frac {1}{4}}-x}{x}\right )}{4}\) \(104\)

Input:

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

Output:

-1/2*arctan((x^4-1)^(1/4)/x)+1/4*sum((3*_R^4-2)*ln((-_R*x+(x^4-1)^(1/4))/x 
)/(4*_R^5-5*_R),_R=RootOf(2*_Z^8-5*_Z^4+1))+1/4*ln((x+(x^4-1)^(1/4))/x)-1/ 
4*ln(((x^4-1)^(1/4)-x)/x)
 

Fricas [C] (verification not implemented)

Result contains higher order function than in optimal. Order 3 vs. order 1.

Time = 0.10 (sec) , antiderivative size = 536, normalized size of antiderivative = 4.43 \[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{-1+x^4} \left (-2-x^4+2 x^8\right )} \, dx =\text {Too large to display} \] Input:

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

Output:

-1/8*sqrt(1/17)*sqrt(-sqrt(439*sqrt(17) + 2047))*log((sqrt(1/17)*(155*sqrt 
(17)*x - 1003*x)*sqrt(439*sqrt(17) + 2047)*sqrt(-sqrt(439*sqrt(17) + 2047) 
) + 35152*(x^4 - 1)^(1/4))/x) + 1/8*sqrt(1/17)*sqrt(-sqrt(439*sqrt(17) + 2 
047))*log(-(sqrt(1/17)*(155*sqrt(17)*x - 1003*x)*sqrt(439*sqrt(17) + 2047) 
*sqrt(-sqrt(439*sqrt(17) + 2047)) - 35152*(x^4 - 1)^(1/4))/x) + 1/8*sqrt(1 
/17)*sqrt(-sqrt(-439*sqrt(17) + 2047))*log((sqrt(1/17)*(155*sqrt(17)*x + 1 
003*x)*sqrt(-439*sqrt(17) + 2047)*sqrt(-sqrt(-439*sqrt(17) + 2047)) + 3515 
2*(x^4 - 1)^(1/4))/x) - 1/8*sqrt(1/17)*sqrt(-sqrt(-439*sqrt(17) + 2047))*l 
og(-(sqrt(1/17)*(155*sqrt(17)*x + 1003*x)*sqrt(-439*sqrt(17) + 2047)*sqrt( 
-sqrt(-439*sqrt(17) + 2047)) - 35152*(x^4 - 1)^(1/4))/x) + 1/8*sqrt(1/17)* 
(439*sqrt(17) + 2047)^(1/4)*log((sqrt(1/17)*(155*sqrt(17)*x - 1003*x)*(439 
*sqrt(17) + 2047)^(3/4) + 35152*(x^4 - 1)^(1/4))/x) - 1/8*sqrt(1/17)*(439* 
sqrt(17) + 2047)^(1/4)*log(-(sqrt(1/17)*(155*sqrt(17)*x - 1003*x)*(439*sqr 
t(17) + 2047)^(3/4) - 35152*(x^4 - 1)^(1/4))/x) - 1/8*sqrt(1/17)*(-439*sqr 
t(17) + 2047)^(1/4)*log((sqrt(1/17)*(155*sqrt(17)*x + 1003*x)*(-439*sqrt(1 
7) + 2047)^(3/4) + 35152*(x^4 - 1)^(1/4))/x) + 1/8*sqrt(1/17)*(-439*sqrt(1 
7) + 2047)^(1/4)*log(-(sqrt(1/17)*(155*sqrt(17)*x + 1003*x)*(-439*sqrt(17) 
 + 2047)^(3/4) - 35152*(x^4 - 1)^(1/4))/x) + 1/2*arctan(x/(x^4 - 1)^(1/4)) 
 + 1/4*log((x + (x^4 - 1)^(1/4))/x) - 1/4*log(-(x - (x^4 - 1)^(1/4))/x)
 

Sympy [F(-1)]

Timed out. \[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{-1+x^4} \left (-2-x^4+2 x^8\right )} \, dx=\text {Timed out} \] Input:

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

Output:

Timed out
 

Maxima [N/A]

Not integrable

Time = 0.17 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.30 \[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{-1+x^4} \left (-2-x^4+2 x^8\right )} \, dx=\int { \frac {2 \, x^{8} - 2 \, x^{4} + 1}{{\left (2 \, x^{8} - x^{4} - 2\right )} {\left (x^{4} - 1\right )}^{\frac {1}{4}}} \,d x } \] Input:

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

Output:

integrate((2*x^8 - 2*x^4 + 1)/((2*x^8 - x^4 - 2)*(x^4 - 1)^(1/4)), x)
 

Giac [N/A]

Not integrable

Time = 0.27 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.30 \[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{-1+x^4} \left (-2-x^4+2 x^8\right )} \, dx=\int { \frac {2 \, x^{8} - 2 \, x^{4} + 1}{{\left (2 \, x^{8} - x^{4} - 2\right )} {\left (x^{4} - 1\right )}^{\frac {1}{4}}} \,d x } \] Input:

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

Output:

integrate((2*x^8 - 2*x^4 + 1)/((2*x^8 - x^4 - 2)*(x^4 - 1)^(1/4)), x)
 

Mupad [N/A]

Not integrable

Time = 8.65 (sec) , antiderivative size = 35, normalized size of antiderivative = 0.29 \[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{-1+x^4} \left (-2-x^4+2 x^8\right )} \, dx=\int -\frac {2\,x^8-2\,x^4+1}{{\left (x^4-1\right )}^{1/4}\,\left (-2\,x^8+x^4+2\right )} \,d x \] Input:

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

Output:

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

Reduce [N/A]

Not integrable

Time = 0.20 (sec) , antiderivative size = 127, normalized size of antiderivative = 1.05 \[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{-1+x^4} \left (-2-x^4+2 x^8\right )} \, dx=2 \left (\int \frac {x^{8}}{2 \left (x^{4}-1\right )^{\frac {1}{4}} x^{8}-\left (x^{4}-1\right )^{\frac {1}{4}} x^{4}-2 \left (x^{4}-1\right )^{\frac {1}{4}}}d x \right )-2 \left (\int \frac {x^{4}}{2 \left (x^{4}-1\right )^{\frac {1}{4}} x^{8}-\left (x^{4}-1\right )^{\frac {1}{4}} x^{4}-2 \left (x^{4}-1\right )^{\frac {1}{4}}}d x \right )+\int \frac {1}{2 \left (x^{4}-1\right )^{\frac {1}{4}} x^{8}-\left (x^{4}-1\right )^{\frac {1}{4}} x^{4}-2 \left (x^{4}-1\right )^{\frac {1}{4}}}d x \] Input:

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

Output:

2*int(x**8/(2*(x**4 - 1)**(1/4)*x**8 - (x**4 - 1)**(1/4)*x**4 - 2*(x**4 - 
1)**(1/4)),x) - 2*int(x**4/(2*(x**4 - 1)**(1/4)*x**8 - (x**4 - 1)**(1/4)*x 
**4 - 2*(x**4 - 1)**(1/4)),x) + int(1/(2*(x**4 - 1)**(1/4)*x**8 - (x**4 - 
1)**(1/4)*x**4 - 2*(x**4 - 1)**(1/4)),x)