Optimal. Leaf size=133 \[ -\frac {11}{27} (1-x)^{2/3} \sqrt [3]{1+x}-\frac {1}{9} (1-x)^{2/3} (1+x)^{4/3}-\frac {1}{3} (1-x)^{2/3} x (1+x)^{4/3}+\frac {22 \text {ArcTan}\left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{1-x}}{\sqrt {3} \sqrt [3]{1+x}}\right )}{27 \sqrt {3}}+\frac {11}{81} \log (1+x)+\frac {11}{27} \log \left (1+\frac {\sqrt [3]{1-x}}{\sqrt [3]{1+x}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 133, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.417, Rules used = {6261, 92, 81,
52, 62} \begin {gather*} \frac {22 \text {ArcTan}\left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{1-x}}{\sqrt {3} \sqrt [3]{x+1}}\right )}{27 \sqrt {3}}-\frac {1}{3} (1-x)^{2/3} x (x+1)^{4/3}-\frac {1}{9} (1-x)^{2/3} (x+1)^{4/3}-\frac {11}{27} (1-x)^{2/3} \sqrt [3]{x+1}+\frac {11}{81} \log (x+1)+\frac {11}{27} \log \left (\frac {\sqrt [3]{1-x}}{\sqrt [3]{x+1}}+1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 62
Rule 81
Rule 92
Rule 6261
Rubi steps
\begin {align*} \int e^{\frac {2}{3} \tanh ^{-1}(x)} x^2 \, dx &=\int \frac {x^2 \sqrt [3]{1+x}}{\sqrt [3]{1-x}} \, dx\\ &=-\frac {1}{3} (1-x)^{2/3} x (1+x)^{4/3}-\frac {1}{3} \int \frac {\left (-1-\frac {2 x}{3}\right ) \sqrt [3]{1+x}}{\sqrt [3]{1-x}} \, dx\\ &=-\frac {1}{9} (1-x)^{2/3} (1+x)^{4/3}-\frac {1}{3} (1-x)^{2/3} x (1+x)^{4/3}+\frac {11}{27} \int \frac {\sqrt [3]{1+x}}{\sqrt [3]{1-x}} \, dx\\ &=-\frac {11}{27} (1-x)^{2/3} \sqrt [3]{1+x}-\frac {1}{9} (1-x)^{2/3} (1+x)^{4/3}-\frac {1}{3} (1-x)^{2/3} x (1+x)^{4/3}+\frac {22}{81} \int \frac {1}{\sqrt [3]{1-x} (1+x)^{2/3}} \, dx\\ &=-\frac {11}{27} (1-x)^{2/3} \sqrt [3]{1+x}-\frac {1}{9} (1-x)^{2/3} (1+x)^{4/3}-\frac {1}{3} (1-x)^{2/3} x (1+x)^{4/3}+\frac {22 \tan ^{-1}\left (\frac {1}{\sqrt {3}}-\frac {2 \sqrt [3]{1-x}}{\sqrt {3} \sqrt [3]{1+x}}\right )}{27 \sqrt {3}}+\frac {11}{81} \log (1+x)+\frac {11}{27} \log \left (1+\frac {\sqrt [3]{1-x}}{\sqrt [3]{1+x}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.02, size = 59, normalized size = 0.44 \begin {gather*} -\frac {1}{18} (1-x)^{2/3} \left (2 \sqrt [3]{1+x} \left (1+4 x+3 x^2\right )+11 \sqrt [3]{2} \, _2F_1\left (-\frac {1}{3},\frac {2}{3};\frac {5}{3};\frac {1-x}{2}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \left (\frac {1+x}{\sqrt {-x^{2}+1}}\right )^{\frac {2}{3}} x^{2}\, dx\]
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.37, size = 159, normalized size = 1.20 \begin {gather*} \frac {1}{27} \, {\left (9 \, x^{3} + 3 \, x^{2} + 2 \, x - 14\right )} \left (-\frac {\sqrt {-x^{2} + 1}}{x - 1}\right )^{\frac {2}{3}} + \frac {22}{81} \, \sqrt {3} \arctan \left (\frac {2}{3} \, \sqrt {3} \left (-\frac {\sqrt {-x^{2} + 1}}{x - 1}\right )^{\frac {2}{3}} - \frac {1}{3} \, \sqrt {3}\right ) + \frac {22}{81} \, \log \left (\left (-\frac {\sqrt {-x^{2} + 1}}{x - 1}\right )^{\frac {2}{3}} + 1\right ) - \frac {11}{81} \, \log \left (-\frac {{\left (x - 1\right )} \left (-\frac {\sqrt {-x^{2} + 1}}{x - 1}\right )^{\frac {2}{3}} - x + \sqrt {-x^{2} + 1} \left (-\frac {\sqrt {-x^{2} + 1}}{x - 1}\right )^{\frac {1}{3}} + 1}{x - 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \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 x^2\,{\left (\frac {x+1}{\sqrt {1-x^2}}\right )}^{2/3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________