3.655 \(\int \sin (3 x) \sin (\cos (3 x)) \, dx\)

Optimal. Leaf size=9 \[ \frac {1}{3} \cos (\cos (3 x)) \]

[Out]

1/3*cos(cos(3*x))

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4335, 2638} \[ \frac {1}{3} \cos (\cos (3 x)) \]

Antiderivative was successfully verified.

[In]

Int[Sin[3*x]*Sin[Cos[3*x]],x]

[Out]

Cos[Cos[3*x]]/3

Rule 2638

Int[sin[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Cos[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 4335

Int[(u_)*(F_)[(c_.)*((a_.) + (b_.)*(x_))], x_Symbol] :> With[{d = FreeFactors[Cos[c*(a + b*x)], x]}, -Dist[d/(
b*c), Subst[Int[SubstFor[1, Cos[c*(a + b*x)]/d, u, x], x], x, Cos[c*(a + b*x)]/d], x] /; FunctionOfQ[Cos[c*(a
+ b*x)]/d, u, x, True]] /; FreeQ[{a, b, c}, x] && (EqQ[F, Sin] || EqQ[F, sin])

Rubi steps

\begin {align*} \int \sin (3 x) \sin (\cos (3 x)) \, dx &=-\left (\frac {1}{3} \operatorname {Subst}(\int \sin (x) \, dx,x,\cos (3 x))\right )\\ &=\frac {1}{3} \cos (\cos (3 x))\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 2.68, size = 9, normalized size = 1.00 \[ \frac {1}{3} \cos (\cos (3 x)) \]

Antiderivative was successfully verified.

[In]

Integrate[Sin[3*x]*Sin[Cos[3*x]],x]

[Out]

Cos[Cos[3*x]]/3

________________________________________________________________________________________

fricas [B]  time = 0.95, size = 22, normalized size = 2.44 \[ \frac {1}{3} \, \cos \left (\frac {\tan \left (\frac {3}{2} \, x\right )^{2} - 1}{\tan \left (\frac {3}{2} \, x\right )^{2} + 1}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(3*x)*sin(cos(3*x)),x, algorithm="fricas")

[Out]

1/3*cos((tan(3/2*x)^2 - 1)/(tan(3/2*x)^2 + 1))

________________________________________________________________________________________

giac [A]  time = 0.16, size = 7, normalized size = 0.78 \[ \frac {1}{3} \, \cos \left (\cos \left (3 \, x\right )\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(3*x)*sin(cos(3*x)),x, algorithm="giac")

[Out]

1/3*cos(cos(3*x))

________________________________________________________________________________________

maple [A]  time = 0.01, size = 8, normalized size = 0.89 \[ \frac {\cos \left (\cos \left (3 x \right )\right )}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(3*x)*sin(cos(3*x)),x)

[Out]

1/3*cos(cos(3*x))

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 7, normalized size = 0.78 \[ \frac {1}{3} \, \cos \left (\cos \left (3 \, x\right )\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(3*x)*sin(cos(3*x)),x, algorithm="maxima")

[Out]

1/3*cos(cos(3*x))

________________________________________________________________________________________

mupad [B]  time = 3.01, size = 7, normalized size = 0.78 \[ \frac {\cos \left (\cos \left (3\,x\right )\right )}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(3*x)*sin(cos(3*x)),x)

[Out]

cos(cos(3*x))/3

________________________________________________________________________________________

sympy [A]  time = 0.42, size = 7, normalized size = 0.78 \[ \frac {\cos {\left (\cos {\left (3 x \right )} \right )}}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(3*x)*sin(cos(3*x)),x)

[Out]

cos(cos(3*x))/3

________________________________________________________________________________________