Optimal. Leaf size=28 \[ 2 \sin ^{-1}\left (\frac{\sin (x)}{2}\right )+\frac{1}{2} \sin (x) \sqrt{4-\sin ^2(x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.026376, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3190, 195, 216} \[ 2 \sin ^{-1}\left (\frac{\sin (x)}{2}\right )+\frac{1}{2} \sin (x) \sqrt{4-\sin ^2(x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3190
Rule 195
Rule 216
Rubi steps
\begin{align*} \int \cos (x) \sqrt{4-\sin ^2(x)} \, dx &=\operatorname{Subst}\left (\int \sqrt{4-x^2} \, dx,x,\sin (x)\right )\\ &=\frac{1}{2} \sin (x) \sqrt{4-\sin ^2(x)}+2 \operatorname{Subst}\left (\int \frac{1}{\sqrt{4-x^2}} \, dx,x,\sin (x)\right )\\ &=2 \sin ^{-1}\left (\frac{\sin (x)}{2}\right )+\frac{1}{2} \sin (x) \sqrt{4-\sin ^2(x)}\\ \end{align*}
Mathematica [A] time = 0.0177558, size = 28, normalized size = 1. \[ 2 \sin ^{-1}\left (\frac{\sin (x)}{2}\right )+\frac{1}{2} \sin (x) \sqrt{4-\sin ^2(x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.023, size = 23, normalized size = 0.8 \begin{align*} 2\,\arcsin \left ( 1/2\,\sin \left ( x \right ) \right ) +{\frac{\sin \left ( x \right ) }{2}\sqrt{4- \left ( \sin \left ( x \right ) \right ) ^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.49782, size = 30, normalized size = 1.07 \begin{align*} \frac{1}{2} \, \sqrt{-\sin \left (x\right )^{2} + 4} \sin \left (x\right ) + 2 \, \arcsin \left (\frac{1}{2} \, \sin \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.22431, size = 208, normalized size = 7.43 \begin{align*} \frac{1}{2} \, \sqrt{\cos \left (x\right )^{2} + 3} \sin \left (x\right ) + \arctan \left (\frac{\sqrt{\cos \left (x\right )^{2} + 3}{\left (\cos \left (x\right )^{2} + 1\right )} \sin \left (x\right ) - 4 \, \cos \left (x\right ) \sin \left (x\right )}{\cos \left (x\right )^{4} + 6 \, \cos \left (x\right )^{2} - 3}\right ) + \arctan \left (\frac{\sin \left (x\right )}{\cos \left (x\right )}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{- \left (\sin{\left (x \right )} - 2\right ) \left (\sin{\left (x \right )} + 2\right )} \cos{\left (x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09273, size = 30, normalized size = 1.07 \begin{align*} \frac{1}{2} \, \sqrt{-\sin \left (x\right )^{2} + 4} \sin \left (x\right ) + 2 \, \arcsin \left (\frac{1}{2} \, \sin \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]