Integrand size = 30, antiderivative size = 131 \[ \int \frac {\left (-2+x^6\right ) \sqrt [3]{2+x^6}}{x^2 \left (2+2 x^3+x^6\right )} \, dx=\frac {\sqrt [3]{2+x^6}}{x}+\frac {\sqrt [3]{2} \arctan \left (\frac {\sqrt {3} x}{-x+2^{2/3} \sqrt [3]{2+x^6}}\right )}{\sqrt {3}}-\frac {1}{3} \sqrt [3]{2} \log \left (2 x+2^{2/3} \sqrt [3]{2+x^6}\right )+\frac {\log \left (-2 x^2+2^{2/3} x \sqrt [3]{2+x^6}-\sqrt [3]{2} \left (2+x^6\right )^{2/3}\right )}{3\ 2^{2/3}} \]
[Out]
Result contains higher order function than in optimal. Order 6 vs. order 3 in optimal.
Time = 0.74 (sec) , antiderivative size = 195, normalized size of antiderivative = 1.49, number of steps used = 29, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {6860, 371, 1576, 476, 440, 524} \[ \int \frac {\left (-2+x^6\right ) \sqrt [3]{2+x^6}}{x^2 \left (2+2 x^3+x^6\right )} \, dx=\frac {i x^5 \operatorname {AppellF1}\left (\frac {5}{6},1,-\frac {1}{3},\frac {11}{6},-\frac {i x^6}{2},-\frac {x^6}{2}\right )}{5\ 2^{2/3}}-\frac {i x^5 \operatorname {AppellF1}\left (\frac {5}{6},1,-\frac {1}{3},\frac {11}{6},\frac {i x^6}{2},-\frac {x^6}{2}\right )}{5\ 2^{2/3}}+\frac {\left (\frac {1}{2}-\frac {i}{2}\right ) x^2 \operatorname {AppellF1}\left (\frac {1}{3},1,-\frac {1}{3},\frac {4}{3},-\frac {i x^6}{2},-\frac {x^6}{2}\right )}{2^{2/3}}+\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) x^2 \operatorname {AppellF1}\left (\frac {1}{3},1,-\frac {1}{3},\frac {4}{3},\frac {i x^6}{2},-\frac {x^6}{2}\right )}{2^{2/3}}+\frac {\sqrt [3]{2} \operatorname {Hypergeometric2F1}\left (-\frac {1}{3},-\frac {1}{6},\frac {5}{6},-\frac {x^6}{2}\right )}{x} \]
[In]
[Out]
Rule 371
Rule 440
Rule 476
Rule 524
Rule 1576
Rule 6860
Rubi steps \begin{align*} \text {integral}& = \int \left (-\frac {\sqrt [3]{2+x^6}}{x^2}+\frac {2 x \left (1+x^3\right ) \sqrt [3]{2+x^6}}{2+2 x^3+x^6}\right ) \, dx \\ & = 2 \int \frac {x \left (1+x^3\right ) \sqrt [3]{2+x^6}}{2+2 x^3+x^6} \, dx-\int \frac {\sqrt [3]{2+x^6}}{x^2} \, dx \\ & = \frac {\sqrt [3]{2} \operatorname {Hypergeometric2F1}\left (-\frac {1}{3},-\frac {1}{6},\frac {5}{6},-\frac {x^6}{2}\right )}{x}+2 \int \left (\frac {x \sqrt [3]{2+x^6}}{2+2 x^3+x^6}+\frac {x^4 \sqrt [3]{2+x^6}}{2+2 x^3+x^6}\right ) \, dx \\ & = \frac {\sqrt [3]{2} \operatorname {Hypergeometric2F1}\left (-\frac {1}{3},-\frac {1}{6},\frac {5}{6},-\frac {x^6}{2}\right )}{x}+2 \int \frac {x \sqrt [3]{2+x^6}}{2+2 x^3+x^6} \, dx+2 \int \frac {x^4 \sqrt [3]{2+x^6}}{2+2 x^3+x^6} \, dx \\ & = \frac {\sqrt [3]{2} \operatorname {Hypergeometric2F1}\left (-\frac {1}{3},-\frac {1}{6},\frac {5}{6},-\frac {x^6}{2}\right )}{x}+2 \int \left (\frac {i x \sqrt [3]{2+x^6}}{(-2+2 i)-2 x^3}+\frac {i x \sqrt [3]{2+x^6}}{(2+2 i)+2 x^3}\right ) \, dx+2 \int \left (-\frac {(1+i) x \sqrt [3]{2+x^6}}{(-2+2 i)-2 x^3}+\frac {(1-i) x \sqrt [3]{2+x^6}}{(2+2 i)+2 x^3}\right ) \, dx \\ & = \frac {\sqrt [3]{2} \operatorname {Hypergeometric2F1}\left (-\frac {1}{3},-\frac {1}{6},\frac {5}{6},-\frac {x^6}{2}\right )}{x}+(-2-2 i) \int \frac {x \sqrt [3]{2+x^6}}{(-2+2 i)-2 x^3} \, dx+2 i \int \frac {x \sqrt [3]{2+x^6}}{(-2+2 i)-2 x^3} \, dx+2 i \int \frac {x \sqrt [3]{2+x^6}}{(2+2 i)+2 x^3} \, dx+(2-2 i) \int \frac {x \sqrt [3]{2+x^6}}{(2+2 i)+2 x^3} \, dx \\ & = \frac {\sqrt [3]{2} \operatorname {Hypergeometric2F1}\left (-\frac {1}{3},-\frac {1}{6},\frac {5}{6},-\frac {x^6}{2}\right )}{x}+(-2-2 i) \int \left (\frac {\left (\frac {1}{2}-\frac {i}{2}\right ) x \sqrt [3]{2+x^6}}{2 i+x^6}-\frac {x^4 \sqrt [3]{2+x^6}}{2 \left (2 i+x^6\right )}\right ) \, dx+2 i \int \left (-\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) x \sqrt [3]{2+x^6}}{-2 i+x^6}+\frac {x^4 \sqrt [3]{2+x^6}}{2 \left (-2 i+x^6\right )}\right ) \, dx+2 i \int \left (\frac {\left (\frac {1}{2}-\frac {i}{2}\right ) x \sqrt [3]{2+x^6}}{2 i+x^6}-\frac {x^4 \sqrt [3]{2+x^6}}{2 \left (2 i+x^6\right )}\right ) \, dx+(2-2 i) \int \left (-\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) x \sqrt [3]{2+x^6}}{-2 i+x^6}+\frac {x^4 \sqrt [3]{2+x^6}}{2 \left (-2 i+x^6\right )}\right ) \, dx \\ & = \frac {\sqrt [3]{2} \operatorname {Hypergeometric2F1}\left (-\frac {1}{3},-\frac {1}{6},\frac {5}{6},-\frac {x^6}{2}\right )}{x}+i \int \frac {x^4 \sqrt [3]{2+x^6}}{-2 i+x^6} \, dx-i \int \frac {x^4 \sqrt [3]{2+x^6}}{2 i+x^6} \, dx+(1-i) \int \frac {x \sqrt [3]{2+x^6}}{-2 i+x^6} \, dx+(1-i) \int \frac {x^4 \sqrt [3]{2+x^6}}{-2 i+x^6} \, dx+(1+i) \int \frac {x \sqrt [3]{2+x^6}}{2 i+x^6} \, dx+(1+i) \int \frac {x^4 \sqrt [3]{2+x^6}}{2 i+x^6} \, dx-2 \int \frac {x \sqrt [3]{2+x^6}}{-2 i+x^6} \, dx-2 \int \frac {x \sqrt [3]{2+x^6}}{2 i+x^6} \, dx \\ & = \frac {i x^5 \operatorname {AppellF1}\left (\frac {5}{6},1,-\frac {1}{3},\frac {11}{6},-\frac {i x^6}{2},-\frac {x^6}{2}\right )}{5\ 2^{2/3}}-\frac {i x^5 \operatorname {AppellF1}\left (\frac {5}{6},1,-\frac {1}{3},\frac {11}{6},\frac {i x^6}{2},-\frac {x^6}{2}\right )}{5\ 2^{2/3}}+\frac {\sqrt [3]{2} \operatorname {Hypergeometric2F1}\left (-\frac {1}{3},-\frac {1}{6},\frac {5}{6},-\frac {x^6}{2}\right )}{x}+\left (\frac {1}{2}-\frac {i}{2}\right ) \text {Subst}\left (\int \frac {\sqrt [3]{2+x^3}}{-2 i+x^3} \, dx,x,x^2\right )+\left (\frac {1}{2}+\frac {i}{2}\right ) \text {Subst}\left (\int \frac {\sqrt [3]{2+x^3}}{2 i+x^3} \, dx,x,x^2\right )-\text {Subst}\left (\int \frac {\sqrt [3]{2+x^3}}{-2 i+x^3} \, dx,x,x^2\right )-\text {Subst}\left (\int \frac {\sqrt [3]{2+x^3}}{2 i+x^3} \, dx,x,x^2\right ) \\ & = \frac {\left (\frac {1}{2}-\frac {i}{2}\right ) x^2 \operatorname {AppellF1}\left (\frac {1}{3},1,-\frac {1}{3},\frac {4}{3},-\frac {i x^6}{2},-\frac {x^6}{2}\right )}{2^{2/3}}+\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) x^2 \operatorname {AppellF1}\left (\frac {1}{3},1,-\frac {1}{3},\frac {4}{3},\frac {i x^6}{2},-\frac {x^6}{2}\right )}{2^{2/3}}+\frac {i x^5 \operatorname {AppellF1}\left (\frac {5}{6},1,-\frac {1}{3},\frac {11}{6},-\frac {i x^6}{2},-\frac {x^6}{2}\right )}{5\ 2^{2/3}}-\frac {i x^5 \operatorname {AppellF1}\left (\frac {5}{6},1,-\frac {1}{3},\frac {11}{6},\frac {i x^6}{2},-\frac {x^6}{2}\right )}{5\ 2^{2/3}}+\frac {\sqrt [3]{2} \operatorname {Hypergeometric2F1}\left (-\frac {1}{3},-\frac {1}{6},\frac {5}{6},-\frac {x^6}{2}\right )}{x} \\ \end{align*}
Time = 1.06 (sec) , antiderivative size = 131, normalized size of antiderivative = 1.00 \[ \int \frac {\left (-2+x^6\right ) \sqrt [3]{2+x^6}}{x^2 \left (2+2 x^3+x^6\right )} \, dx=\frac {\sqrt [3]{2+x^6}}{x}+\frac {\sqrt [3]{2} \arctan \left (\frac {\sqrt {3} x}{-x+2^{2/3} \sqrt [3]{2+x^6}}\right )}{\sqrt {3}}-\frac {1}{3} \sqrt [3]{2} \log \left (2 x+2^{2/3} \sqrt [3]{2+x^6}\right )+\frac {\log \left (-2 x^2+2^{2/3} x \sqrt [3]{2+x^6}-\sqrt [3]{2} \left (2+x^6\right )^{2/3}\right )}{3\ 2^{2/3}} \]
[In]
[Out]
Time = 101.58 (sec) , antiderivative size = 110, normalized size of antiderivative = 0.84
method | result | size |
pseudoelliptic | \(\frac {2 \,2^{\frac {1}{3}} \sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, \left (x -2^{\frac {2}{3}} \left (x^{6}+2\right )^{\frac {1}{3}}\right )}{3 x}\right ) x -2 \,2^{\frac {1}{3}} \ln \left (\frac {2^{\frac {1}{3}} x +\left (x^{6}+2\right )^{\frac {1}{3}}}{x}\right ) x +2^{\frac {1}{3}} \ln \left (\frac {2^{\frac {2}{3}} x^{2}-2^{\frac {1}{3}} \left (x^{6}+2\right )^{\frac {1}{3}} x +\left (x^{6}+2\right )^{\frac {2}{3}}}{x^{2}}\right ) x +6 \left (x^{6}+2\right )^{\frac {1}{3}}}{6 x}\) | \(110\) |
risch | \(\text {Expression too large to display}\) | \(1432\) |
trager | \(\text {Expression too large to display}\) | \(1518\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 334 vs. \(2 (100) = 200\).
Time = 116.63 (sec) , antiderivative size = 334, normalized size of antiderivative = 2.55 \[ \int \frac {\left (-2+x^6\right ) \sqrt [3]{2+x^6}}{x^2 \left (2+2 x^3+x^6\right )} \, dx=\frac {2 \, \sqrt {3} \left (-2\right )^{\frac {1}{3}} x \arctan \left (\frac {6 \, \sqrt {3} \left (-2\right )^{\frac {2}{3}} {\left (x^{14} - 14 \, x^{11} + 8 \, x^{8} - 28 \, x^{5} + 4 \, x^{2}\right )} {\left (x^{6} + 2\right )}^{\frac {1}{3}} + 6 \, \sqrt {3} \left (-2\right )^{\frac {1}{3}} {\left (x^{13} - 2 \, x^{10} - 4 \, x^{7} - 4 \, x^{4} + 4 \, x\right )} {\left (x^{6} + 2\right )}^{\frac {2}{3}} + \sqrt {3} {\left (x^{18} - 30 \, x^{15} + 54 \, x^{12} - 112 \, x^{9} + 108 \, x^{6} - 120 \, x^{3} + 8\right )}}{3 \, {\left (x^{18} + 6 \, x^{15} - 90 \, x^{12} + 32 \, x^{9} - 180 \, x^{6} + 24 \, x^{3} + 8\right )}}\right ) + 2 \, \left (-2\right )^{\frac {1}{3}} x \log \left (\frac {6 \, \left (-2\right )^{\frac {1}{3}} {\left (x^{6} + 2\right )}^{\frac {1}{3}} x^{2} - \left (-2\right )^{\frac {2}{3}} {\left (x^{6} + 2 \, x^{3} + 2\right )} - 6 \, {\left (x^{6} + 2\right )}^{\frac {2}{3}} x}{x^{6} + 2 \, x^{3} + 2}\right ) - \left (-2\right )^{\frac {1}{3}} x \log \left (-\frac {3 \, \left (-2\right )^{\frac {2}{3}} {\left (x^{7} - 4 \, x^{4} + 2 \, x\right )} {\left (x^{6} + 2\right )}^{\frac {2}{3}} + \left (-2\right )^{\frac {1}{3}} {\left (x^{12} - 14 \, x^{9} + 8 \, x^{6} - 28 \, x^{3} + 4\right )} - 12 \, {\left (x^{8} - x^{5} + 2 \, x^{2}\right )} {\left (x^{6} + 2\right )}^{\frac {1}{3}}}{x^{12} + 4 \, x^{9} + 8 \, x^{6} + 8 \, x^{3} + 4}\right ) + 18 \, {\left (x^{6} + 2\right )}^{\frac {1}{3}}}{18 \, x} \]
[In]
[Out]
\[ \int \frac {\left (-2+x^6\right ) \sqrt [3]{2+x^6}}{x^2 \left (2+2 x^3+x^6\right )} \, dx=\int \frac {\left (x^{6} - 2\right ) \sqrt [3]{x^{6} + 2}}{x^{2} \left (x^{6} + 2 x^{3} + 2\right )}\, dx \]
[In]
[Out]
\[ \int \frac {\left (-2+x^6\right ) \sqrt [3]{2+x^6}}{x^2 \left (2+2 x^3+x^6\right )} \, dx=\int { \frac {{\left (x^{6} + 2\right )}^{\frac {1}{3}} {\left (x^{6} - 2\right )}}{{\left (x^{6} + 2 \, x^{3} + 2\right )} x^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (-2+x^6\right ) \sqrt [3]{2+x^6}}{x^2 \left (2+2 x^3+x^6\right )} \, dx=\int { \frac {{\left (x^{6} + 2\right )}^{\frac {1}{3}} {\left (x^{6} - 2\right )}}{{\left (x^{6} + 2 \, x^{3} + 2\right )} x^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (-2+x^6\right ) \sqrt [3]{2+x^6}}{x^2 \left (2+2 x^3+x^6\right )} \, dx=\int \frac {\left (x^6-2\right )\,{\left (x^6+2\right )}^{1/3}}{x^2\,\left (x^6+2\,x^3+2\right )} \,d x \]
[In]
[Out]