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

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

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {2646} \[ \frac {\cos (2 x)}{\sqrt {1-\sin (2 x)}} \]

Antiderivative was successfully verified.

[In]

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

[Out]

Cos[2*x]/Sqrt[1 - Sin[2*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 (2 x)} \, dx &=\frac {\cos (2 x)}{\sqrt {1-\sin (2 x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 27, normalized size = 1.59 \[ \frac {\sqrt {1-\sin (2 x)} (\sin (x)+\cos (x))}{\cos (x)-\sin (x)} \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {1-\sin (2 x)} \, dx \]

Verification is Not applicable to the result.

[In]

IntegrateAlgebraic[Sqrt[1 - Sin[2*x]],x]

[Out]

Could not integrate

________________________________________________________________________________________

fricas [B]  time = 0.79, size = 35, normalized size = 2.06 \[ \frac {{\left (\cos \left (2 \, x\right ) + \sin \left (2 \, x\right ) + 1\right )} \sqrt {-\sin \left (2 \, x\right ) + 1}}{\cos \left (2 \, x\right ) - \sin \left (2 \, x\right ) + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.65, size = 29, normalized size = 1.71 \[ -\sqrt {2} {\left (\cos \left (-\frac {1}{4} \, \pi + x\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + x\right )\right ) - \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + x\right )\right )\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.15, size = 31, normalized size = 1.82




method result size



default \(-\frac {\left (\sin \left (2 x \right )-1\right ) \left (1+\sin \left (2 x \right )\right )}{\cos \left (2 x \right ) \sqrt {1-\sin \left (2 x \right )}}\) \(31\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1-sin(2*x))^(1/2),x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {-\sin \left (2 \, x\right ) + 1}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.22, size = 23, normalized size = 1.35 \[ \frac {\sqrt {1-\sin \left (2\,x\right )}\,\left (\sin \left (2\,x\right )+1\right )}{\cos \left (2\,x\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________