3.34 \(\int \cos ^3(x) \sin (x) \, dx\)

Optimal. Leaf size=8 \[ -\frac{1}{4} \cos ^4(x) \]

[Out]

-Cos[x]^4/4

________________________________________________________________________________________

Rubi [A]  time = 0.0122785, antiderivative size = 8, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 7, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {2565, 30} \[ -\frac{1}{4} \cos ^4(x) \]

Antiderivative was successfully verified.

[In]

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

[Out]

-Cos[x]^4/4

Rule 2565

Int[(cos[(e_.) + (f_.)*(x_)]*(a_.))^(m_.)*sin[(e_.) + (f_.)*(x_)]^(n_.), x_Symbol] :> -Dist[(a*f)^(-1), Subst[
Int[x^m*(1 - x^2/a^2)^((n - 1)/2), x], x, a*Cos[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n - 1)/2]
 &&  !(IntegerQ[(m - 1)/2] && GtQ[m, 0] && LeQ[m, n])

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rubi steps

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

Mathematica [A]  time = 0.0010436, size = 8, normalized size = 1. \[ -\frac{1}{4} \cos ^4(x) \]

Antiderivative was successfully verified.

[In]

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

[Out]

-Cos[x]^4/4

________________________________________________________________________________________

Maple [A]  time = 0.003, size = 7, normalized size = 0.9 \begin{align*} -{\frac{ \left ( \cos \left ( x \right ) \right ) ^{4}}{4}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/4*cos(x)^4

________________________________________________________________________________________

Maxima [A]  time = 0.925397, size = 8, normalized size = 1. \begin{align*} -\frac{1}{4} \, \cos \left (x\right )^{4} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/4*cos(x)^4

________________________________________________________________________________________

Fricas [A]  time = 1.93062, size = 20, normalized size = 2.5 \begin{align*} -\frac{1}{4} \, \cos \left (x\right )^{4} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/4*cos(x)^4

________________________________________________________________________________________

Sympy [A]  time = 0.057671, size = 7, normalized size = 0.88 \begin{align*} - \frac{\cos ^{4}{\left (x \right )}}{4} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-cos(x)**4/4

________________________________________________________________________________________

Giac [A]  time = 1.06011, size = 8, normalized size = 1. \begin{align*} -\frac{1}{4} \, \cos \left (x\right )^{4} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/4*cos(x)^4