Optimal. Leaf size=33 \[ \frac{\sin ^{-1}\left (\sqrt{2} \sin (x)\right )}{2 \sqrt{2}}+\frac{1}{2} \sin (x) \sqrt{\cos (2 x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0220386, antiderivative size = 33, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.273, Rules used = {4356, 195, 216} \[ \frac{\sin ^{-1}\left (\sqrt{2} \sin (x)\right )}{2 \sqrt{2}}+\frac{1}{2} \sin (x) \sqrt{\cos (2 x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4356
Rule 195
Rule 216
Rubi steps
\begin{align*} \int \cos (x) \sqrt{\cos (2 x)} \, dx &=\operatorname{Subst}\left (\int \sqrt{1-2 x^2} \, dx,x,\sin (x)\right )\\ &=\frac{1}{2} \sqrt{\cos (2 x)} \sin (x)+\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-2 x^2}} \, dx,x,\sin (x)\right )\\ &=\frac{\sin ^{-1}\left (\sqrt{2} \sin (x)\right )}{2 \sqrt{2}}+\frac{1}{2} \sqrt{\cos (2 x)} \sin (x)\\ \end{align*}
Mathematica [A] time = 0.0183587, size = 32, normalized size = 0.97 \[ \frac{1}{4} \left (\sqrt{2} \sin ^{-1}\left (\sqrt{2} \sin (x)\right )+2 \sin (x) \sqrt{\cos (2 x)}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.056, size = 61, normalized size = 1.9 \begin{align*}{\frac{1}{8\,\sin \left ( x \right ) }\sqrt{ \left ( 2\, \left ( \cos \left ( x \right ) \right ) ^{2}-1 \right ) \left ( \sin \left ( x \right ) \right ) ^{2}} \left ( \sqrt{2}\arcsin \left ( 4\, \left ( \sin \left ( x \right ) \right ) ^{2}-1 \right ) +4\,\sqrt{-2\, \left ( \sin \left ( x \right ) \right ) ^{4}+ \left ( \sin \left ( x \right ) \right ) ^{2}} \right ){\frac{1}{\sqrt{2\, \left ( \cos \left ( x \right ) \right ) ^{2}-1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.60023, size = 659, normalized size = 19.97 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 3.21268, size = 242, normalized size = 7.33 \begin{align*} -\frac{1}{16} \, \sqrt{2} \arctan \left (\frac{{\left (32 \, \sqrt{2} \cos \left (x\right )^{4} - 48 \, \sqrt{2} \cos \left (x\right )^{2} + 17 \, \sqrt{2}\right )} \sqrt{2 \, \cos \left (x\right )^{2} - 1}}{8 \,{\left (8 \, \cos \left (x\right )^{4} - 10 \, \cos \left (x\right )^{2} + 3\right )} \sin \left (x\right )}\right ) + \frac{1}{2} \, \sqrt{2 \, \cos \left (x\right )^{2} - 1} \sin \left (x\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 \cos{\left (x \right )} \sqrt{\cos{\left (2 x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11515, size = 36, normalized size = 1.09 \begin{align*} \frac{1}{4} \, \sqrt{2} \arcsin \left (\sqrt{2} \sin \left (x\right )\right ) + \frac{1}{2} \, \sqrt{-2 \, \sin \left (x\right )^{2} + 1} \sin \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]