Optimal. Leaf size=150 \[ -\frac{\sqrt [3]{(x-1)^2 (x+1)}}{x}+\frac{\log (x)}{6}-\frac{2}{3} \log (x+1)-\frac{3}{2} \log \left (1-\frac{x-1}{\sqrt [3]{(x-1)^2 (x+1)}}\right )-\frac{1}{2} \log \left (\frac{x-1}{\sqrt [3]{(x-1)^2 (x+1)}}+1\right )-\frac{\tan ^{-1}\left (\frac{1-\frac{2 (x-1)}{\sqrt [3]{(x-1)^2 (x+1)}}}{\sqrt{3}}\right )}{\sqrt{3}}-\sqrt{3} \tan ^{-1}\left (\frac{\frac{2 (x-1)}{\sqrt [3]{(x-1)^2 (x+1)}}+1}{\sqrt{3}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [B] time = 0.327181, 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 = {2081, 2077, 97, 157, 60, 91} \[ -\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}}-\frac{3 \sqrt [6]{3} \sqrt [3]{x^3-x^2-x+1} \tan ^{-1}\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} \tan ^{-1}\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}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2081
Rule 2077
Rule 97
Rule 157
Rule 60
Rule 91
Rubi steps
\begin{align*} \int \frac{\sqrt [3]{(-1+x)^2 (1+x)}}{x^2} \, dx &=\operatorname{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 ) \operatorname{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 ) \operatorname{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 ) \operatorname{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 ) \operatorname{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 [C] time = 0.0668508, size = 112, normalized size = 0.75 \[ \frac{\sqrt [3]{(x-1)^2 (x+1)} \left (3 (x+1) \left (3\ 2^{2/3} \sqrt [3]{1-x} x \, _2F_1\left (\frac{1}{3},\frac{1}{3};\frac{4}{3};\frac{x+1}{2}\right )-2 x+2\right )-2 \left (\frac{1}{x}+1\right )^{2/3} \sqrt [3]{\frac{x-1}{x}} x F_1\left (1;\frac{1}{3},\frac{2}{3};2;\frac{1}{x},-\frac{1}{x}\right )\right )}{6 x \left (x^2-1\right )} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.028, size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{{x}^{2}}\sqrt [3]{ \left ( -1+x \right ) ^{2} \left ( 1+x \right ) }}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left ({\left (x + 1\right )}{\left (x - 1\right )}^{2}\right )^{\frac{1}{3}}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.88514, size = 730, normalized size = 4.87 \begin{align*} \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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt [3]{\left (x - 1\right )^{2} \left (x + 1\right )}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left ({\left (x + 1\right )}{\left (x - 1\right )}^{2}\right )^{\frac{1}{3}}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]