3.1.23 \(\int e^x \cos ^2(e^x) \sin (e^x) \, dx\) [23]

Optimal. Leaf size=10 \[ -\frac {1}{3} \cos ^3\left (e^x\right ) \]

[Out]

-1/3*cos(exp(x))^3

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {2320, 2645, 30} \begin {gather*} -\frac {1}{3} \cos ^3\left (e^x\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

-1/3*Cos[E^x]^3

Rule 30

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

Rule 2320

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rule 2645

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 19, normalized size = 1.90 \begin {gather*} -\frac {1}{4} \cos \left (e^x\right )-\frac {1}{12} \cos \left (3 e^x\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

-1/4*Cos[E^x] - Cos[3*E^x]/12

________________________________________________________________________________________

Mathics [A]
time = 1.98, size = 8, normalized size = 0.80 \begin {gather*} -\frac {{\text {Cos}\left [E^x\right ]}^3}{3} \end {gather*}

Antiderivative was successfully verified.

[In]

mathics('Integrate[Cos[E^x]^2*Sin[E^x]*E^x,x]')

[Out]

-Cos[E ^ x] ^ 3 / 3

________________________________________________________________________________________

Maple [A]
time = 0.03, size = 8, normalized size = 0.80

method result size
derivativedivides \(-\frac {\left (\cos ^{3}\left ({\mathrm e}^{x}\right )\right )}{3}\) \(8\)
default \(-\frac {\left (\cos ^{3}\left ({\mathrm e}^{x}\right )\right )}{3}\) \(8\)
risch \(-\frac {\cos \left ({\mathrm e}^{x}\right )}{4}-\frac {\cos \left (3 \,{\mathrm e}^{x}\right )}{12}\) \(14\)
norman \(\frac {2 \left (\tan ^{2}\left (\frac {{\mathrm e}^{x}}{2}\right )\right )+\frac {2 \left (\tan ^{6}\left (\frac {{\mathrm e}^{x}}{2}\right )\right )}{3}}{\left (1+\tan ^{2}\left (\frac {{\mathrm e}^{x}}{2}\right )\right )^{3}}\) \(32\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(x)*cos(exp(x))^2*sin(exp(x)),x,method=_RETURNVERBOSE)

[Out]

-1/3*cos(exp(x))^3

________________________________________________________________________________________

Maxima [A]
time = 0.26, size = 7, normalized size = 0.70 \begin {gather*} -\frac {1}{3} \, \cos \left (e^{x}\right )^{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/3*cos(e^x)^3

________________________________________________________________________________________

Fricas [A]
time = 0.31, size = 7, normalized size = 0.70 \begin {gather*} -\frac {1}{3} \, \cos \left (e^{x}\right )^{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/3*cos(e^x)^3

________________________________________________________________________________________

Sympy [A]
time = 0.35, size = 8, normalized size = 0.80 \begin {gather*} - \frac {\cos ^{3}{\left (e^{x} \right )}}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-cos(exp(x))**3/3

________________________________________________________________________________________

Giac [A]
time = 0.00, size = 9, normalized size = 0.90 \begin {gather*} -\frac {\cos ^{3}\left (\mathrm {e}^{x}\right )}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/3*cos(e^x)^3

________________________________________________________________________________________

Mupad [B]
time = 0.19, size = 7, normalized size = 0.70 \begin {gather*} -\frac {{\cos \left ({\mathrm {e}}^x\right )}^3}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-cos(exp(x))^3/3

________________________________________________________________________________________