Integrand size = 34, antiderivative size = 105 \[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{1+x^4} \left (-2-x^4+x^8\right )} \, dx=-\frac {5 x}{3 \sqrt [4]{1+x^4}}+\arctan \left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \arctan \left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{1+x^4}}\right )}{6\ 2^{3/4} \sqrt [4]{3}}+\text {arctanh}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \text {arctanh}\left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{1+x^4}}\right )}{6\ 2^{3/4} \sqrt [4]{3}} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 105, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {6860, 246, 218, 212, 209, 1417, 390, 385} \[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{1+x^4} \left (-2-x^4+x^8\right )} \, dx=\arctan \left (\frac {x}{\sqrt [4]{x^4+1}}\right )-\frac {5 \arctan \left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{x^4+1}}\right )}{6\ 2^{3/4} \sqrt [4]{3}}+\text {arctanh}\left (\frac {x}{\sqrt [4]{x^4+1}}\right )-\frac {5 \text {arctanh}\left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{x^4+1}}\right )}{6\ 2^{3/4} \sqrt [4]{3}}-\frac {5 x}{3 \sqrt [4]{x^4+1}} \]
[In]
[Out]
Rule 209
Rule 212
Rule 218
Rule 246
Rule 385
Rule 390
Rule 1417
Rule 6860
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {2}{\sqrt [4]{1+x^4}}+\frac {5}{\sqrt [4]{1+x^4} \left (-2-x^4+x^8\right )}\right ) \, dx \\ & = 2 \int \frac {1}{\sqrt [4]{1+x^4}} \, dx+5 \int \frac {1}{\sqrt [4]{1+x^4} \left (-2-x^4+x^8\right )} \, dx \\ & = 2 \text {Subst}\left (\int \frac {1}{1-x^4} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )+5 \int \frac {1}{\left (-2+x^4\right ) \left (1+x^4\right )^{5/4}} \, dx \\ & = -\frac {5 x}{3 \sqrt [4]{1+x^4}}+\frac {5}{3} \int \frac {1}{\left (-2+x^4\right ) \sqrt [4]{1+x^4}} \, dx+\text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )+\text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right ) \\ & = -\frac {5 x}{3 \sqrt [4]{1+x^4}}+\arctan \left (\frac {x}{\sqrt [4]{1+x^4}}\right )+\text {arctanh}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )+\frac {5}{3} \text {Subst}\left (\int \frac {1}{-2+3 x^4} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right ) \\ & = -\frac {5 x}{3 \sqrt [4]{1+x^4}}+\arctan \left (\frac {x}{\sqrt [4]{1+x^4}}\right )+\text {arctanh}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \text {Subst}\left (\int \frac {1}{\sqrt {2}-\sqrt {3} x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )}{6 \sqrt {2}}-\frac {5 \text {Subst}\left (\int \frac {1}{\sqrt {2}+\sqrt {3} x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )}{6 \sqrt {2}} \\ & = -\frac {5 x}{3 \sqrt [4]{1+x^4}}+\arctan \left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \arctan \left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{1+x^4}}\right )}{6\ 2^{3/4} \sqrt [4]{3}}+\text {arctanh}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \text {arctanh}\left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{1+x^4}}\right )}{6\ 2^{3/4} \sqrt [4]{3}} \\ \end{align*}
Time = 0.47 (sec) , antiderivative size = 105, normalized size of antiderivative = 1.00 \[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{1+x^4} \left (-2-x^4+x^8\right )} \, dx=-\frac {5 x}{3 \sqrt [4]{1+x^4}}+\arctan \left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \arctan \left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{1+x^4}}\right )}{6\ 2^{3/4} \sqrt [4]{3}}+\text {arctanh}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \text {arctanh}\left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{1+x^4}}\right )}{6\ 2^{3/4} \sqrt [4]{3}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(172\) vs. \(2(81)=162\).
Time = 1.38 (sec) , antiderivative size = 173, normalized size of antiderivative = 1.65
method | result | size |
pseudoelliptic | \(\frac {10 \arctan \left (\frac {3^{\frac {3}{4}} 2^{\frac {1}{4}} \left (x^{4}+1\right )^{\frac {1}{4}}}{3 x}\right ) 2^{\frac {1}{4}} 3^{\frac {3}{4}} \left (x^{4}+1\right )^{\frac {1}{4}}-5 \ln \left (\frac {-2^{\frac {3}{4}} 3^{\frac {1}{4}} x -2 \left (x^{4}+1\right )^{\frac {1}{4}}}{2^{\frac {3}{4}} 3^{\frac {1}{4}} x -2 \left (x^{4}+1\right )^{\frac {1}{4}}}\right ) 2^{\frac {1}{4}} 3^{\frac {3}{4}} \left (x^{4}+1\right )^{\frac {1}{4}}+36 \ln \left (\frac {x +\left (x^{4}+1\right )^{\frac {1}{4}}}{x}\right ) \left (x^{4}+1\right )^{\frac {1}{4}}-36 \ln \left (\frac {\left (x^{4}+1\right )^{\frac {1}{4}}-x}{x}\right ) \left (x^{4}+1\right )^{\frac {1}{4}}-72 \arctan \left (\frac {\left (x^{4}+1\right )^{\frac {1}{4}}}{x}\right ) \left (x^{4}+1\right )^{\frac {1}{4}}-120 x}{72 \left (x^{4}+1\right )^{\frac {1}{4}}}\) | \(173\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.31 (sec) , antiderivative size = 211, normalized size of antiderivative = 2.01 \[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{1+x^4} \left (-2-x^4+x^8\right )} \, dx=-\frac {5 \cdot 24^{\frac {3}{4}} {\left (x^{4} + 1\right )} \log \left (\frac {24^{\frac {1}{4}} x + 2 \, {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) - 5 \cdot 24^{\frac {3}{4}} {\left (x^{4} + 1\right )} \log \left (-\frac {24^{\frac {1}{4}} x - 2 \, {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) + 5 \cdot 24^{\frac {3}{4}} {\left (-i \, x^{4} - i\right )} \log \left (\frac {i \cdot 24^{\frac {1}{4}} x + 2 \, {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) + 5 \cdot 24^{\frac {3}{4}} {\left (i \, x^{4} + i\right )} \log \left (\frac {-i \cdot 24^{\frac {1}{4}} x + 2 \, {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) + 288 \, {\left (x^{4} + 1\right )} \arctan \left (\frac {{\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) - 144 \, {\left (x^{4} + 1\right )} \log \left (\frac {x + {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) + 144 \, {\left (x^{4} + 1\right )} \log \left (-\frac {x - {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) + 480 \, {\left (x^{4} + 1\right )}^{\frac {3}{4}} x}{288 \, {\left (x^{4} + 1\right )}} \]
[In]
[Out]
\[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{1+x^4} \left (-2-x^4+x^8\right )} \, dx=\int \frac {2 x^{8} - 2 x^{4} + 1}{\left (x^{4} - 2\right ) \left (x^{4} + 1\right )^{\frac {5}{4}}}\, dx \]
[In]
[Out]
\[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{1+x^4} \left (-2-x^4+x^8\right )} \, dx=\int { \frac {2 \, x^{8} - 2 \, x^{4} + 1}{{\left (x^{8} - x^{4} - 2\right )} {\left (x^{4} + 1\right )}^{\frac {1}{4}}} \,d x } \]
[In]
[Out]
\[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{1+x^4} \left (-2-x^4+x^8\right )} \, dx=\int { \frac {2 \, x^{8} - 2 \, x^{4} + 1}{{\left (x^{8} - x^{4} - 2\right )} {\left (x^{4} + 1\right )}^{\frac {1}{4}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{1+x^4} \left (-2-x^4+x^8\right )} \, dx=\int -\frac {2\,x^8-2\,x^4+1}{{\left (x^4+1\right )}^{1/4}\,\left (-x^8+x^4+2\right )} \,d x \]
[In]
[Out]