Integrand size = 30, antiderivative size = 119 \[ \int \frac {\left (4+x^6\right ) \sqrt [4]{-2-x^4+x^6}}{x^2 \left (-2+x^6\right )} \, dx=\frac {2 \sqrt [4]{-2-x^4+x^6}}{x}+\frac {\arctan \left (\frac {\sqrt {2} x \sqrt [4]{-2-x^4+x^6}}{-x^2+\sqrt {-2-x^4+x^6}}\right )}{\sqrt {2}}-\frac {\text {arctanh}\left (\frac {\sqrt {2} x \sqrt [4]{-2-x^4+x^6}}{x^2+\sqrt {-2-x^4+x^6}}\right )}{\sqrt {2}} \]
[Out]
\[ \int \frac {\left (4+x^6\right ) \sqrt [4]{-2-x^4+x^6}}{x^2 \left (-2+x^6\right )} \, dx=\int \frac {\left (4+x^6\right ) \sqrt [4]{-2-x^4+x^6}}{x^2 \left (-2+x^6\right )} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \int \left (-\frac {2 \sqrt [4]{-2-x^4+x^6}}{x^2}+\frac {3 x^4 \sqrt [4]{-2-x^4+x^6}}{-2+x^6}\right ) \, dx \\ & = -\left (2 \int \frac {\sqrt [4]{-2-x^4+x^6}}{x^2} \, dx\right )+3 \int \frac {x^4 \sqrt [4]{-2-x^4+x^6}}{-2+x^6} \, dx \\ & = -\left (2 \int \frac {\sqrt [4]{-2-x^4+x^6}}{x^2} \, dx\right )+3 \int \left (\frac {x \sqrt [4]{-2-x^4+x^6}}{2 \left (-\sqrt {2}+x^3\right )}+\frac {x \sqrt [4]{-2-x^4+x^6}}{2 \left (\sqrt {2}+x^3\right )}\right ) \, dx \\ & = \frac {3}{2} \int \frac {x \sqrt [4]{-2-x^4+x^6}}{-\sqrt {2}+x^3} \, dx+\frac {3}{2} \int \frac {x \sqrt [4]{-2-x^4+x^6}}{\sqrt {2}+x^3} \, dx-2 \int \frac {\sqrt [4]{-2-x^4+x^6}}{x^2} \, dx \\ & = \frac {3}{2} \int \left (-\frac {\sqrt [4]{-2-x^4+x^6}}{3 \sqrt [6]{2} \left (\sqrt [6]{2}-x\right )}-\frac {(-1)^{2/3} \sqrt [4]{-2-x^4+x^6}}{3 \sqrt [6]{2} \left (\sqrt [6]{2}+\sqrt [3]{-1} x\right )}+\frac {\sqrt [3]{-1} \sqrt [4]{-2-x^4+x^6}}{3 \sqrt [6]{2} \left (\sqrt [6]{2}-(-1)^{2/3} x\right )}\right ) \, dx+\frac {3}{2} \int \left (-\frac {\sqrt [4]{-2-x^4+x^6}}{3 \sqrt [6]{2} \left (\sqrt [6]{2}+x\right )}-\frac {(-1)^{2/3} \sqrt [4]{-2-x^4+x^6}}{3 \sqrt [6]{2} \left (\sqrt [6]{2}-\sqrt [3]{-1} x\right )}+\frac {\sqrt [3]{-1} \sqrt [4]{-2-x^4+x^6}}{3 \sqrt [6]{2} \left (\sqrt [6]{2}+(-1)^{2/3} x\right )}\right ) \, dx-2 \int \frac {\sqrt [4]{-2-x^4+x^6}}{x^2} \, dx \\ & = -\left (2 \int \frac {\sqrt [4]{-2-x^4+x^6}}{x^2} \, dx\right )-\frac {\int \frac {\sqrt [4]{-2-x^4+x^6}}{\sqrt [6]{2}-x} \, dx}{2 \sqrt [6]{2}}-\frac {\int \frac {\sqrt [4]{-2-x^4+x^6}}{\sqrt [6]{2}+x} \, dx}{2 \sqrt [6]{2}}+\frac {\sqrt [3]{-1} \int \frac {\sqrt [4]{-2-x^4+x^6}}{\sqrt [6]{2}-(-1)^{2/3} x} \, dx}{2 \sqrt [6]{2}}+\frac {\sqrt [3]{-1} \int \frac {\sqrt [4]{-2-x^4+x^6}}{\sqrt [6]{2}+(-1)^{2/3} x} \, dx}{2 \sqrt [6]{2}}-\frac {(-1)^{2/3} \int \frac {\sqrt [4]{-2-x^4+x^6}}{\sqrt [6]{2}-\sqrt [3]{-1} x} \, dx}{2 \sqrt [6]{2}}-\frac {(-1)^{2/3} \int \frac {\sqrt [4]{-2-x^4+x^6}}{\sqrt [6]{2}+\sqrt [3]{-1} x} \, dx}{2 \sqrt [6]{2}} \\ \end{align*}
Time = 0.78 (sec) , antiderivative size = 119, normalized size of antiderivative = 1.00 \[ \int \frac {\left (4+x^6\right ) \sqrt [4]{-2-x^4+x^6}}{x^2 \left (-2+x^6\right )} \, dx=\frac {2 \sqrt [4]{-2-x^4+x^6}}{x}+\frac {\arctan \left (\frac {\sqrt {2} x \sqrt [4]{-2-x^4+x^6}}{-x^2+\sqrt {-2-x^4+x^6}}\right )}{\sqrt {2}}-\frac {\text {arctanh}\left (\frac {\sqrt {2} x \sqrt [4]{-2-x^4+x^6}}{x^2+\sqrt {-2-x^4+x^6}}\right )}{\sqrt {2}} \]
[In]
[Out]
Time = 11.10 (sec) , antiderivative size = 158, normalized size of antiderivative = 1.33
method | result | size |
pseudoelliptic | \(\frac {-\ln \left (\frac {\left (x^{6}-x^{4}-2\right )^{\frac {1}{4}} \sqrt {2}\, x +x^{2}+\sqrt {x^{6}-x^{4}-2}}{\sqrt {x^{6}-x^{4}-2}-\left (x^{6}-x^{4}-2\right )^{\frac {1}{4}} \sqrt {2}\, x +x^{2}}\right ) \sqrt {2}\, x -2 \arctan \left (\frac {\left (x^{6}-x^{4}-2\right )^{\frac {1}{4}} \sqrt {2}+x}{x}\right ) \sqrt {2}\, x -2 \arctan \left (\frac {\left (x^{6}-x^{4}-2\right )^{\frac {1}{4}} \sqrt {2}-x}{x}\right ) \sqrt {2}\, x +8 \left (x^{6}-x^{4}-2\right )^{\frac {1}{4}}}{4 x}\) | \(158\) |
trager | \(\frac {2 \left (x^{6}-x^{4}-2\right )^{\frac {1}{4}}}{x}+\frac {\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right ) \ln \left (\frac {\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} x^{6}-2 \operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} x^{4}+2 \operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{2} \left (x^{6}-x^{4}-2\right )^{\frac {1}{4}} x^{3}-2 \operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right ) \sqrt {x^{6}-x^{4}-2}\, x^{2}+2 \left (x^{6}-x^{4}-2\right )^{\frac {3}{4}} x -2 \operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3}}{x^{6}-2}\right )}{2}+\frac {\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} \ln \left (-\frac {2 \operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} \sqrt {x^{6}-x^{4}-2}\, x^{2}-\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right ) x^{6}+2 \operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{2} \left (x^{6}-x^{4}-2\right )^{\frac {1}{4}} x^{3}+2 \operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right ) x^{4}-2 \left (x^{6}-x^{4}-2\right )^{\frac {3}{4}} x +2 \operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )}{x^{6}-2}\right )}{2}\) | \(251\) |
risch | \(\text {Expression too large to display}\) | \(1370\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 64.29 (sec) , antiderivative size = 356, normalized size of antiderivative = 2.99 \[ \int \frac {\left (4+x^6\right ) \sqrt [4]{-2-x^4+x^6}}{x^2 \left (-2+x^6\right )} \, dx=\frac {-\left (i + 1\right ) \, \sqrt {2} x \log \left (\frac {4 i \, {\left (x^{6} - x^{4} - 2\right )}^{\frac {1}{4}} x^{3} + \left (2 i + 2\right ) \, \sqrt {2} \sqrt {x^{6} - x^{4} - 2} x^{2} + 4 \, {\left (x^{6} - x^{4} - 2\right )}^{\frac {3}{4}} x + \sqrt {2} {\left (-\left (i - 1\right ) \, x^{6} + \left (2 i - 2\right ) \, x^{4} + 2 i - 2\right )}}{x^{6} - 2}\right ) + \left (i + 1\right ) \, \sqrt {2} x \log \left (\frac {4 i \, {\left (x^{6} - x^{4} - 2\right )}^{\frac {1}{4}} x^{3} - \left (2 i + 2\right ) \, \sqrt {2} \sqrt {x^{6} - x^{4} - 2} x^{2} + 4 \, {\left (x^{6} - x^{4} - 2\right )}^{\frac {3}{4}} x + \sqrt {2} {\left (\left (i - 1\right ) \, x^{6} - \left (2 i - 2\right ) \, x^{4} - 2 i + 2\right )}}{x^{6} - 2}\right ) + \left (i - 1\right ) \, \sqrt {2} x \log \left (\frac {-4 i \, {\left (x^{6} - x^{4} - 2\right )}^{\frac {1}{4}} x^{3} - \left (2 i - 2\right ) \, \sqrt {2} \sqrt {x^{6} - x^{4} - 2} x^{2} + 4 \, {\left (x^{6} - x^{4} - 2\right )}^{\frac {3}{4}} x + \sqrt {2} {\left (\left (i + 1\right ) \, x^{6} - \left (2 i + 2\right ) \, x^{4} - 2 i - 2\right )}}{x^{6} - 2}\right ) - \left (i - 1\right ) \, \sqrt {2} x \log \left (\frac {-4 i \, {\left (x^{6} - x^{4} - 2\right )}^{\frac {1}{4}} x^{3} + \left (2 i - 2\right ) \, \sqrt {2} \sqrt {x^{6} - x^{4} - 2} x^{2} + 4 \, {\left (x^{6} - x^{4} - 2\right )}^{\frac {3}{4}} x + \sqrt {2} {\left (-\left (i + 1\right ) \, x^{6} + \left (2 i + 2\right ) \, x^{4} + 2 i + 2\right )}}{x^{6} - 2}\right ) + 16 \, {\left (x^{6} - x^{4} - 2\right )}^{\frac {1}{4}}}{8 \, x} \]
[In]
[Out]
\[ \int \frac {\left (4+x^6\right ) \sqrt [4]{-2-x^4+x^6}}{x^2 \left (-2+x^6\right )} \, dx=\int \frac {\left (x^{6} + 4\right ) \sqrt [4]{x^{6} - x^{4} - 2}}{x^{2} \left (x^{6} - 2\right )}\, dx \]
[In]
[Out]
\[ \int \frac {\left (4+x^6\right ) \sqrt [4]{-2-x^4+x^6}}{x^2 \left (-2+x^6\right )} \, dx=\int { \frac {{\left (x^{6} - x^{4} - 2\right )}^{\frac {1}{4}} {\left (x^{6} + 4\right )}}{{\left (x^{6} - 2\right )} x^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (4+x^6\right ) \sqrt [4]{-2-x^4+x^6}}{x^2 \left (-2+x^6\right )} \, dx=\int { \frac {{\left (x^{6} - x^{4} - 2\right )}^{\frac {1}{4}} {\left (x^{6} + 4\right )}}{{\left (x^{6} - 2\right )} x^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (4+x^6\right ) \sqrt [4]{-2-x^4+x^6}}{x^2 \left (-2+x^6\right )} \, dx=\int \frac {\left (x^6+4\right )\,{\left (x^6-x^4-2\right )}^{1/4}}{x^2\,\left (x^6-2\right )} \,d x \]
[In]
[Out]