Optimal. Leaf size=25 \[ -\frac{1}{8} \cos (2 x)-\frac{1}{16} \cos (4 x)+\frac{1}{24} \cos (6 x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0296515, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 2, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {4355, 2638} \[ -\frac{1}{8} \cos (2 x)-\frac{1}{16} \cos (4 x)+\frac{1}{24} \cos (6 x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4355
Rule 2638
Rubi steps
\begin{align*} \int \sin (x) \sin (2 x) \sin (3 x) \, dx &=\int \left (\frac{1}{4} \sin (2 x)+\frac{1}{4} \sin (4 x)-\frac{1}{4} \sin (6 x)\right ) \, dx\\ &=\frac{1}{4} \int \sin (2 x) \, dx+\frac{1}{4} \int \sin (4 x) \, dx-\frac{1}{4} \int \sin (6 x) \, dx\\ &=-\frac{1}{8} \cos (2 x)-\frac{1}{16} \cos (4 x)+\frac{1}{24} \cos (6 x)\\ \end{align*}
Mathematica [A] time = 0.0096997, size = 25, normalized size = 1. \[ -\frac{1}{8} \cos (2 x)-\frac{1}{16} \cos (4 x)+\frac{1}{24} \cos (6 x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.046, size = 20, normalized size = 0.8 \begin{align*} -{\frac{\cos \left ( 2\,x \right ) }{8}}-{\frac{\cos \left ( 4\,x \right ) }{16}}+{\frac{\cos \left ( 6\,x \right ) }{24}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.928093, size = 26, normalized size = 1.04 \begin{align*} \frac{1}{24} \, \cos \left (6 \, x\right ) - \frac{1}{16} \, \cos \left (4 \, x\right ) - \frac{1}{8} \, \cos \left (2 \, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.309, size = 54, normalized size = 2.16 \begin{align*} \frac{4}{3} \, \cos \left (x\right )^{6} - \frac{5}{2} \, \cos \left (x\right )^{4} + \cos \left (x\right )^{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 15.0418, size = 114, normalized size = 4.56 \begin{align*} \frac{x \sin{\left (x \right )} \sin{\left (2 x \right )} \sin{\left (3 x \right )}}{4} + \frac{x \sin{\left (x \right )} \cos{\left (2 x \right )} \cos{\left (3 x \right )}}{4} + \frac{x \sin{\left (2 x \right )} \cos{\left (x \right )} \cos{\left (3 x \right )}}{4} - \frac{x \sin{\left (3 x \right )} \cos{\left (x \right )} \cos{\left (2 x \right )}}{4} - \frac{5 \sin{\left (x \right )} \sin{\left (2 x \right )} \cos{\left (3 x \right )}}{24} - \frac{\sin{\left (2 x \right )} \sin{\left (3 x \right )} \cos{\left (x \right )}}{8} - \frac{\cos{\left (x \right )} \cos{\left (2 x \right )} \cos{\left (3 x \right )}}{6} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.05124, size = 18, normalized size = 0.72 \begin{align*} -\frac{4}{3} \, \sin \left (x\right )^{6} + \frac{3}{2} \, \sin \left (x\right )^{4} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]