Optimal. Leaf size=42 \[ -2 \sqrt {1+x}-\frac {2}{3} (1+x)^{3/2}+2 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {1+x}}{\sqrt {2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {6264, 81, 52,
65, 212} \begin {gather*} -\frac {2}{3} (x+1)^{3/2}-2 \sqrt {x+1}+2 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {x+1}}{\sqrt {2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 81
Rule 212
Rule 6264
Rubi steps
\begin {align*} \int \frac {e^{\tanh ^{-1}(x)} x}{\sqrt {1-x}} \, dx &=\int \frac {x \sqrt {1+x}}{1-x} \, dx\\ &=-\frac {2}{3} (1+x)^{3/2}+\int \frac {\sqrt {1+x}}{1-x} \, dx\\ &=-2 \sqrt {1+x}-\frac {2}{3} (1+x)^{3/2}+2 \int \frac {1}{(1-x) \sqrt {1+x}} \, dx\\ &=-2 \sqrt {1+x}-\frac {2}{3} (1+x)^{3/2}+4 \text {Subst}\left (\int \frac {1}{2-x^2} \, dx,x,\sqrt {1+x}\right )\\ &=-2 \sqrt {1+x}-\frac {2}{3} (1+x)^{3/2}+2 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {1+x}}{\sqrt {2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 36, normalized size = 0.86 \begin {gather*} -\frac {2}{3} \sqrt {1+x} (4+x)+2 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {1+x}}{\sqrt {2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.82, size = 61, normalized size = 1.45
method | result | size |
default | \(-\frac {2 \sqrt {-x^{2}+1}\, \sqrt {1-x}\, \left (3 \arctanh \left (\frac {\sqrt {1+x}\, \sqrt {2}}{2}\right ) \sqrt {2}-\sqrt {1+x}\, x -4 \sqrt {1+x}\right )}{3 \left (x -1\right ) \sqrt {1+x}}\) | \(61\) |
risch | \(\frac {2 \left (x +4\right ) \sqrt {1+x}\, \sqrt {\frac {\left (-x^{2}+1\right ) \left (1-x \right )}{\left (x -1\right )^{2}}}\, \left (x -1\right )}{3 \sqrt {-x^{2}+1}\, \sqrt {1-x}}-\frac {2 \arctanh \left (\frac {\sqrt {1+x}\, \sqrt {2}}{2}\right ) \sqrt {2}\, \sqrt {\frac {\left (-x^{2}+1\right ) \left (1-x \right )}{\left (x -1\right )^{2}}}\, \left (x -1\right )}{\sqrt {-x^{2}+1}\, \sqrt {1-x}}\) | \(106\) |
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. 79 vs.
\(2 (31) = 62\).
time = 0.34, size = 79, normalized size = 1.88 \begin {gather*} \frac {3 \, \sqrt {2} {\left (x - 1\right )} \log \left (-\frac {x^{2} - 2 \, \sqrt {2} \sqrt {-x^{2} + 1} \sqrt {-x + 1} + 2 \, x - 3}{x^{2} - 2 \, x + 1}\right ) + 2 \, \sqrt {-x^{2} + 1} {\left (x + 4\right )} \sqrt {-x + 1}}{3 \, {\left (x - 1\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 {x \left (x + 1\right )}{\sqrt {- \left (x - 1\right ) \left (x + 1\right )} \sqrt {1 - x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 44, normalized size = 1.05 \begin {gather*} -\frac {2}{3} \, {\left (x + 1\right )}^{\frac {3}{2}} - \sqrt {2} \log \left (\frac {\sqrt {2} - \sqrt {x + 1}}{\sqrt {2} + \sqrt {x + 1}}\right ) - 2 \, \sqrt {x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {x\,\left (x+1\right )}{\sqrt {1-x^2}\,\sqrt {1-x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________