Integrand size = 27, antiderivative size = 96 \[ \int \frac {-1+x^4}{\left (1+x^2+x^4\right ) \sqrt [4]{x^2+x^6}} \, dx=-\frac {\arctan \left (\frac {\sqrt {2} x \sqrt [4]{x^2+x^6}}{-x^2+\sqrt {x^2+x^6}}\right )}{\sqrt {2}}-\frac {\text {arctanh}\left (\frac {\frac {x^2}{\sqrt {2}}+\frac {\sqrt {x^2+x^6}}{\sqrt {2}}}{x \sqrt [4]{x^2+x^6}}\right )}{\sqrt {2}} \]
[Out]
Result contains higher order function than in optimal. Order 6 vs. order 3 in optimal.
Time = 0.56 (sec) , antiderivative size = 319, normalized size of antiderivative = 3.32, number of steps used = 15, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {2081, 6847, 6860, 251, 1452, 440, 524} \[ \int \frac {-1+x^4}{\left (1+x^2+x^4\right ) \sqrt [4]{x^2+x^6}} \, dx=-\frac {2 \sqrt [4]{x^4+1} x \operatorname {AppellF1}\left (\frac {1}{8},1,\frac {1}{4},\frac {9}{8},-\frac {2 x^4}{1-i \sqrt {3}},-x^4\right )}{\sqrt [4]{x^6+x^2}}-\frac {2 \sqrt [4]{x^4+1} x \operatorname {AppellF1}\left (\frac {1}{8},1,\frac {1}{4},\frac {9}{8},-\frac {2 x^4}{1+i \sqrt {3}},-x^4\right )}{\sqrt [4]{x^6+x^2}}-\frac {2 \left (-\sqrt {3}+i\right ) \sqrt [4]{x^4+1} x^3 \operatorname {AppellF1}\left (\frac {5}{8},\frac {1}{4},1,\frac {13}{8},-x^4,-\frac {2 x^4}{1-i \sqrt {3}}\right )}{5 \left (\sqrt {3}+i\right ) \sqrt [4]{x^6+x^2}}-\frac {2 \left (\sqrt {3}+i\right ) \sqrt [4]{x^4+1} x^3 \operatorname {AppellF1}\left (\frac {5}{8},\frac {1}{4},1,\frac {13}{8},-x^4,-\frac {2 x^4}{1+i \sqrt {3}}\right )}{5 \left (-\sqrt {3}+i\right ) \sqrt [4]{x^6+x^2}}+\frac {2 \sqrt [4]{x^4+1} x \operatorname {Hypergeometric2F1}\left (\frac {1}{8},\frac {1}{4},\frac {9}{8},-x^4\right )}{\sqrt [4]{x^6+x^2}} \]
[In]
[Out]
Rule 251
Rule 440
Rule 524
Rule 1452
Rule 2081
Rule 6847
Rule 6860
Rubi steps \begin{align*} \text {integral}& = \frac {\left (\sqrt {x} \sqrt [4]{1+x^4}\right ) \int \frac {-1+x^4}{\sqrt {x} \sqrt [4]{1+x^4} \left (1+x^2+x^4\right )} \, dx}{\sqrt [4]{x^2+x^6}} \\ & = \frac {\left (2 \sqrt {x} \sqrt [4]{1+x^4}\right ) \text {Subst}\left (\int \frac {-1+x^8}{\sqrt [4]{1+x^8} \left (1+x^4+x^8\right )} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^6}} \\ & = \frac {\left (2 \sqrt {x} \sqrt [4]{1+x^4}\right ) \text {Subst}\left (\int \left (\frac {1}{\sqrt [4]{1+x^8}}-\frac {2+x^4}{\sqrt [4]{1+x^8} \left (1+x^4+x^8\right )}\right ) \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^6}} \\ & = \frac {\left (2 \sqrt {x} \sqrt [4]{1+x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [4]{1+x^8}} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^6}}-\frac {\left (2 \sqrt {x} \sqrt [4]{1+x^4}\right ) \text {Subst}\left (\int \frac {2+x^4}{\sqrt [4]{1+x^8} \left (1+x^4+x^8\right )} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^6}} \\ & = \frac {2 x \sqrt [4]{1+x^4} \operatorname {Hypergeometric2F1}\left (\frac {1}{8},\frac {1}{4},\frac {9}{8},-x^4\right )}{\sqrt [4]{x^2+x^6}}-\frac {\left (2 \sqrt {x} \sqrt [4]{1+x^4}\right ) \text {Subst}\left (\int \left (\frac {1-i \sqrt {3}}{\left (1-i \sqrt {3}+2 x^4\right ) \sqrt [4]{1+x^8}}+\frac {1+i \sqrt {3}}{\left (1+i \sqrt {3}+2 x^4\right ) \sqrt [4]{1+x^8}}\right ) \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^6}} \\ & = \frac {2 x \sqrt [4]{1+x^4} \operatorname {Hypergeometric2F1}\left (\frac {1}{8},\frac {1}{4},\frac {9}{8},-x^4\right )}{\sqrt [4]{x^2+x^6}}-\frac {\left (2 \left (1-i \sqrt {3}\right ) \sqrt {x} \sqrt [4]{1+x^4}\right ) \text {Subst}\left (\int \frac {1}{\left (1-i \sqrt {3}+2 x^4\right ) \sqrt [4]{1+x^8}} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^6}}-\frac {\left (2 \left (1+i \sqrt {3}\right ) \sqrt {x} \sqrt [4]{1+x^4}\right ) \text {Subst}\left (\int \frac {1}{\left (1+i \sqrt {3}+2 x^4\right ) \sqrt [4]{1+x^8}} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^6}} \\ & = \frac {2 x \sqrt [4]{1+x^4} \operatorname {Hypergeometric2F1}\left (\frac {1}{8},\frac {1}{4},\frac {9}{8},-x^4\right )}{\sqrt [4]{x^2+x^6}}-\frac {\left (2 \left (1-i \sqrt {3}\right ) \sqrt {x} \sqrt [4]{1+x^4}\right ) \text {Subst}\left (\int \left (\frac {i+\sqrt {3}}{2 \left (-i+\sqrt {3}-2 i x^8\right ) \sqrt [4]{1+x^8}}+\frac {x^4}{\sqrt [4]{1+x^8} \left (1+i \sqrt {3}+2 x^8\right )}\right ) \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^6}}-\frac {\left (2 \left (1+i \sqrt {3}\right ) \sqrt {x} \sqrt [4]{1+x^4}\right ) \text {Subst}\left (\int \left (\frac {-i+\sqrt {3}}{2 \left (i+\sqrt {3}+2 i x^8\right ) \sqrt [4]{1+x^8}}+\frac {x^4}{\sqrt [4]{1+x^8} \left (1-i \sqrt {3}+2 x^8\right )}\right ) \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^6}} \\ & = \frac {2 x \sqrt [4]{1+x^4} \operatorname {Hypergeometric2F1}\left (\frac {1}{8},\frac {1}{4},\frac {9}{8},-x^4\right )}{\sqrt [4]{x^2+x^6}}-\frac {\left (2 \left (1-i \sqrt {3}\right ) \sqrt {x} \sqrt [4]{1+x^4}\right ) \text {Subst}\left (\int \frac {x^4}{\sqrt [4]{1+x^8} \left (1+i \sqrt {3}+2 x^8\right )} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^6}}-\frac {\left (2 \left (1+i \sqrt {3}\right ) \sqrt {x} \sqrt [4]{1+x^4}\right ) \text {Subst}\left (\int \frac {x^4}{\sqrt [4]{1+x^8} \left (1-i \sqrt {3}+2 x^8\right )} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^6}}-\frac {\left (\left (1+i \sqrt {3}\right ) \left (-i+\sqrt {3}\right ) \sqrt {x} \sqrt [4]{1+x^4}\right ) \text {Subst}\left (\int \frac {1}{\left (i+\sqrt {3}+2 i x^8\right ) \sqrt [4]{1+x^8}} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^6}}-\frac {\left (\left (1-i \sqrt {3}\right ) \left (i+\sqrt {3}\right ) \sqrt {x} \sqrt [4]{1+x^4}\right ) \text {Subst}\left (\int \frac {1}{\left (-i+\sqrt {3}-2 i x^8\right ) \sqrt [4]{1+x^8}} \, dx,x,\sqrt {x}\right )}{\sqrt [4]{x^2+x^6}} \\ & = -\frac {2 x \sqrt [4]{1+x^4} \operatorname {AppellF1}\left (\frac {1}{8},1,\frac {1}{4},\frac {9}{8},-\frac {2 x^4}{1-i \sqrt {3}},-x^4\right )}{\sqrt [4]{x^2+x^6}}-\frac {2 x \sqrt [4]{1+x^4} \operatorname {AppellF1}\left (\frac {1}{8},1,\frac {1}{4},\frac {9}{8},-\frac {2 x^4}{1+i \sqrt {3}},-x^4\right )}{\sqrt [4]{x^2+x^6}}-\frac {2 \left (i-\sqrt {3}\right ) x^3 \sqrt [4]{1+x^4} \operatorname {AppellF1}\left (\frac {5}{8},\frac {1}{4},1,\frac {13}{8},-x^4,-\frac {2 x^4}{1-i \sqrt {3}}\right )}{5 \left (i+\sqrt {3}\right ) \sqrt [4]{x^2+x^6}}-\frac {2 \left (i+\sqrt {3}\right ) x^3 \sqrt [4]{1+x^4} \operatorname {AppellF1}\left (\frac {5}{8},\frac {1}{4},1,\frac {13}{8},-x^4,-\frac {2 x^4}{1+i \sqrt {3}}\right )}{5 \left (i-\sqrt {3}\right ) \sqrt [4]{x^2+x^6}}+\frac {2 x \sqrt [4]{1+x^4} \operatorname {Hypergeometric2F1}\left (\frac {1}{8},\frac {1}{4},\frac {9}{8},-x^4\right )}{\sqrt [4]{x^2+x^6}} \\ \end{align*}
Time = 0.00 (sec) , antiderivative size = 103, normalized size of antiderivative = 1.07 \[ \int \frac {-1+x^4}{\left (1+x^2+x^4\right ) \sqrt [4]{x^2+x^6}} \, dx=-\frac {\sqrt {x} \sqrt [4]{1+x^4} \left (\arctan \left (\frac {\sqrt {2} \sqrt {x} \sqrt [4]{1+x^4}}{-x+\sqrt {1+x^4}}\right )+\text {arctanh}\left (\frac {\sqrt {2} \sqrt {x} \sqrt [4]{1+x^4}}{x+\sqrt {1+x^4}}\right )\right )}{\sqrt {2} \sqrt [4]{x^2+x^6}} \]
[In]
[Out]
Time = 0.00 (sec) , antiderivative size = 124, normalized size of antiderivative = 1.29
method | result | size |
pseudoelliptic | \(\frac {\sqrt {2}\, \left (\ln \left (\frac {-\left (x^{2} \left (x^{4}+1\right )\right )^{\frac {1}{4}} \sqrt {2}\, x +x^{2}+\sqrt {x^{2} \left (x^{4}+1\right )}}{\left (x^{2} \left (x^{4}+1\right )\right )^{\frac {1}{4}} \sqrt {2}\, x +x^{2}+\sqrt {x^{2} \left (x^{4}+1\right )}}\right )+2 \arctan \left (\frac {\left (x^{2} \left (x^{4}+1\right )\right )^{\frac {1}{4}} \sqrt {2}+x}{x}\right )+2 \arctan \left (\frac {\left (x^{2} \left (x^{4}+1\right )\right )^{\frac {1}{4}} \sqrt {2}-x}{x}\right )\right )}{4}\) | \(124\) |
trager | \(-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right ) \ln \left (\frac {2 \sqrt {x^{6}+x^{2}}\, \operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} x -\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right ) x^{5}+2 \operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{2} \left (x^{6}+x^{2}\right )^{\frac {1}{4}} x^{2}+\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right ) x^{3}-2 \left (x^{6}+x^{2}\right )^{\frac {3}{4}}-\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right ) x}{\left (x^{2}-x +1\right ) x \left (x^{2}+x +1\right )}\right )}{2}+\frac {\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} \ln \left (\frac {\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} x^{5}-\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} x^{3}-2 \operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{2} \left (x^{6}+x^{2}\right )^{\frac {1}{4}} x^{2}+\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} x -2 \sqrt {x^{6}+x^{2}}\, \operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right ) x -2 \left (x^{6}+x^{2}\right )^{\frac {3}{4}}}{\left (x^{2}-x +1\right ) x \left (x^{2}+x +1\right )}\right )}{2}\) | \(237\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 34.64 (sec) , antiderivative size = 305, normalized size of antiderivative = 3.18 \[ \int \frac {-1+x^4}{\left (1+x^2+x^4\right ) \sqrt [4]{x^2+x^6}} \, dx=\left (\frac {1}{8} i + \frac {1}{8}\right ) \, \sqrt {2} \log \left (\frac {4 i \, {\left (x^{6} + x^{2}\right )}^{\frac {1}{4}} x^{2} - \left (2 i - 2\right ) \, \sqrt {2} \sqrt {x^{6} + x^{2}} x + \sqrt {2} {\left (\left (i + 1\right ) \, x^{5} - \left (i + 1\right ) \, x^{3} + \left (i + 1\right ) \, x\right )} - 4 \, {\left (x^{6} + x^{2}\right )}^{\frac {3}{4}}}{x^{5} + x^{3} + x}\right ) - \left (\frac {1}{8} i + \frac {1}{8}\right ) \, \sqrt {2} \log \left (\frac {4 i \, {\left (x^{6} + x^{2}\right )}^{\frac {1}{4}} x^{2} + \left (2 i - 2\right ) \, \sqrt {2} \sqrt {x^{6} + x^{2}} x + \sqrt {2} {\left (-\left (i + 1\right ) \, x^{5} + \left (i + 1\right ) \, x^{3} - \left (i + 1\right ) \, x\right )} - 4 \, {\left (x^{6} + x^{2}\right )}^{\frac {3}{4}}}{x^{5} + x^{3} + x}\right ) - \left (\frac {1}{8} i - \frac {1}{8}\right ) \, \sqrt {2} \log \left (\frac {-4 i \, {\left (x^{6} + x^{2}\right )}^{\frac {1}{4}} x^{2} + \left (2 i + 2\right ) \, \sqrt {2} \sqrt {x^{6} + x^{2}} x + \sqrt {2} {\left (-\left (i - 1\right ) \, x^{5} + \left (i - 1\right ) \, x^{3} - \left (i - 1\right ) \, x\right )} - 4 \, {\left (x^{6} + x^{2}\right )}^{\frac {3}{4}}}{x^{5} + x^{3} + x}\right ) + \left (\frac {1}{8} i - \frac {1}{8}\right ) \, \sqrt {2} \log \left (\frac {-4 i \, {\left (x^{6} + x^{2}\right )}^{\frac {1}{4}} x^{2} - \left (2 i + 2\right ) \, \sqrt {2} \sqrt {x^{6} + x^{2}} x + \sqrt {2} {\left (\left (i - 1\right ) \, x^{5} - \left (i - 1\right ) \, x^{3} + \left (i - 1\right ) \, x\right )} - 4 \, {\left (x^{6} + x^{2}\right )}^{\frac {3}{4}}}{x^{5} + x^{3} + x}\right ) \]
[In]
[Out]
\[ \int \frac {-1+x^4}{\left (1+x^2+x^4\right ) \sqrt [4]{x^2+x^6}} \, dx=\int \frac {\left (x - 1\right ) \left (x + 1\right ) \left (x^{2} + 1\right )}{\sqrt [4]{x^{2} \left (x^{4} + 1\right )} \left (x^{2} - x + 1\right ) \left (x^{2} + x + 1\right )}\, dx \]
[In]
[Out]
\[ \int \frac {-1+x^4}{\left (1+x^2+x^4\right ) \sqrt [4]{x^2+x^6}} \, dx=\int { \frac {x^{4} - 1}{{\left (x^{6} + x^{2}\right )}^{\frac {1}{4}} {\left (x^{4} + x^{2} + 1\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {-1+x^4}{\left (1+x^2+x^4\right ) \sqrt [4]{x^2+x^6}} \, dx=\int { \frac {x^{4} - 1}{{\left (x^{6} + x^{2}\right )}^{\frac {1}{4}} {\left (x^{4} + x^{2} + 1\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {-1+x^4}{\left (1+x^2+x^4\right ) \sqrt [4]{x^2+x^6}} \, dx=\int \frac {x^4-1}{{\left (x^6+x^2\right )}^{1/4}\,\left (x^4+x^2+1\right )} \,d x \]
[In]
[Out]