Integrand size = 34, antiderivative size = 293 \[ \int \frac {1-2 x^4+x^8}{\sqrt [4]{-1+x^4} \left (1-2 x^4+2 x^8\right )} \, dx=\frac {1}{4} \arctan \left (\frac {x}{\sqrt [4]{-1+x^4}}\right )+\frac {1}{8} \sqrt {\frac {1}{2} \left (2-\sqrt {2}\right )} \arctan \left (\frac {\sqrt {2+\sqrt {2}} x \sqrt [4]{-1+x^4}}{-x^2+\sqrt {-1+x^4}}\right )-\frac {1}{8} \sqrt {\frac {1}{2} \left (2+\sqrt {2}\right )} \arctan \left (\frac {\left (\sqrt {\frac {2}{2-\sqrt {2}}}-\frac {2}{\sqrt {2-\sqrt {2}}}\right ) x \sqrt [4]{-1+x^4}}{-x^2+\sqrt {-1+x^4}}\right )+\frac {1}{4} \text {arctanh}\left (\frac {x}{\sqrt [4]{-1+x^4}}\right )+\frac {1}{8} \sqrt {\frac {1}{2} \left (2+\sqrt {2}\right )} \text {arctanh}\left (\frac {\sqrt {2-\sqrt {2}} x \sqrt [4]{-1+x^4}}{x^2+\sqrt {-1+x^4}}\right )+\frac {1}{8} \sqrt {\frac {1}{2} \left (2-\sqrt {2}\right )} \text {arctanh}\left (\frac {\sqrt {2+\sqrt {2}} x \sqrt [4]{-1+x^4}}{x^2+\sqrt {-1+x^4}}\right ) \]
[Out]
Result contains complex when optimal does not.
Time = 0.17 (sec) , antiderivative size = 298, normalized size of antiderivative = 1.02, number of steps used = 28, number of rules used = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.441, Rules used = {28, 1442, 427, 544, 246, 218, 212, 209, 385, 217, 1179, 642, 1176, 631, 210} \[ \int \frac {1-2 x^4+x^8}{\sqrt [4]{-1+x^4} \left (1-2 x^4+2 x^8\right )} \, dx=\frac {1}{4} \arctan \left (\frac {x}{\sqrt [4]{x^4-1}}\right )-\left (\frac {1}{8}+\frac {i}{8}\right ) \sqrt [8]{-1} \arctan \left (\frac {(-1)^{7/8} x}{\sqrt [4]{x^4-1}}\right )-\frac {\left (\frac {1}{8}+\frac {i}{8}\right ) (-1)^{5/8} \arctan \left (1-\frac {(-1)^{7/8} \sqrt {2} x}{\sqrt [4]{x^4-1}}\right )}{\sqrt {2}}+\frac {\left (\frac {1}{8}+\frac {i}{8}\right ) (-1)^{5/8} \arctan \left (\frac {(-1)^{7/8} \sqrt {2} x}{\sqrt [4]{x^4-1}}+1\right )}{\sqrt {2}}+\frac {1}{4} \text {arctanh}\left (\frac {x}{\sqrt [4]{x^4-1}}\right )-\left (\frac {1}{8}+\frac {i}{8}\right ) \sqrt [8]{-1} \text {arctanh}\left (\frac {(-1)^{7/8} x}{\sqrt [4]{x^4-1}}\right )-\frac {\left (\frac {1}{16}+\frac {i}{16}\right ) (-1)^{5/8} \log \left (\frac {\sqrt [8]{-1} \sqrt {2} x}{\sqrt [4]{x^4-1}}+\frac {x^2}{\sqrt {x^4-1}}+\sqrt [4]{-1}\right )}{\sqrt {2}}+\frac {\left (\frac {1}{16}+\frac {i}{16}\right ) (-1)^{5/8} \log \left (\frac {(-1)^{7/8} \sqrt {2} x}{\sqrt [4]{x^4-1}}-\frac {(-1)^{3/4} x^2}{\sqrt {x^4-1}}+1\right )}{\sqrt {2}} \]
[In]
[Out]
Rule 28
Rule 209
Rule 210
Rule 212
Rule 217
Rule 218
Rule 246
Rule 385
Rule 427
Rule 544
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 1442
Rubi steps \begin{align*} \text {integral}& = \int \frac {\left (-1+x^4\right )^{7/4}}{1-2 x^4+2 x^8} \, dx \\ & = -\left (2 i \int \frac {\left (-1+x^4\right )^{7/4}}{(-2-2 i)+4 x^4} \, dx\right )+2 i \int \frac {\left (-1+x^4\right )^{7/4}}{(-2+2 i)+4 x^4} \, dx \\ & = -\left (\frac {1}{8} i \int \frac {(14-2 i)-(20-8 i) x^4}{\sqrt [4]{-1+x^4} \left ((-2-2 i)+4 x^4\right )} \, dx\right )+\frac {1}{8} i \int \frac {(14+2 i)-(20+8 i) x^4}{\sqrt [4]{-1+x^4} \left ((-2+2 i)+4 x^4\right )} \, dx \\ & = -\left (\left (-\frac {1}{4}-\frac {5 i}{8}\right ) \int \frac {1}{\sqrt [4]{-1+x^4}} \, dx\right )+\left (\frac {1}{4}-\frac {5 i}{8}\right ) \int \frac {1}{\sqrt [4]{-1+x^4}} \, dx-\int \frac {1}{\sqrt [4]{-1+x^4} \left ((-2-2 i)+4 x^4\right )} \, dx-\int \frac {1}{\sqrt [4]{-1+x^4} \left ((-2+2 i)+4 x^4\right )} \, dx \\ & = -\left (\left (-\frac {1}{4}-\frac {5 i}{8}\right ) \text {Subst}\left (\int \frac {1}{1-x^4} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )\right )+\left (\frac {1}{4}-\frac {5 i}{8}\right ) \text {Subst}\left (\int \frac {1}{1-x^4} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )-\text {Subst}\left (\int \frac {1}{(-2+2 i)-(2+2 i) x^4} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )-\text {Subst}\left (\int \frac {1}{(-2-2 i)-(2-2 i) x^4} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right ) \\ & = -\left (\left (-\frac {1}{8}-\frac {5 i}{16}\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )\right )-\left (-\frac {1}{8}-\frac {5 i}{16}\right ) \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )+\left (\frac {1}{8}-\frac {5 i}{16}\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )+\left (\frac {1}{8}-\frac {5 i}{16}\right ) \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )+\frac {1}{2} (-1)^{3/4} \text {Subst}\left (\int \frac {\sqrt [4]{-1}-x^2}{(-2-2 i)-(2-2 i) x^4} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )+\frac {1}{2} (-1)^{3/4} \text {Subst}\left (\int \frac {\sqrt [4]{-1}+x^2}{(-2-2 i)-(2-2 i) x^4} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )+\frac {i \text {Subst}\left (\int \frac {1}{\sqrt [4]{-1}-x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )}{4 \sqrt {2}}+\frac {i \text {Subst}\left (\int \frac {1}{\sqrt [4]{-1}+x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )}{4 \sqrt {2}} \\ & = \frac {1}{4} \arctan \left (\frac {x}{\sqrt [4]{-1+x^4}}\right )-\frac {(-1)^{3/8} \arctan \left (\frac {(-1)^{7/8} x}{\sqrt [4]{-1+x^4}}\right )}{4 \sqrt {2}}+\frac {1}{4} \text {arctanh}\left (\frac {x}{\sqrt [4]{-1+x^4}}\right )-\frac {(-1)^{3/8} \text {arctanh}\left (\frac {(-1)^{7/8} x}{\sqrt [4]{-1+x^4}}\right )}{4 \sqrt {2}}+\frac {\text {Subst}\left (\int \frac {1}{\sqrt [4]{-1}-\sqrt [8]{-1} \sqrt {2} x+x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )}{8 \sqrt {2}}+\frac {\text {Subst}\left (\int \frac {1}{\sqrt [4]{-1}+\sqrt [8]{-1} \sqrt {2} x+x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )}{8 \sqrt {2}}+\frac {\left (\left (\frac {1}{16}+\frac {i}{16}\right ) (-1)^{5/8}\right ) \text {Subst}\left (\int \frac {\sqrt [8]{-1} \sqrt {2}+2 x}{-\sqrt [4]{-1}-\sqrt [8]{-1} \sqrt {2} x-x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )}{\sqrt {2}}+\frac {\left (\left (\frac {1}{16}+\frac {i}{16}\right ) (-1)^{5/8}\right ) \text {Subst}\left (\int \frac {\sqrt [8]{-1} \sqrt {2}-2 x}{-\sqrt [4]{-1}+\sqrt [8]{-1} \sqrt {2} x-x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )}{\sqrt {2}} \\ & = \frac {1}{4} \arctan \left (\frac {x}{\sqrt [4]{-1+x^4}}\right )-\frac {(-1)^{3/8} \arctan \left (\frac {(-1)^{7/8} x}{\sqrt [4]{-1+x^4}}\right )}{4 \sqrt {2}}+\frac {1}{4} \text {arctanh}\left (\frac {x}{\sqrt [4]{-1+x^4}}\right )-\frac {(-1)^{3/8} \text {arctanh}\left (\frac {(-1)^{7/8} x}{\sqrt [4]{-1+x^4}}\right )}{4 \sqrt {2}}-\frac {\left (\frac {1}{16}+\frac {i}{16}\right ) (-1)^{5/8} \log \left (\sqrt [4]{-1}+\frac {x^2}{\sqrt {-1+x^4}}+\frac {\sqrt [8]{-1} \sqrt {2} x}{\sqrt [4]{-1+x^4}}\right )}{\sqrt {2}}+\frac {\left (\frac {1}{16}+\frac {i}{16}\right ) (-1)^{5/8} \log \left (1-\frac {(-1)^{3/4} x^2}{\sqrt {-1+x^4}}+\frac {(-1)^{7/8} \sqrt {2} x}{\sqrt [4]{-1+x^4}}\right )}{\sqrt {2}}+\frac {1}{8} (-1)^{7/8} \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {(-1)^{7/8} \sqrt {2} x}{\sqrt [4]{-1+x^4}}\right )-\frac {1}{8} (-1)^{7/8} \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {(-1)^{7/8} \sqrt {2} x}{\sqrt [4]{-1+x^4}}\right ) \\ & = \frac {1}{4} \arctan \left (\frac {x}{\sqrt [4]{-1+x^4}}\right )-\frac {(-1)^{3/8} \arctan \left (\frac {(-1)^{7/8} x}{\sqrt [4]{-1+x^4}}\right )}{4 \sqrt {2}}-\frac {1}{8} (-1)^{7/8} \arctan \left (1-\frac {(-1)^{7/8} \sqrt {2} x}{\sqrt [4]{-1+x^4}}\right )+\frac {1}{8} (-1)^{7/8} \arctan \left (1+\frac {(-1)^{7/8} \sqrt {2} x}{\sqrt [4]{-1+x^4}}\right )+\frac {1}{4} \text {arctanh}\left (\frac {x}{\sqrt [4]{-1+x^4}}\right )-\frac {(-1)^{3/8} \text {arctanh}\left (\frac {(-1)^{7/8} x}{\sqrt [4]{-1+x^4}}\right )}{4 \sqrt {2}}-\frac {\left (\frac {1}{16}+\frac {i}{16}\right ) (-1)^{5/8} \log \left (\sqrt [4]{-1}+\frac {x^2}{\sqrt {-1+x^4}}+\frac {\sqrt [8]{-1} \sqrt {2} x}{\sqrt [4]{-1+x^4}}\right )}{\sqrt {2}}+\frac {\left (\frac {1}{16}+\frac {i}{16}\right ) (-1)^{5/8} \log \left (1-\frac {(-1)^{3/4} x^2}{\sqrt {-1+x^4}}+\frac {(-1)^{7/8} \sqrt {2} x}{\sqrt [4]{-1+x^4}}\right )}{\sqrt {2}} \\ \end{align*}
Time = 0.94 (sec) , antiderivative size = 249, normalized size of antiderivative = 0.85 \[ \int \frac {1-2 x^4+x^8}{\sqrt [4]{-1+x^4} \left (1-2 x^4+2 x^8\right )} \, dx=\frac {1}{16} \left (4 \arctan \left (\frac {x}{\sqrt [4]{-1+x^4}}\right )+\sqrt {2 \left (2+\sqrt {2}\right )} \arctan \left (\frac {\sqrt {2-\sqrt {2}} x \sqrt [4]{-1+x^4}}{-x^2+\sqrt {-1+x^4}}\right )+\sqrt {4-2 \sqrt {2}} \arctan \left (\frac {\sqrt {2+\sqrt {2}} x \sqrt [4]{-1+x^4}}{-x^2+\sqrt {-1+x^4}}\right )+4 \text {arctanh}\left (\frac {x}{\sqrt [4]{-1+x^4}}\right )+\sqrt {2 \left (2+\sqrt {2}\right )} \text {arctanh}\left (\frac {\sqrt {2-\sqrt {2}} x \sqrt [4]{-1+x^4}}{x^2+\sqrt {-1+x^4}}\right )+\sqrt {4-2 \sqrt {2}} \text {arctanh}\left (\frac {\sqrt {2+\sqrt {2}} x \sqrt [4]{-1+x^4}}{x^2+\sqrt {-1+x^4}}\right )\right ) \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 7.12 (sec) , antiderivative size = 87, normalized size of antiderivative = 0.30
method | result | size |
pseudoelliptic | \(-\frac {\arctan \left (\frac {\left (x^{4}-1\right )^{\frac {1}{4}}}{x}\right )}{4}+\frac {\ln \left (\frac {\left (x^{4}-1\right )^{\frac {1}{4}}+x}{x}\right )}{8}-\frac {\ln \left (\frac {\left (x^{4}-1\right )^{\frac {1}{4}}-x}{x}\right )}{8}-\frac {\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (\textit {\_Z}^{8}+1\right )}{\sum }\frac {\left (\textit {\_R}^{4}+1\right ) \ln \left (\frac {-\textit {\_R} x +\left (x^{4}-1\right )^{\frac {1}{4}}}{x}\right )}{\textit {\_R}^{5}}\right )}{16}\) | \(87\) |
trager | \(\text {Expression too large to display}\) | \(1039\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.30 (sec) , antiderivative size = 342, normalized size of antiderivative = 1.17 \[ \int \frac {1-2 x^4+x^8}{\sqrt [4]{-1+x^4} \left (1-2 x^4+2 x^8\right )} \, dx=-\frac {1}{16} \, \sqrt {2} \left (-1\right )^{\frac {1}{8}} \log \left (\frac {4 \, {\left (\sqrt {2} {\left (\left (-1\right )^{\frac {7}{8}} x + \left (-1\right )^{\frac {3}{8}} x\right )} + 2 \, {\left (x^{4} - 1\right )}^{\frac {1}{4}}\right )}}{x}\right ) + \frac {1}{16} \, \sqrt {2} \left (-1\right )^{\frac {1}{8}} \log \left (-\frac {4 \, {\left (\sqrt {2} {\left (\left (-1\right )^{\frac {7}{8}} x + \left (-1\right )^{\frac {3}{8}} x\right )} - 2 \, {\left (x^{4} - 1\right )}^{\frac {1}{4}}\right )}}{x}\right ) - \frac {1}{16} i \, \sqrt {2} \left (-1\right )^{\frac {1}{8}} \log \left (-\frac {4 \, {\left (\sqrt {2} {\left (i \, \left (-1\right )^{\frac {7}{8}} x + i \, \left (-1\right )^{\frac {3}{8}} x\right )} - 2 \, {\left (x^{4} - 1\right )}^{\frac {1}{4}}\right )}}{x}\right ) + \frac {1}{16} i \, \sqrt {2} \left (-1\right )^{\frac {1}{8}} \log \left (-\frac {4 \, {\left (\sqrt {2} {\left (-i \, \left (-1\right )^{\frac {7}{8}} x - i \, \left (-1\right )^{\frac {3}{8}} x\right )} - 2 \, {\left (x^{4} - 1\right )}^{\frac {1}{4}}\right )}}{x}\right ) - \left (\frac {1}{16} i - \frac {1}{16}\right ) \, \left (-1\right )^{\frac {1}{8}} \log \left (-\frac {8 \, {\left (\left (i + 1\right ) \, \left (-1\right )^{\frac {7}{8}} x - \left (i + 1\right ) \, \left (-1\right )^{\frac {3}{8}} x - 2 \, {\left (x^{4} - 1\right )}^{\frac {1}{4}}\right )}}{x}\right ) + \left (\frac {1}{16} i + \frac {1}{16}\right ) \, \left (-1\right )^{\frac {1}{8}} \log \left (-\frac {8 \, {\left (-\left (i - 1\right ) \, \left (-1\right )^{\frac {7}{8}} x + \left (i - 1\right ) \, \left (-1\right )^{\frac {3}{8}} x - 2 \, {\left (x^{4} - 1\right )}^{\frac {1}{4}}\right )}}{x}\right ) - \left (\frac {1}{16} i + \frac {1}{16}\right ) \, \left (-1\right )^{\frac {1}{8}} \log \left (-\frac {8 \, {\left (\left (i - 1\right ) \, \left (-1\right )^{\frac {7}{8}} x - \left (i - 1\right ) \, \left (-1\right )^{\frac {3}{8}} x - 2 \, {\left (x^{4} - 1\right )}^{\frac {1}{4}}\right )}}{x}\right ) + \left (\frac {1}{16} i - \frac {1}{16}\right ) \, \left (-1\right )^{\frac {1}{8}} \log \left (-\frac {8 \, {\left (-\left (i + 1\right ) \, \left (-1\right )^{\frac {7}{8}} x + \left (i + 1\right ) \, \left (-1\right )^{\frac {3}{8}} x - 2 \, {\left (x^{4} - 1\right )}^{\frac {1}{4}}\right )}}{x}\right ) - \frac {1}{4} \, \arctan \left (\frac {{\left (x^{4} - 1\right )}^{\frac {1}{4}}}{x}\right ) + \frac {1}{8} \, \log \left (\frac {x + {\left (x^{4} - 1\right )}^{\frac {1}{4}}}{x}\right ) - \frac {1}{8} \, \log \left (-\frac {x - {\left (x^{4} - 1\right )}^{\frac {1}{4}}}{x}\right ) \]
[In]
[Out]
Timed out. \[ \int \frac {1-2 x^4+x^8}{\sqrt [4]{-1+x^4} \left (1-2 x^4+2 x^8\right )} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {1-2 x^4+x^8}{\sqrt [4]{-1+x^4} \left (1-2 x^4+2 x^8\right )} \, dx=\int { \frac {x^{8} - 2 \, x^{4} + 1}{{\left (2 \, x^{8} - 2 \, x^{4} + 1\right )} {\left (x^{4} - 1\right )}^{\frac {1}{4}}} \,d x } \]
[In]
[Out]
\[ \int \frac {1-2 x^4+x^8}{\sqrt [4]{-1+x^4} \left (1-2 x^4+2 x^8\right )} \, dx=\int { \frac {x^{8} - 2 \, x^{4} + 1}{{\left (2 \, x^{8} - 2 \, x^{4} + 1\right )} {\left (x^{4} - 1\right )}^{\frac {1}{4}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {1-2 x^4+x^8}{\sqrt [4]{-1+x^4} \left (1-2 x^4+2 x^8\right )} \, dx=\int \frac {x^8-2\,x^4+1}{{\left (x^4-1\right )}^{1/4}\,\left (2\,x^8-2\,x^4+1\right )} \,d x \]
[In]
[Out]