3.348 \(\int \frac {\cos (x) \sin (x)}{\sqrt {1+\sin (x)}} \, dx\)

Optimal. Leaf size=23 \[ \frac {2}{3} (\sin (x)+1)^{3/2}-2 \sqrt {\sin (x)+1} \]

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2833, 43} \[ \frac {2}{3} (\sin (x)+1)^{3/2}-2 \sqrt {\sin (x)+1} \]

Antiderivative was successfully verified.

[In]

Int[(Cos[x]*Sin[x])/Sqrt[1 + Sin[x]],x]

[Out]

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

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2833

Int[cos[(e_.) + (f_.)*(x_)]*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)
])^(n_.), x_Symbol] :> Dist[1/(b*f), Subst[Int[(a + x)^m*(c + (d*x)/b)^n, x], x, b*Sin[e + f*x]], x] /; FreeQ[
{a, b, c, d, e, f, m, n}, x]

Rubi steps

\begin {align*} \int \frac {\cos (x) \sin (x)}{\sqrt {1+\sin (x)}} \, dx &=\operatorname {Subst}\left (\int \frac {x}{\sqrt {1+x}} \, dx,x,\sin (x)\right )\\ &=\operatorname {Subst}\left (\int \left (-\frac {1}{\sqrt {1+x}}+\sqrt {1+x}\right ) \, dx,x,\sin (x)\right )\\ &=-2 \sqrt {1+\sin (x)}+\frac {2}{3} (1+\sin (x))^{3/2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 31, normalized size = 1.35 \[ \frac {2 (\sin (x)-2) \left (\sin \left (\frac {x}{2}\right )+\cos \left (\frac {x}{2}\right )\right )^2}{3 \sqrt {\sin (x)+1}} \]

Antiderivative was successfully verified.

[In]

Integrate[(Cos[x]*Sin[x])/Sqrt[1 + Sin[x]],x]

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.43, size = 12, normalized size = 0.52 \[ \frac {2}{3} \, \sqrt {\sin \relax (x) + 1} {\left (\sin \relax (x) - 2\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.89, size = 17, normalized size = 0.74 \[ \frac {2}{3} \, {\left (\sin \relax (x) + 1\right )}^{\frac {3}{2}} - 2 \, \sqrt {\sin \relax (x) + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.02, size = 18, normalized size = 0.78 \[ \frac {2 \left (\sin \relax (x )+1\right )^{\frac {3}{2}}}{3}-2 \sqrt {\sin \relax (x )+1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(x)*sin(x)/(sin(x)+1)^(1/2),x)

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.43, size = 17, normalized size = 0.74 \[ \frac {2}{3} \, {\left (\sin \relax (x) + 1\right )}^{\frac {3}{2}} - 2 \, \sqrt {\sin \relax (x) + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.10, size = 12, normalized size = 0.52 \[ \frac {2\,\sqrt {\sin \relax (x)+1}\,\left (\sin \relax (x)-2\right )}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((cos(x)*sin(x))/(sin(x) + 1)^(1/2),x)

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.36, size = 26, normalized size = 1.13 \[ \frac {2 \sqrt {\sin {\relax (x )} + 1} \sin {\relax (x )}}{3} - \frac {4 \sqrt {\sin {\relax (x )} + 1}}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)*sin(x)/(1+sin(x))**(1/2),x)

[Out]

2*sqrt(sin(x) + 1)*sin(x)/3 - 4*sqrt(sin(x) + 1)/3

________________________________________________________________________________________