Optimal. Leaf size=49 \[ \frac{1}{8} \sqrt{4 \sin ^2(x)-5}-\frac{5}{8 \sqrt{4 \sin ^2(x)-5}}-\frac{1}{4 \left (4 \sin ^2(x)-5\right )^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.115832, antiderivative size = 49, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.13, Rules used = {4356, 1247, 698} \[ \frac{1}{8} \sqrt{4 \sin ^2(x)-5}-\frac{5}{8 \sqrt{4 \sin ^2(x)-5}}-\frac{1}{4 \left (4 \sin ^2(x)-5\right )^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4356
Rule 1247
Rule 698
Rubi steps
\begin{align*} \int \frac{\cos (x) \cos (2 x) \sin (3 x)}{\left (-5+4 \sin ^2(x)\right )^{5/2}} \, dx &=\operatorname{Subst}\left (\int \frac{x \left (3-10 x^2+8 x^4\right )}{\left (-5+4 x^2\right )^{5/2}} \, dx,x,\sin (x)\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{3-10 x+8 x^2}{(-5+4 x)^{5/2}} \, dx,x,\sin ^2(x)\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \left (\frac{3}{(-5+4 x)^{5/2}}+\frac{5}{2 (-5+4 x)^{3/2}}+\frac{1}{2 \sqrt{-5+4 x}}\right ) \, dx,x,\sin ^2(x)\right )\\ &=-\frac{1}{4 \left (-5+4 \sin ^2(x)\right )^{3/2}}-\frac{5}{8 \sqrt{-5+4 \sin ^2(x)}}+\frac{1}{8} \sqrt{-5+4 \sin ^2(x)}\\ \end{align*}
Mathematica [A] time = 0.0834154, size = 28, normalized size = 0.57 \[ \frac{11 \cos (2 x)+\cos (4 x)+12}{4 \left (4 \sin ^2(x)-5\right )^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.046, size = 46, normalized size = 0.9 \begin{align*} 2\,{\frac{ \left ( \cos \left ( x \right ) \right ) ^{4}}{ \left ( -4\, \left ( \cos \left ( x \right ) \right ) ^{2}-1 \right ) ^{3/2}}}+{\frac{7\, \left ( \cos \left ( x \right ) \right ) ^{2}}{2} \left ( -4\, \left ( \cos \left ( x \right ) \right ) ^{2}-1 \right ) ^{-{\frac{3}{2}}}}+{\frac{1}{2} \left ( -4\, \left ( \cos \left ( x \right ) \right ) ^{2}-1 \right ) ^{-{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.02905, size = 259, normalized size = 5.29 \begin{align*} -\frac{{\left (\cos \left (11 \, x\right ) + 14 \, \cos \left (9 \, x\right ) + 58 \, \cos \left (7 \, x\right ) + 94 \, \cos \left (5 \, x\right ) + 58 \, \cos \left (3 \, x\right ) + 15 \, \cos \left (x\right )\right )} \cos \left (\frac{5}{2} \, \arctan \left (\sin \left (4 \, x\right ) + 3 \, \sin \left (2 \, x\right ), -\cos \left (4 \, x\right ) - 3 \, \cos \left (2 \, x\right ) - 1\right )\right ) -{\left (\sin \left (11 \, x\right ) + 14 \, \sin \left (9 \, x\right ) + 58 \, \sin \left (7 \, x\right ) + 94 \, \sin \left (5 \, x\right ) + 58 \, \sin \left (3 \, x\right ) + 13 \, \sin \left (x\right )\right )} \sin \left (\frac{5}{2} \, \arctan \left (\sin \left (4 \, x\right ) + 3 \, \sin \left (2 \, x\right ), -\cos \left (4 \, x\right ) - 3 \, \cos \left (2 \, x\right ) - 1\right )\right )}{8 \,{\left (2 \,{\left (3 \, \cos \left (2 \, x\right ) + 1\right )} \cos \left (4 \, x\right ) + \cos \left (4 \, x\right )^{2} + 9 \, \cos \left (2 \, x\right )^{2} + \sin \left (4 \, x\right )^{2} + 6 \, \sin \left (4 \, x\right ) \sin \left (2 \, x\right ) + 9 \, \sin \left (2 \, x\right )^{2} + 6 \, \cos \left (2 \, x\right ) + 1\right )}^{\frac{5}{4}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 3.17695, size = 4, normalized size = 0.08 \begin{align*} 0 \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.09792, size = 45, normalized size = 0.92 \begin{align*} \frac{1}{8} \, \sqrt{4 \, \sin \left (x\right )^{2} - 5} - \frac{20 \, \sin \left (x\right )^{2} - 23}{8 \,{\left (4 \, \sin \left (x\right )^{2} - 5\right )}^{\frac{3}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]