Integrand size = 46, antiderivative size = 107 \[ \int \frac {\left (-1-2 x+x^2\right ) \left (-1+2 x+x^2\right )}{\left (1-x+2 x^2+x^3+x^4\right ) \sqrt [3]{-x+x^5}} \, dx=\sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [3]{-x+x^5}}{-2-2 x^2+\sqrt [3]{-x+x^5}}\right )+\log \left (1+x^2+\sqrt [3]{-x+x^5}\right )-\frac {1}{2} \log \left (1+2 x^2+x^4+\left (-1-x^2\right ) \sqrt [3]{-x+x^5}+\left (-x+x^5\right )^{2/3}\right ) \]
[Out]
\[ \int \frac {\left (-1-2 x+x^2\right ) \left (-1+2 x+x^2\right )}{\left (1-x+2 x^2+x^3+x^4\right ) \sqrt [3]{-x+x^5}} \, dx=\int \frac {\left (-1-2 x+x^2\right ) \left (-1+2 x+x^2\right )}{\left (1-x+2 x^2+x^3+x^4\right ) \sqrt [3]{-x+x^5}} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \frac {\left (\sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \int \frac {\left (-1-2 x+x^2\right ) \left (-1+2 x+x^2\right )}{\sqrt [3]{x} \sqrt [3]{-1+x^4} \left (1-x+2 x^2+x^3+x^4\right )} \, dx}{\sqrt [3]{-x+x^5}} \\ & = \frac {\left (\sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \int \frac {1-6 x^2+x^4}{\sqrt [3]{x} \sqrt [3]{-1+x^4} \left (1-x+2 x^2+x^3+x^4\right )} \, dx}{\sqrt [3]{-x+x^5}} \\ & = \frac {\left (3 \sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \text {Subst}\left (\int \frac {x \left (1-6 x^6+x^{12}\right )}{\sqrt [3]{-1+x^{12}} \left (1-x^3+2 x^6+x^9+x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{-x+x^5}} \\ & = \frac {\left (3 \sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \text {Subst}\left (\int \left (\frac {x}{\sqrt [3]{-1+x^{12}}}+\frac {x^4 \left (1-8 x^3-x^6\right )}{\sqrt [3]{-1+x^{12}} \left (1-x^3+2 x^6+x^9+x^{12}\right )}\right ) \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{-x+x^5}} \\ & = \frac {\left (3 \sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \text {Subst}\left (\int \frac {x}{\sqrt [3]{-1+x^{12}}} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{-x+x^5}}+\frac {\left (3 \sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \text {Subst}\left (\int \frac {x^4 \left (1-8 x^3-x^6\right )}{\sqrt [3]{-1+x^{12}} \left (1-x^3+2 x^6+x^9+x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{-x+x^5}} \\ & = \frac {\left (3 \sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [3]{-1+x^6}} \, dx,x,x^{2/3}\right )}{2 \sqrt [3]{-x+x^5}}+\frac {\left (3 \sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \text {Subst}\left (\int \left (\frac {x^4}{\sqrt [3]{-1+x^{12}} \left (1-x^3+2 x^6+x^9+x^{12}\right )}-\frac {8 x^7}{\sqrt [3]{-1+x^{12}} \left (1-x^3+2 x^6+x^9+x^{12}\right )}-\frac {x^{10}}{\sqrt [3]{-1+x^{12}} \left (1-x^3+2 x^6+x^9+x^{12}\right )}\right ) \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{-x+x^5}} \\ & = \frac {\left (3 \sqrt [3]{x} \sqrt [3]{1-x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [3]{1-x^6}} \, dx,x,x^{2/3}\right )}{2 \sqrt [3]{-x+x^5}}+\frac {\left (3 \sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \text {Subst}\left (\int \frac {x^4}{\sqrt [3]{-1+x^{12}} \left (1-x^3+2 x^6+x^9+x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{-x+x^5}}-\frac {\left (3 \sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \text {Subst}\left (\int \frac {x^{10}}{\sqrt [3]{-1+x^{12}} \left (1-x^3+2 x^6+x^9+x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{-x+x^5}}-\frac {\left (24 \sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \text {Subst}\left (\int \frac {x^7}{\sqrt [3]{-1+x^{12}} \left (1-x^3+2 x^6+x^9+x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{-x+x^5}} \\ & = \frac {3 x \sqrt [3]{1-x^4} \operatorname {Hypergeometric2F1}\left (\frac {1}{6},\frac {1}{3},\frac {7}{6},x^4\right )}{2 \sqrt [3]{-x+x^5}}+\frac {\left (3 \sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \text {Subst}\left (\int \frac {x^4}{\sqrt [3]{-1+x^{12}} \left (1-x^3+2 x^6+x^9+x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{-x+x^5}}-\frac {\left (3 \sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \text {Subst}\left (\int \frac {x^{10}}{\sqrt [3]{-1+x^{12}} \left (1-x^3+2 x^6+x^9+x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{-x+x^5}}-\frac {\left (24 \sqrt [3]{x} \sqrt [3]{-1+x^4}\right ) \text {Subst}\left (\int \frac {x^7}{\sqrt [3]{-1+x^{12}} \left (1-x^3+2 x^6+x^9+x^{12}\right )} \, dx,x,\sqrt [3]{x}\right )}{\sqrt [3]{-x+x^5}} \\ \end{align*}
\[ \int \frac {\left (-1-2 x+x^2\right ) \left (-1+2 x+x^2\right )}{\left (1-x+2 x^2+x^3+x^4\right ) \sqrt [3]{-x+x^5}} \, dx=\int \frac {\left (-1-2 x+x^2\right ) \left (-1+2 x+x^2\right )}{\left (1-x+2 x^2+x^3+x^4\right ) \sqrt [3]{-x+x^5}} \, dx \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 3.64 (sec) , antiderivative size = 782, normalized size of antiderivative = 7.31
[In]
[Out]
none
Time = 1.23 (sec) , antiderivative size = 154, normalized size of antiderivative = 1.44 \[ \int \frac {\left (-1-2 x+x^2\right ) \left (-1+2 x+x^2\right )}{\left (1-x+2 x^2+x^3+x^4\right ) \sqrt [3]{-x+x^5}} \, dx=-\sqrt {3} \arctan \left (\frac {541310 \, \sqrt {3} {\left (x^{5} - x\right )}^{\frac {1}{3}} {\left (x^{2} + 1\right )} + \sqrt {3} {\left (311575 \, x^{4} + 193471 \, x^{3} + 623150 \, x^{2} - 193471 \, x + 311575\right )} + 777518 \, \sqrt {3} {\left (x^{5} - x\right )}^{\frac {2}{3}}}{3 \, {\left (166375 \, x^{4} - 493039 \, x^{3} + 332750 \, x^{2} + 493039 \, x + 166375\right )}}\right ) + \frac {1}{2} \, \log \left (\frac {x^{4} + x^{3} + 2 \, x^{2} + 3 \, {\left (x^{5} - x\right )}^{\frac {1}{3}} {\left (x^{2} + 1\right )} - x + 3 \, {\left (x^{5} - x\right )}^{\frac {2}{3}} + 1}{x^{4} + x^{3} + 2 \, x^{2} - x + 1}\right ) \]
[In]
[Out]
\[ \int \frac {\left (-1-2 x+x^2\right ) \left (-1+2 x+x^2\right )}{\left (1-x+2 x^2+x^3+x^4\right ) \sqrt [3]{-x+x^5}} \, dx=\int \frac {\left (x^{2} - 2 x - 1\right ) \left (x^{2} + 2 x - 1\right )}{\sqrt [3]{x \left (x - 1\right ) \left (x + 1\right ) \left (x^{2} + 1\right )} \left (x^{4} + x^{3} + 2 x^{2} - x + 1\right )}\, dx \]
[In]
[Out]
\[ \int \frac {\left (-1-2 x+x^2\right ) \left (-1+2 x+x^2\right )}{\left (1-x+2 x^2+x^3+x^4\right ) \sqrt [3]{-x+x^5}} \, dx=\int { \frac {{\left (x^{2} + 2 \, x - 1\right )} {\left (x^{2} - 2 \, x - 1\right )}}{{\left (x^{5} - x\right )}^{\frac {1}{3}} {\left (x^{4} + x^{3} + 2 \, x^{2} - x + 1\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (-1-2 x+x^2\right ) \left (-1+2 x+x^2\right )}{\left (1-x+2 x^2+x^3+x^4\right ) \sqrt [3]{-x+x^5}} \, dx=\int { \frac {{\left (x^{2} + 2 \, x - 1\right )} {\left (x^{2} - 2 \, x - 1\right )}}{{\left (x^{5} - x\right )}^{\frac {1}{3}} {\left (x^{4} + x^{3} + 2 \, x^{2} - x + 1\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (-1-2 x+x^2\right ) \left (-1+2 x+x^2\right )}{\left (1-x+2 x^2+x^3+x^4\right ) \sqrt [3]{-x+x^5}} \, dx=-\int \frac {\left (x^2+2\,x-1\right )\,\left (-x^2+2\,x+1\right )}{{\left (x^5-x\right )}^{1/3}\,\left (x^4+x^3+2\,x^2-x+1\right )} \,d x \]
[In]
[Out]