Integrand size = 21, antiderivative size = 208 \[ \int \frac {1}{\sqrt [3]{-x^2+x^3} \left (-1+x^4\right )} \, dx=-\frac {3 \left (-x^2+x^3\right )^{2/3}}{4 (-1+x) x}-\frac {\sqrt {3} \arctan \left (\frac {\sqrt {3} x}{x+2^{2/3} \sqrt [3]{-x^2+x^3}}\right )}{4 \sqrt [3]{2}}+\frac {\log \left (-2 x+2^{2/3} \sqrt [3]{-x^2+x^3}\right )}{4 \sqrt [3]{2}}-\frac {\log \left (2 x^2+2^{2/3} x \sqrt [3]{-x^2+x^3}+\sqrt [3]{2} \left (-x^2+x^3\right )^{2/3}\right )}{8 \sqrt [3]{2}}+\frac {1}{4} \text {RootSum}\left [2-2 \text {$\#$1}^3+\text {$\#$1}^6\&,\frac {-\log (x)+\log \left (\sqrt [3]{-x^2+x^3}-x \text {$\#$1}\right )}{\text {$\#$1}}\&\right ] \]
[Out]
Result contains complex when optimal does not.
Time = 0.30 (sec) , antiderivative size = 538, normalized size of antiderivative = 2.59, number of steps used = 10, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {2081, 6857, 862, 98, 93, 926} \[ \int \frac {1}{\sqrt [3]{-x^2+x^3} \left (-1+x^4\right )} \, dx=\frac {\sqrt {3} \sqrt [3]{x-1} x^{2/3} \arctan \left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{x-1}}{\sqrt [3]{1-i} \sqrt {3} \sqrt [3]{x}}\right )}{4 \sqrt [3]{1-i} \sqrt [3]{x^3-x^2}}+\frac {\sqrt {3} \sqrt [3]{x-1} x^{2/3} \arctan \left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{x-1}}{\sqrt [3]{1+i} \sqrt {3} \sqrt [3]{x}}\right )}{4 \sqrt [3]{1+i} \sqrt [3]{x^3-x^2}}+\frac {\sqrt {3} \sqrt [3]{x-1} x^{2/3} \arctan \left (\frac {2^{2/3} \sqrt [3]{x-1}}{\sqrt {3} \sqrt [3]{x}}+\frac {1}{\sqrt {3}}\right )}{4 \sqrt [3]{2} \sqrt [3]{x^3-x^2}}-\frac {3 x}{4 \sqrt [3]{x^3-x^2}}+\frac {3 \sqrt [3]{x-1} x^{2/3} \log \left (-\sqrt [3]{x}+\frac {\sqrt [3]{x-1}}{\sqrt [3]{1-i}}\right )}{8 \sqrt [3]{1-i} \sqrt [3]{x^3-x^2}}+\frac {3 \sqrt [3]{x-1} x^{2/3} \log \left (-\sqrt [3]{x}+\frac {\sqrt [3]{x-1}}{\sqrt [3]{1+i}}\right )}{8 \sqrt [3]{1+i} \sqrt [3]{x^3-x^2}}+\frac {3 \sqrt [3]{x-1} x^{2/3} \log \left (\frac {\sqrt [3]{x-1}}{\sqrt [3]{2}}-\sqrt [3]{x}\right )}{8 \sqrt [3]{2} \sqrt [3]{x^3-x^2}}-\frac {\sqrt [3]{x-1} x^{2/3} \log (-x-1)}{8 \sqrt [3]{2} \sqrt [3]{x^3-x^2}}-\frac {\sqrt [3]{x-1} x^{2/3} \log (-x+i)}{8 \sqrt [3]{1+i} \sqrt [3]{x^3-x^2}}-\frac {\sqrt [3]{x-1} x^{2/3} \log (x+i)}{8 \sqrt [3]{1-i} \sqrt [3]{x^3-x^2}} \]
[In]
[Out]
Rule 93
Rule 98
Rule 862
Rule 926
Rule 2081
Rule 6857
Rubi steps \begin{align*} \text {integral}& = \frac {\left (\sqrt [3]{-1+x} x^{2/3}\right ) \int \frac {1}{\sqrt [3]{-1+x} x^{2/3} \left (-1+x^4\right )} \, dx}{\sqrt [3]{-x^2+x^3}} \\ & = \frac {\left (\sqrt [3]{-1+x} x^{2/3}\right ) \int \left (-\frac {1}{2 \sqrt [3]{-1+x} x^{2/3} \left (1-x^2\right )}-\frac {1}{2 \sqrt [3]{-1+x} x^{2/3} \left (1+x^2\right )}\right ) \, dx}{\sqrt [3]{-x^2+x^3}} \\ & = -\frac {\left (\sqrt [3]{-1+x} x^{2/3}\right ) \int \frac {1}{\sqrt [3]{-1+x} x^{2/3} \left (1-x^2\right )} \, dx}{2 \sqrt [3]{-x^2+x^3}}-\frac {\left (\sqrt [3]{-1+x} x^{2/3}\right ) \int \frac {1}{\sqrt [3]{-1+x} x^{2/3} \left (1+x^2\right )} \, dx}{2 \sqrt [3]{-x^2+x^3}} \\ & = -\frac {\left (\sqrt [3]{-1+x} x^{2/3}\right ) \int \frac {1}{(-1-x) (-1+x)^{4/3} x^{2/3}} \, dx}{2 \sqrt [3]{-x^2+x^3}}-\frac {\left (\sqrt [3]{-1+x} x^{2/3}\right ) \int \left (\frac {i}{2 (i-x) \sqrt [3]{-1+x} x^{2/3}}+\frac {i}{2 \sqrt [3]{-1+x} x^{2/3} (i+x)}\right ) \, dx}{2 \sqrt [3]{-x^2+x^3}} \\ & = -\frac {3 x}{4 \sqrt [3]{-x^2+x^3}}-\frac {\left (i \sqrt [3]{-1+x} x^{2/3}\right ) \int \frac {1}{(i-x) \sqrt [3]{-1+x} x^{2/3}} \, dx}{4 \sqrt [3]{-x^2+x^3}}-\frac {\left (i \sqrt [3]{-1+x} x^{2/3}\right ) \int \frac {1}{\sqrt [3]{-1+x} x^{2/3} (i+x)} \, dx}{4 \sqrt [3]{-x^2+x^3}}+\frac {\left (\sqrt [3]{-1+x} x^{2/3}\right ) \int \frac {1}{(-1-x) \sqrt [3]{-1+x} x^{2/3}} \, dx}{4 \sqrt [3]{-x^2+x^3}} \\ & = -\frac {3 x}{4 \sqrt [3]{-x^2+x^3}}+\frac {\sqrt {3} \sqrt [3]{-1+x} x^{2/3} \arctan \left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{-1+x}}{\sqrt [3]{1-i} \sqrt {3} \sqrt [3]{x}}\right )}{4 \sqrt [3]{1-i} \sqrt [3]{-x^2+x^3}}+\frac {\sqrt {3} \sqrt [3]{-1+x} x^{2/3} \arctan \left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{-1+x}}{\sqrt [3]{1+i} \sqrt {3} \sqrt [3]{x}}\right )}{4 \sqrt [3]{1+i} \sqrt [3]{-x^2+x^3}}+\frac {\sqrt {3} \sqrt [3]{-1+x} x^{2/3} \arctan \left (\frac {1}{\sqrt {3}}+\frac {2^{2/3} \sqrt [3]{-1+x}}{\sqrt {3} \sqrt [3]{x}}\right )}{4 \sqrt [3]{2} \sqrt [3]{-x^2+x^3}}+\frac {3 \sqrt [3]{-1+x} x^{2/3} \log \left (\frac {\sqrt [3]{-1+x}}{\sqrt [3]{1-i}}-\sqrt [3]{x}\right )}{8 \sqrt [3]{1-i} \sqrt [3]{-x^2+x^3}}+\frac {3 \sqrt [3]{-1+x} x^{2/3} \log \left (\frac {\sqrt [3]{-1+x}}{\sqrt [3]{1+i}}-\sqrt [3]{x}\right )}{8 \sqrt [3]{1+i} \sqrt [3]{-x^2+x^3}}+\frac {3 \sqrt [3]{-1+x} x^{2/3} \log \left (\frac {\sqrt [3]{-1+x}}{\sqrt [3]{2}}-\sqrt [3]{x}\right )}{8 \sqrt [3]{2} \sqrt [3]{-x^2+x^3}}-\frac {\sqrt [3]{-1+x} x^{2/3} \log (-1-x)}{8 \sqrt [3]{2} \sqrt [3]{-x^2+x^3}}-\frac {\sqrt [3]{-1+x} x^{2/3} \log (i-x)}{8 \sqrt [3]{1+i} \sqrt [3]{-x^2+x^3}}-\frac {\sqrt [3]{-1+x} x^{2/3} \log (i+x)}{8 \sqrt [3]{1-i} \sqrt [3]{-x^2+x^3}} \\ \end{align*}
Time = 0.39 (sec) , antiderivative size = 225, normalized size of antiderivative = 1.08 \[ \int \frac {1}{\sqrt [3]{-x^2+x^3} \left (-1+x^4\right )} \, dx=-\frac {x^{2/3} \left (12 \sqrt [3]{x}+2\ 2^{2/3} \sqrt {3} \sqrt [3]{-1+x} \arctan \left (\frac {\sqrt {3} \sqrt [3]{x}}{2^{2/3} \sqrt [3]{-1+x}+\sqrt [3]{x}}\right )-2\ 2^{2/3} \sqrt [3]{-1+x} \log \left (2^{2/3} \sqrt [3]{-1+x}-2 \sqrt [3]{x}\right )+2^{2/3} \sqrt [3]{-1+x} \log \left (\sqrt [3]{2} (-1+x)^{2/3}+2^{2/3} \sqrt [3]{-1+x} \sqrt [3]{x}+2 x^{2/3}\right )-4 \sqrt [3]{-1+x} \text {RootSum}\left [2-2 \text {$\#$1}^3+\text {$\#$1}^6\&,\frac {-\log \left (\sqrt [3]{x}\right )+\log \left (\sqrt [3]{-1+x}-\sqrt [3]{x} \text {$\#$1}\right )}{\text {$\#$1}}\&\right ]\right )}{16 \sqrt [3]{(-1+x) x^2}} \]
[In]
[Out]
Time = 55.42 (sec) , antiderivative size = 189, normalized size of antiderivative = 0.91
method | result | size |
pseudoelliptic | \(-\frac {-2 \sqrt {3}\, 2^{\frac {2}{3}} \arctan \left (\frac {\sqrt {3}\, \left (2^{\frac {2}{3}} \left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}+x \right )}{3 x}\right ) \left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}-2 \,2^{\frac {2}{3}} \ln \left (\frac {-2^{\frac {1}{3}} x +\left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}}{x}\right ) \left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}+2^{\frac {2}{3}} \ln \left (\frac {2^{\frac {2}{3}} x^{2}+2^{\frac {1}{3}} \left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}} x +\left (\left (-1+x \right ) x^{2}\right )^{\frac {2}{3}}}{x^{2}}\right ) \left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}-4 \left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (\textit {\_Z}^{6}-2 \textit {\_Z}^{3}+2\right )}{\sum }\frac {\ln \left (\frac {-\textit {\_R} x +\left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}}{x}\right )}{\textit {\_R}}\right ) \left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}+12 x}{16 \left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}}\) | \(189\) |
trager | \(\text {Expression too large to display}\) | \(18221\) |
risch | \(\text {Expression too large to display}\) | \(19795\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 3 vs. order 1.
Time = 0.27 (sec) , antiderivative size = 499, normalized size of antiderivative = 2.40 \[ \int \frac {1}{\sqrt [3]{-x^2+x^3} \left (-1+x^4\right )} \, dx=\frac {2 \, \sqrt {3} 2^{\frac {2}{3}} {\left (x^{2} - x\right )} \arctan \left (\frac {\sqrt {3} 2^{\frac {1}{6}} {\left (2^{\frac {5}{6}} x + 2 \, \sqrt {2} {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}\right )}}{6 \, x}\right ) - 2^{\frac {2}{3}} \left (-i + 1\right )^{\frac {1}{3}} {\left (x^{2} - \sqrt {-3} {\left (x^{2} - x\right )} - x\right )} \log \left (\frac {2^{\frac {1}{3}} \left (-i + 1\right )^{\frac {2}{3}} {\left (\left (i + 1\right ) \, \sqrt {-3} x + \left (i + 1\right ) \, x\right )} + 4 \, {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) - 2^{\frac {2}{3}} \left (i + 1\right )^{\frac {1}{3}} {\left (x^{2} - \sqrt {-3} {\left (x^{2} - x\right )} - x\right )} \log \left (\frac {2^{\frac {1}{3}} \left (i + 1\right )^{\frac {2}{3}} {\left (-\left (i - 1\right ) \, \sqrt {-3} x - \left (i - 1\right ) \, x\right )} + 4 \, {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) - 2^{\frac {2}{3}} \left (i + 1\right )^{\frac {1}{3}} {\left (x^{2} + \sqrt {-3} {\left (x^{2} - x\right )} - x\right )} \log \left (\frac {2^{\frac {1}{3}} \left (i + 1\right )^{\frac {2}{3}} {\left (\left (i - 1\right ) \, \sqrt {-3} x - \left (i - 1\right ) \, x\right )} + 4 \, {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) - 2^{\frac {2}{3}} \left (-i + 1\right )^{\frac {1}{3}} {\left (x^{2} + \sqrt {-3} {\left (x^{2} - x\right )} - x\right )} \log \left (\frac {2^{\frac {1}{3}} \left (-i + 1\right )^{\frac {2}{3}} {\left (-\left (i + 1\right ) \, \sqrt {-3} x + \left (i + 1\right ) \, x\right )} + 4 \, {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) + 2 \cdot 2^{\frac {2}{3}} \left (i + 1\right )^{\frac {1}{3}} {\left (x^{2} - x\right )} \log \left (\frac {\left (i - 1\right ) \cdot 2^{\frac {1}{3}} \left (i + 1\right )^{\frac {2}{3}} x + 2 \, {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) + 2 \cdot 2^{\frac {2}{3}} \left (-i + 1\right )^{\frac {1}{3}} {\left (x^{2} - x\right )} \log \left (\frac {-\left (i + 1\right ) \cdot 2^{\frac {1}{3}} \left (-i + 1\right )^{\frac {2}{3}} x + 2 \, {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) + 2 \cdot 2^{\frac {2}{3}} {\left (x^{2} - x\right )} \log \left (-\frac {2^{\frac {1}{3}} x - {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) - 2^{\frac {2}{3}} {\left (x^{2} - x\right )} \log \left (\frac {2^{\frac {2}{3}} x^{2} + 2^{\frac {1}{3}} {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}} x + {\left (x^{3} - x^{2}\right )}^{\frac {2}{3}}}{x^{2}}\right ) - 12 \, {\left (x^{3} - x^{2}\right )}^{\frac {2}{3}}}{16 \, {\left (x^{2} - x\right )}} \]
[In]
[Out]
Not integrable
Time = 0.69 (sec) , antiderivative size = 24, normalized size of antiderivative = 0.12 \[ \int \frac {1}{\sqrt [3]{-x^2+x^3} \left (-1+x^4\right )} \, dx=\int \frac {1}{\sqrt [3]{x^{2} \left (x - 1\right )} \left (x - 1\right ) \left (x + 1\right ) \left (x^{2} + 1\right )}\, dx \]
[In]
[Out]
Not integrable
Time = 0.31 (sec) , antiderivative size = 21, normalized size of antiderivative = 0.10 \[ \int \frac {1}{\sqrt [3]{-x^2+x^3} \left (-1+x^4\right )} \, dx=\int { \frac {1}{{\left (x^{4} - 1\right )} {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}} \,d x } \]
[In]
[Out]
Not integrable
Time = 0.31 (sec) , antiderivative size = 21, normalized size of antiderivative = 0.10 \[ \int \frac {1}{\sqrt [3]{-x^2+x^3} \left (-1+x^4\right )} \, dx=\int { \frac {1}{{\left (x^{4} - 1\right )} {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}} \,d x } \]
[In]
[Out]
Not integrable
Time = 6.95 (sec) , antiderivative size = 21, normalized size of antiderivative = 0.10 \[ \int \frac {1}{\sqrt [3]{-x^2+x^3} \left (-1+x^4\right )} \, dx=\int \frac {1}{\left (x^4-1\right )\,{\left (x^3-x^2\right )}^{1/3}} \,d x \]
[In]
[Out]