3.236 \(\int \sqrt{1-\sin (x)} \, dx\)

Optimal. Leaf size=14 \[ \frac{2 \cos (x)}{\sqrt{1-\sin (x)}} \]

[Out]

(2*Cos[x])/Sqrt[1 - Sin[x]]

________________________________________________________________________________________

Rubi [A]  time = 0.0088184, antiderivative size = 14, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1, Rules used = {2646} \[ \frac{2 \cos (x)}{\sqrt{1-\sin (x)}} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[1 - Sin[x]],x]

[Out]

(2*Cos[x])/Sqrt[1 - Sin[x]]

Rule 2646

Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(-2*b*Cos[c + d*x])/(d*Sqrt[a + b*Sin[c + d*
x]]), x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0]

Rubi steps

\begin{align*} \int \sqrt{1-\sin (x)} \, dx &=\frac{2 \cos (x)}{\sqrt{1-\sin (x)}}\\ \end{align*}

Mathematica [B]  time = 0.0111571, size = 42, normalized size = 3. \[ \frac{2 \sqrt{1-\sin (x)} \left (\sin \left (\frac{x}{2}\right )+\cos \left (\frac{x}{2}\right )\right )}{\cos \left (\frac{x}{2}\right )-\sin \left (\frac{x}{2}\right )} \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[1 - Sin[x]],x]

[Out]

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

________________________________________________________________________________________

Maple [A]  time = 0.035, size = 23, normalized size = 1.6 \begin{align*} -2\,{\frac{ \left ( -1+\sin \left ( x \right ) \right ) \left ( 1+\sin \left ( x \right ) \right ) }{\cos \left ( x \right ) \sqrt{1-\sin \left ( x \right ) }}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{-\sin \left (x\right ) + 1}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(sqrt(-sin(x) + 1), x)

________________________________________________________________________________________

Fricas [B]  time = 1.60813, size = 88, normalized size = 6.29 \begin{align*} \frac{2 \,{\left (\cos \left (x\right ) + \sin \left (x\right ) + 1\right )} \sqrt{-\sin \left (x\right ) + 1}}{\cos \left (x\right ) - \sin \left (x\right ) + 1} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*(cos(x) + sin(x) + 1)*sqrt(-sin(x) + 1)/(cos(x) - sin(x) + 1)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{1 - \sin{\left (x \right )}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Integral(sqrt(1 - sin(x)), x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{-\sin \left (x\right ) + 1}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(sqrt(-sin(x) + 1), x)