Optimal. Leaf size=150 \[ -\frac {\sqrt [3]{(-1+x)^2 (1+x)}}{x}-\frac {\tan ^{-1}\left (\frac {1-\frac {2 (-1+x)}{\sqrt [3]{(-1+x)^2 (1+x)}}}{\sqrt {3}}\right )}{\sqrt {3}}-\sqrt {3} \tan ^{-1}\left (\frac {1+\frac {2 (-1+x)}{\sqrt [3]{(-1+x)^2 (1+x)}}}{\sqrt {3}}\right )+\frac {\log (x)}{6}-\frac {2}{3} \log (1+x)-\frac {3}{2} \log \left (1-\frac {-1+x}{\sqrt [3]{(-1+x)^2 (1+x)}}\right )-\frac {1}{2} \log \left (1+\frac {-1+x}{\sqrt [3]{(-1+x)^2 (1+x)}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(404\) vs. \(2(150)=300\).
time = 0.22, antiderivative size = 404, normalized size of antiderivative = 2.69, number of steps
used = 6, number of rules used = 6, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.353, Rules used = {2106, 2102, 99,
163, 62, 93} \begin {gather*} -\frac {3 \sqrt [6]{3} \sqrt [3]{x^3-x^2-x+1} \text {ArcTan}\left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{3-3 x}}{3^{5/6} \sqrt [3]{x+1}}\right )}{(3-3 x)^{2/3} \sqrt [3]{x+1}}-\frac {\sqrt [6]{3} \sqrt [3]{x^3-x^2-x+1} \text {ArcTan}\left (\frac {2 \sqrt [3]{3-3 x}}{3^{5/6} \sqrt [3]{x+1}}+\frac {1}{\sqrt {3}}\right )}{(3-3 x)^{2/3} \sqrt [3]{x+1}}-\frac {\sqrt [3]{x^3-x^2-x+1}}{x}+\frac {\sqrt [3]{x^3-x^2-x+1} \log (x)}{2 \sqrt [3]{3} (3-3 x)^{2/3} \sqrt [3]{x+1}}-\frac {3^{2/3} \sqrt [3]{x^3-x^2-x+1} \log \left (\frac {4 (x+1)}{3}\right )}{2 (3-3 x)^{2/3} \sqrt [3]{x+1}}-\frac {3\ 3^{2/3} \sqrt [3]{x^3-x^2-x+1} \log \left (\frac {\sqrt [3]{3-3 x}}{\sqrt [3]{3} \sqrt [3]{x+1}}+1\right )}{2 (3-3 x)^{2/3} \sqrt [3]{x+1}}-\frac {3^{2/3} \sqrt [3]{x^3-x^2-x+1} \log \left (\left (\frac {2}{3}\right )^{2/3} \sqrt [3]{3-3 x}-\frac {2^{2/3} \sqrt [3]{x+1}}{\sqrt [3]{3}}\right )}{2 (3-3 x)^{2/3} \sqrt [3]{x+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 62
Rule 93
Rule 99
Rule 163
Rule 2102
Rule 2106
Rubi steps
\begin {align*} \int \frac {\sqrt [3]{(-1+x)^2 (1+x)}}{x^2} \, dx &=\text {Subst}\left (\int \frac {\sqrt [3]{\frac {16}{27}-\frac {4 x}{3}+x^3}}{\left (\frac {1}{3}+x\right )^2} \, dx,x,-\frac {1}{3}+x\right )\\ &=\frac {\left (3 \sqrt [3]{1-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {\left (\frac {16}{9}-\frac {8 x}{3}\right )^{2/3} \sqrt [3]{\frac {16}{9}+\frac {4 x}{3}}}{\left (\frac {1}{3}+x\right )^2} \, dx,x,-\frac {1}{3}+x\right )}{4\ 2^{2/3} (1-x)^{2/3} \sqrt [3]{1+x}}\\ &=-\frac {\sqrt [3]{1-x-x^2+x^3}}{x}+\frac {\left (3 \sqrt [3]{1-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {-\frac {64}{27}-\frac {32 x}{9}}{\sqrt [3]{\frac {16}{9}-\frac {8 x}{3}} \left (\frac {1}{3}+x\right ) \left (\frac {16}{9}+\frac {4 x}{3}\right )^{2/3}} \, dx,x,-\frac {1}{3}+x\right )}{4\ 2^{2/3} (1-x)^{2/3} \sqrt [3]{1+x}}\\ &=-\frac {\sqrt [3]{1-x-x^2+x^3}}{x}-\frac {\left (4 \sqrt [3]{2} \sqrt [3]{1-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [3]{\frac {16}{9}-\frac {8 x}{3}} \left (\frac {1}{3}+x\right ) \left (\frac {16}{9}+\frac {4 x}{3}\right )^{2/3}} \, dx,x,-\frac {1}{3}+x\right )}{9 (1-x)^{2/3} \sqrt [3]{1+x}}-\frac {\left (4 \sqrt [3]{2} \sqrt [3]{1-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [3]{\frac {16}{9}-\frac {8 x}{3}} \left (\frac {16}{9}+\frac {4 x}{3}\right )^{2/3}} \, dx,x,-\frac {1}{3}+x\right )}{3 (1-x)^{2/3} \sqrt [3]{1+x}}\\ &=-\frac {\sqrt [3]{1-x-x^2+x^3}}{x}-\frac {\sqrt {3} \sqrt [3]{1-x-x^2+x^3} \tan ^{-1}\left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{1-x}}{\sqrt {3} \sqrt [3]{1+x}}\right )}{(1-x)^{2/3} \sqrt [3]{1+x}}-\frac {\sqrt [3]{1-x-x^2+x^3} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {2 \sqrt [3]{1-x}}{\sqrt {3} \sqrt [3]{1+x}}\right )}{\sqrt {3} (1-x)^{2/3} \sqrt [3]{1+x}}+\frac {\sqrt [3]{1-x-x^2+x^3} \log (x)}{6 (1-x)^{2/3} \sqrt [3]{1+x}}-\frac {\sqrt [3]{1-x-x^2+x^3} \log (1+x)}{2 (1-x)^{2/3} \sqrt [3]{1+x}}-\frac {\sqrt [3]{1-x-x^2+x^3} \log \left (\sqrt [3]{1-x}-\sqrt [3]{1+x}\right )}{2 (1-x)^{2/3} \sqrt [3]{1+x}}-\frac {3 \sqrt [3]{1-x-x^2+x^3} \log \left (\frac {3 \left (\sqrt [3]{1-x}+\sqrt [3]{1+x}\right )}{\sqrt [3]{1+x}}\right )}{2 (1-x)^{2/3} \sqrt [3]{1+x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.36, size = 229, normalized size = 1.53 \begin {gather*} -\frac {(-1+x)^{4/3} (1+x)^{2/3} \left (18 (-1+x)^{2/3} \sqrt [3]{1+x}-6 \sqrt {3} x \tan ^{-1}\left (\frac {1-\frac {2}{\sqrt [3]{\frac {-1+x}{1+x}}}}{\sqrt {3}}\right )-18 \sqrt {3} x \tan ^{-1}\left (\frac {1+\frac {2}{\sqrt [3]{\frac {-1+x}{1+x}}}}{\sqrt {3}}\right )-10 x \log \left (\frac {2}{-1+x}\right )-3 x \log \left (1+\frac {1}{\left (\frac {-1+x}{1+x}\right )^{2/3}}-\frac {1}{\sqrt [3]{\frac {-1+x}{1+x}}}\right )+28 x \log \left (-1+\frac {1}{\sqrt [3]{\frac {-1+x}{1+x}}}\right )+6 x \log \left (1+\frac {1}{\sqrt [3]{\frac {-1+x}{1+x}}}\right )+x \log \left (1+\frac {1}{\left (\frac {-1+x}{1+x}\right )^{2/3}}+\frac {1}{\sqrt [3]{\frac {-1+x}{1+x}}}\right )\right )}{18 x \left ((-1+x)^2 (1+x)\right )^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 2.97, size = 1247, normalized size = 8.31
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1247\) |
trager | \(\text {Expression too large to display}\) | \(2055\) |
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. 280 vs.
\(2 (126) = 252\).
time = 0.42, size = 280, normalized size = 1.87 \begin {gather*} \frac {6 \, \sqrt {3} x \arctan \left (\frac {\sqrt {3} {\left (x - 1\right )} + 2 \, \sqrt {3} {\left (x^{3} - x^{2} - x + 1\right )}^{\frac {1}{3}}}{3 \, {\left (x - 1\right )}}\right ) - 2 \, \sqrt {3} x \arctan \left (-\frac {\sqrt {3} {\left (x - 1\right )} - 2 \, \sqrt {3} {\left (x^{3} - x^{2} - x + 1\right )}^{\frac {1}{3}}}{3 \, {\left (x - 1\right )}}\right ) + 3 \, x \log \left (\frac {x^{2} + {\left (x^{3} - x^{2} - x + 1\right )}^{\frac {1}{3}} {\left (x - 1\right )} - 2 \, x + {\left (x^{3} - x^{2} - x + 1\right )}^{\frac {2}{3}} + 1}{x^{2} - 2 \, x + 1}\right ) + x \log \left (\frac {x^{2} - {\left (x^{3} - x^{2} - x + 1\right )}^{\frac {1}{3}} {\left (x - 1\right )} - 2 \, x + {\left (x^{3} - x^{2} - x + 1\right )}^{\frac {2}{3}} + 1}{x^{2} - 2 \, x + 1}\right ) - 2 \, x \log \left (\frac {x + {\left (x^{3} - x^{2} - x + 1\right )}^{\frac {1}{3}} - 1}{x - 1}\right ) - 6 \, x \log \left (-\frac {x - {\left (x^{3} - x^{2} - x + 1\right )}^{\frac {1}{3}} - 1}{x - 1}\right ) - 6 \, {\left (x^{3} - x^{2} - x + 1\right )}^{\frac {1}{3}}}{6 \, x} \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]{\left (x - 1\right )^{2} \left (x + 1\right )}}{x^{2}}\, 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 ({\left (x-1\right )}^2\,\left (x+1\right )\right )}^{1/3}}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________