Optimal. Leaf size=18 \[ 2 \tan ^{-1}\left (\sqrt {\frac {1-x}{1+x}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 18, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {1983, 210}
\begin {gather*} 2 \text {ArcTan}\left (\sqrt {\frac {1-x}{x+1}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 1983
Rubi steps
\begin {align*} \int \frac {\sqrt {\frac {1-x}{1+x}}}{-1+x} \, dx &=-\left (4 \text {Subst}\left (\int \frac {1}{-2-2 x^2} \, dx,x,\sqrt {\frac {1-x}{1+x}}\right )\right )\\ &=2 \tan ^{-1}\left (\sqrt {\frac {1-x}{1+x}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(51\) vs. \(2(18)=36\).
time = 0.04, size = 51, normalized size = 2.83 \begin {gather*} -\frac {2 \sqrt {\frac {1-x}{1+x}} \sqrt {1-x^2} \tan ^{-1}\left (\frac {\sqrt {1-x}}{\sqrt {1+x}}\right )}{-1+x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.36, size = 30, normalized size = 1.67
method | result | size |
default | \(-\frac {\sqrt {-\frac {-1+x}{1+x}}\, \left (1+x \right ) \arcsin \left (x \right )}{\sqrt {-\left (1+x \right ) \left (-1+x \right )}}\) | \(30\) |
trager | \(\RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (-\RootOf \left (\textit {\_Z}^{2}+1\right ) \sqrt {-\frac {-1+x}{1+x}}\, x -\RootOf \left (\textit {\_Z}^{2}+1\right ) \sqrt {-\frac {-1+x}{1+x}}+x \right )\) | \(52\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 15, normalized size = 0.83 \begin {gather*} 2 \, \arctan \left (\sqrt {-\frac {x - 1}{x + 1}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 15, normalized size = 0.83 \begin {gather*} 2 \, \arctan \left (\sqrt {-\frac {x - 1}{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 {\sqrt {- \frac {x - 1}{x + 1}}}{x - 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.09, size = 16, normalized size = 0.89 \begin {gather*} -\frac {1}{2} \, \pi \mathrm {sgn}\left (x + 1\right ) - \arcsin \left (x\right ) \mathrm {sgn}\left (x + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.14, size = 15, normalized size = 0.83 \begin {gather*} 2\,\mathrm {atan}\left (\sqrt {-\frac {x-1}{x+1}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________