Optimal. Leaf size=126 \[ \frac {2 \sqrt {1-\frac {1}{x}} \sqrt {1+\frac {1}{x}} x}{\sqrt {1-x}}+\frac {2 \sqrt {1-\frac {1}{x}} \left (1+\frac {1}{x}\right )^{3/2} x^2}{3 \sqrt {1-x}}-\frac {2 \sqrt {2} \sqrt {1-\frac {1}{x}} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {\frac {1}{x}}}{\sqrt {1+\frac {1}{x}}}\right )}{\sqrt {1-x} \sqrt {\frac {1}{x}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 126, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {6311, 6316, 98,
96, 95, 212} \begin {gather*} \frac {2 \sqrt {1-\frac {1}{x}} \left (\frac {1}{x}+1\right )^{3/2} x^2}{3 \sqrt {1-x}}+\frac {2 \sqrt {1-\frac {1}{x}} \sqrt {\frac {1}{x}+1} x}{\sqrt {1-x}}-\frac {2 \sqrt {2} \sqrt {1-\frac {1}{x}} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {\frac {1}{x}}}{\sqrt {\frac {1}{x}+1}}\right )}{\sqrt {1-x} \sqrt {\frac {1}{x}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 95
Rule 96
Rule 98
Rule 212
Rule 6311
Rule 6316
Rubi steps
\begin {align*} \int \frac {e^{\coth ^{-1}(x)} x}{\sqrt {1-x}} \, dx &=\frac {\left (\sqrt {1-\frac {1}{x}} \sqrt {x}\right ) \int \frac {e^{\coth ^{-1}(x)} \sqrt {x}}{\sqrt {1-\frac {1}{x}}} \, dx}{\sqrt {1-x}}\\ &=-\frac {\sqrt {1-\frac {1}{x}} \text {Subst}\left (\int \frac {\sqrt {1+x}}{(1-x) x^{5/2}} \, dx,x,\frac {1}{x}\right )}{\sqrt {1-x} \sqrt {\frac {1}{x}}}\\ &=\frac {2 \sqrt {1-\frac {1}{x}} \left (1+\frac {1}{x}\right )^{3/2} x^2}{3 \sqrt {1-x}}-\frac {\sqrt {1-\frac {1}{x}} \text {Subst}\left (\int \frac {\sqrt {1+x}}{(1-x) x^{3/2}} \, dx,x,\frac {1}{x}\right )}{\sqrt {1-x} \sqrt {\frac {1}{x}}}\\ &=\frac {2 \sqrt {1-\frac {1}{x}} \sqrt {1+\frac {1}{x}} x}{\sqrt {1-x}}+\frac {2 \sqrt {1-\frac {1}{x}} \left (1+\frac {1}{x}\right )^{3/2} x^2}{3 \sqrt {1-x}}-\frac {\left (2 \sqrt {1-\frac {1}{x}}\right ) \text {Subst}\left (\int \frac {1}{(1-x) \sqrt {x} \sqrt {1+x}} \, dx,x,\frac {1}{x}\right )}{\sqrt {1-x} \sqrt {\frac {1}{x}}}\\ &=\frac {2 \sqrt {1-\frac {1}{x}} \sqrt {1+\frac {1}{x}} x}{\sqrt {1-x}}+\frac {2 \sqrt {1-\frac {1}{x}} \left (1+\frac {1}{x}\right )^{3/2} x^2}{3 \sqrt {1-x}}-\frac {\left (4 \sqrt {1-\frac {1}{x}}\right ) \text {Subst}\left (\int \frac {1}{1-2 x^2} \, dx,x,\frac {\sqrt {\frac {1}{x}}}{\sqrt {1+\frac {1}{x}}}\right )}{\sqrt {1-x} \sqrt {\frac {1}{x}}}\\ &=\frac {2 \sqrt {1-\frac {1}{x}} \sqrt {1+\frac {1}{x}} x}{\sqrt {1-x}}+\frac {2 \sqrt {1-\frac {1}{x}} \left (1+\frac {1}{x}\right )^{3/2} x^2}{3 \sqrt {1-x}}-\frac {2 \sqrt {2} \sqrt {1-\frac {1}{x}} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {\frac {1}{x}}}{\sqrt {1+\frac {1}{x}}}\right )}{\sqrt {1-x} \sqrt {\frac {1}{x}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 69, normalized size = 0.55 \begin {gather*} \frac {2 \sqrt {\frac {-1+x}{x}} x \left (\sqrt {1+\frac {1}{x}} (4+x)-3 \sqrt {2} \sqrt {\frac {1}{x}} \tanh ^{-1}\left (\sqrt {2} \sqrt {\frac {1}{1+x}}\right )\right )}{3 \sqrt {1-x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 66, normalized size = 0.52
method | result | size |
default | \(\frac {2 \sqrt {1-x}\, \left (3 \sqrt {2}\, \arctan \left (\frac {\sqrt {-1-x}\, \sqrt {2}}{2}\right )-x \sqrt {-1-x}-4 \sqrt {-1-x}\right )}{3 \sqrt {\frac {-1+x}{1+x}}\, \sqrt {-1-x}}\) | \(66\) |
risch | \(\frac {2 \left (x +4\right ) \sqrt {\frac {\left (1+x \right ) \left (1-x \right )}{-1+x}}\, \left (-1+x \right )}{3 \sqrt {-1-x}\, \sqrt {\frac {-1+x}{1+x}}\, \sqrt {1-x}}+\frac {2 \sqrt {2}\, \arctan \left (\frac {\sqrt {-1-x}\, \sqrt {2}}{2}\right ) \sqrt {\frac {\left (1+x \right ) \left (1-x \right )}{-1+x}}\, \left (-1+x \right )}{\sqrt {\frac {-1+x}{1+x}}\, \left (1+x \right ) \sqrt {1-x}}\) | \(111\) |
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.33, size = 72, normalized size = 0.57 \begin {gather*} \frac {2 \, {\left (3 \, \sqrt {2} {\left (x - 1\right )} \arctan \left (\frac {\sqrt {2} \sqrt {-x + 1} \sqrt {\frac {x - 1}{x + 1}}}{x - 1}\right ) - {\left (x^{2} + 5 \, x + 4\right )} \sqrt {-x + 1} \sqrt {\frac {x - 1}{x + 1}}\right )}}{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}{\sqrt {\frac {x - 1}{x + 1}} \sqrt {1 - x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: NotImplementedError} \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 {x}{\sqrt {\frac {x-1}{x+1}}\,\sqrt {1-x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________