Integrand size = 32, antiderivative size = 119 \[ \int \frac {\sqrt [3]{x+2 x^3} \left (-1+x^4\right )}{x^4 \left (2-x^2+x^4\right )} \, dx=\frac {3 \left (1+4 x^2\right ) \sqrt [3]{x+2 x^3}}{16 x^3}+\frac {1}{8} \text {RootSum}\left [11-9 \text {$\#$1}^3+2 \text {$\#$1}^6\&,\frac {11 \log (x)-11 \log \left (\sqrt [3]{x+2 x^3}-x \text {$\#$1}\right )+\log (x) \text {$\#$1}^3-\log \left (\sqrt [3]{x+2 x^3}-x \text {$\#$1}\right ) \text {$\#$1}^3}{-9 \text {$\#$1}^2+4 \text {$\#$1}^5}\&\right ] \]
[Out]
Result contains complex when optimal does not.
Time = 1.55 (sec) , antiderivative size = 893, normalized size of antiderivative = 7.50, number of steps used = 18, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.281, Rules used = {2081, 6860, 270, 477, 476, 486, 597, 12, 503} \[ \int \frac {\sqrt [3]{x+2 x^3} \left (-1+x^4\right )}{x^4 \left (2-x^2+x^4\right )} \, dx=-\frac {3 \sqrt [3]{2 x^3+x} \left (2 x^2+1\right )}{8 x^3}+\frac {12 \sqrt [3]{2 x^3+x}}{\sqrt {7} \left (3 i+\sqrt {7}\right ) x}-\frac {12 \sqrt [3]{2 x^3+x}}{\sqrt {7} \left (3 i-\sqrt {7}\right ) x}+\frac {3 \left (7 i+5 \sqrt {7}\right ) \sqrt [3]{2 x^3+x}}{56 \left (i+\sqrt {7}\right ) x^3}+\frac {3 \left (7 i-5 \sqrt {7}\right ) \sqrt [3]{2 x^3+x}}{56 \left (i-\sqrt {7}\right ) x^3}-\frac {\sqrt {\frac {3}{7}} \sqrt [3]{2 \left (-2 i+\sqrt {7}\right )} \left (5 i+\sqrt {7}\right ) \sqrt [3]{2 x^3+x} \arctan \left (\frac {\frac {2 \sqrt [3]{2 \left (-2 i+\sqrt {7}\right )} x^{2/3}}{\sqrt [3]{-i+\sqrt {7}} \sqrt [3]{2 x^2+1}}+1}{\sqrt {3}}\right )}{\left (-i+\sqrt {7}\right )^{7/3} \sqrt [3]{x} \sqrt [3]{2 x^2+1}}+\frac {\sqrt [3]{2} \sqrt {3} \left (5 i-\sqrt {7}\right ) \sqrt [3]{2 x^3+x} \arctan \left (\frac {\frac {2 x^{2/3}}{\sqrt [3]{\frac {i+\sqrt {7}}{2 \left (2 i+\sqrt {7}\right )}} \sqrt [3]{2 x^2+1}}+1}{\sqrt {3}}\right )}{\sqrt {7} \left (i+\sqrt {7}\right )^2 \sqrt [3]{\frac {i+\sqrt {7}}{2 i+\sqrt {7}}} \sqrt [3]{x} \sqrt [3]{2 x^2+1}}+\frac {\left (7-5 i \sqrt {7}\right ) \sqrt [3]{2 x^3+x} \log \left (-2 x^2-i \sqrt {7}+1\right )}{7\ 2^{2/3} \left (i+\sqrt {7}\right )^2 \sqrt [3]{\frac {i+\sqrt {7}}{2 i+\sqrt {7}}} \sqrt [3]{x} \sqrt [3]{2 x^2+1}}+\frac {\left (7+5 i \sqrt {7}\right ) \sqrt [3]{-2 i+\sqrt {7}} \sqrt [3]{2 x^3+x} \log \left (-2 x^2+i \sqrt {7}+1\right )}{7\ 2^{2/3} \left (-i+\sqrt {7}\right )^{7/3} \sqrt [3]{x} \sqrt [3]{2 x^2+1}}-\frac {3 \left (7+5 i \sqrt {7}\right ) \sqrt [3]{-2 i+\sqrt {7}} \sqrt [3]{2 x^3+x} \log \left (\sqrt [3]{2 \left (-2 i+\sqrt {7}\right )} x^{2/3}-\sqrt [3]{-i+\sqrt {7}} \sqrt [3]{2 x^2+1}\right )}{7\ 2^{2/3} \left (-i+\sqrt {7}\right )^{7/3} \sqrt [3]{x} \sqrt [3]{2 x^2+1}}-\frac {3 \left (7-5 i \sqrt {7}\right ) \sqrt [3]{2 x^3+x} \log \left (\sqrt [3]{2} x^{2/3}-\sqrt [3]{\frac {i+\sqrt {7}}{2 i+\sqrt {7}}} \sqrt [3]{2 x^2+1}\right )}{7\ 2^{2/3} \left (i+\sqrt {7}\right )^2 \sqrt [3]{\frac {i+\sqrt {7}}{2 i+\sqrt {7}}} \sqrt [3]{x} \sqrt [3]{2 x^2+1}} \]
[In]
[Out]
Rule 12
Rule 270
Rule 476
Rule 477
Rule 486
Rule 503
Rule 597
Rule 2081
Rule 6860
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt [3]{x+2 x^3} \int \frac {\sqrt [3]{1+2 x^2} \left (-1+x^4\right )}{x^{11/3} \left (2-x^2+x^4\right )} \, dx}{\sqrt [3]{x} \sqrt [3]{1+2 x^2}} \\ & = \frac {\sqrt [3]{x+2 x^3} \int \left (\frac {\sqrt [3]{1+2 x^2}}{x^{11/3}}-\frac {\left (3-x^2\right ) \sqrt [3]{1+2 x^2}}{x^{11/3} \left (2-x^2+x^4\right )}\right ) \, dx}{\sqrt [3]{x} \sqrt [3]{1+2 x^2}} \\ & = \frac {\sqrt [3]{x+2 x^3} \int \frac {\sqrt [3]{1+2 x^2}}{x^{11/3}} \, dx}{\sqrt [3]{x} \sqrt [3]{1+2 x^2}}-\frac {\sqrt [3]{x+2 x^3} \int \frac {\left (3-x^2\right ) \sqrt [3]{1+2 x^2}}{x^{11/3} \left (2-x^2+x^4\right )} \, dx}{\sqrt [3]{x} \sqrt [3]{1+2 x^2}} \\ & = -\frac {3 \left (1+2 x^2\right ) \sqrt [3]{x+2 x^3}}{8 x^3}-\frac {\sqrt [3]{x+2 x^3} \int \left (\frac {\left (-1-\frac {5 i}{\sqrt {7}}\right ) \sqrt [3]{1+2 x^2}}{x^{11/3} \left (-1-i \sqrt {7}+2 x^2\right )}+\frac {\left (-1+\frac {5 i}{\sqrt {7}}\right ) \sqrt [3]{1+2 x^2}}{x^{11/3} \left (-1+i \sqrt {7}+2 x^2\right )}\right ) \, dx}{\sqrt [3]{x} \sqrt [3]{1+2 x^2}} \\ & = -\frac {3 \left (1+2 x^2\right ) \sqrt [3]{x+2 x^3}}{8 x^3}-\frac {\left (\left (-7+5 i \sqrt {7}\right ) \sqrt [3]{x+2 x^3}\right ) \int \frac {\sqrt [3]{1+2 x^2}}{x^{11/3} \left (-1+i \sqrt {7}+2 x^2\right )} \, dx}{7 \sqrt [3]{x} \sqrt [3]{1+2 x^2}}+\frac {\left (\left (7+5 i \sqrt {7}\right ) \sqrt [3]{x+2 x^3}\right ) \int \frac {\sqrt [3]{1+2 x^2}}{x^{11/3} \left (-1-i \sqrt {7}+2 x^2\right )} \, dx}{7 \sqrt [3]{x} \sqrt [3]{1+2 x^2}} \\ & = -\frac {3 \left (1+2 x^2\right ) \sqrt [3]{x+2 x^3}}{8 x^3}-\frac {\left (3 \left (-7+5 i \sqrt {7}\right ) \sqrt [3]{x+2 x^3}\right ) \text {Subst}\left (\int \frac {\sqrt [3]{1+2 x^6}}{x^9 \left (-1+i \sqrt {7}+2 x^6\right )} \, dx,x,\sqrt [3]{x}\right )}{7 \sqrt [3]{x} \sqrt [3]{1+2 x^2}}+\frac {\left (3 \left (7+5 i \sqrt {7}\right ) \sqrt [3]{x+2 x^3}\right ) \text {Subst}\left (\int \frac {\sqrt [3]{1+2 x^6}}{x^9 \left (-1-i \sqrt {7}+2 x^6\right )} \, dx,x,\sqrt [3]{x}\right )}{7 \sqrt [3]{x} \sqrt [3]{1+2 x^2}} \\ & = -\frac {3 \left (1+2 x^2\right ) \sqrt [3]{x+2 x^3}}{8 x^3}-\frac {\left (3 \left (-7+5 i \sqrt {7}\right ) \sqrt [3]{x+2 x^3}\right ) \text {Subst}\left (\int \frac {\sqrt [3]{1+2 x^3}}{x^5 \left (-1+i \sqrt {7}+2 x^3\right )} \, dx,x,x^{2/3}\right )}{14 \sqrt [3]{x} \sqrt [3]{1+2 x^2}}+\frac {\left (3 \left (7+5 i \sqrt {7}\right ) \sqrt [3]{x+2 x^3}\right ) \text {Subst}\left (\int \frac {\sqrt [3]{1+2 x^3}}{x^5 \left (-1-i \sqrt {7}+2 x^3\right )} \, dx,x,x^{2/3}\right )}{14 \sqrt [3]{x} \sqrt [3]{1+2 x^2}} \\ & = \frac {3 \left (7 i-5 \sqrt {7}\right ) \sqrt [3]{x+2 x^3}}{56 \left (i-\sqrt {7}\right ) x^3}+\frac {3 \left (7 i+5 \sqrt {7}\right ) \sqrt [3]{x+2 x^3}}{56 \left (i+\sqrt {7}\right ) x^3}-\frac {3 \left (1+2 x^2\right ) \sqrt [3]{x+2 x^3}}{8 x^3}+\frac {\left (3 \left (-7+5 i \sqrt {7}\right ) \sqrt [3]{x+2 x^3}\right ) \text {Subst}\left (\int \frac {-2 \left (5-i \sqrt {7}\right )-12 x^3}{x^2 \left (1+2 x^3\right )^{2/3} \left (-1+i \sqrt {7}+2 x^3\right )} \, dx,x,x^{2/3}\right )}{56 \left (1-i \sqrt {7}\right ) \sqrt [3]{x} \sqrt [3]{1+2 x^2}}-\frac {\left (3 \left (7+5 i \sqrt {7}\right ) \sqrt [3]{x+2 x^3}\right ) \text {Subst}\left (\int \frac {-2 \left (5+i \sqrt {7}\right )-12 x^3}{x^2 \left (1+2 x^3\right )^{2/3} \left (-1-i \sqrt {7}+2 x^3\right )} \, dx,x,x^{2/3}\right )}{56 \left (1+i \sqrt {7}\right ) \sqrt [3]{x} \sqrt [3]{1+2 x^2}} \\ & = \frac {3 \left (7 i-5 \sqrt {7}\right ) \sqrt [3]{x+2 x^3}}{56 \left (i-\sqrt {7}\right ) x^3}+\frac {3 \left (7 i+5 \sqrt {7}\right ) \sqrt [3]{x+2 x^3}}{56 \left (i+\sqrt {7}\right ) x^3}-\frac {12 \sqrt [3]{x+2 x^3}}{\sqrt {7} \left (3 i-\sqrt {7}\right ) x}+\frac {12 \sqrt [3]{x+2 x^3}}{\sqrt {7} \left (3 i+\sqrt {7}\right ) x}-\frac {3 \left (1+2 x^2\right ) \sqrt [3]{x+2 x^3}}{8 x^3}+\frac {\left (3 \left (-7+5 i \sqrt {7}\right ) \sqrt [3]{x+2 x^3}\right ) \text {Subst}\left (\int -\frac {16 \left (2-i \sqrt {7}\right ) x}{\left (1+2 x^3\right )^{2/3} \left (-1+i \sqrt {7}+2 x^3\right )} \, dx,x,x^{2/3}\right )}{56 \left (1-i \sqrt {7}\right )^2 \sqrt [3]{x} \sqrt [3]{1+2 x^2}}-\frac {\left (3 \left (7+5 i \sqrt {7}\right ) \sqrt [3]{x+2 x^3}\right ) \text {Subst}\left (\int -\frac {16 \left (2+i \sqrt {7}\right ) x}{\left (1+2 x^3\right )^{2/3} \left (-1-i \sqrt {7}+2 x^3\right )} \, dx,x,x^{2/3}\right )}{56 \left (1+i \sqrt {7}\right )^2 \sqrt [3]{x} \sqrt [3]{1+2 x^2}} \\ & = \frac {3 \left (7 i-5 \sqrt {7}\right ) \sqrt [3]{x+2 x^3}}{56 \left (i-\sqrt {7}\right ) x^3}+\frac {3 \left (7 i+5 \sqrt {7}\right ) \sqrt [3]{x+2 x^3}}{56 \left (i+\sqrt {7}\right ) x^3}-\frac {12 \sqrt [3]{x+2 x^3}}{\sqrt {7} \left (3 i-\sqrt {7}\right ) x}+\frac {12 \sqrt [3]{x+2 x^3}}{\sqrt {7} \left (3 i+\sqrt {7}\right ) x}-\frac {3 \left (1+2 x^2\right ) \sqrt [3]{x+2 x^3}}{8 x^3}-\frac {\left (6 \left (2-i \sqrt {7}\right ) \left (-7+5 i \sqrt {7}\right ) \sqrt [3]{x+2 x^3}\right ) \text {Subst}\left (\int \frac {x}{\left (1+2 x^3\right )^{2/3} \left (-1+i \sqrt {7}+2 x^3\right )} \, dx,x,x^{2/3}\right )}{7 \left (1-i \sqrt {7}\right )^2 \sqrt [3]{x} \sqrt [3]{1+2 x^2}}+\frac {\left (6 \left (2+i \sqrt {7}\right ) \left (7+5 i \sqrt {7}\right ) \sqrt [3]{x+2 x^3}\right ) \text {Subst}\left (\int \frac {x}{\left (1+2 x^3\right )^{2/3} \left (-1-i \sqrt {7}+2 x^3\right )} \, dx,x,x^{2/3}\right )}{7 \left (1+i \sqrt {7}\right )^2 \sqrt [3]{x} \sqrt [3]{1+2 x^2}} \\ & = \frac {3 \left (7 i-5 \sqrt {7}\right ) \sqrt [3]{x+2 x^3}}{56 \left (i-\sqrt {7}\right ) x^3}+\frac {3 \left (7 i+5 \sqrt {7}\right ) \sqrt [3]{x+2 x^3}}{56 \left (i+\sqrt {7}\right ) x^3}-\frac {12 \sqrt [3]{x+2 x^3}}{\sqrt {7} \left (3 i-\sqrt {7}\right ) x}+\frac {12 \sqrt [3]{x+2 x^3}}{\sqrt {7} \left (3 i+\sqrt {7}\right ) x}-\frac {3 \left (1+2 x^2\right ) \sqrt [3]{x+2 x^3}}{8 x^3}-\frac {\sqrt {\frac {3}{7}} \sqrt [3]{2 \left (-2 i+\sqrt {7}\right )} \left (5 i+\sqrt {7}\right ) \sqrt [3]{x+2 x^3} \arctan \left (\frac {1+\frac {2 \sqrt [3]{2 \left (-2 i+\sqrt {7}\right )} x^{2/3}}{\sqrt [3]{-i+\sqrt {7}} \sqrt [3]{1+2 x^2}}}{\sqrt {3}}\right )}{\left (-i+\sqrt {7}\right )^{7/3} \sqrt [3]{x} \sqrt [3]{1+2 x^2}}+\frac {\sqrt {\frac {3}{7}} \left (5 i-\sqrt {7}\right ) \sqrt [3]{2 \left (2 i+\sqrt {7}\right )} \sqrt [3]{x+2 x^3} \arctan \left (\frac {1+\frac {2 x^{2/3}}{\sqrt [3]{\frac {i+\sqrt {7}}{2 \left (2 i+\sqrt {7}\right )}} \sqrt [3]{1+2 x^2}}}{\sqrt {3}}\right )}{\left (i+\sqrt {7}\right )^{7/3} \sqrt [3]{x} \sqrt [3]{1+2 x^2}}+\frac {\left (7-5 i \sqrt {7}\right ) \sqrt [3]{2 i+\sqrt {7}} \sqrt [3]{x+2 x^3} \log \left (1-i \sqrt {7}-2 x^2\right )}{7\ 2^{2/3} \left (i+\sqrt {7}\right )^{7/3} \sqrt [3]{x} \sqrt [3]{1+2 x^2}}+\frac {\left (7+5 i \sqrt {7}\right ) \sqrt [3]{-2 i+\sqrt {7}} \sqrt [3]{x+2 x^3} \log \left (1+i \sqrt {7}-2 x^2\right )}{7\ 2^{2/3} \left (-i+\sqrt {7}\right )^{7/3} \sqrt [3]{x} \sqrt [3]{1+2 x^2}}-\frac {3 \left (7+5 i \sqrt {7}\right ) \sqrt [3]{-2 i+\sqrt {7}} \sqrt [3]{x+2 x^3} \log \left (\sqrt [3]{2 \left (-2 i+\sqrt {7}\right )} x^{2/3}-\sqrt [3]{-i+\sqrt {7}} \sqrt [3]{1+2 x^2}\right )}{7\ 2^{2/3} \left (-i+\sqrt {7}\right )^{7/3} \sqrt [3]{x} \sqrt [3]{1+2 x^2}}-\frac {3 \left (7-5 i \sqrt {7}\right ) \sqrt [3]{2 i+\sqrt {7}} \sqrt [3]{x+2 x^3} \log \left (\sqrt [3]{2} x^{2/3}-\sqrt [3]{\frac {i+\sqrt {7}}{2 i+\sqrt {7}}} \sqrt [3]{1+2 x^2}\right )}{7\ 2^{2/3} \left (i+\sqrt {7}\right )^{7/3} \sqrt [3]{x} \sqrt [3]{1+2 x^2}} \\ \end{align*}
Time = 3.03 (sec) , antiderivative size = 155, normalized size of antiderivative = 1.30 \[ \int \frac {\sqrt [3]{x+2 x^3} \left (-1+x^4\right )}{x^4 \left (2-x^2+x^4\right )} \, dx=\frac {\sqrt [3]{x+2 x^3} \left (9 \sqrt [3]{1+2 x^2} \left (1+4 x^2\right )+2 x^{8/3} \text {RootSum}\left [11-9 \text {$\#$1}^3+2 \text {$\#$1}^6\&,\frac {22 \log (x)-33 \log \left (\sqrt [3]{1+2 x^2}-x^{2/3} \text {$\#$1}\right )+2 \log (x) \text {$\#$1}^3-3 \log \left (\sqrt [3]{1+2 x^2}-x^{2/3} \text {$\#$1}\right ) \text {$\#$1}^3}{-9 \text {$\#$1}^2+4 \text {$\#$1}^5}\&\right ]\right )}{48 x^3 \sqrt [3]{1+2 x^2}} \]
[In]
[Out]
Time = 201.05 (sec) , antiderivative size = 82, normalized size of antiderivative = 0.69
method | result | size |
pseudoelliptic | \(\frac {\left (12 x^{2}+3\right ) \left (2 x^{3}+x \right )^{\frac {1}{3}}-2 \left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (2 \textit {\_Z}^{6}-9 \textit {\_Z}^{3}+11\right )}{\sum }\frac {\left (\textit {\_R}^{3}+11\right ) \ln \left (\frac {-\textit {\_R} x +\left (2 x^{3}+x \right )^{\frac {1}{3}}}{x}\right )}{\textit {\_R}^{2} \left (4 \textit {\_R}^{3}-9\right )}\right ) x^{3}}{16 x^{3}}\) | \(82\) |
trager | \(\text {Expression too large to display}\) | \(12391\) |
risch | \(\text {Expression too large to display}\) | \(13838\) |
[In]
[Out]
Exception generated. \[ \int \frac {\sqrt [3]{x+2 x^3} \left (-1+x^4\right )}{x^4 \left (2-x^2+x^4\right )} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt [3]{x+2 x^3} \left (-1+x^4\right )}{x^4 \left (2-x^2+x^4\right )} \, dx=\text {Timed out} \]
[In]
[Out]
Not integrable
Time = 0.28 (sec) , antiderivative size = 32, normalized size of antiderivative = 0.27 \[ \int \frac {\sqrt [3]{x+2 x^3} \left (-1+x^4\right )}{x^4 \left (2-x^2+x^4\right )} \, dx=\int { \frac {{\left (x^{4} - 1\right )} {\left (2 \, x^{3} + x\right )}^{\frac {1}{3}}}{{\left (x^{4} - x^{2} + 2\right )} x^{4}} \,d x } \]
[In]
[Out]
Exception generated. \[ \int \frac {\sqrt [3]{x+2 x^3} \left (-1+x^4\right )}{x^4 \left (2-x^2+x^4\right )} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Not integrable
Time = 5.69 (sec) , antiderivative size = 32, normalized size of antiderivative = 0.27 \[ \int \frac {\sqrt [3]{x+2 x^3} \left (-1+x^4\right )}{x^4 \left (2-x^2+x^4\right )} \, dx=\int \frac {{\left (2\,x^3+x\right )}^{1/3}\,\left (x^4-1\right )}{x^4\,\left (x^4-x^2+2\right )} \,d x \]
[In]
[Out]