3.828 \(\int (-\cos (3 x) \sin (2 x)+\cos (2 x) \sin (3 x)) \, dx\)

Optimal. Leaf size=4 \[ -\cos (x) \]

[Out]

-cos(x)

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 4, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 1, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {4284} \[ -\cos (x) \]

Antiderivative was successfully verified.

[In]

Int[-(Cos[3*x]*Sin[2*x]) + Cos[2*x]*Sin[3*x],x]

[Out]

-Cos[x]

Rule 4284

Int[cos[(c_.) + (d_.)*(x_)]*sin[(a_.) + (b_.)*(x_)], x_Symbol] :> -Simp[Cos[a - c + (b - d)*x]/(2*(b - d)), x]
 - Simp[Cos[a + c + (b + d)*x]/(2*(b + d)), x] /; FreeQ[{a, b, c, d}, x] && NeQ[b^2 - d^2, 0]

Rubi steps

\begin {align*} \int (-\cos (3 x) \sin (2 x)+\cos (2 x) \sin (3 x)) \, dx &=-\int \cos (3 x) \sin (2 x) \, dx+\int \cos (2 x) \sin (3 x) \, dx\\ &=-\cos (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 4, normalized size = 1.00 \[ -\cos (x) \]

Antiderivative was successfully verified.

[In]

Integrate[-(Cos[3*x]*Sin[2*x]) + Cos[2*x]*Sin[3*x],x]

[Out]

-Cos[x]

________________________________________________________________________________________

fricas [A]  time = 0.69, size = 4, normalized size = 1.00 \[ -\cos \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-cos(x)

________________________________________________________________________________________

giac [A]  time = 0.14, size = 4, normalized size = 1.00 \[ -\cos \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-cos(x)

________________________________________________________________________________________

maple [A]  time = 0.16, size = 5, normalized size = 1.25 \[ -\cos \relax (x ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-cos(3*x)*sin(2*x)+cos(2*x)*sin(3*x),x)

[Out]

-cos(x)

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 4, normalized size = 1.00 \[ -\cos \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-cos(x)

________________________________________________________________________________________

mupad [B]  time = 3.07, size = 4, normalized size = 1.00 \[ -\cos \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-cos(x)

________________________________________________________________________________________

sympy [B]  time = 0.69, size = 20, normalized size = 5.00 \[ - \sin {\left (2 x \right )} \sin {\left (3 x \right )} - \cos {\left (2 x \right )} \cos {\left (3 x \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-cos(3*x)*sin(2*x)+cos(2*x)*sin(3*x),x)

[Out]

-sin(2*x)*sin(3*x) - cos(2*x)*cos(3*x)

________________________________________________________________________________________