Optimal. Leaf size=39 \[ \frac{2 \sin ^{-1}\left (\sqrt{\frac{5}{2}} \sin (x)\right )}{5 \sqrt{5}}+\frac{\sin (x)}{10 \sqrt{2-5 \sin ^2(x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0668324, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158, Rules used = {4356, 385, 216} \[ \frac{2 \sin ^{-1}\left (\sqrt{\frac{5}{2}} \sin (x)\right )}{5 \sqrt{5}}+\frac{\sin (x)}{10 \sqrt{2-5 \sin ^2(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4356
Rule 385
Rule 216
Rubi steps
\begin{align*} \int \frac{\cos (x) \cos (2 x)}{\left (2-5 \sin ^2(x)\right )^{3/2}} \, dx &=\operatorname{Subst}\left (\int \frac{1-2 x^2}{\left (2-5 x^2\right )^{3/2}} \, dx,x,\sin (x)\right )\\ &=\frac{\sin (x)}{10 \sqrt{2-5 \sin ^2(x)}}+\frac{2}{5} \operatorname{Subst}\left (\int \frac{1}{\sqrt{2-5 x^2}} \, dx,x,\sin (x)\right )\\ &=\frac{2 \sin ^{-1}\left (\sqrt{\frac{5}{2}} \sin (x)\right )}{5 \sqrt{5}}+\frac{\sin (x)}{10 \sqrt{2-5 \sin ^2(x)}}\\ \end{align*}
Mathematica [A] time = 0.0941733, size = 39, normalized size = 1. \[ \frac{1}{50} \left (4 \sqrt{5} \sin ^{-1}\left (\sqrt{\frac{5}{2}} \sin (x)\right )+\frac{5 \sin (x)}{\sqrt{2-5 \sin ^2(x)}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.113, size = 58, normalized size = 1.5 \begin{align*}{\frac{1}{250\, \left ( \cos \left ( x \right ) \right ) ^{2}-150} \left ( 20\,\sqrt{5}\arcsin \left ( 1/2\,\sin \left ( x \right ) \sqrt{10} \right ) \left ( \cos \left ( x \right ) \right ) ^{2}+5\,\sin \left ( x \right ) \sqrt{5\, \left ( \cos \left ( x \right ) \right ) ^{2}-3}-12\,\arcsin \left ( 1/2\,\sin \left ( x \right ) \sqrt{10} \right ) \sqrt{5} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.73337, size = 967, normalized size = 24.79 \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.21994, size = 302, normalized size = 7.74 \begin{align*} -\frac{{\left (5 \, \sqrt{5} \cos \left (x\right )^{2} - 3 \, \sqrt{5}\right )} \arctan \left (\frac{{\left (50 \, \sqrt{5} \cos \left (x\right )^{4} - 80 \, \sqrt{5} \cos \left (x\right )^{2} + 31 \, \sqrt{5}\right )} \sqrt{5 \, \cos \left (x\right )^{2} - 3}}{10 \,{\left (25 \, \cos \left (x\right )^{4} - 35 \, \cos \left (x\right )^{2} + 12\right )} \sin \left (x\right )}\right ) - 5 \, \sqrt{5 \, \cos \left (x\right )^{2} - 3} \sin \left (x\right )}{50 \,{\left (5 \, \cos \left (x\right )^{2} - 3\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10228, size = 51, normalized size = 1.31 \begin{align*} \frac{2}{25} \, \sqrt{5} \arcsin \left (\frac{1}{2} \, \sqrt{10} \sin \left (x\right )\right ) - \frac{\sqrt{-5 \, \sin \left (x\right )^{2} + 2} \sin \left (x\right )}{10 \,{\left (5 \, \sin \left (x\right )^{2} - 2\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]