Integrand size = 31, antiderivative size = 131 \[ \int \frac {\left (1+x^3\right ) \sqrt {x-x^4}}{2+4 x^3+3 x^6} \, dx=-\frac {2}{9} \arctan \left (\frac {x^2}{\sqrt {x-x^4}}\right )-\frac {1}{18} \sqrt {8+7 i \sqrt {2}} \arctan \left (\frac {\sqrt {2-\frac {i}{\sqrt {2}}} x \sqrt {x-x^4}}{-1+x^3}\right )-\frac {1}{18} \sqrt {8-7 i \sqrt {2}} \arctan \left (\frac {\sqrt {2+\frac {i}{\sqrt {2}}} x \sqrt {x-x^4}}{-1+x^3}\right ) \]
[Out]
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(323\) vs. \(2(131)=262\).
Time = 0.60 (sec) , antiderivative size = 323, normalized size of antiderivative = 2.47, number of steps used = 12, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.226, Rules used = {2081, 6847, 1706, 399, 222, 385, 211} \[ \int \frac {\left (1+x^3\right ) \sqrt {x-x^4}}{2+4 x^3+3 x^6} \, dx=-\frac {\left (2+i \sqrt {2}\right ) \sqrt {x-x^4} \arcsin \left (x^{3/2}\right )}{18 \sqrt {x} \sqrt {1-x^3}}-\frac {\left (2-i \sqrt {2}\right ) \sqrt {x-x^4} \arcsin \left (x^{3/2}\right )}{18 \sqrt {x} \sqrt {1-x^3}}+\frac {\left (\sqrt {2}+i\right ) \sqrt {x-x^4} \arctan \left (\frac {x^{3/2}}{\sqrt {\frac {-\sqrt {2}+2 i}{-\sqrt {2}+5 i}} \sqrt {1-x^3}}\right )}{9 \sqrt {2} \sqrt {\frac {-\sqrt {2}+2 i}{-\sqrt {2}+5 i}} \sqrt {x} \sqrt {1-x^3}}+\frac {\left (7+4 i \sqrt {2}\right ) \sqrt {x-x^4} \arctan \left (\frac {x^{3/2}}{\sqrt {\frac {\sqrt {2}+2 i}{\sqrt {2}+5 i}} \sqrt {1-x^3}}\right )}{9 \sqrt {2} \sqrt {-8+7 i \sqrt {2}} \sqrt {x} \sqrt {1-x^3}} \]
[In]
[Out]
Rule 211
Rule 222
Rule 385
Rule 399
Rule 1706
Rule 2081
Rule 6847
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {x-x^4} \int \frac {\sqrt {x} \sqrt {1-x^3} \left (1+x^3\right )}{2+4 x^3+3 x^6} \, dx}{\sqrt {x} \sqrt {1-x^3}} \\ & = \frac {\left (2 \sqrt {x-x^4}\right ) \text {Subst}\left (\int \frac {\sqrt {1-x^2} \left (1+x^2\right )}{2+4 x^2+3 x^4} \, dx,x,x^{3/2}\right )}{3 \sqrt {x} \sqrt {1-x^3}} \\ & = \frac {\left (2 \sqrt {x-x^4}\right ) \text {Subst}\left (\int \left (\frac {\left (1-\frac {i}{\sqrt {2}}\right ) \sqrt {1-x^2}}{4-2 i \sqrt {2}+6 x^2}+\frac {\left (1+\frac {i}{\sqrt {2}}\right ) \sqrt {1-x^2}}{4+2 i \sqrt {2}+6 x^2}\right ) \, dx,x,x^{3/2}\right )}{3 \sqrt {x} \sqrt {1-x^3}} \\ & = \frac {\left (\left (2-i \sqrt {2}\right ) \sqrt {x-x^4}\right ) \text {Subst}\left (\int \frac {\sqrt {1-x^2}}{4-2 i \sqrt {2}+6 x^2} \, dx,x,x^{3/2}\right )}{3 \sqrt {x} \sqrt {1-x^3}}+\frac {\left (\left (2+i \sqrt {2}\right ) \sqrt {x-x^4}\right ) \text {Subst}\left (\int \frac {\sqrt {1-x^2}}{4+2 i \sqrt {2}+6 x^2} \, dx,x,x^{3/2}\right )}{3 \sqrt {x} \sqrt {1-x^3}} \\ & = -\frac {\left (\left (2-i \sqrt {2}\right ) \sqrt {x-x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,x^{3/2}\right )}{18 \sqrt {x} \sqrt {1-x^3}}-\frac {\left (\left (2-i \sqrt {2}\right ) \left (-5+i \sqrt {2}\right ) \sqrt {x-x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \left (4-2 i \sqrt {2}+6 x^2\right )} \, dx,x,x^{3/2}\right )}{9 \sqrt {x} \sqrt {1-x^3}}-\frac {\left (\left (2+i \sqrt {2}\right ) \sqrt {x-x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,x^{3/2}\right )}{18 \sqrt {x} \sqrt {1-x^3}}+\frac {\left (\left (2+i \sqrt {2}\right ) \left (5+i \sqrt {2}\right ) \sqrt {x-x^4}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \left (4+2 i \sqrt {2}+6 x^2\right )} \, dx,x,x^{3/2}\right )}{9 \sqrt {x} \sqrt {1-x^3}} \\ & = -\frac {\left (2-i \sqrt {2}\right ) \sqrt {x-x^4} \arcsin \left (x^{3/2}\right )}{18 \sqrt {x} \sqrt {1-x^3}}-\frac {\left (2+i \sqrt {2}\right ) \sqrt {x-x^4} \arcsin \left (x^{3/2}\right )}{18 \sqrt {x} \sqrt {1-x^3}}-\frac {\left (\left (2-i \sqrt {2}\right ) \left (-5+i \sqrt {2}\right ) \sqrt {x-x^4}\right ) \text {Subst}\left (\int \frac {1}{4-2 i \sqrt {2}-\left (-10+2 i \sqrt {2}\right ) x^2} \, dx,x,\frac {x^{3/2}}{\sqrt {1-x^3}}\right )}{9 \sqrt {x} \sqrt {1-x^3}}+\frac {\left (\left (2+i \sqrt {2}\right ) \left (5+i \sqrt {2}\right ) \sqrt {x-x^4}\right ) \text {Subst}\left (\int \frac {1}{4+2 i \sqrt {2}-\left (-10-2 i \sqrt {2}\right ) x^2} \, dx,x,\frac {x^{3/2}}{\sqrt {1-x^3}}\right )}{9 \sqrt {x} \sqrt {1-x^3}} \\ & = -\frac {\left (2-i \sqrt {2}\right ) \sqrt {x-x^4} \arcsin \left (x^{3/2}\right )}{18 \sqrt {x} \sqrt {1-x^3}}-\frac {\left (2+i \sqrt {2}\right ) \sqrt {x-x^4} \arcsin \left (x^{3/2}\right )}{18 \sqrt {x} \sqrt {1-x^3}}+\frac {\sqrt {\frac {2 i-\sqrt {2}}{5 i-\sqrt {2}}} \left (5+i \sqrt {2}\right ) \sqrt {x-x^4} \arctan \left (\frac {x^{3/2}}{\sqrt {\frac {2 i-\sqrt {2}}{5 i-\sqrt {2}}} \sqrt {1-x^3}}\right )}{18 \sqrt {x} \sqrt {1-x^3}}+\frac {\left (7+4 i \sqrt {2}\right ) \sqrt {x-x^4} \arctan \left (\frac {x^{3/2}}{\sqrt {\frac {2 i+\sqrt {2}}{5 i+\sqrt {2}}} \sqrt {1-x^3}}\right )}{9 \sqrt {2} \sqrt {-8+7 i \sqrt {2}} \sqrt {x} \sqrt {1-x^3}} \\ \end{align*}
Result contains higher order function than in optimal. Order 9 vs. order 3 in optimal.
Time = 0.33 (sec) , antiderivative size = 270, normalized size of antiderivative = 2.06 \[ \int \frac {\left (1+x^3\right ) \sqrt {x-x^4}}{2+4 x^3+3 x^6} \, dx=\frac {\sqrt {x-x^4} \left (8 \text {arctanh}\left (\frac {1+x^{3/2}}{\sqrt {-1+x^3}}\right )-\text {RootSum}\left [9+4 \text {$\#$1}^2+22 \text {$\#$1}^4+4 \text {$\#$1}^6+9 \text {$\#$1}^8\&,\frac {9 \log \left (-1+x^{3/2}\right )-9 \log \left (\sqrt {-1+x^3}-\text {$\#$1}+x^{3/2} \text {$\#$1}\right )-11 \log \left (-1+x^{3/2}\right ) \text {$\#$1}^2+11 \log \left (\sqrt {-1+x^3}-\text {$\#$1}+x^{3/2} \text {$\#$1}\right ) \text {$\#$1}^2+11 \log \left (-1+x^{3/2}\right ) \text {$\#$1}^4-11 \log \left (\sqrt {-1+x^3}-\text {$\#$1}+x^{3/2} \text {$\#$1}\right ) \text {$\#$1}^4-9 \log \left (-1+x^{3/2}\right ) \text {$\#$1}^6+9 \log \left (\sqrt {-1+x^3}-\text {$\#$1}+x^{3/2} \text {$\#$1}\right ) \text {$\#$1}^6}{\text {$\#$1}+11 \text {$\#$1}^3+3 \text {$\#$1}^5+9 \text {$\#$1}^7}\&\right ]\right )}{18 \sqrt {x} \sqrt {-1+x^3}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(367\) vs. \(2(101)=202\).
Time = 4.40 (sec) , antiderivative size = 368, normalized size of antiderivative = 2.81
method | result | size |
default | \(\frac {\left (-\sqrt {2}-3\right ) \ln \left (\frac {-\sqrt {-x^{4}+x}\, \sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x +3 \sqrt {2}\, x^{3}-2 x^{3}+2}{x^{3}}\right )+6 \arctan \left (\frac {\sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x^{2}-4 \sqrt {-x^{4}+x}}{2 x^{2} \sqrt {4+3 \sqrt {2}}}\right ) \sqrt {2}-6 \arctan \left (\frac {\sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x^{2}+4 \sqrt {-x^{4}+x}}{2 x^{2} \sqrt {4+3 \sqrt {2}}}\right ) \sqrt {2}+\sqrt {2}\, \ln \left (\frac {\sqrt {-x^{4}+x}\, \sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x +3 \sqrt {2}\, x^{3}-2 x^{3}+2}{x^{3}}\right )+8 \arctan \left (\frac {\sqrt {-x^{4}+x}}{x^{2}}\right ) \sqrt {4+3 \sqrt {2}}+10 \arctan \left (\frac {\sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x^{2}-4 \sqrt {-x^{4}+x}}{2 x^{2} \sqrt {4+3 \sqrt {2}}}\right )-10 \arctan \left (\frac {\sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x^{2}+4 \sqrt {-x^{4}+x}}{2 x^{2} \sqrt {4+3 \sqrt {2}}}\right )+3 \ln \left (\frac {\sqrt {-x^{4}+x}\, \sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x +3 \sqrt {2}\, x^{3}-2 x^{3}+2}{x^{3}}\right )}{36 \sqrt {4+3 \sqrt {2}}}\) | \(368\) |
pseudoelliptic | \(\frac {\left (-\sqrt {2}-3\right ) \ln \left (\frac {-\sqrt {-x^{4}+x}\, \sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x +3 \sqrt {2}\, x^{3}-2 x^{3}+2}{x^{3}}\right )+6 \arctan \left (\frac {\sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x^{2}-4 \sqrt {-x^{4}+x}}{2 x^{2} \sqrt {4+3 \sqrt {2}}}\right ) \sqrt {2}-6 \arctan \left (\frac {\sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x^{2}+4 \sqrt {-x^{4}+x}}{2 x^{2} \sqrt {4+3 \sqrt {2}}}\right ) \sqrt {2}+\sqrt {2}\, \ln \left (\frac {\sqrt {-x^{4}+x}\, \sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x +3 \sqrt {2}\, x^{3}-2 x^{3}+2}{x^{3}}\right )+8 \arctan \left (\frac {\sqrt {-x^{4}+x}}{x^{2}}\right ) \sqrt {4+3 \sqrt {2}}+10 \arctan \left (\frac {\sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x^{2}-4 \sqrt {-x^{4}+x}}{2 x^{2} \sqrt {4+3 \sqrt {2}}}\right )-10 \arctan \left (\frac {\sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x^{2}+4 \sqrt {-x^{4}+x}}{2 x^{2} \sqrt {4+3 \sqrt {2}}}\right )+3 \ln \left (\frac {\sqrt {-x^{4}+x}\, \sqrt {2}\, \sqrt {6 \sqrt {2}-8}\, x +3 \sqrt {2}\, x^{3}-2 x^{3}+2}{x^{3}}\right )}{36 \sqrt {4+3 \sqrt {2}}}\) | \(368\) |
elliptic | \(\text {Expression too large to display}\) | \(667\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 431 vs. \(2 (97) = 194\).
Time = 0.48 (sec) , antiderivative size = 431, normalized size of antiderivative = 3.29 \[ \int \frac {\left (1+x^3\right ) \sqrt {x-x^4}}{2+4 x^3+3 x^6} \, dx=-\frac {1}{72} \, \sqrt {7 i \, \sqrt {2} - 8} \log \left (-\frac {2 \, {\left (4160 \, x^{4} + \sqrt {2} {\left (6971 i \, x^{4} + 6034 i \, x\right )} - 1874 \, x\right )} \sqrt {-x^{4} + x} - {\left (683 \, x^{6} + 3684 \, x^{3} - 2 \, \sqrt {2} {\left (2231 i \, x^{6} + 651 i \, x^{3} - 524 i\right )} - 794\right )} \sqrt {7 i \, \sqrt {2} - 8}}{3 \, x^{6} + 4 \, x^{3} + 2}\right ) + \frac {1}{72} \, \sqrt {7 i \, \sqrt {2} - 8} \log \left (-\frac {2 \, {\left (4160 \, x^{4} + \sqrt {2} {\left (6971 i \, x^{4} + 6034 i \, x\right )} - 1874 \, x\right )} \sqrt {-x^{4} + x} + {\left (683 \, x^{6} + 3684 \, x^{3} + 2 \, \sqrt {2} {\left (-2231 i \, x^{6} - 651 i \, x^{3} + 524 i\right )} - 794\right )} \sqrt {7 i \, \sqrt {2} - 8}}{3 \, x^{6} + 4 \, x^{3} + 2}\right ) + \frac {1}{72} \, \sqrt {-7 i \, \sqrt {2} - 8} \log \left (-\frac {2 \, {\left (4160 \, x^{4} + \sqrt {2} {\left (-6971 i \, x^{4} - 6034 i \, x\right )} - 1874 \, x\right )} \sqrt {-x^{4} + x} + {\left (683 \, x^{6} + 3684 \, x^{3} + 2 \, \sqrt {2} {\left (2231 i \, x^{6} + 651 i \, x^{3} - 524 i\right )} - 794\right )} \sqrt {-7 i \, \sqrt {2} - 8}}{3 \, x^{6} + 4 \, x^{3} + 2}\right ) - \frac {1}{72} \, \sqrt {-7 i \, \sqrt {2} - 8} \log \left (-\frac {2 \, {\left (4160 \, x^{4} + \sqrt {2} {\left (-6971 i \, x^{4} - 6034 i \, x\right )} - 1874 \, x\right )} \sqrt {-x^{4} + x} - {\left (683 \, x^{6} + 3684 \, x^{3} - 2 \, \sqrt {2} {\left (-2231 i \, x^{6} - 651 i \, x^{3} + 524 i\right )} - 794\right )} \sqrt {-7 i \, \sqrt {2} - 8}}{3 \, x^{6} + 4 \, x^{3} + 2}\right ) + \frac {1}{9} \, \arctan \left (\frac {2 \, \sqrt {-x^{4} + x} x}{2 \, x^{3} - 1}\right ) \]
[In]
[Out]
Timed out. \[ \int \frac {\left (1+x^3\right ) \sqrt {x-x^4}}{2+4 x^3+3 x^6} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\left (1+x^3\right ) \sqrt {x-x^4}}{2+4 x^3+3 x^6} \, dx=\int { \frac {\sqrt {-x^{4} + x} {\left (x^{3} + 1\right )}}{3 \, x^{6} + 4 \, x^{3} + 2} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 207 vs. \(2 (97) = 194\).
Time = 0.42 (sec) , antiderivative size = 207, normalized size of antiderivative = 1.58 \[ \int \frac {\left (1+x^3\right ) \sqrt {x-x^4}}{2+4 x^3+3 x^6} \, dx=-\frac {1}{36} \, \sqrt {18 \, \sqrt {2} + 16} \arctan \left (\frac {2 \, \left (\frac {9}{2}\right )^{\frac {3}{4}} {\left (\left (\frac {9}{2}\right )^{\frac {1}{4}} {\left (\sqrt {6} - 2 \, \sqrt {3}\right )} + 6 \, \sqrt {\frac {1}{x^{3}} - 1}\right )}}{9 \, {\left (\sqrt {6} + 2 \, \sqrt {3}\right )}}\right ) + \frac {1}{36} \, \sqrt {18 \, \sqrt {2} + 16} \arctan \left (\frac {2 \, \left (\frac {9}{2}\right )^{\frac {3}{4}} {\left (\left (\frac {9}{2}\right )^{\frac {1}{4}} {\left (\sqrt {6} - 2 \, \sqrt {3}\right )} - 6 \, \sqrt {\frac {1}{x^{3}} - 1}\right )}}{9 \, {\left (\sqrt {6} + 2 \, \sqrt {3}\right )}}\right ) - \frac {1}{72} \, \sqrt {18 \, \sqrt {2} - 16} \log \left (\frac {1}{3} \, {\left (\sqrt {6} \left (\frac {9}{2}\right )^{\frac {1}{4}} - 2 \, \left (\frac {9}{2}\right )^{\frac {1}{4}} \sqrt {3}\right )} \sqrt {\frac {1}{x^{3}} - 1} + 3 \, \sqrt {\frac {1}{2}} + \frac {1}{x^{3}} - 1\right ) + \frac {1}{72} \, \sqrt {18 \, \sqrt {2} - 16} \log \left (-\frac {1}{3} \, {\left (\sqrt {6} \left (\frac {9}{2}\right )^{\frac {1}{4}} - 2 \, \left (\frac {9}{2}\right )^{\frac {1}{4}} \sqrt {3}\right )} \sqrt {\frac {1}{x^{3}} - 1} + 3 \, \sqrt {\frac {1}{2}} + \frac {1}{x^{3}} - 1\right ) + \frac {2}{9} \, \arctan \left (\sqrt {\frac {1}{x^{3}} - 1}\right ) \]
[In]
[Out]
Timed out. \[ \int \frac {\left (1+x^3\right ) \sqrt {x-x^4}}{2+4 x^3+3 x^6} \, dx=\int \frac {\sqrt {x-x^4}\,\left (x^3+1\right )}{3\,x^6+4\,x^3+2} \,d x \]
[In]
[Out]