3.857 \(\int \frac {\sqrt {1-x}}{\sqrt {1-x^2}} \, dx\)

Optimal. Leaf size=9 \[ 2 \sqrt {x+1} \]

[Out]

2*(1+x)^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 9, 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 = {26, 32} \[ 2 \sqrt {x+1} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[1 - x]/Sqrt[1 - x^2],x]

[Out]

2*Sqrt[1 + x]

Rule 26

Int[(u_.)*((a_) + (b_.)*(x_)^(n_.))^(m_.)*((c_) + (d_.)*(x_)^(j_))^(p_.), x_Symbol] :> Dist[(-(b^2/d))^m, Int[
u/(a - b*x^n)^m, x], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && EqQ[j, 2*n] && EqQ[p, -m] && EqQ[b^2*c + a^2*d,
0] && GtQ[a, 0] && LtQ[d, 0]

Rule 32

Int[((a_.) + (b_.)*(x_))^(m_), x_Symbol] :> Simp[(a + b*x)^(m + 1)/(b*(m + 1)), x] /; FreeQ[{a, b, m}, x] && N
eQ[m, -1]

Rubi steps

\begin {align*} \int \frac {\sqrt {1-x}}{\sqrt {1-x^2}} \, dx &=\int \frac {1}{\sqrt {1+x}} \, dx\\ &=2 \sqrt {1+x}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.02, size = 25, normalized size = 2.78 \[ \frac {2 \sqrt {1-x} (x+1)}{\sqrt {1-x^2}} \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[1 - x]/Sqrt[1 - x^2],x]

[Out]

(2*Sqrt[1 - x]*(1 + x))/Sqrt[1 - x^2]

________________________________________________________________________________________

fricas [C]  time = 0.41, size = 23, normalized size = 2.56 \[ -\frac {2 \, \sqrt {-x^{2} + 1} \sqrt {-x + 1}}{x - 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1-x)^(1/2)/(-x^2+1)^(1/2),x, algorithm="fricas")

[Out]

-2*sqrt(-x^2 + 1)*sqrt(-x + 1)/(x - 1)

________________________________________________________________________________________

giac [A]  time = 0.43, size = 13, normalized size = 1.44 \[ -2 \, \sqrt {2} + 2 \, \sqrt {x + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1-x)^(1/2)/(-x^2+1)^(1/2),x, algorithm="giac")

[Out]

-2*sqrt(2) + 2*sqrt(x + 1)

________________________________________________________________________________________

maple [B]  time = 0.00, size = 22, normalized size = 2.44 \[ \frac {2 \left (x +1\right ) \sqrt {-x +1}}{\sqrt {-x^{2}+1}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-x+1)^(1/2)/(-x^2+1)^(1/2),x)

[Out]

2*(x+1)*(-x+1)^(1/2)/(-x^2+1)^(1/2)

________________________________________________________________________________________

maxima [A]  time = 0.90, size = 7, normalized size = 0.78 \[ 2 \, \sqrt {x + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1-x)^(1/2)/(-x^2+1)^(1/2),x, algorithm="maxima")

[Out]

2*sqrt(x + 1)

________________________________________________________________________________________

mupad [B]  time = 3.64, size = 18, normalized size = 2.00 \[ \frac {2\,\sqrt {1-x^2}}{\sqrt {1-x}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1 - x)^(1/2)/(1 - x^2)^(1/2),x)

[Out]

(2*(1 - x^2)^(1/2))/(1 - x)^(1/2)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {1 - x}}{\sqrt {- \left (x - 1\right ) \left (x + 1\right )}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1-x)**(1/2)/(-x**2+1)**(1/2),x)

[Out]

Integral(sqrt(1 - x)/sqrt(-(x - 1)*(x + 1)), x)

________________________________________________________________________________________