Integrand size = 43, antiderivative size = 72 \[ \int \frac {\left (-1+3 x^4\right ) \sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2 \left (1+x+x^4\right )} \, dx=-\frac {\sqrt {1+x^2+2 x^4+x^8}}{2 \left (1-x+x^4\right )}-\frac {\text {arctanh}\left (\frac {\sqrt {2} x}{1+x+x^4+\sqrt {1+x^2+2 x^4+x^8}}\right )}{\sqrt {2}} \]
[Out]
\[ \int \frac {\left (-1+3 x^4\right ) \sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2 \left (1+x+x^4\right )} \, dx=\int \frac {\left (-1+3 x^4\right ) \sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2 \left (1+x+x^4\right )} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {\left (-1+4 x^3\right ) \sqrt {1+x^2+2 x^4+x^8}}{2 \left (1-x+x^4\right )^2}+\frac {\left (-1-4 x^2+x^3\right ) \sqrt {1+x^2+2 x^4+x^8}}{4 \left (1-x+x^4\right )}+\frac {\left (-1+4 x^2-x^3\right ) \sqrt {1+x^2+2 x^4+x^8}}{4 \left (1+x+x^4\right )}\right ) \, dx \\ & = \frac {1}{4} \int \frac {\left (-1-4 x^2+x^3\right ) \sqrt {1+x^2+2 x^4+x^8}}{1-x+x^4} \, dx+\frac {1}{4} \int \frac {\left (-1+4 x^2-x^3\right ) \sqrt {1+x^2+2 x^4+x^8}}{1+x+x^4} \, dx+\frac {1}{2} \int \frac {\left (-1+4 x^3\right ) \sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2} \, dx \\ & = \frac {1}{4} \int \left (\frac {\sqrt {1+x^2+2 x^4+x^8}}{-1+x-x^4}-\frac {4 x^2 \sqrt {1+x^2+2 x^4+x^8}}{1-x+x^4}+\frac {x^3 \sqrt {1+x^2+2 x^4+x^8}}{1-x+x^4}\right ) \, dx+\frac {1}{4} \int \left (\frac {\sqrt {1+x^2+2 x^4+x^8}}{-1-x-x^4}+\frac {4 x^2 \sqrt {1+x^2+2 x^4+x^8}}{1+x+x^4}-\frac {x^3 \sqrt {1+x^2+2 x^4+x^8}}{1+x+x^4}\right ) \, dx+\frac {1}{2} \int \left (-\frac {\sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2}+\frac {4 x^3 \sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2}\right ) \, dx \\ & = \frac {1}{4} \int \frac {\sqrt {1+x^2+2 x^4+x^8}}{-1-x-x^4} \, dx+\frac {1}{4} \int \frac {\sqrt {1+x^2+2 x^4+x^8}}{-1+x-x^4} \, dx+\frac {1}{4} \int \frac {x^3 \sqrt {1+x^2+2 x^4+x^8}}{1-x+x^4} \, dx-\frac {1}{4} \int \frac {x^3 \sqrt {1+x^2+2 x^4+x^8}}{1+x+x^4} \, dx-\frac {1}{2} \int \frac {\sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2} \, dx+2 \int \frac {x^3 \sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2} \, dx-\int \frac {x^2 \sqrt {1+x^2+2 x^4+x^8}}{1-x+x^4} \, dx+\int \frac {x^2 \sqrt {1+x^2+2 x^4+x^8}}{1+x+x^4} \, dx \\ \end{align*}
Time = 0.50 (sec) , antiderivative size = 72, normalized size of antiderivative = 1.00 \[ \int \frac {\left (-1+3 x^4\right ) \sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2 \left (1+x+x^4\right )} \, dx=-\frac {\sqrt {1+x^2+2 x^4+x^8}}{2 \left (1-x+x^4\right )}-\frac {\text {arctanh}\left (\frac {\sqrt {2} x}{1+x+x^4+\sqrt {1+x^2+2 x^4+x^8}}\right )}{\sqrt {2}} \]
[In]
[Out]
Time = 2.13 (sec) , antiderivative size = 73, normalized size of antiderivative = 1.01
method | result | size |
pseudoelliptic | \(\frac {\left (x^{4}-x +1\right ) \sqrt {2}\, \operatorname {arctanh}\left (\frac {\left (x^{4}-x +1\right ) \sqrt {2}}{2 \sqrt {x^{8}+2 x^{4}+x^{2}+1}}\right )-2 \sqrt {x^{8}+2 x^{4}+x^{2}+1}}{4 x^{4}-4 x +4}\) | \(73\) |
trager | \(-\frac {\sqrt {x^{8}+2 x^{4}+x^{2}+1}}{2 \left (x^{4}-x +1\right )}-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) \ln \left (\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) x^{4}-\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) x +\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right )-2 \sqrt {x^{8}+2 x^{4}+x^{2}+1}}{x^{4}+x +1}\right )}{4}\) | \(90\) |
risch | \(-\frac {\sqrt {x^{8}+2 x^{4}+x^{2}+1}}{2 \left (x^{4}-x +1\right )}+\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) \ln \left (-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) x^{4}-\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right ) x +\operatorname {RootOf}\left (\textit {\_Z}^{2}-2\right )+2 \sqrt {x^{8}+2 x^{4}+x^{2}+1}}{x^{4}+x +1}\right )}{4}\) | \(91\) |
[In]
[Out]
none
Time = 0.34 (sec) , antiderivative size = 120, normalized size of antiderivative = 1.67 \[ \int \frac {\left (-1+3 x^4\right ) \sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2 \left (1+x+x^4\right )} \, dx=\frac {\sqrt {2} {\left (x^{4} - x + 1\right )} \log \left (\frac {3 \, x^{8} - 2 \, x^{5} + 6 \, x^{4} + 2 \, \sqrt {2} \sqrt {x^{8} + 2 \, x^{4} + x^{2} + 1} {\left (x^{4} - x + 1\right )} + 3 \, x^{2} - 2 \, x + 3}{x^{8} + 2 \, x^{5} + 2 \, x^{4} + x^{2} + 2 \, x + 1}\right ) - 4 \, \sqrt {x^{8} + 2 \, x^{4} + x^{2} + 1}}{8 \, {\left (x^{4} - x + 1\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {\left (-1+3 x^4\right ) \sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2 \left (1+x+x^4\right )} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\left (-1+3 x^4\right ) \sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2 \left (1+x+x^4\right )} \, dx=\int { \frac {\sqrt {x^{8} + 2 \, x^{4} + x^{2} + 1} {\left (3 \, x^{4} - 1\right )}}{{\left (x^{4} + x + 1\right )} {\left (x^{4} - x + 1\right )}^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (-1+3 x^4\right ) \sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2 \left (1+x+x^4\right )} \, dx=\int { \frac {\sqrt {x^{8} + 2 \, x^{4} + x^{2} + 1} {\left (3 \, x^{4} - 1\right )}}{{\left (x^{4} + x + 1\right )} {\left (x^{4} - x + 1\right )}^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (-1+3 x^4\right ) \sqrt {1+x^2+2 x^4+x^8}}{\left (1-x+x^4\right )^2 \left (1+x+x^4\right )} \, dx=\int \frac {\left (3\,x^4-1\right )\,\sqrt {x^8+2\,x^4+x^2+1}}{{\left (x^4-x+1\right )}^2\,\left (x^4+x+1\right )} \,d x \]
[In]
[Out]