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

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

Optimal result

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

Unintegrable
 

Mathematica [A] (verified)

Time = 0.78 (sec) , antiderivative size = 116, normalized size of antiderivative = 0.81 \[ \int \frac {\left (-1+x^2\right ) \left (1+x^2\right )^3 \sqrt {1+2 x^2+x^4}}{\left (1+x^4\right ) \left (1-x^2+x^4-x^6+x^8\right )} \, dx=\frac {4 \text {arctanh}\left (\frac {\sqrt {2} x}{\sqrt {\left (1+x^2\right )^2}}\right )-\sqrt {5-\sqrt {5}} \text {arctanh}\left (\frac {\sqrt {\frac {1}{2} \left (5-\sqrt {5}\right )} x}{\sqrt {\left (1+x^2\right )^2}}\right )-\sqrt {5+\sqrt {5}} \text {arctanh}\left (\frac {\sqrt {\frac {1}{2} \left (5+\sqrt {5}\right )} x}{\sqrt {\left (1+x^2\right )^2}}\right )}{\sqrt {2}} \] Input:

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

Output:

(4*ArcTanh[(Sqrt[2]*x)/Sqrt[(1 + x^2)^2]] - Sqrt[5 - Sqrt[5]]*ArcTanh[(Sqr 
t[(5 - Sqrt[5])/2]*x)/Sqrt[(1 + x^2)^2]] - Sqrt[5 + Sqrt[5]]*ArcTanh[(Sqrt 
[(5 + Sqrt[5])/2]*x)/Sqrt[(1 + x^2)^2]])/Sqrt[2]
 

Rubi [F]

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 {\left (x^2-1\right ) \left (x^2+1\right )^3 \sqrt {x^4+2 x^2+1}}{\left (x^4+1\right ) \left (x^8-x^6+x^4-x^2+1\right )} \, dx\)

\(\Big \downarrow \) 1382

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

\(\Big \downarrow \) 25

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

\(\Big \downarrow \) 1383

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

\(\Big \downarrow \) 7276

\(\displaystyle -\frac {\left (x^4+2 x^2+1\right )^{3/2} \int \left (\frac {4 \left (x^2-1\right )}{x^4+1}-\frac {5 \left (x^6-x^4+x^2-1\right )}{x^8-x^6+x^4-x^2+1}\right )dx}{\left (x^2+1\right )^3}\)

\(\Big \downarrow \) 2009

\(\displaystyle -\frac {\left (x^4+2 x^2+1\right )^{3/2} \left (-5 \int \frac {1}{-x^8+x^6-x^4+x^2-1}dx-5 \int \frac {x^2}{x^8-x^6+x^4-x^2+1}dx+5 \int \frac {x^4}{x^8-x^6+x^4-x^2+1}dx-5 \int \frac {x^6}{x^8-x^6+x^4-x^2+1}dx+\sqrt {2} \log \left (x^2-\sqrt {2} x+1\right )-\sqrt {2} \log \left (x^2+\sqrt {2} x+1\right )\right )}{\left (x^2+1\right )^3}\)

Input:

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

Output:

$Aborted
 
Maple [N/A] (verified)

Time = 0.37 (sec) , antiderivative size = 110, normalized size of antiderivative = 0.76

method result size
risch \(\frac {\sqrt {\left (x^{2}+1\right )^{2}}\, \sqrt {2}\, \ln \left (x \sqrt {2}+x^{2}+1\right )}{x^{2}+1}-\frac {\sqrt {\left (x^{2}+1\right )^{2}}\, \sqrt {2}\, \ln \left (-x \sqrt {2}+x^{2}+1\right )}{x^{2}+1}+\frac {\sqrt {\left (x^{2}+1\right )^{2}}\, \left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (\textit {\_Z}^{4}-5 \textit {\_Z}^{2}+5\right )}{\sum }\textit {\_R} \ln \left (-\textit {\_R} x +x^{2}+1\right )\right )}{2 x^{2}+2}\) \(110\)
pseudoelliptic \(\frac {\operatorname {csgn}\left (\frac {x^{2}+1}{x}\right ) \sqrt {5}\, \left (\sqrt {10+2 \sqrt {5}}\, \left (-5+\sqrt {5}\right ) \operatorname {arctanh}\left (\frac {2 x^{2}+2}{x \sqrt {10-2 \sqrt {5}}}\right )-\sqrt {10-2 \sqrt {5}}\, \left (5+\sqrt {5}\right ) \operatorname {arctanh}\left (\frac {2 x^{2}+2}{x \sqrt {10+2 \sqrt {5}}}\right )+8 \sqrt {2}\, \sqrt {5}\, \operatorname {arctanh}\left (\frac {\left (x^{2}+1\right ) \sqrt {2}}{2 x}\right )\right )}{20}\) \(110\)
default \(-\frac {\sqrt {\left (x^{2}+1\right )^{2}}\, \left (\sqrt {2}\, \ln \left (-\frac {x \sqrt {2}-x^{2}-1}{x \sqrt {2}+x^{2}+1}\right )-\sqrt {2}\, \ln \left (-\frac {x \sqrt {2}+x^{2}+1}{x \sqrt {2}-x^{2}-1}\right )-5 \left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (125 \textit {\_Z}^{4}-25 \textit {\_Z}^{2}+1\right )}{\sum }\textit {\_R} \ln \left (-5 \textit {\_R} x +x^{2}+1\right )\right )\right )}{2 \left (x^{2}+1\right )}\) \(113\)

Input:

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

Output:

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

Fricas [C] (verification not implemented)

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

Time = 0.08 (sec) , antiderivative size = 148, normalized size of antiderivative = 1.03 \[ \int \frac {\left (-1+x^2\right ) \left (1+x^2\right )^3 \sqrt {1+2 x^2+x^4}}{\left (1+x^4\right ) \left (1-x^2+x^4-x^6+x^8\right )} \, dx=-\frac {1}{2} \, \sqrt {\frac {1}{2} \, \sqrt {5} + \frac {5}{2}} \log \left (x^{2} + x \sqrt {\frac {1}{2} \, \sqrt {5} + \frac {5}{2}} + 1\right ) + \frac {1}{2} \, \sqrt {\frac {1}{2} \, \sqrt {5} + \frac {5}{2}} \log \left (x^{2} - x \sqrt {\frac {1}{2} \, \sqrt {5} + \frac {5}{2}} + 1\right ) - \frac {1}{2} \, \sqrt {-\frac {1}{2} \, \sqrt {5} + \frac {5}{2}} \log \left (x^{2} + x \sqrt {-\frac {1}{2} \, \sqrt {5} + \frac {5}{2}} + 1\right ) + \frac {1}{2} \, \sqrt {-\frac {1}{2} \, \sqrt {5} + \frac {5}{2}} \log \left (x^{2} - x \sqrt {-\frac {1}{2} \, \sqrt {5} + \frac {5}{2}} + 1\right ) + \sqrt {2} \log \left (\frac {x^{4} + 4 \, x^{2} + 2 \, \sqrt {2} {\left (x^{3} + x\right )} + 1}{x^{4} + 1}\right ) \] Input:

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

Output:

-1/2*sqrt(1/2*sqrt(5) + 5/2)*log(x^2 + x*sqrt(1/2*sqrt(5) + 5/2) + 1) + 1/ 
2*sqrt(1/2*sqrt(5) + 5/2)*log(x^2 - x*sqrt(1/2*sqrt(5) + 5/2) + 1) - 1/2*s 
qrt(-1/2*sqrt(5) + 5/2)*log(x^2 + x*sqrt(-1/2*sqrt(5) + 5/2) + 1) + 1/2*sq 
rt(-1/2*sqrt(5) + 5/2)*log(x^2 - x*sqrt(-1/2*sqrt(5) + 5/2) + 1) + sqrt(2) 
*log((x^4 + 4*x^2 + 2*sqrt(2)*(x^3 + x) + 1)/(x^4 + 1))
 

Sympy [F(-1)]

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

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

Output:

Timed out
 

Maxima [N/A]

Not integrable

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

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

Output:

sqrt(2)*log(x^2 + sqrt(2)*x + 1) - sqrt(2)*log(x^2 - sqrt(2)*x + 1) + 5*in 
tegrate((x^6 - x^4 + x^2 - 1)/(x^8 - x^6 + x^4 - x^2 + 1), x)
 

Giac [C] (verification not implemented)

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

Time = 0.22 (sec) , antiderivative size = 152, normalized size of antiderivative = 1.06 \[ \int \frac {\left (-1+x^2\right ) \left (1+x^2\right )^3 \sqrt {1+2 x^2+x^4}}{\left (1+x^4\right ) \left (1-x^2+x^4-x^6+x^8\right )} \, dx=-\sqrt {2} \log \left (\frac {{\left | 2 \, x - 2 \, \sqrt {2} + \frac {2}{x} \right |}}{{\left | 2 \, x + 2 \, \sqrt {2} + \frac {2}{x} \right |}}\right ) - \frac {1}{4} \, \sqrt {2 \, \sqrt {5} + 10} \log \left ({\left | x + \sqrt {\frac {1}{2} \, \sqrt {5} + \frac {5}{2}} + \frac {1}{x} \right |}\right ) + \frac {1}{4} \, \sqrt {2 \, \sqrt {5} + 10} \log \left ({\left | x - \sqrt {\frac {1}{2} \, \sqrt {5} + \frac {5}{2}} + \frac {1}{x} \right |}\right ) - \frac {1}{4} \, \sqrt {-2 \, \sqrt {5} + 10} \log \left ({\left | x + \sqrt {-\frac {1}{2} \, \sqrt {5} + \frac {5}{2}} + \frac {1}{x} \right |}\right ) + \frac {1}{4} \, \sqrt {-2 \, \sqrt {5} + 10} \log \left ({\left | x - \sqrt {-\frac {1}{2} \, \sqrt {5} + \frac {5}{2}} + \frac {1}{x} \right |}\right ) \] Input:

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

Output:

-sqrt(2)*log(abs(2*x - 2*sqrt(2) + 2/x)/abs(2*x + 2*sqrt(2) + 2/x)) - 1/4* 
sqrt(2*sqrt(5) + 10)*log(abs(x + sqrt(1/2*sqrt(5) + 5/2) + 1/x)) + 1/4*sqr 
t(2*sqrt(5) + 10)*log(abs(x - sqrt(1/2*sqrt(5) + 5/2) + 1/x)) - 1/4*sqrt(- 
2*sqrt(5) + 10)*log(abs(x + sqrt(-1/2*sqrt(5) + 5/2) + 1/x)) + 1/4*sqrt(-2 
*sqrt(5) + 10)*log(abs(x - sqrt(-1/2*sqrt(5) + 5/2) + 1/x))
 

Mupad [B] (verification not implemented)

Time = 8.13 (sec) , antiderivative size = 202, normalized size of antiderivative = 1.40 \[ \int \frac {\left (-1+x^2\right ) \left (1+x^2\right )^3 \sqrt {1+2 x^2+x^4}}{\left (1+x^4\right ) \left (1-x^2+x^4-x^6+x^8\right )} \, dx=2\,\sqrt {2}\,\mathrm {atanh}\left (\frac {420500000\,\sqrt {2}\,x}{420500000\,x^2+420500000}\right )+\frac {\sqrt {2}\,\mathrm {atanh}\left (\frac {2125000\,\sqrt {2}\,x\,\sqrt {\sqrt {5}+5}}{1810000\,\sqrt {5}+1810000\,\sqrt {5}\,x^2-4250000\,x^2-4250000}-\frac {905000\,\sqrt {2}\,\sqrt {5}\,x\,\sqrt {\sqrt {5}+5}}{1810000\,\sqrt {5}+1810000\,\sqrt {5}\,x^2-4250000\,x^2-4250000}\right )\,\sqrt {\sqrt {5}+5}}{2}-\frac {\sqrt {2}\,\mathrm {atanh}\left (\frac {2125000\,\sqrt {2}\,x\,\sqrt {5-\sqrt {5}}}{1810000\,\sqrt {5}+1810000\,\sqrt {5}\,x^2+4250000\,x^2+4250000}+\frac {905000\,\sqrt {2}\,\sqrt {5}\,x\,\sqrt {5-\sqrt {5}}}{1810000\,\sqrt {5}+1810000\,\sqrt {5}\,x^2+4250000\,x^2+4250000}\right )\,\sqrt {5-\sqrt {5}}}{2} \] Input:

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

Output:

2*2^(1/2)*atanh((420500000*2^(1/2)*x)/(420500000*x^2 + 420500000)) + (2^(1 
/2)*atanh((2125000*2^(1/2)*x*(5^(1/2) + 5)^(1/2))/(1810000*5^(1/2) + 18100 
00*5^(1/2)*x^2 - 4250000*x^2 - 4250000) - (905000*2^(1/2)*5^(1/2)*x*(5^(1/ 
2) + 5)^(1/2))/(1810000*5^(1/2) + 1810000*5^(1/2)*x^2 - 4250000*x^2 - 4250 
000))*(5^(1/2) + 5)^(1/2))/2 - (2^(1/2)*atanh((2125000*2^(1/2)*x*(5 - 5^(1 
/2))^(1/2))/(1810000*5^(1/2) + 1810000*5^(1/2)*x^2 + 4250000*x^2 + 4250000 
) + (905000*2^(1/2)*5^(1/2)*x*(5 - 5^(1/2))^(1/2))/(1810000*5^(1/2) + 1810 
000*5^(1/2)*x^2 + 4250000*x^2 + 4250000))*(5 - 5^(1/2))^(1/2))/2
 

Reduce [N/A]

Not integrable

Time = 0.76 (sec) , antiderivative size = 178, normalized size of antiderivative = 1.24 \[ \int \frac {\left (-1+x^2\right ) \left (1+x^2\right )^3 \sqrt {1+2 x^2+x^4}}{\left (1+x^4\right ) \left (1-x^2+x^4-x^6+x^8\right )} \, dx=-\frac {5 \sqrt {2}\, \mathit {atan} \left (\frac {\sqrt {2}-2 x}{\sqrt {2}}\right )}{4}+\frac {5 \sqrt {2}\, \mathit {atan} \left (\frac {\sqrt {2}+2 x}{\sqrt {2}}\right )}{4}-\frac {3 \sqrt {2}\, \mathrm {log}\left (-\sqrt {2}\, x +x^{2}+1\right )}{8}+\frac {3 \sqrt {2}\, \mathrm {log}\left (\sqrt {2}\, x +x^{2}+1\right )}{8}+5 \left (\int \frac {x^{6}}{x^{12}-x^{10}+2 x^{8}-2 x^{6}+2 x^{4}-x^{2}+1}d x \right )-5 \left (\int \frac {x^{4}}{x^{12}-x^{10}+2 x^{8}-2 x^{6}+2 x^{4}-x^{2}+1}d x \right )-5 \left (\int \frac {1}{x^{12}-x^{10}+2 x^{8}-2 x^{6}+2 x^{4}-x^{2}+1}d x \right ) \] Input:

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

Output:

( - 10*sqrt(2)*atan((sqrt(2) - 2*x)/sqrt(2)) + 10*sqrt(2)*atan((sqrt(2) + 
2*x)/sqrt(2)) - 3*sqrt(2)*log( - sqrt(2)*x + x**2 + 1) + 3*sqrt(2)*log(sqr 
t(2)*x + x**2 + 1) + 40*int(x**6/(x**12 - x**10 + 2*x**8 - 2*x**6 + 2*x**4 
 - x**2 + 1),x) - 40*int(x**4/(x**12 - x**10 + 2*x**8 - 2*x**6 + 2*x**4 - 
x**2 + 1),x) - 40*int(1/(x**12 - x**10 + 2*x**8 - 2*x**6 + 2*x**4 - x**2 + 
 1),x))/8