3.91 \(\int \cos (x) \sin ^2(x) \, dx\)

Optimal. Leaf size=8 \[ \frac {\sin ^3(x)}{3} \]

[Out]

1/3*sin(x)^3

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 8, normalized size of antiderivative = 1.00, 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 = {2564, 30} \[ \frac {\sin ^3(x)}{3} \]

Antiderivative was successfully verified.

[In]

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

[Out]

Sin[x]^3/3

Rule 30

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

Rule 2564

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 8, normalized size = 1.00 \[ \frac {\sin ^3(x)}{3} \]

Antiderivative was successfully verified.

[In]

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

[Out]

Sin[x]^3/3

________________________________________________________________________________________

fricas [A]  time = 0.42, size = 10, normalized size = 1.25 \[ -\frac {1}{3} \, {\left (\cos \relax (x)^{2} - 1\right )} \sin \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/3*(cos(x)^2 - 1)*sin(x)

________________________________________________________________________________________

giac [A]  time = 0.99, size = 6, normalized size = 0.75 \[ \frac {1}{3} \, \sin \relax (x)^{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/3*sin(x)^3

________________________________________________________________________________________

maple [A]  time = 0.00, size = 7, normalized size = 0.88 \[ \frac {\left (\sin ^{3}\relax (x )\right )}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/3*sin(x)^3

________________________________________________________________________________________

maxima [A]  time = 0.51, size = 6, normalized size = 0.75 \[ \frac {1}{3} \, \sin \relax (x)^{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/3*sin(x)^3

________________________________________________________________________________________

mupad [B]  time = 0.03, size = 6, normalized size = 0.75 \[ \frac {{\sin \relax (x)}^3}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

sin(x)^3/3

________________________________________________________________________________________

sympy [A]  time = 0.06, size = 5, normalized size = 0.62 \[ \frac {\sin ^{3}{\relax (x )}}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

sin(x)**3/3

________________________________________________________________________________________