Optimal. Leaf size=423 \[ \frac {\left (-1-x+x^2-3 x^4\right ) \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}}}{x^4}+\sqrt [3]{2} 3^{5/6} \text {ArcTan}\left (\frac {1}{\sqrt {3}}+\frac {2\ 2^{2/3} \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}}}{3^{5/6}}\right )-\frac {5 \text {ArcTan}\left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}}}{\sqrt {3}}\right )}{\sqrt {3}}+\frac {5}{3} \log \left (-1+\sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}}\right )-\sqrt [3]{6} \log \left (-3+6^{2/3} \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}}\right )-\frac {5}{6} \log \left (1+\sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}}+\left (\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}\right )^{2/3}\right )+\frac {\sqrt [3]{3} \log \left (3+6^{2/3} \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}}+2 \sqrt [3]{6} \left (\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}\right )^{2/3}\right )}{2^{2/3}} \]
[Out]
________________________________________________________________________________________
Rubi [F]
time = 7.07, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps
used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {}
\begin {gather*} \int \frac {\left (-4-3 x+2 x^2\right ) \left (1+x-x^2+x^4\right ) \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}}}{x^5 \left (-1-x+x^2+x^4\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {\left (-4-3 x+2 x^2\right ) \left (1+x-x^2+x^4\right ) \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}}}{x^5 \left (-1-x+x^2+x^4\right )} \, dx &=\frac {\left (\sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\left (-4-3 x+2 x^2\right ) \left (1+x-x^2+x^4\right ) \sqrt [3]{1+x-x^2+2 x^4}}{x^5 \left (-1-x+x^2+x^4\right ) \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}\\ &=\frac {\left (\sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \left (-\frac {2 \sqrt [3]{1+x-x^2+2 x^4}}{(-1+x) \sqrt [3]{1+x-x^2+3 x^4}}+\frac {4 \sqrt [3]{1+x-x^2+2 x^4}}{x^5 \sqrt [3]{1+x-x^2+3 x^4}}+\frac {3 \sqrt [3]{1+x-x^2+2 x^4}}{x^4 \sqrt [3]{1+x-x^2+3 x^4}}-\frac {2 \sqrt [3]{1+x-x^2+2 x^4}}{x^3 \sqrt [3]{1+x-x^2+3 x^4}}+\frac {8 \sqrt [3]{1+x-x^2+2 x^4}}{x \sqrt [3]{1+x-x^2+3 x^4}}-\frac {2 \left (2+2 x+3 x^2\right ) \sqrt [3]{1+x-x^2+2 x^4}}{\left (1+2 x+x^2+x^3\right ) \sqrt [3]{1+x-x^2+3 x^4}}\right ) \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}\\ &=-\frac {\left (2 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{(-1+x) \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}-\frac {\left (2 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{x^3 \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}-\frac {\left (2 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\left (2+2 x+3 x^2\right ) \sqrt [3]{1+x-x^2+2 x^4}}{\left (1+2 x+x^2+x^3\right ) \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}+\frac {\left (3 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{x^4 \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}+\frac {\left (4 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{x^5 \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}+\frac {\left (8 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{x \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}\\ &=-\frac {\left (2 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{(-1+x) \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}-\frac {\left (2 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{x^3 \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}-\frac {\left (2 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \left (\frac {2 \sqrt [3]{1+x-x^2+2 x^4}}{\left (1+2 x+x^2+x^3\right ) \sqrt [3]{1+x-x^2+3 x^4}}+\frac {2 x \sqrt [3]{1+x-x^2+2 x^4}}{\left (1+2 x+x^2+x^3\right ) \sqrt [3]{1+x-x^2+3 x^4}}+\frac {3 x^2 \sqrt [3]{1+x-x^2+2 x^4}}{\left (1+2 x+x^2+x^3\right ) \sqrt [3]{1+x-x^2+3 x^4}}\right ) \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}+\frac {\left (3 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{x^4 \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}+\frac {\left (4 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{x^5 \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}+\frac {\left (8 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{x \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}\\ &=-\frac {\left (2 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{(-1+x) \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}-\frac {\left (2 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{x^3 \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}+\frac {\left (3 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{x^4 \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}+\frac {\left (4 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{x^5 \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}-\frac {\left (4 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{\left (1+2 x+x^2+x^3\right ) \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}-\frac {\left (4 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {x \sqrt [3]{1+x-x^2+2 x^4}}{\left (1+2 x+x^2+x^3\right ) \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}-\frac {\left (6 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {x^2 \sqrt [3]{1+x-x^2+2 x^4}}{\left (1+2 x+x^2+x^3\right ) \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}+\frac {\left (8 \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}} \sqrt [3]{1+x-x^2+3 x^4}\right ) \int \frac {\sqrt [3]{1+x-x^2+2 x^4}}{x \sqrt [3]{1+x-x^2+3 x^4}} \, dx}{\sqrt [3]{1+x-x^2+2 x^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 20.47, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (-4-3 x+2 x^2\right ) \left (1+x-x^2+x^4\right ) \sqrt [3]{\frac {1+x-x^2+2 x^4}{1+x-x^2+3 x^4}}}{x^5 \left (-1-x+x^2+x^4\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {\left (2 x^{2}-3 x -4\right ) \left (x^{4}-x^{2}+x +1\right ) \left (\frac {2 x^{4}-x^{2}+x +1}{3 x^{4}-x^{2}+x +1}\right )^{\frac {1}{3}}}{x^{5} \left (x^{4}+x^{2}-x -1\right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 960 vs.
\(2 (379) = 758\).
time = 26.56, size = 960, normalized size = 2.27 \begin {gather*} -\frac {2 \, \sqrt {3} \left (-6\right )^{\frac {1}{3}} x^{4} \arctan \left (\frac {6 \, \sqrt {3} \left (-6\right )^{\frac {2}{3}} {\left (1947 \, x^{12} - 2263 \, x^{10} + 2263 \, x^{9} + 3128 \, x^{8} - 1730 \, x^{7} - 974 \, x^{6} + 2057 \, x^{5} + 865 \, x^{4} - 545 \, x^{3} + 327 \, x + 109\right )} \left (\frac {2 \, x^{4} - x^{2} + x + 1}{3 \, x^{4} - x^{2} + x + 1}\right )^{\frac {1}{3}} + 24 \, \sqrt {3} \left (-6\right )^{\frac {1}{3}} {\left (39 \, x^{12} + 11 \, x^{10} - 11 \, x^{9} - 34 \, x^{8} + 46 \, x^{7} + 28 \, x^{6} - 61 \, x^{5} - 23 \, x^{4} + 25 \, x^{3} - 15 \, x - 5\right )} \left (\frac {2 \, x^{4} - x^{2} + x + 1}{3 \, x^{4} - x^{2} + x + 1}\right )^{\frac {2}{3}} + \sqrt {3} {\left (16199 \, x^{12} - 20631 \, x^{10} + 20631 \, x^{9} + 29268 \, x^{8} - 17274 \, x^{7} - 9826 \, x^{6} + 20841 \, x^{5} + 8637 \, x^{4} - 5945 \, x^{3} + 3567 \, x + 1189\right )}}{3 \, {\left (17497 \, x^{12} - 20409 \, x^{10} + 20409 \, x^{9} + 28188 \, x^{8} - 15558 \, x^{7} - 8750 \, x^{6} + 18471 \, x^{5} + 7779 \, x^{4} - 4855 \, x^{3} + 2913 \, x + 971\right )}}\right ) - 10 \, \sqrt {3} x^{4} \arctan \left (\frac {26407150 \, \sqrt {3} {\left (3 \, x^{4} - x^{2} + x + 1\right )} \left (\frac {2 \, x^{4} - x^{2} + x + 1}{3 \, x^{4} - x^{2} + x + 1}\right )^{\frac {2}{3}} + 15172108 \, \sqrt {3} {\left (3 \, x^{4} - x^{2} + x + 1\right )} \left (\frac {2 \, x^{4} - x^{2} + x + 1}{3 \, x^{4} - x^{2} + x + 1}\right )^{\frac {1}{3}} + \sqrt {3} {\left (47470762 \, x^{4} - 20789629 \, x^{2} + 20789629 \, x + 20789629\right )}}{29760814 \, x^{4} - 16852563 \, x^{2} + 16852563 \, x + 16852563}\right ) + \left (-6\right )^{\frac {1}{3}} x^{4} \log \left (\frac {12 \, \left (-6\right )^{\frac {2}{3}} {\left (39 \, x^{8} - 28 \, x^{6} + 28 \, x^{5} + 33 \, x^{4} - 10 \, x^{3} - 5 \, x^{2} + 10 \, x + 5\right )} \left (\frac {2 \, x^{4} - x^{2} + x + 1}{3 \, x^{4} - x^{2} + x + 1}\right )^{\frac {2}{3}} - \left (-6\right )^{\frac {1}{3}} {\left (649 \, x^{8} - 538 \, x^{6} + 538 \, x^{5} + 647 \, x^{4} - 218 \, x^{3} - 109 \, x^{2} + 218 \, x + 109\right )} + 18 \, {\left (75 \, x^{8} - 58 \, x^{6} + 58 \, x^{5} + 69 \, x^{4} - 22 \, x^{3} - 11 \, x^{2} + 22 \, x + 11\right )} \left (\frac {2 \, x^{4} - x^{2} + x + 1}{3 \, x^{4} - x^{2} + x + 1}\right )^{\frac {1}{3}}}{x^{8} + 2 \, x^{6} - 2 \, x^{5} - x^{4} - 2 \, x^{3} - x^{2} + 2 \, x + 1}\right ) - 2 \, \left (-6\right )^{\frac {1}{3}} x^{4} \log \left (\frac {\left (-6\right )^{\frac {2}{3}} {\left (x^{4} + x^{2} - x - 1\right )} + 18 \, \left (-6\right )^{\frac {1}{3}} {\left (3 \, x^{4} - x^{2} + x + 1\right )} \left (\frac {2 \, x^{4} - x^{2} + x + 1}{3 \, x^{4} - x^{2} + x + 1}\right )^{\frac {1}{3}} + 36 \, {\left (3 \, x^{4} - x^{2} + x + 1\right )} \left (\frac {2 \, x^{4} - x^{2} + x + 1}{3 \, x^{4} - x^{2} + x + 1}\right )^{\frac {2}{3}}}{x^{4} + x^{2} - x - 1}\right ) - 5 \, x^{4} \log \left (\frac {x^{4} + 3 \, {\left (3 \, x^{4} - x^{2} + x + 1\right )} \left (\frac {2 \, x^{4} - x^{2} + x + 1}{3 \, x^{4} - x^{2} + x + 1}\right )^{\frac {2}{3}} - 3 \, {\left (3 \, x^{4} - x^{2} + x + 1\right )} \left (\frac {2 \, x^{4} - x^{2} + x + 1}{3 \, x^{4} - x^{2} + x + 1}\right )^{\frac {1}{3}}}{x^{4}}\right ) + 6 \, {\left (3 \, x^{4} - x^{2} + x + 1\right )} \left (\frac {2 \, x^{4} - x^{2} + x + 1}{3 \, x^{4} - x^{2} + x + 1}\right )^{\frac {1}{3}}}{6 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (\frac {2\,x^4-x^2+x+1}{3\,x^4-x^2+x+1}\right )}^{1/3}\,\left (-2\,x^2+3\,x+4\right )\,\left (x^4-x^2+x+1\right )}{x^5\,\left (-x^4-x^2+x+1\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________