Optimal. Leaf size=67 \[ -\frac{1}{2} \log (x+1)-\frac{3}{2} \log \left (1-\frac{x-1}{\sqrt [3]{(x-1)^2 (x+1)}}\right )+\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.120864, antiderivative size = 188, normalized size of antiderivative = 2.81, number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {2067, 2064, 60} \[ -\frac{(3-3 x)^{2/3} \sqrt [3]{x+1} \log \left (-\frac{8}{3} (x-1)\right )}{2\ 3^{2/3} \sqrt [3]{x^3-x^2-x+1}}-\frac{\sqrt [3]{3} (3-3 x)^{2/3} \sqrt [3]{x+1} \log \left (\frac{\sqrt [3]{3} \sqrt [3]{x+1}}{\sqrt [3]{3-3 x}}+1\right )}{2 \sqrt [3]{x^3-x^2-x+1}}-\frac{(3-3 x)^{2/3} \sqrt [3]{x+1} \tan ^{-1}\left (\frac{1}{\sqrt{3}}-\frac{2 \sqrt [3]{x+1}}{\sqrt [6]{3} \sqrt [3]{3-3 x}}\right )}{\sqrt [6]{3} \sqrt [3]{x^3-x^2-x+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2067
Rule 2064
Rule 60
Rubi steps
\begin{align*} \int \frac{1}{\sqrt [3]{(-1+x)^2 (1+x)}} \, dx &=\operatorname{Subst}\left (\int \frac{1}{\sqrt [3]{\frac{16}{27}-\frac{4 x}{3}+x^3}} \, dx,x,-\frac{1}{3}+x\right )\\ &=\frac{\left (4\ 2^{2/3} (1-x)^{2/3} \sqrt [3]{1+x}\right ) \operatorname{Subst}\left (\int \frac{1}{\left (\frac{16}{9}-\frac{8 x}{3}\right )^{2/3} \sqrt [3]{\frac{16}{9}+\frac{4 x}{3}}} \, dx,x,-\frac{1}{3}+x\right )}{3 \sqrt [3]{1-x-x^2+x^3}}\\ &=-\frac{\sqrt{3} (1-x)^{2/3} \sqrt [3]{1+x} \tan ^{-1}\left (\frac{1}{\sqrt{3}}-\frac{2 \sqrt [3]{1+x}}{\sqrt{3} \sqrt [3]{1-x}}\right )}{\sqrt [3]{1-x-x^2+x^3}}-\frac{(1-x)^{2/3} \sqrt [3]{1+x} \log (1-x)}{2 \sqrt [3]{1-x-x^2+x^3}}-\frac{3 (1-x)^{2/3} \sqrt [3]{1+x} \log \left (\frac{3 \left (\sqrt [3]{1-x}+\sqrt [3]{1+x}\right )}{\sqrt [3]{1-x}}\right )}{2 \sqrt [3]{1-x-x^2+x^3}}\\ \end{align*}
Mathematica [C] time = 0.0111695, size = 49, normalized size = 0.73 \[ \frac{3 (x-1) \sqrt [3]{x+1} \, _2F_1\left (\frac{1}{3},\frac{1}{3};\frac{4}{3};\frac{1-x}{2}\right )}{\sqrt [3]{2} \sqrt [3]{(x-1)^2 (x+1)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.008, size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{\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{1}{\left ({\left (x + 1\right )}{\left (x - 1\right )}^{2}\right )^{\frac{1}{3}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.71082, size = 331, normalized size = 4.94 \begin{align*} -\sqrt{3} \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 ) + \frac{1}{2} \, \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 ) - \log \left (-\frac{x -{\left (x^{3} - x^{2} - x + 1\right )}^{\frac{1}{3}} - 1}{x - 1}\right ) \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{1}{\sqrt [3]{\left (x - 1\right )^{2} \left (x + 1\right )}}\, 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{1}{\left ({\left (x + 1\right )}{\left (x - 1\right )}^{2}\right )^{\frac{1}{3}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]