Optimal. Leaf size=49 \[ -\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)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {4441, 1261,
712} \begin {gather*} \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}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 712
Rule 1261
Rule 4441
Rubi steps
\begin {align*} \int \frac {\cos (x) \cos (2 x) \sin (3 x)}{\left (-5+4 \sin ^2(x)\right )^{5/2}} \, dx &=\text {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} \text {Subst}\left (\int \frac {3-10 x+8 x^2}{(-5+4 x)^{5/2}} \, dx,x,\sin ^2(x)\right )\\ &=\frac {1}{2} \text {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.07, size = 28, normalized size = 0.57 \begin {gather*} \frac {12+11 \cos (2 x)+\cos (4 x)}{4 \left (-5+4 \sin ^2(x)\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 46, normalized size = 0.94
method | result | size |
derivativedivides | \(\frac {2 \left (\cos ^{4}\left (x \right )\right )}{\left (-4 \left (\cos ^{2}\left (x \right )\right )-1\right )^{\frac {3}{2}}}+\frac {7 \left (\cos ^{2}\left (x \right )\right )}{2 \left (-4 \left (\cos ^{2}\left (x \right )\right )-1\right )^{\frac {3}{2}}}+\frac {1}{2 \left (-4 \left (\cos ^{2}\left (x \right )\right )-1\right )^{\frac {3}{2}}}\) | \(46\) |
default | \(\frac {2 \left (\cos ^{4}\left (x \right )\right )}{\left (-4 \left (\cos ^{2}\left (x \right )\right )-1\right )^{\frac {3}{2}}}+\frac {7 \left (\cos ^{2}\left (x \right )\right )}{2 \left (-4 \left (\cos ^{2}\left (x \right )\right )-1\right )^{\frac {3}{2}}}+\frac {1}{2 \left (-4 \left (\cos ^{2}\left (x \right )\right )-1\right )^{\frac {3}{2}}}\) | \(46\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 192 vs.
\(2 (37) = 74\).
time = 1.06, size = 192, normalized size = 3.92 \begin {gather*} -\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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 1.23, size = 33, normalized size = 0.67 \begin {gather*} \frac {1}{8} i \, \sqrt {4 \, \cos \left (x\right )^{2} + 1} - \frac {-20 i \, \cos \left (x\right )^{2} - 3 i}{8 \, {\left (4 \, \cos \left (x\right )^{2} + 1\right )}^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.63, size = 28, normalized size = 0.57 \begin {gather*} \frac {2\,{\cos \left (2\,x\right )}^2+11\,\cos \left (2\,x\right )+11}{4\,{\left (-2\,\cos \left (2\,x\right )-3\right )}^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________