Optimal. Leaf size=116 \[ -\frac {3 \left (-2+7 x^2\right ) \sqrt [3]{-2 x+x^3}}{16 x^3}+\frac {1}{16} \text {RootSum}\left [2-4 \text {$\#$1}^3+\text {$\#$1}^6\& ,\frac {-6 \log (x)+6 \log \left (\sqrt [3]{-2 x+x^3}-x \text {$\#$1}\right )+11 \log (x) \text {$\#$1}^3-11 \log \left (\sqrt [3]{-2 x+x^3}-x \text {$\#$1}\right ) \text {$\#$1}^3}{-2 \text {$\#$1}^2+\text {$\#$1}^5}\& \right ] \]
[Out]
________________________________________________________________________________________
Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(561\) vs. \(2(116)=232\).
time = 0.89, antiderivative size = 561, normalized size of antiderivative = 4.84, number of steps
used = 15, number of rules used = 8, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2081, 6860,
477, 476, 486, 597, 12, 503} \begin {gather*} \frac {\sqrt {3} \sqrt [3]{\frac {1}{2} \left (674 \sqrt {2}-953\right )} \sqrt [3]{x^3-2 x} \text {ArcTan}\left (\frac {\frac {2 \sqrt [3]{2-\sqrt {2}} x^{2/3}}{\sqrt [3]{x^2-2}}+1}{\sqrt {3}}\right )}{16 \sqrt [3]{x} \sqrt [3]{x^2-2}}-\frac {\sqrt {3} \sqrt [3]{\frac {1}{2} \left (953+674 \sqrt {2}\right )} \sqrt [3]{x^3-2 x} \text {ArcTan}\left (\frac {\frac {2 \sqrt [3]{2+\sqrt {2}} x^{2/3}}{\sqrt [3]{x^2-2}}+1}{\sqrt {3}}\right )}{16 \sqrt [3]{x} \sqrt [3]{x^2-2}}-\frac {21 \left (4+3 \sqrt {2}\right ) \sqrt [3]{x^3-2 x}}{128 x}-\frac {21 \left (4-3 \sqrt {2}\right ) \sqrt [3]{x^3-2 x}}{128 x}+\frac {3 \left (4+\sqrt {2}\right ) \sqrt [3]{x^3-2 x}}{64 x^3}+\frac {3 \left (4-\sqrt {2}\right ) \sqrt [3]{x^3-2 x}}{64 x^3}-\frac {\sqrt [3]{\frac {1}{2} \left (674 \sqrt {2}-953\right )} \sqrt [3]{x^3-2 x} \log \left (2 \left (1+\sqrt {2}\right )-x^2\right )}{32 \sqrt [3]{x} \sqrt [3]{x^2-2}}+\frac {\sqrt [3]{\frac {1}{2} \left (953+674 \sqrt {2}\right )} \sqrt [3]{x^3-2 x} \log \left (x^2-2 \left (1-\sqrt {2}\right )\right )}{32 \sqrt [3]{x} \sqrt [3]{x^2-2}}+\frac {3 \sqrt [3]{\frac {1}{2} \left (674 \sqrt {2}-953\right )} \sqrt [3]{x^3-2 x} \log \left (\sqrt [3]{2-\sqrt {2}} x^{2/3}-\sqrt [3]{x^2-2}\right )}{32 \sqrt [3]{x} \sqrt [3]{x^2-2}}-\frac {3 \sqrt [3]{\frac {1}{2} \left (953+674 \sqrt {2}\right )} \sqrt [3]{x^3-2 x} \log \left (\sqrt [3]{2+\sqrt {2}} x^{2/3}-\sqrt [3]{x^2-2}\right )}{32 \sqrt [3]{x} \sqrt [3]{x^2-2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 476
Rule 477
Rule 486
Rule 503
Rule 597
Rule 2081
Rule 6860
Rubi steps
\begin {align*} \int \frac {\left (4+x^2\right ) \sqrt [3]{-2 x+x^3}}{x^4 \left (-4-4 x^2+x^4\right )} \, dx &=\frac {\sqrt [3]{-2 x+x^3} \int \frac {\sqrt [3]{-2+x^2} \left (4+x^2\right )}{x^{11/3} \left (-4-4 x^2+x^4\right )} \, dx}{\sqrt [3]{x} \sqrt [3]{-2+x^2}}\\ &=\frac {\sqrt [3]{-2 x+x^3} \int \left (\frac {\left (1+\frac {3}{\sqrt {2}}\right ) \sqrt [3]{-2+x^2}}{x^{11/3} \left (-4-4 \sqrt {2}+2 x^2\right )}+\frac {\left (1-\frac {3}{\sqrt {2}}\right ) \sqrt [3]{-2+x^2}}{x^{11/3} \left (-4+4 \sqrt {2}+2 x^2\right )}\right ) \, dx}{\sqrt [3]{x} \sqrt [3]{-2+x^2}}\\ &=\frac {\left (\left (2-3 \sqrt {2}\right ) \sqrt [3]{-2 x+x^3}\right ) \int \frac {\sqrt [3]{-2+x^2}}{x^{11/3} \left (-4+4 \sqrt {2}+2 x^2\right )} \, dx}{2 \sqrt [3]{x} \sqrt [3]{-2+x^2}}+\frac {\left (\left (2+3 \sqrt {2}\right ) \sqrt [3]{-2 x+x^3}\right ) \int \frac {\sqrt [3]{-2+x^2}}{x^{11/3} \left (-4-4 \sqrt {2}+2 x^2\right )} \, dx}{2 \sqrt [3]{x} \sqrt [3]{-2+x^2}}\\ &=\frac {\left (3 \left (2-3 \sqrt {2}\right ) \sqrt [3]{-2 x+x^3}\right ) \text {Subst}\left (\int \frac {\sqrt [3]{-2+x^6}}{x^9 \left (-4+4 \sqrt {2}+2 x^6\right )} \, dx,x,\sqrt [3]{x}\right )}{2 \sqrt [3]{x} \sqrt [3]{-2+x^2}}+\frac {\left (3 \left (2+3 \sqrt {2}\right ) \sqrt [3]{-2 x+x^3}\right ) \text {Subst}\left (\int \frac {\sqrt [3]{-2+x^6}}{x^9 \left (-4-4 \sqrt {2}+2 x^6\right )} \, dx,x,\sqrt [3]{x}\right )}{2 \sqrt [3]{x} \sqrt [3]{-2+x^2}}\\ &=\frac {\left (3 \left (2-3 \sqrt {2}\right ) \sqrt [3]{-2 x+x^3}\right ) \text {Subst}\left (\int \frac {\sqrt [3]{-2+x^3}}{x^5 \left (-4+4 \sqrt {2}+2 x^3\right )} \, dx,x,x^{2/3}\right )}{4 \sqrt [3]{x} \sqrt [3]{-2+x^2}}+\frac {\left (3 \left (2+3 \sqrt {2}\right ) \sqrt [3]{-2 x+x^3}\right ) \text {Subst}\left (\int \frac {\sqrt [3]{-2+x^3}}{x^5 \left (-4-4 \sqrt {2}+2 x^3\right )} \, dx,x,x^{2/3}\right )}{4 \sqrt [3]{x} \sqrt [3]{-2+x^2}}\\ &=\frac {\left (3 \left (2-3 \sqrt {2}\right ) \sqrt [3]{-2 x+x^3}\right ) \text {Subst}\left (\int \frac {\sqrt [3]{1-\frac {x^3}{2}}}{x^5 \left (-4+4 \sqrt {2}+2 x^3\right )} \, dx,x,x^{2/3}\right )}{2\ 2^{2/3} \sqrt [3]{x} \sqrt [3]{2-x^2}}+\frac {\left (3 \left (2+3 \sqrt {2}\right ) \sqrt [3]{-2 x+x^3}\right ) \text {Subst}\left (\int \frac {\sqrt [3]{1-\frac {x^3}{2}}}{x^5 \left (-4-4 \sqrt {2}+2 x^3\right )} \, dx,x,x^{2/3}\right )}{2\ 2^{2/3} \sqrt [3]{x} \sqrt [3]{2-x^2}}\\ &=\frac {3 \left (4-\sqrt {2}\right ) \sqrt [3]{-2 x+x^3} \left (2 \left (2-x^2\right ) \left (2-3 \left (1-\sqrt {2}\right ) x^2\right )+\left (2 \left (2-\sqrt {2}\right ) x^2-3 \left (4-3 \sqrt {2}\right ) x^4\right ) \, _2F_1\left (\frac {2}{3},1;\frac {5}{3};-\frac {\left (2-\sqrt {2}\right ) x^2}{2-x^2}\right )-3 x^2 \left (2 \left (2-\sqrt {2}\right )+\left (4-3 \sqrt {2}\right ) x^2\right ) \, _2F_1\left (\frac {2}{3},2;\frac {5}{3};-\frac {\left (2-\sqrt {2}\right ) x^2}{2-x^2}\right )\right )}{256 x^3 \left (2-x^2\right )}+\frac {3 \left (4+\sqrt {2}\right ) \sqrt [3]{-2 x+x^3} \left (2 \left (2-x^2\right ) \left (2-3 \left (1+\sqrt {2}\right ) x^2\right )+\left (2 \left (2+\sqrt {2}\right ) x^2-3 \left (4+3 \sqrt {2}\right ) x^4\right ) \, _2F_1\left (\frac {2}{3},1;\frac {5}{3};-\frac {\left (2+\sqrt {2}\right ) x^2}{2-x^2}\right )-3 x^2 \left (2 \left (2+\sqrt {2}\right )+\left (4+3 \sqrt {2}\right ) x^2\right ) \, _2F_1\left (\frac {2}{3},2;\frac {5}{3};-\frac {\left (2+\sqrt {2}\right ) x^2}{2-x^2}\right )\right )}{256 x^3 \left (2-x^2\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.77, size = 142, normalized size = 1.22 \begin {gather*} \frac {\sqrt [3]{x \left (-2+x^2\right )} \left (9 \left (2-7 x^2\right ) \sqrt [3]{-2+x^2}+x^{8/3} \text {RootSum}\left [2-4 \text {$\#$1}^3+\text {$\#$1}^6\&,\frac {-12 \log (x)+18 \log \left (\sqrt [3]{-2+x^2}-x^{2/3} \text {$\#$1}\right )+22 \log (x) \text {$\#$1}^3-33 \log \left (\sqrt [3]{-2+x^2}-x^{2/3} \text {$\#$1}\right ) \text {$\#$1}^3}{-2 \text {$\#$1}^2+\text {$\#$1}^5}\&\right ]\right )}{48 x^3 \sqrt [3]{-2+x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
1.
time = 142.34, size = 14280, normalized size = 123.10 \[\text {output too large to display}\]
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 [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt [3]{x \left (x^{2} - 2\right )} \left (x^{2} + 4\right )}{x^{4} \left (x^{4} - 4 x^{2} - 4\right )}\, dx \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.01 \begin {gather*} \int -\frac {\left (x^2+4\right )\,{\left (x^3-2\,x\right )}^{1/3}}{x^4\,\left (-x^4+4\,x^2+4\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________