Optimal. Leaf size=41 \[ 2 \tan ^{-1}\left (\sqrt {\frac {x+1}{1-x}}\right )-(1-x) \sqrt {\frac {x+1}{1-x}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1959, 288, 203} \[ 2 \tan ^{-1}\left (\sqrt {\frac {x+1}{1-x}}\right )-(1-x) \sqrt {\frac {x+1}{1-x}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 288
Rule 1959
Rubi steps
\begin {align*} \int \sqrt {\frac {1+x}{1-x}} \, dx &=4 \operatorname {Subst}\left (\int \frac {x^2}{\left (1+x^2\right )^2} \, dx,x,\sqrt {\frac {1+x}{1-x}}\right )\\ &=-(1-x) \sqrt {\frac {1+x}{1-x}}+2 \operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {\frac {1+x}{1-x}}\right )\\ &=-(1-x) \sqrt {\frac {1+x}{1-x}}+2 \tan ^{-1}\left (\sqrt {\frac {1+x}{1-x}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 62, normalized size = 1.51 \[ \frac {\sqrt {\frac {x+1}{1-x}} \left ((x-1) \sqrt {x+1}-2 \sqrt {1-x} \sin ^{-1}\left (\frac {\sqrt {1-x}}{\sqrt {2}}\right )\right )}{\sqrt {x+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 32, normalized size = 0.78 \[ {\left (x - 1\right )} \sqrt {-\frac {x + 1}{x - 1}} + 2 \, \arctan \left (\sqrt {-\frac {x + 1}{x - 1}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.13, size = 30, normalized size = 0.73 \[ \frac {1}{2} \, \pi \mathrm {sgn}\left (x - 1\right ) - \arcsin \relax (x) \mathrm {sgn}\left (x - 1\right ) + \sqrt {-x^{2} + 1} \mathrm {sgn}\left (x - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 41, normalized size = 1.00 \[ \frac {\sqrt {-\frac {x +1}{x -1}}\, \left (x -1\right ) \left (-\arcsin \relax (x )+\sqrt {-x^{2}+1}\right )}{\sqrt {-\left (x -1\right ) \left (x +1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.20, size = 43, normalized size = 1.05 \[ \frac {2 \, \sqrt {-\frac {x + 1}{x - 1}}}{\frac {x + 1}{x - 1} - 1} + 2 \, \arctan \left (\sqrt {-\frac {x + 1}{x - 1}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 43, normalized size = 1.05 \[ 2\,\mathrm {atan}\left (\sqrt {-\frac {x+1}{x-1}}\right )+\frac {2\,\sqrt {-\frac {x+1}{x-1}}}{\frac {x+1}{x-1}-1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {\frac {x + 1}{1 - x}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________