Integrand size = 20, antiderivative size = 233 \[ \int \frac {x}{\sqrt [3]{1-x^3} \left (1+x^3\right )} \, dx=\frac {\arctan \left (\frac {1-\frac {2 \sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{\sqrt [3]{2} \sqrt {3}}+\frac {\arctan \left (\frac {1+\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{2 \sqrt [3]{2} \sqrt {3}}+\frac {\log \left ((1-x) (1+x)^2\right )}{12 \sqrt [3]{2}}+\frac {\log \left (1+\frac {2^{2/3} (1-x)^2}{\left (1-x^3\right )^{2/3}}-\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}\right )}{6 \sqrt [3]{2}}-\frac {\log \left (1+\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}\right )}{3 \sqrt [3]{2}}-\frac {\log \left (-1+x+2^{2/3} \sqrt [3]{1-x^3}\right )}{4 \sqrt [3]{2}} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 233, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {502, 2174, 206, 31, 648, 631, 210, 642} \[ \int \frac {x}{\sqrt [3]{1-x^3} \left (1+x^3\right )} \, dx=\frac {\arctan \left (\frac {1-\frac {2 \sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{\sqrt [3]{2} \sqrt {3}}+\frac {\arctan \left (\frac {\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}+1}{\sqrt {3}}\right )}{2 \sqrt [3]{2} \sqrt {3}}+\frac {\log \left (\frac {2^{2/3} (1-x)^2}{\left (1-x^3\right )^{2/3}}-\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}+1\right )}{6 \sqrt [3]{2}}-\frac {\log \left (\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}+1\right )}{3 \sqrt [3]{2}}-\frac {\log \left (2^{2/3} \sqrt [3]{1-x^3}+x-1\right )}{4 \sqrt [3]{2}}+\frac {\log \left ((1-x) (x+1)^2\right )}{12 \sqrt [3]{2}} \]
[In]
[Out]
Rule 31
Rule 206
Rule 210
Rule 502
Rule 631
Rule 642
Rule 648
Rule 2174
Rubi steps \begin{align*} \text {integral}& = -\left (\frac {1}{3} \int \frac {1}{(1+x) \sqrt [3]{1-x^3}} \, dx\right )-\text {Subst}\left (\int \frac {1}{1+2 x^3} \, dx,x,\frac {1-x}{\sqrt [3]{1-x^3}}\right ) \\ & = \frac {\arctan \left (\frac {1+\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{2 \sqrt [3]{2} \sqrt {3}}+\frac {\log \left ((1-x) (1+x)^2\right )}{12 \sqrt [3]{2}}-\frac {\log \left (-1+x+2^{2/3} \sqrt [3]{1-x^3}\right )}{4 \sqrt [3]{2}}-\frac {1}{3} \text {Subst}\left (\int \frac {1}{1+\sqrt [3]{2} x} \, dx,x,\frac {1-x}{\sqrt [3]{1-x^3}}\right )-\frac {1}{3} \text {Subst}\left (\int \frac {2-\sqrt [3]{2} x}{1-\sqrt [3]{2} x+2^{2/3} x^2} \, dx,x,\frac {1-x}{\sqrt [3]{1-x^3}}\right ) \\ & = \frac {\arctan \left (\frac {1+\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{2 \sqrt [3]{2} \sqrt {3}}+\frac {\log \left ((1-x) (1+x)^2\right )}{12 \sqrt [3]{2}}-\frac {\log \left (1+\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}\right )}{3 \sqrt [3]{2}}-\frac {\log \left (-1+x+2^{2/3} \sqrt [3]{1-x^3}\right )}{4 \sqrt [3]{2}}-\frac {1}{2} \text {Subst}\left (\int \frac {1}{1-\sqrt [3]{2} x+2^{2/3} x^2} \, dx,x,\frac {1-x}{\sqrt [3]{1-x^3}}\right )+\frac {\text {Subst}\left (\int \frac {-\sqrt [3]{2}+2\ 2^{2/3} x}{1-\sqrt [3]{2} x+2^{2/3} x^2} \, dx,x,\frac {1-x}{\sqrt [3]{1-x^3}}\right )}{6 \sqrt [3]{2}} \\ & = \frac {\arctan \left (\frac {1+\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{2 \sqrt [3]{2} \sqrt {3}}+\frac {\log \left ((1-x) (1+x)^2\right )}{12 \sqrt [3]{2}}+\frac {\log \left (1+\frac {2^{2/3} (1-x)^2}{\left (1-x^3\right )^{2/3}}-\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}\right )}{6 \sqrt [3]{2}}-\frac {\log \left (1+\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}\right )}{3 \sqrt [3]{2}}-\frac {\log \left (-1+x+2^{2/3} \sqrt [3]{1-x^3}\right )}{4 \sqrt [3]{2}}-\frac {\text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1-\frac {2 \sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}\right )}{\sqrt [3]{2}} \\ & = \frac {\arctan \left (\frac {1-\frac {2 \sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{\sqrt [3]{2} \sqrt {3}}+\frac {\arctan \left (\frac {1+\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}}{\sqrt {3}}\right )}{2 \sqrt [3]{2} \sqrt {3}}+\frac {\log \left ((1-x) (1+x)^2\right )}{12 \sqrt [3]{2}}+\frac {\log \left (1+\frac {2^{2/3} (1-x)^2}{\left (1-x^3\right )^{2/3}}-\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}\right )}{6 \sqrt [3]{2}}-\frac {\log \left (1+\frac {\sqrt [3]{2} (1-x)}{\sqrt [3]{1-x^3}}\right )}{3 \sqrt [3]{2}}-\frac {\log \left (-1+x+2^{2/3} \sqrt [3]{1-x^3}\right )}{4 \sqrt [3]{2}} \\ \end{align*}
Time = 0.78 (sec) , antiderivative size = 283, normalized size of antiderivative = 1.21 \[ \int \frac {x}{\sqrt [3]{1-x^3} \left (1+x^3\right )} \, dx=\frac {-2 \sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [3]{1-x^3}}{\sqrt [3]{2}-\sqrt [3]{2} x+\sqrt [3]{1-x^3}}\right )-4 \sqrt {3} \arctan \left (\frac {\sqrt {3} \sqrt [3]{1-x^3}}{-2 \sqrt [3]{2}+2 \sqrt [3]{2} x+\sqrt [3]{1-x^3}}\right )-4 \log \left (-\sqrt [3]{2}+\sqrt [3]{2} x-\sqrt [3]{1-x^3}\right )-2 \log \left (-\sqrt [3]{2}+\sqrt [3]{2} x+2 \sqrt [3]{1-x^3}\right )+2 \log \left (2^{2/3}-2\ 2^{2/3} x+2^{2/3} x^2+(-1+x) \sqrt [3]{2-2 x^3}+\left (1-x^3\right )^{2/3}\right )+\log \left (2^{2/3}-2\ 2^{2/3} x+2^{2/3} x^2-2 (-1+x) \sqrt [3]{2-2 x^3}+4 \left (1-x^3\right )^{2/3}\right )}{12 \sqrt [3]{2}} \]
[In]
[Out]
\[\int \frac {x}{\left (-x^{3}+1\right )^{\frac {1}{3}} \left (x^{3}+1\right )}d x\]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 373 vs. \(2 (171) = 342\).
Time = 1.48 (sec) , antiderivative size = 373, normalized size of antiderivative = 1.60 \[ \int \frac {x}{\sqrt [3]{1-x^3} \left (1+x^3\right )} \, dx=-\frac {1}{36} \, \sqrt {6} 2^{\frac {1}{6}} \left (-1\right )^{\frac {1}{3}} \arctan \left (\frac {2^{\frac {1}{6}} {\left (24 \, \sqrt {6} 2^{\frac {2}{3}} \left (-1\right )^{\frac {2}{3}} {\left (x^{14} - 2 \, x^{11} - 6 \, x^{8} - 2 \, x^{5} + x^{2}\right )} {\left (-x^{3} + 1\right )}^{\frac {2}{3}} + 12 \, \sqrt {6} \left (-1\right )^{\frac {1}{3}} {\left (x^{16} - 33 \, x^{13} + 110 \, x^{10} - 110 \, x^{7} + 33 \, x^{4} - x\right )} {\left (-x^{3} + 1\right )}^{\frac {1}{3}} + \sqrt {6} 2^{\frac {1}{3}} {\left (x^{18} + 42 \, x^{15} - 417 \, x^{12} + 812 \, x^{9} - 417 \, x^{6} + 42 \, x^{3} + 1\right )}\right )}}{6 \, {\left (x^{18} - 102 \, x^{15} + 447 \, x^{12} - 628 \, x^{9} + 447 \, x^{6} - 102 \, x^{3} + 1\right )}}\right ) - \frac {1}{72} \cdot 2^{\frac {2}{3}} \left (-1\right )^{\frac {1}{3}} \log \left (-\frac {12 \cdot 2^{\frac {2}{3}} \left (-1\right )^{\frac {1}{3}} {\left (x^{8} - 4 \, x^{5} + x^{2}\right )} {\left (-x^{3} + 1\right )}^{\frac {2}{3}} - 2^{\frac {1}{3}} \left (-1\right )^{\frac {2}{3}} {\left (x^{12} - 32 \, x^{9} + 78 \, x^{6} - 32 \, x^{3} + 1\right )} - 6 \, {\left (x^{10} - 11 \, x^{7} + 11 \, x^{4} - x\right )} {\left (-x^{3} + 1\right )}^{\frac {1}{3}}}{x^{12} + 4 \, x^{9} + 6 \, x^{6} + 4 \, x^{3} + 1}\right ) + \frac {1}{36} \cdot 2^{\frac {2}{3}} \left (-1\right )^{\frac {1}{3}} \log \left (-\frac {12 \, {\left (-x^{3} + 1\right )}^{\frac {2}{3}} x^{2} - 6 \cdot 2^{\frac {1}{3}} \left (-1\right )^{\frac {2}{3}} {\left (x^{4} - x\right )} {\left (-x^{3} + 1\right )}^{\frac {1}{3}} - 2^{\frac {2}{3}} \left (-1\right )^{\frac {1}{3}} {\left (x^{6} + 2 \, x^{3} + 1\right )}}{x^{6} + 2 \, x^{3} + 1}\right ) \]
[In]
[Out]
\[ \int \frac {x}{\sqrt [3]{1-x^3} \left (1+x^3\right )} \, dx=\int \frac {x}{\sqrt [3]{- \left (x - 1\right ) \left (x^{2} + x + 1\right )} \left (x + 1\right ) \left (x^{2} - x + 1\right )}\, dx \]
[In]
[Out]
\[ \int \frac {x}{\sqrt [3]{1-x^3} \left (1+x^3\right )} \, dx=\int { \frac {x}{{\left (x^{3} + 1\right )} {\left (-x^{3} + 1\right )}^{\frac {1}{3}}} \,d x } \]
[In]
[Out]
\[ \int \frac {x}{\sqrt [3]{1-x^3} \left (1+x^3\right )} \, dx=\int { \frac {x}{{\left (x^{3} + 1\right )} {\left (-x^{3} + 1\right )}^{\frac {1}{3}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x}{\sqrt [3]{1-x^3} \left (1+x^3\right )} \, dx=\int \frac {x}{{\left (1-x^3\right )}^{1/3}\,\left (x^3+1\right )} \,d x \]
[In]
[Out]