3.908 \(\int \cos ^3(1+x) \sin ^3(1+x) \, dx\)

Optimal. Leaf size=21 \[ \frac{1}{4} \sin ^4(x+1)-\frac{1}{6} \sin ^6(x+1) \]

[Out]

Sin[1 + x]^4/4 - Sin[1 + x]^6/6

________________________________________________________________________________________

Rubi [A]  time = 0.0298582, antiderivative size = 21, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {2564, 14} \[ \frac{1}{4} \sin ^4(x+1)-\frac{1}{6} \sin ^6(x+1) \]

Antiderivative was successfully verified.

[In]

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

[Out]

Sin[1 + x]^4/4 - Sin[1 + x]^6/6

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])

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rubi steps

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

Mathematica [A]  time = 0.0127767, size = 25, normalized size = 1.19 \[ \frac{1}{8} \left (\frac{1}{24} \cos (6 (x+1))-\frac{3}{8} \cos (2 (x+1))\right ) \]

Antiderivative was successfully verified.

[In]

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

[Out]

((-3*Cos[2*(1 + x)])/8 + Cos[6*(1 + x)]/24)/8

________________________________________________________________________________________

Maple [A]  time = 0.013, size = 24, normalized size = 1.1 \begin{align*} -{\frac{ \left ( \cos \left ( 1+x \right ) \right ) ^{4} \left ( \sin \left ( 1+x \right ) \right ) ^{2}}{6}}-{\frac{ \left ( \cos \left ( 1+x \right ) \right ) ^{4}}{12}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/6*cos(1+x)^4*sin(1+x)^2-1/12*cos(1+x)^4

________________________________________________________________________________________

Maxima [A]  time = 0.9565, size = 23, normalized size = 1.1 \begin{align*} -\frac{1}{6} \, \sin \left (x + 1\right )^{6} + \frac{1}{4} \, \sin \left (x + 1\right )^{4} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/6*sin(x + 1)^6 + 1/4*sin(x + 1)^4

________________________________________________________________________________________

Fricas [A]  time = 1.97505, size = 50, normalized size = 2.38 \begin{align*} \frac{1}{6} \, \cos \left (x + 1\right )^{6} - \frac{1}{4} \, \cos \left (x + 1\right )^{4} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/6*cos(x + 1)^6 - 1/4*cos(x + 1)^4

________________________________________________________________________________________

Sympy [A]  time = 2.07261, size = 22, normalized size = 1.05 \begin{align*} \frac{\sin ^{6}{\left (x + 1 \right )}}{12} + \frac{\sin ^{4}{\left (x + 1 \right )} \cos ^{2}{\left (x + 1 \right )}}{4} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

sin(x + 1)**6/12 + sin(x + 1)**4*cos(x + 1)**2/4

________________________________________________________________________________________

Giac [A]  time = 1.08373, size = 23, normalized size = 1.1 \begin{align*} -\frac{1}{6} \, \sin \left (x + 1\right )^{6} + \frac{1}{4} \, \sin \left (x + 1\right )^{4} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/6*sin(x + 1)^6 + 1/4*sin(x + 1)^4