Optimal. Leaf size=23 \[ -2 \sqrt {1+\sin (x)}+\frac {2}{3} (1+\sin (x))^{3/2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, 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 = {2912, 45}
\begin {gather*} \frac {2}{3} (\sin (x)+1)^{3/2}-2 \sqrt {\sin (x)+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 2912
Rubi steps
\begin {align*} \int \frac {\cos (x) \sin (x)}{\sqrt {1+\sin (x)}} \, dx &=\text {Subst}\left (\int \frac {x}{\sqrt {1+x}} \, dx,x,\sin (x)\right )\\ &=\text {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.01, size = 31, normalized size = 1.35 \begin {gather*} \frac {2 \left (\cos \left (\frac {x}{2}\right )+\sin \left (\frac {x}{2}\right )\right )^2 (-2+\sin (x))}{3 \sqrt {1+\sin (x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 1.85, size = 12, normalized size = 0.52 \begin {gather*} \frac {2 \left (-2+\text {Sin}\left [x\right ]\right ) \sqrt {1+\text {Sin}\left [x\right ]}}{3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 18, normalized size = 0.78
method | result | size |
derivativedivides | \(\frac {2 \left (\sin \left (x \right )+1\right )^{\frac {3}{2}}}{3}-2 \sqrt {\sin \left (x \right )+1}\) | \(18\) |
default | \(\frac {2 \left (\sin \left (x \right )+1\right )^{\frac {3}{2}}}{3}-2 \sqrt {\sin \left (x \right )+1}\) | \(18\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 17, normalized size = 0.74 \begin {gather*} \frac {2}{3} \, {\left (\sin \left (x\right ) + 1\right )}^{\frac {3}{2}} - 2 \, \sqrt {\sin \left (x\right ) + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.32, size = 12, normalized size = 0.52 \begin {gather*} \frac {2}{3} \, \sqrt {\sin \left (x\right ) + 1} {\left (\sin \left (x\right ) - 2\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.13, size = 26, normalized size = 1.13 \begin {gather*} \frac {2 \sqrt {\sin {\left (x \right )} + 1} \sin {\left (x \right )}}{3} - \frac {4 \sqrt {\sin {\left (x \right )} + 1}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 41 vs.
\(2 (17) = 34\).
time = 0.01, size = 61, normalized size = 2.65 \begin {gather*} \frac {-25165824 \tan ^{4}\left (\frac {x}{4}\right )-33554432 \tan ^{3}\left (\frac {x}{4}\right )-8388608}{\sqrt {2}\cdot 1572864 \left (\sqrt {2} \left (\tan ^{2}\left (\frac {x}{4}\right )+1\right )^{3} \mathrm {sign}\left (\cos \left (-\frac {\pi }{4}+\frac {x}{2}\right )\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.10, size = 12, normalized size = 0.52 \begin {gather*} \frac {2\,\sqrt {\sin \left (x\right )+1}\,\left (\sin \left (x\right )-2\right )}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________