Optimal. Leaf size=125 \[ -\frac {\sqrt {3} \text {ArcTan}\left (\frac {1}{\sqrt {3}}-\frac {2^{2/3} \sqrt [3]{-1+2 x+x^2}}{\sqrt {3}}\right )}{2 \sqrt [3]{2}}-\frac {\log \left (2+2^{2/3} \sqrt [3]{-1+2 x+x^2}\right )}{2 \sqrt [3]{2}}+\frac {\log \left (-2+2^{2/3} \sqrt [3]{-1+2 x+x^2}-\sqrt [3]{2} \left (-1+2 x+x^2\right )^{2/3}\right )}{4 \sqrt [3]{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 82, normalized size of antiderivative = 0.66, number of steps
used = 6, number of rules used = 6, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {708, 272, 58,
631, 210, 31} \begin {gather*} -\frac {\sqrt {3} \text {ArcTan}\left (\frac {1-2^{2/3} \sqrt [3]{(x+1)^2-2}}{\sqrt {3}}\right )}{2 \sqrt [3]{2}}+\frac {\log (x+1)}{2 \sqrt [3]{2}}-\frac {3 \log \left (\sqrt [3]{(x+1)^2-2}+\sqrt [3]{2}\right )}{4 \sqrt [3]{2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 58
Rule 210
Rule 272
Rule 631
Rule 708
Rubi steps
\begin {align*} \int \frac {1}{(1+x) \sqrt [3]{-1+2 x+x^2}} \, dx &=\text {Subst}\left (\int \frac {1}{x \sqrt [3]{-2+x^2}} \, dx,x,1+x\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \frac {1}{\sqrt [3]{-2+x} x} \, dx,x,(1+x)^2\right )\\ &=\frac {\log (1+x)}{2 \sqrt [3]{2}}+\frac {3}{4} \text {Subst}\left (\int \frac {1}{2^{2/3}-\sqrt [3]{2} x+x^2} \, dx,x,\sqrt [3]{-2+(1+x)^2}\right )-\frac {3 \text {Subst}\left (\int \frac {1}{\sqrt [3]{2}+x} \, dx,x,\sqrt [3]{-2+(1+x)^2}\right )}{4 \sqrt [3]{2}}\\ &=\frac {\log (1+x)}{2 \sqrt [3]{2}}-\frac {3 \log \left (\sqrt [3]{2}+\sqrt [3]{-2+(1+x)^2}\right )}{4 \sqrt [3]{2}}+\frac {3 \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1-2^{2/3} \sqrt [3]{-2+(1+x)^2}\right )}{2 \sqrt [3]{2}}\\ &=-\frac {\sqrt {3} \tan ^{-1}\left (\frac {1-2^{2/3} \sqrt [3]{-2+(1+x)^2}}{\sqrt {3}}\right )}{2 \sqrt [3]{2}}+\frac {\log (1+x)}{2 \sqrt [3]{2}}-\frac {3 \log \left (\sqrt [3]{2}+\sqrt [3]{-2+(1+x)^2}\right )}{4 \sqrt [3]{2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 108, normalized size = 0.86 \begin {gather*} \frac {-2 \sqrt {3} \text {ArcTan}\left (\frac {1-2^{2/3} \sqrt [3]{-1+2 x+x^2}}{\sqrt {3}}\right )-2 \log \left (2+2^{2/3} \sqrt [3]{-1+2 x+x^2}\right )+\log \left (-2+2^{2/3} \sqrt [3]{-1+2 x+x^2}-\sqrt [3]{2} \left (-1+2 x+x^2\right )^{2/3}\right )}{4 \sqrt [3]{2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 4.38, size = 1212, normalized size = 9.70
method | result | size |
trager | \(\text {Expression too large to display}\) | \(1212\) |
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 [A]
time = 0.34, size = 116, normalized size = 0.93 \begin {gather*} \frac {1}{4} \, \sqrt {3} 2^{\frac {2}{3}} \left (-1\right )^{\frac {1}{3}} \arctan \left (\frac {1}{6} \, \sqrt {3} 2^{\frac {1}{6}} {\left (2 \, \sqrt {2} \left (-1\right )^{\frac {1}{3}} {\left (x^{2} + 2 \, x - 1\right )}^{\frac {1}{3}} + 2^{\frac {5}{6}}\right )}\right ) - \frac {1}{8} \cdot 2^{\frac {2}{3}} \left (-1\right )^{\frac {1}{3}} \log \left (-2^{\frac {1}{3}} \left (-1\right )^{\frac {2}{3}} {\left (x^{2} + 2 \, x - 1\right )}^{\frac {1}{3}} - 2^{\frac {2}{3}} \left (-1\right )^{\frac {1}{3}} + {\left (x^{2} + 2 \, x - 1\right )}^{\frac {2}{3}}\right ) + \frac {1}{4} \cdot 2^{\frac {2}{3}} \left (-1\right )^{\frac {1}{3}} \log \left (2^{\frac {1}{3}} \left (-1\right )^{\frac {2}{3}} + {\left (x^{2} + 2 \, x - 1\right )}^{\frac {1}{3}}\right ) \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 {1}{\left (x + 1\right ) \sqrt [3]{x^{2} + 2 x - 1}}\, 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 {1}{\left (x+1\right )\,{\left (x^2+2\,x-1\right )}^{1/3}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________