Integrand size = 22, antiderivative size = 185 \[ \int \frac {\sqrt [3]{-x^2+x^3}}{1+x+x^2} \, dx=-\sqrt {3} \arctan \left (\frac {\sqrt {3} x}{x+2 \sqrt [3]{-x^2+x^3}}\right )-\log \left (-x+\sqrt [3]{-x^2+x^3}\right )+\frac {1}{2} \log \left (x^2+x \sqrt [3]{-x^2+x^3}+\left (-x^2+x^3\right )^{2/3}\right )-\text {RootSum}\left [3-3 \text {$\#$1}^3+\text {$\#$1}^6\&,\frac {-3 \log (x)+3 \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}{-3 \text {$\#$1}^2+2 \text {$\#$1}^5}\&\right ] \]
[Out]
Result contains complex when optimal does not.
Time = 0.39 (sec) , antiderivative size = 701, normalized size of antiderivative = 3.79, number of steps used = 7, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {2081, 919, 61, 6860, 93} \[ \int \frac {\sqrt [3]{-x^2+x^3}}{1+x+x^2} \, dx=-\frac {\sqrt {3} \sqrt [3]{x^3-x^2} \arctan \left (\frac {2 \sqrt [3]{x}}{\sqrt {3} \sqrt [3]{x-1}}+\frac {1}{\sqrt {3}}\right )}{\sqrt [3]{x-1} x^{2/3}}-\frac {2 i \sqrt {3} \sqrt [3]{x^3-x^2} \arctan \left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{x}}{\sqrt {3} \sqrt [3]{\frac {-\sqrt {3}+i}{-\sqrt {3}+3 i}} \sqrt [3]{x-1}}\right )}{\sqrt [3]{\sqrt {3}-i} \left (\sqrt {3}-3 i\right )^{2/3} \sqrt [3]{x-1} x^{2/3}}+\frac {2 i \sqrt {3} \sqrt [3]{x^3-x^2} \arctan \left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{x}}{\sqrt {3} \sqrt [3]{\frac {\sqrt {3}+i}{\sqrt {3}+3 i}} \sqrt [3]{x-1}}\right )}{\sqrt [3]{\sqrt {3}+i} \left (\sqrt {3}+3 i\right )^{2/3} \sqrt [3]{x-1} x^{2/3}}-\frac {3 i \sqrt [3]{x^3-x^2} \log \left (-\sqrt [3]{x-1}+\frac {\sqrt [3]{x}}{\sqrt [3]{\frac {-\sqrt {3}+i}{-\sqrt {3}+3 i}}}\right )}{\sqrt [3]{\sqrt {3}-i} \left (\sqrt {3}-3 i\right )^{2/3} \sqrt [3]{x-1} x^{2/3}}+\frac {3 i \sqrt [3]{x^3-x^2} \log \left (-\sqrt [3]{x-1}+\frac {\sqrt [3]{x}}{\sqrt [3]{\frac {\sqrt {3}+i}{\sqrt {3}+3 i}}}\right )}{\sqrt [3]{\sqrt {3}+i} \left (\sqrt {3}+3 i\right )^{2/3} \sqrt [3]{x-1} x^{2/3}}-\frac {3 \sqrt [3]{x^3-x^2} \log \left (\frac {\sqrt [3]{x}}{\sqrt [3]{x-1}}-1\right )}{2 \sqrt [3]{x-1} x^{2/3}}-\frac {\sqrt [3]{x^3-x^2} \log (x-1)}{2 \sqrt [3]{x-1} x^{2/3}}-\frac {i \sqrt [3]{x^3-x^2} \log \left (2 x-i \sqrt {3}+1\right )}{\sqrt [3]{\sqrt {3}+i} \left (\sqrt {3}+3 i\right )^{2/3} \sqrt [3]{x-1} x^{2/3}}+\frac {i \sqrt [3]{x^3-x^2} \log \left (2 x+i \sqrt {3}+1\right )}{\sqrt [3]{\sqrt {3}-i} \left (\sqrt {3}-3 i\right )^{2/3} \sqrt [3]{x-1} x^{2/3}} \]
[In]
[Out]
Rule 61
Rule 93
Rule 919
Rule 2081
Rule 6860
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt [3]{-x^2+x^3} \int \frac {\sqrt [3]{-1+x} x^{2/3}}{1+x+x^2} \, dx}{\sqrt [3]{-1+x} x^{2/3}} \\ & = \frac {\sqrt [3]{-x^2+x^3} \int \frac {1}{(-1+x)^{2/3} \sqrt [3]{x}} \, dx}{\sqrt [3]{-1+x} x^{2/3}}+\frac {\sqrt [3]{-x^2+x^3} \int \frac {-1-2 x}{(-1+x)^{2/3} \sqrt [3]{x} \left (1+x+x^2\right )} \, dx}{\sqrt [3]{-1+x} x^{2/3}} \\ & = -\frac {\sqrt {3} \sqrt [3]{-x^2+x^3} \arctan \left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{x}}{\sqrt {3} \sqrt [3]{-1+x}}\right )}{\sqrt [3]{-1+x} x^{2/3}}-\frac {3 \sqrt [3]{-x^2+x^3} \log \left (-1+\frac {\sqrt [3]{x}}{\sqrt [3]{-1+x}}\right )}{2 \sqrt [3]{-1+x} x^{2/3}}-\frac {\sqrt [3]{-x^2+x^3} \log (-1+x)}{2 \sqrt [3]{-1+x} x^{2/3}}+\frac {\sqrt [3]{-x^2+x^3} \int \left (-\frac {2}{(-1+x)^{2/3} \sqrt [3]{x} \left (1-i \sqrt {3}+2 x\right )}-\frac {2}{(-1+x)^{2/3} \sqrt [3]{x} \left (1+i \sqrt {3}+2 x\right )}\right ) \, dx}{\sqrt [3]{-1+x} x^{2/3}} \\ & = -\frac {\sqrt {3} \sqrt [3]{-x^2+x^3} \arctan \left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{x}}{\sqrt {3} \sqrt [3]{-1+x}}\right )}{\sqrt [3]{-1+x} x^{2/3}}-\frac {3 \sqrt [3]{-x^2+x^3} \log \left (-1+\frac {\sqrt [3]{x}}{\sqrt [3]{-1+x}}\right )}{2 \sqrt [3]{-1+x} x^{2/3}}-\frac {\sqrt [3]{-x^2+x^3} \log (-1+x)}{2 \sqrt [3]{-1+x} x^{2/3}}-\frac {\left (2 \sqrt [3]{-x^2+x^3}\right ) \int \frac {1}{(-1+x)^{2/3} \sqrt [3]{x} \left (1-i \sqrt {3}+2 x\right )} \, dx}{\sqrt [3]{-1+x} x^{2/3}}-\frac {\left (2 \sqrt [3]{-x^2+x^3}\right ) \int \frac {1}{(-1+x)^{2/3} \sqrt [3]{x} \left (1+i \sqrt {3}+2 x\right )} \, dx}{\sqrt [3]{-1+x} x^{2/3}} \\ & = -\frac {\sqrt {3} \sqrt [3]{-x^2+x^3} \arctan \left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{x}}{\sqrt {3} \sqrt [3]{-1+x}}\right )}{\sqrt [3]{-1+x} x^{2/3}}-\frac {2 i \sqrt {3} \sqrt [3]{-x^2+x^3} \arctan \left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{x}}{\sqrt {3} \sqrt [3]{\frac {i-\sqrt {3}}{3 i-\sqrt {3}}} \sqrt [3]{-1+x}}\right )}{\sqrt [3]{-i+\sqrt {3}} \left (-3 i+\sqrt {3}\right )^{2/3} \sqrt [3]{-1+x} x^{2/3}}+\frac {2 i \sqrt {3} \sqrt [3]{-x^2+x^3} \arctan \left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{x}}{\sqrt {3} \sqrt [3]{\frac {i+\sqrt {3}}{3 i+\sqrt {3}}} \sqrt [3]{-1+x}}\right )}{\sqrt [3]{i+\sqrt {3}} \left (3 i+\sqrt {3}\right )^{2/3} \sqrt [3]{-1+x} x^{2/3}}-\frac {3 i \sqrt [3]{-x^2+x^3} \log \left (-\sqrt [3]{-1+x}+\frac {\sqrt [3]{x}}{\sqrt [3]{\frac {i-\sqrt {3}}{3 i-\sqrt {3}}}}\right )}{\sqrt [3]{-i+\sqrt {3}} \left (-3 i+\sqrt {3}\right )^{2/3} \sqrt [3]{-1+x} x^{2/3}}+\frac {3 i \sqrt [3]{-x^2+x^3} \log \left (-\sqrt [3]{-1+x}+\frac {\sqrt [3]{x}}{\sqrt [3]{\frac {i+\sqrt {3}}{3 i+\sqrt {3}}}}\right )}{\sqrt [3]{i+\sqrt {3}} \left (3 i+\sqrt {3}\right )^{2/3} \sqrt [3]{-1+x} x^{2/3}}-\frac {3 \sqrt [3]{-x^2+x^3} \log \left (-1+\frac {\sqrt [3]{x}}{\sqrt [3]{-1+x}}\right )}{2 \sqrt [3]{-1+x} x^{2/3}}-\frac {\sqrt [3]{-x^2+x^3} \log (-1+x)}{2 \sqrt [3]{-1+x} x^{2/3}}-\frac {i \sqrt [3]{-x^2+x^3} \log \left (1-i \sqrt {3}+2 x\right )}{\sqrt [3]{i+\sqrt {3}} \left (3 i+\sqrt {3}\right )^{2/3} \sqrt [3]{-1+x} x^{2/3}}+\frac {i \sqrt [3]{-x^2+x^3} \log \left (1+i \sqrt {3}+2 x\right )}{\sqrt [3]{-i+\sqrt {3}} \left (-3 i+\sqrt {3}\right )^{2/3} \sqrt [3]{-1+x} x^{2/3}} \\ \end{align*}
Time = 0.00 (sec) , antiderivative size = 200, normalized size of antiderivative = 1.08 \[ \int \frac {\sqrt [3]{-x^2+x^3}}{1+x+x^2} \, dx=-\frac {(-1+x)^{2/3} x^{4/3} \left (6 \sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [3]{x}}{2 \sqrt [3]{-1+x}+\sqrt [3]{x}}\right )+6 \log \left (\sqrt [3]{-1+x}-\sqrt [3]{x}\right )-3 \log \left ((-1+x)^{2/3}+\sqrt [3]{-1+x} \sqrt [3]{x}+x^{2/3}\right )+2 \text {RootSum}\left [3-3 \text {$\#$1}^3+\text {$\#$1}^6\&,\frac {-3 \log (x)+9 \log \left (\sqrt [3]{-1+x}-\sqrt [3]{x} \text {$\#$1}\right )+\log (x) \text {$\#$1}^3-3 \log \left (\sqrt [3]{-1+x}-\sqrt [3]{x} \text {$\#$1}\right ) \text {$\#$1}^3}{-3 \text {$\#$1}^2+2 \text {$\#$1}^5}\&\right ]\right )}{6 \left ((-1+x) x^2\right )^{2/3}} \]
[In]
[Out]
Time = 5.68 (sec) , antiderivative size = 130, normalized size of antiderivative = 0.70
method | result | size |
pseudoelliptic | \(\frac {\ln \left (\frac {\left (\left (-1+x \right ) x^{2}\right )^{\frac {2}{3}}+\left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}} x +x^{2}}{x^{2}}\right )}{2}+\sqrt {3}\, \arctan \left (\frac {\left (2 \left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}+x \right ) \sqrt {3}}{3 x}\right )+\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (\textit {\_Z}^{6}-3 \textit {\_Z}^{3}+3\right )}{\sum }\frac {\left (\textit {\_R}^{3}-3\right ) \ln \left (\frac {-\textit {\_R} x +\left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}}{x}\right )}{\textit {\_R}^{2} \left (2 \textit {\_R}^{3}-3\right )}\right )-\ln \left (\frac {\left (\left (-1+x \right ) x^{2}\right )^{\frac {1}{3}}-x}{x}\right )\) | \(130\) |
trager | \(\text {Expression too large to display}\) | \(2273\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 3 vs. order 1.
Time = 0.28 (sec) , antiderivative size = 503, normalized size of antiderivative = 2.72 \[ \int \frac {\sqrt [3]{-x^2+x^3}}{1+x+x^2} \, dx=\frac {1}{12} \cdot 6^{\frac {2}{3}} {\left (i \, \sqrt {3} - 1\right )}^{\frac {1}{3}} {\left (\sqrt {-3} - 1\right )} \log \left (\frac {6^{\frac {2}{3}} {\left (\sqrt {3} {\left (i \, \sqrt {-3} x - i \, x\right )} - 3 \, \sqrt {-3} x + 3 \, x\right )} {\left (i \, \sqrt {3} - 1\right )}^{\frac {1}{3}} + 24 \, {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) - \frac {1}{12} \cdot 6^{\frac {2}{3}} {\left (i \, \sqrt {3} - 1\right )}^{\frac {1}{3}} {\left (\sqrt {-3} + 1\right )} \log \left (\frac {6^{\frac {2}{3}} {\left (\sqrt {3} {\left (-i \, \sqrt {-3} x - i \, x\right )} + 3 \, \sqrt {-3} x + 3 \, x\right )} {\left (i \, \sqrt {3} - 1\right )}^{\frac {1}{3}} + 24 \, {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) - \frac {1}{12} \cdot 6^{\frac {2}{3}} {\left (-i \, \sqrt {3} - 1\right )}^{\frac {1}{3}} {\left (\sqrt {-3} + 1\right )} \log \left (\frac {6^{\frac {2}{3}} {\left (\sqrt {3} {\left (i \, \sqrt {-3} x + i \, x\right )} + 3 \, \sqrt {-3} x + 3 \, x\right )} {\left (-i \, \sqrt {3} - 1\right )}^{\frac {1}{3}} + 24 \, {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) + \frac {1}{12} \cdot 6^{\frac {2}{3}} {\left (-i \, \sqrt {3} - 1\right )}^{\frac {1}{3}} {\left (\sqrt {-3} - 1\right )} \log \left (\frac {6^{\frac {2}{3}} {\left (\sqrt {3} {\left (-i \, \sqrt {-3} x + i \, x\right )} - 3 \, \sqrt {-3} x + 3 \, x\right )} {\left (-i \, \sqrt {3} - 1\right )}^{\frac {1}{3}} + 24 \, {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) + \frac {1}{6} \cdot 6^{\frac {2}{3}} {\left (i \, \sqrt {3} - 1\right )}^{\frac {1}{3}} \log \left (\frac {6^{\frac {2}{3}} {\left (i \, \sqrt {3} x - 3 \, x\right )} {\left (i \, \sqrt {3} - 1\right )}^{\frac {1}{3}} + 12 \, {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) + \frac {1}{6} \cdot 6^{\frac {2}{3}} {\left (-i \, \sqrt {3} - 1\right )}^{\frac {1}{3}} \log \left (\frac {6^{\frac {2}{3}} {\left (-i \, \sqrt {3} x - 3 \, x\right )} {\left (-i \, \sqrt {3} - 1\right )}^{\frac {1}{3}} + 12 \, {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) + \sqrt {3} \arctan \left (\frac {\sqrt {3} x + 2 \, \sqrt {3} {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{3 \, x}\right ) - \log \left (-\frac {x - {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x}\right ) + \frac {1}{2} \, \log \left (\frac {x^{2} + {\left (x^{3} - x^{2}\right )}^{\frac {1}{3}} x + {\left (x^{3} - x^{2}\right )}^{\frac {2}{3}}}{x^{2}}\right ) \]
[In]
[Out]
Not integrable
Time = 0.41 (sec) , antiderivative size = 17, normalized size of antiderivative = 0.09 \[ \int \frac {\sqrt [3]{-x^2+x^3}}{1+x+x^2} \, dx=\int \frac {\sqrt [3]{x^{2} \left (x - 1\right )}}{x^{2} + x + 1}\, dx \]
[In]
[Out]
Not integrable
Time = 0.21 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.12 \[ \int \frac {\sqrt [3]{-x^2+x^3}}{1+x+x^2} \, dx=\int { \frac {{\left (x^{3} - x^{2}\right )}^{\frac {1}{3}}}{x^{2} + x + 1} \,d x } \]
[In]
[Out]
Exception generated. \[ \int \frac {\sqrt [3]{-x^2+x^3}}{1+x+x^2} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Not integrable
Time = 0.00 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.12 \[ \int \frac {\sqrt [3]{-x^2+x^3}}{1+x+x^2} \, dx=\int \frac {{\left (x^3-x^2\right )}^{1/3}}{x^2+x+1} \,d x \]
[In]
[Out]