Optimal. Leaf size=73 \[ \frac {2 \sqrt {\frac {1}{x}+1} \sqrt {-\frac {1-x}{x}} x^2}{3 \sqrt {x+1}}+\frac {4 \sqrt {\frac {1}{x}+1} \sqrt {-\frac {1-x}{x}} x}{3 \sqrt {x+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {6176, 6181, 45, 37} \[ \frac {2 \sqrt {\frac {1}{x}+1} \sqrt {-\frac {1-x}{x}} x^2}{3 \sqrt {x+1}}+\frac {4 \sqrt {\frac {1}{x}+1} \sqrt {-\frac {1-x}{x}} x}{3 \sqrt {x+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 45
Rule 6176
Rule 6181
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}} \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-x} x^{5/2}} \, dx,x,\frac {1}{x}\right )}{\sqrt {\frac {1}{x}} \sqrt {1+x}}\\ &=\frac {2 \sqrt {1+\frac {1}{x}} \sqrt {-\frac {1-x}{x}} x^2}{3 \sqrt {1+x}}-\frac {\left (2 \sqrt {1+\frac {1}{x}}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-x} x^{3/2}} \, dx,x,\frac {1}{x}\right )}{3 \sqrt {\frac {1}{x}} \sqrt {1+x}}\\ &=\frac {4 \sqrt {1+\frac {1}{x}} \sqrt {-\frac {1-x}{x}} x}{3 \sqrt {1+x}}+\frac {2 \sqrt {1+\frac {1}{x}} \sqrt {-\frac {1-x}{x}} x^2}{3 \sqrt {1+x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 26, normalized size = 0.36 \[ \frac {2 \sqrt {1-\frac {1}{x^2}} x (x+2)}{3 \sqrt {x+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.63, size = 21, normalized size = 0.29 \[ \frac {2}{3} \, {\left (x + 2\right )} \sqrt {x + 1} \sqrt {\frac {x - 1}{x + 1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 25, normalized size = 0.34 \[ \frac {2 \left (-1+x \right ) \left (x +2\right )}{3 \sqrt {\frac {-1+x}{1+x}}\, \sqrt {1+x}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.00, size = 13, normalized size = 0.18 \[ \frac {2 \, {\left (x^{2} + x - 2\right )}}{3 \, \sqrt {x - 1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.24, size = 21, normalized size = 0.29 \[ \frac {2\,\sqrt {\frac {x-1}{x+1}}\,\sqrt {x+1}\,\left (x+2\right )}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 7.82, size = 48, normalized size = 0.66 \[ \begin {cases} \frac {2 x \sqrt {x - 1}}{3} + \frac {4 \sqrt {x - 1}}{3} & \text {for}\: \left |{x}\right | > 1 \\\frac {2 i x \sqrt {1 - x}}{3} + \frac {4 i \sqrt {1 - x}}{3} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________