Integrand size = 27, antiderivative size = 53 \[ \int \frac {\sqrt {-2+x^4} \left (2+x^4\right )}{4-6 x^4+x^8} \, dx=-\frac {\arctan \left (\frac {\sqrt [4]{2} x}{\sqrt {-2+x^4}}\right )}{2 \sqrt [4]{2}}-\frac {\text {arctanh}\left (\frac {\sqrt [4]{2} x}{\sqrt {-2+x^4}}\right )}{2 \sqrt [4]{2}} \]
[Out]
Result contains higher order function than in optimal. Order 4 vs. order 3 in optimal.
Time = 1.06 (sec) , antiderivative size = 647, normalized size of antiderivative = 12.21, number of steps used = 40, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.370, Rules used = {6860, 415, 229, 418, 1229, 1471, 554, 259, 552, 551} \[ \int \frac {\sqrt {-2+x^4} \left (2+x^4\right )}{4-6 x^4+x^8} \, dx=\frac {\left (1+\sqrt {5}\right ) \sqrt {\frac {x^2+\sqrt {2}}{\sqrt {2}-x^2}} \sqrt {\sqrt {2} x^2-2} \operatorname {EllipticF}\left (\arcsin \left (\frac {2^{3/4} x}{\sqrt {\sqrt {2} x^2-2}}\right ),\frac {1}{2}\right )}{4 \sqrt [4]{2} \sqrt {\frac {1}{2-\sqrt {2} x^2}} \sqrt {x^4-2}}+\frac {\left (1-\sqrt {5}\right ) \sqrt {\frac {x^2+\sqrt {2}}{\sqrt {2}-x^2}} \sqrt {\sqrt {2} x^2-2} \operatorname {EllipticF}\left (\arcsin \left (\frac {2^{3/4} x}{\sqrt {\sqrt {2} x^2-2}}\right ),\frac {1}{2}\right )}{4 \sqrt [4]{2} \sqrt {\frac {1}{2-\sqrt {2} x^2}} \sqrt {x^4-2}}-\frac {\left (2+\sqrt {2 \left (3+\sqrt {5}\right )}\right ) \sqrt {\sqrt {2}-x^2} \sqrt {\sqrt {2} x^2+2} \operatorname {EllipticPi}\left (-\sqrt {\frac {2}{3+\sqrt {5}}},\arcsin \left (\frac {x}{\sqrt [4]{2}}\right ),-1\right )}{4 \left (\sqrt {2}+\sqrt {3+\sqrt {5}}\right ) \sqrt {x^4-2}}-\frac {\left (2-\sqrt {2 \left (3+\sqrt {5}\right )}\right ) \sqrt {\sqrt {2}-x^2} \sqrt {\sqrt {2} x^2+2} \operatorname {EllipticPi}\left (\sqrt {\frac {2}{3+\sqrt {5}}},\arcsin \left (\frac {x}{\sqrt [4]{2}}\right ),-1\right )}{4 \left (\sqrt {2}-\sqrt {3+\sqrt {5}}\right ) \sqrt {x^4-2}}-\frac {\left (\sqrt {2}+\sqrt {3+\sqrt {5}}\right ) \sqrt {\sqrt {2}-x^2} \sqrt {\sqrt {2} x^2+2} \operatorname {EllipticPi}\left (-\sqrt {\frac {1}{2} \left (3+\sqrt {5}\right )},\arcsin \left (\frac {x}{\sqrt [4]{2}}\right ),-1\right )}{2 \left (2+\sqrt {2 \left (3+\sqrt {5}\right )}\right ) \sqrt {x^4-2}}-\frac {\left (\sqrt {2}-\sqrt {3+\sqrt {5}}\right ) \sqrt {\sqrt {2}-x^2} \sqrt {\sqrt {2} x^2+2} \operatorname {EllipticPi}\left (\sqrt {\frac {1}{2} \left (3+\sqrt {5}\right )},\arcsin \left (\frac {x}{\sqrt [4]{2}}\right ),-1\right )}{2 \left (2-\sqrt {2 \left (3+\sqrt {5}\right )}\right ) \sqrt {x^4-2}} \]
[In]
[Out]
Rule 229
Rule 259
Rule 415
Rule 418
Rule 551
Rule 552
Rule 554
Rule 1229
Rule 1471
Rule 6860
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {\left (1+\sqrt {5}\right ) \sqrt {-2+x^4}}{-6-2 \sqrt {5}+2 x^4}+\frac {\left (1-\sqrt {5}\right ) \sqrt {-2+x^4}}{-6+2 \sqrt {5}+2 x^4}\right ) \, dx \\ & = \left (1-\sqrt {5}\right ) \int \frac {\sqrt {-2+x^4}}{-6+2 \sqrt {5}+2 x^4} \, dx+\left (1+\sqrt {5}\right ) \int \frac {\sqrt {-2+x^4}}{-6-2 \sqrt {5}+2 x^4} \, dx \\ & = \frac {1}{2} \left (1-\sqrt {5}\right ) \int \frac {1}{\sqrt {-2+x^4}} \, dx+\left (2 \left (3-\sqrt {5}\right )\right ) \int \frac {1}{\sqrt {-2+x^4} \left (-6+2 \sqrt {5}+2 x^4\right )} \, dx+\frac {1}{2} \left (1+\sqrt {5}\right ) \int \frac {1}{\sqrt {-2+x^4}} \, dx+\left (2 \left (3+\sqrt {5}\right )\right ) \int \frac {1}{\sqrt {-2+x^4} \left (-6-2 \sqrt {5}+2 x^4\right )} \, dx \\ & = \frac {\left (1-\sqrt {5}\right ) \sqrt {\frac {\sqrt {2}+x^2}{\sqrt {2}-x^2}} \sqrt {-2+\sqrt {2} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {2^{3/4} x}{\sqrt {-2+\sqrt {2} x^2}}\right ),\frac {1}{2}\right )}{4 \sqrt [4]{2} \sqrt {\frac {1}{2-\sqrt {2} x^2}} \sqrt {-2+x^4}}+\frac {\left (1+\sqrt {5}\right ) \sqrt {\frac {\sqrt {2}+x^2}{\sqrt {2}-x^2}} \sqrt {-2+\sqrt {2} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {2^{3/4} x}{\sqrt {-2+\sqrt {2} x^2}}\right ),\frac {1}{2}\right )}{4 \sqrt [4]{2} \sqrt {\frac {1}{2-\sqrt {2} x^2}} \sqrt {-2+x^4}}-\frac {1}{2} \int \frac {1}{\left (1-\frac {x^2}{\sqrt {3+\sqrt {5}}}\right ) \sqrt {-2+x^4}} \, dx-\frac {1}{2} \int \frac {1}{\left (1+\frac {x^2}{\sqrt {3+\sqrt {5}}}\right ) \sqrt {-2+x^4}} \, dx-\frac {1}{2} \int \frac {1}{\left (1-\frac {1}{2} \sqrt {3+\sqrt {5}} x^2\right ) \sqrt {-2+x^4}} \, dx-\frac {1}{2} \int \frac {1}{\left (1+\frac {1}{2} \sqrt {3+\sqrt {5}} x^2\right ) \sqrt {-2+x^4}} \, dx \\ & = \frac {\left (1-\sqrt {5}\right ) \sqrt {\frac {\sqrt {2}+x^2}{\sqrt {2}-x^2}} \sqrt {-2+\sqrt {2} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {2^{3/4} x}{\sqrt {-2+\sqrt {2} x^2}}\right ),\frac {1}{2}\right )}{4 \sqrt [4]{2} \sqrt {\frac {1}{2-\sqrt {2} x^2}} \sqrt {-2+x^4}}+\frac {\left (1+\sqrt {5}\right ) \sqrt {\frac {\sqrt {2}+x^2}{\sqrt {2}-x^2}} \sqrt {-2+\sqrt {2} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {2^{3/4} x}{\sqrt {-2+\sqrt {2} x^2}}\right ),\frac {1}{2}\right )}{4 \sqrt [4]{2} \sqrt {\frac {1}{2-\sqrt {2} x^2}} \sqrt {-2+x^4}}-\frac {\int \frac {1}{\sqrt {-2+x^4}} \, dx}{2 \left (1-\sqrt {\frac {2}{3+\sqrt {5}}}\right )}-\frac {\int \frac {1}{\sqrt {-2+x^4}} \, dx}{2 \left (1+\sqrt {\frac {2}{3+\sqrt {5}}}\right )}-\frac {\int \frac {\sqrt {2}-x^2}{\left (1-\frac {x^2}{\sqrt {3+\sqrt {5}}}\right ) \sqrt {-2+x^4}} \, dx}{2 \left (\sqrt {2}-\sqrt {3+\sqrt {5}}\right )}-\frac {\int \frac {\sqrt {2}-x^2}{\left (1+\frac {x^2}{\sqrt {3+\sqrt {5}}}\right ) \sqrt {-2+x^4}} \, dx}{2 \left (\sqrt {2}+\sqrt {3+\sqrt {5}}\right )}-\frac {\int \frac {1}{\sqrt {-2+x^4}} \, dx}{2-\sqrt {2 \left (3+\sqrt {5}\right )}}+\frac {\sqrt {3+\sqrt {5}} \int \frac {\sqrt {2}-x^2}{\left (1-\frac {1}{2} \sqrt {3+\sqrt {5}} x^2\right ) \sqrt {-2+x^4}} \, dx}{2 \left (2-\sqrt {2 \left (3+\sqrt {5}\right )}\right )}-\frac {\int \frac {1}{\sqrt {-2+x^4}} \, dx}{2+\sqrt {2 \left (3+\sqrt {5}\right )}}-\frac {\sqrt {3+\sqrt {5}} \int \frac {\sqrt {2}-x^2}{\left (1+\frac {1}{2} \sqrt {3+\sqrt {5}} x^2\right ) \sqrt {-2+x^4}} \, dx}{2 \left (2+\sqrt {2 \left (3+\sqrt {5}\right )}\right )} \\ & = \frac {\left (1-\sqrt {5}\right ) \sqrt {\frac {\sqrt {2}+x^2}{\sqrt {2}-x^2}} \sqrt {-2+\sqrt {2} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {2^{3/4} x}{\sqrt {-2+\sqrt {2} x^2}}\right ),\frac {1}{2}\right )}{4 \sqrt [4]{2} \sqrt {\frac {1}{2-\sqrt {2} x^2}} \sqrt {-2+x^4}}+\frac {\left (1+\sqrt {5}\right ) \sqrt {\frac {\sqrt {2}+x^2}{\sqrt {2}-x^2}} \sqrt {-2+\sqrt {2} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {2^{3/4} x}{\sqrt {-2+\sqrt {2} x^2}}\right ),\frac {1}{2}\right )}{4 \sqrt [4]{2} \sqrt {\frac {1}{2-\sqrt {2} x^2}} \sqrt {-2+x^4}}-\frac {\sqrt {\frac {\sqrt {2}+x^2}{\sqrt {2}-x^2}} \sqrt {-2+\sqrt {2} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {2^{3/4} x}{\sqrt {-2+\sqrt {2} x^2}}\right ),\frac {1}{2}\right )}{4 \sqrt [4]{2} \left (1-\sqrt {\frac {2}{3+\sqrt {5}}}\right ) \sqrt {\frac {1}{2-\sqrt {2} x^2}} \sqrt {-2+x^4}}-\frac {\sqrt {\frac {\sqrt {2}+x^2}{\sqrt {2}-x^2}} \sqrt {-2+\sqrt {2} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {2^{3/4} x}{\sqrt {-2+\sqrt {2} x^2}}\right ),\frac {1}{2}\right )}{4 \sqrt [4]{2} \left (1+\sqrt {\frac {2}{3+\sqrt {5}}}\right ) \sqrt {\frac {1}{2-\sqrt {2} x^2}} \sqrt {-2+x^4}}-\frac {\sqrt {\frac {\sqrt {2}+x^2}{\sqrt {2}-x^2}} \sqrt {-2+\sqrt {2} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {2^{3/4} x}{\sqrt {-2+\sqrt {2} x^2}}\right ),\frac {1}{2}\right )}{2 \sqrt [4]{2} \left (2-\sqrt {2 \left (3+\sqrt {5}\right )}\right ) \sqrt {\frac {1}{2-\sqrt {2} x^2}} \sqrt {-2+x^4}}-\frac {\sqrt {\frac {\sqrt {2}+x^2}{\sqrt {2}-x^2}} \sqrt {-2+\sqrt {2} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {2^{3/4} x}{\sqrt {-2+\sqrt {2} x^2}}\right ),\frac {1}{2}\right )}{2 \sqrt [4]{2} \left (2+\sqrt {2 \left (3+\sqrt {5}\right )}\right ) \sqrt {\frac {1}{2-\sqrt {2} x^2}} \sqrt {-2+x^4}}-\frac {\left (\sqrt {-\sqrt {2}-x^2} \sqrt {\sqrt {2}-x^2}\right ) \int \frac {\sqrt {\sqrt {2}-x^2}}{\sqrt {-\sqrt {2}-x^2} \left (1-\frac {x^2}{\sqrt {3+\sqrt {5}}}\right )} \, dx}{2 \left (\sqrt {2}-\sqrt {3+\sqrt {5}}\right ) \sqrt {-2+x^4}}-\frac {\left (\sqrt {-\sqrt {2}-x^2} \sqrt {\sqrt {2}-x^2}\right ) \int \frac {\sqrt {\sqrt {2}-x^2}}{\sqrt {-\sqrt {2}-x^2} \left (1+\frac {x^2}{\sqrt {3+\sqrt {5}}}\right )} \, dx}{2 \left (\sqrt {2}+\sqrt {3+\sqrt {5}}\right ) \sqrt {-2+x^4}}+\frac {\left (\sqrt {3+\sqrt {5}} \sqrt {-\sqrt {2}-x^2} \sqrt {\sqrt {2}-x^2}\right ) \int \frac {\sqrt {\sqrt {2}-x^2}}{\sqrt {-\sqrt {2}-x^2} \left (1-\frac {1}{2} \sqrt {3+\sqrt {5}} x^2\right )} \, dx}{2 \left (2-\sqrt {2 \left (3+\sqrt {5}\right )}\right ) \sqrt {-2+x^4}}-\frac {\left (\sqrt {3+\sqrt {5}} \sqrt {-\sqrt {2}-x^2} \sqrt {\sqrt {2}-x^2}\right ) \int \frac {\sqrt {\sqrt {2}-x^2}}{\sqrt {-\sqrt {2}-x^2} \left (1+\frac {1}{2} \sqrt {3+\sqrt {5}} x^2\right )} \, dx}{2 \left (2+\sqrt {2 \left (3+\sqrt {5}\right )}\right ) \sqrt {-2+x^4}} \\ & = \text {Too large to display} \\ \end{align*}
Time = 0.30 (sec) , antiderivative size = 44, normalized size of antiderivative = 0.83 \[ \int \frac {\sqrt {-2+x^4} \left (2+x^4\right )}{4-6 x^4+x^8} \, dx=-\frac {\arctan \left (\frac {\sqrt [4]{2} x}{\sqrt {-2+x^4}}\right )+\text {arctanh}\left (\frac {\sqrt [4]{2} x}{\sqrt {-2+x^4}}\right )}{2 \sqrt [4]{2}} \]
[In]
[Out]
Time = 4.69 (sec) , antiderivative size = 41, normalized size of antiderivative = 0.77
method | result | size |
pseudoelliptic | \(\frac {2^{\frac {3}{4}} \left (\arctan \left (\frac {2^{\frac {3}{4}} \sqrt {x^{4}-2}}{2 x}\right )-\operatorname {arctanh}\left (\frac {2^{\frac {3}{4}} \sqrt {x^{4}-2}}{2 x}\right )\right )}{4}\) | \(41\) |
default | \(\frac {2^{\frac {3}{4}} \left (2 \arctan \left (\frac {2^{\frac {3}{4}} \sqrt {x^{4}-2}}{2 x}\right )-\ln \left (\frac {\frac {\sqrt {x^{4}-2}\, \sqrt {2}}{2 x}+\frac {2^{\frac {3}{4}}}{2}}{\frac {\sqrt {x^{4}-2}\, \sqrt {2}}{2 x}-\frac {2^{\frac {3}{4}}}{2}}\right )\right )}{8}\) | \(73\) |
elliptic | \(\frac {2^{\frac {3}{4}} \left (2 \arctan \left (\frac {2^{\frac {3}{4}} \sqrt {x^{4}-2}}{2 x}\right )-\ln \left (\frac {\frac {\sqrt {x^{4}-2}\, \sqrt {2}}{2 x}+\frac {2^{\frac {3}{4}}}{2}}{\frac {\sqrt {x^{4}-2}\, \sqrt {2}}{2 x}-\frac {2^{\frac {3}{4}}}{2}}\right )\right )}{8}\) | \(73\) |
trager | \(-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}+\operatorname {RootOf}\left (\textit {\_Z}^{4}-8\right )^{2}\right ) \ln \left (\frac {-\operatorname {RootOf}\left (\textit {\_Z}^{2}+\operatorname {RootOf}\left (\textit {\_Z}^{4}-8\right )^{2}\right ) x^{2} \operatorname {RootOf}\left (\textit {\_Z}^{4}-8\right )^{2}+2 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\operatorname {RootOf}\left (\textit {\_Z}^{4}-8\right )^{2}\right ) x^{4}+8 \sqrt {x^{4}-2}\, x -4 \operatorname {RootOf}\left (\textit {\_Z}^{2}+\operatorname {RootOf}\left (\textit {\_Z}^{4}-8\right )^{2}\right )}{\operatorname {RootOf}\left (\textit {\_Z}^{4}-8\right )^{2} x^{2}+2 x^{4}-4}\right )}{8}+\frac {\operatorname {RootOf}\left (\textit {\_Z}^{4}-8\right ) \ln \left (\frac {-\operatorname {RootOf}\left (\textit {\_Z}^{4}-8\right )^{3} x^{2}-2 x^{4} \operatorname {RootOf}\left (\textit {\_Z}^{4}-8\right )+8 \sqrt {x^{4}-2}\, x +4 \operatorname {RootOf}\left (\textit {\_Z}^{4}-8\right )}{\operatorname {RootOf}\left (\textit {\_Z}^{4}-8\right )^{2} x^{2}-2 x^{4}+4}\right )}{8}\) | \(184\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.34 (sec) , antiderivative size = 296, normalized size of antiderivative = 5.58 \[ \int \frac {\sqrt {-2+x^4} \left (2+x^4\right )}{4-6 x^4+x^8} \, dx=-\frac {1}{16} \cdot 2^{\frac {3}{4}} \log \left (\frac {2^{\frac {3}{4}} {\left (x^{8} - 2 \, x^{4} + 4\right )} + 4 \, {\left (x^{5} + \sqrt {2} x^{3} - 2 \, x\right )} \sqrt {x^{4} - 2} + 4 \cdot 2^{\frac {1}{4}} {\left (x^{6} - 2 \, x^{2}\right )}}{x^{8} - 6 \, x^{4} + 4}\right ) + \frac {1}{16} \cdot 2^{\frac {3}{4}} \log \left (-\frac {2^{\frac {3}{4}} {\left (x^{8} - 2 \, x^{4} + 4\right )} - 4 \, {\left (x^{5} + \sqrt {2} x^{3} - 2 \, x\right )} \sqrt {x^{4} - 2} + 4 \cdot 2^{\frac {1}{4}} {\left (x^{6} - 2 \, x^{2}\right )}}{x^{8} - 6 \, x^{4} + 4}\right ) - \frac {1}{16} i \cdot 2^{\frac {3}{4}} \log \left (\frac {2^{\frac {3}{4}} {\left (i \, x^{8} - 2 i \, x^{4} + 4 i\right )} + 4 \, {\left (x^{5} - \sqrt {2} x^{3} - 2 \, x\right )} \sqrt {x^{4} - 2} - 4 \cdot 2^{\frac {1}{4}} {\left (i \, x^{6} - 2 i \, x^{2}\right )}}{x^{8} - 6 \, x^{4} + 4}\right ) + \frac {1}{16} i \cdot 2^{\frac {3}{4}} \log \left (\frac {2^{\frac {3}{4}} {\left (-i \, x^{8} + 2 i \, x^{4} - 4 i\right )} + 4 \, {\left (x^{5} - \sqrt {2} x^{3} - 2 \, x\right )} \sqrt {x^{4} - 2} - 4 \cdot 2^{\frac {1}{4}} {\left (-i \, x^{6} + 2 i \, x^{2}\right )}}{x^{8} - 6 \, x^{4} + 4}\right ) \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {-2+x^4} \left (2+x^4\right )}{4-6 x^4+x^8} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\sqrt {-2+x^4} \left (2+x^4\right )}{4-6 x^4+x^8} \, dx=\int { \frac {{\left (x^{4} + 2\right )} \sqrt {x^{4} - 2}}{x^{8} - 6 \, x^{4} + 4} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {-2+x^4} \left (2+x^4\right )}{4-6 x^4+x^8} \, dx=\int { \frac {{\left (x^{4} + 2\right )} \sqrt {x^{4} - 2}}{x^{8} - 6 \, x^{4} + 4} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {-2+x^4} \left (2+x^4\right )}{4-6 x^4+x^8} \, dx=\int \frac {\sqrt {x^4-2}\,\left (x^4+2\right )}{x^8-6\,x^4+4} \,d x \]
[In]
[Out]