3.746 \(\int e^{n \cos (a+b x)} \sin (2 (a+b x)) \, dx\)

Optimal. Leaf size=43 \[ \frac {2 e^{n \cos (a+b x)}}{b n^2}-\frac {2 \cos (a+b x) e^{n \cos (a+b x)}}{b n} \]

[Out]

2*exp(n*cos(b*x+a))/b/n^2-2*exp(n*cos(b*x+a))*cos(b*x+a)/b/n

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {12, 2176, 2194} \[ \frac {2 e^{n \cos (a+b x)}}{b n^2}-\frac {2 \cos (a+b x) e^{n \cos (a+b x)}}{b n} \]

Antiderivative was successfully verified.

[In]

Int[E^(n*Cos[a + b*x])*Sin[2*(a + b*x)],x]

[Out]

(2*E^(n*Cos[a + b*x]))/(b*n^2) - (2*E^(n*Cos[a + b*x])*Cos[a + b*x])/(b*n)

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 2176

Int[((b_.)*(F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[((c + d*x)^m
*(b*F^(g*(e + f*x)))^n)/(f*g*n*Log[F]), x] - Dist[(d*m)/(f*g*n*Log[F]), Int[(c + d*x)^(m - 1)*(b*F^(g*(e + f*x
)))^n, x], x] /; FreeQ[{F, b, c, d, e, f, g, n}, x] && GtQ[m, 0] && IntegerQ[2*m] &&  !$UseGamma === True

Rule 2194

Int[((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.), x_Symbol] :> Simp[(F^(c*(a + b*x)))^n/(b*c*n*Log[F]), x] /; Fre
eQ[{F, a, b, c, n}, x]

Rubi steps

\begin {align*} \int e^{n \cos (a+b x)} \sin (2 (a+b x)) \, dx &=-\frac {\operatorname {Subst}\left (\int 2 e^{n x} x \, dx,x,\cos (a+b x)\right )}{b}\\ &=-\frac {2 \operatorname {Subst}\left (\int e^{n x} x \, dx,x,\cos (a+b x)\right )}{b}\\ &=-\frac {2 e^{n \cos (a+b x)} \cos (a+b x)}{b n}+\frac {2 \operatorname {Subst}\left (\int e^{n x} \, dx,x,\cos (a+b x)\right )}{b n}\\ &=\frac {2 e^{n \cos (a+b x)}}{b n^2}-\frac {2 e^{n \cos (a+b x)} \cos (a+b x)}{b n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 28, normalized size = 0.65 \[ -\frac {2 e^{n \cos (a+b x)} (n \cos (a+b x)-1)}{b n^2} \]

Antiderivative was successfully verified.

[In]

Integrate[E^(n*Cos[a + b*x])*Sin[2*(a + b*x)],x]

[Out]

(-2*E^(n*Cos[a + b*x])*(-1 + n*Cos[a + b*x]))/(b*n^2)

________________________________________________________________________________________

fricas [A]  time = 0.72, size = 27, normalized size = 0.63 \[ -\frac {2 \, {\left (n \cos \left (b x + a\right ) - 1\right )} e^{\left (n \cos \left (b x + a\right )\right )}}{b n^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(n*cos(b*x+a))*sin(2*b*x+2*a),x, algorithm="fricas")

[Out]

-2*(n*cos(b*x + a) - 1)*e^(n*cos(b*x + a))/(b*n^2)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int e^{\left (n \cos \left (b x + a\right )\right )} \sin \left (2 \, b x + 2 \, a\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(n*cos(b*x+a))*sin(2*b*x+2*a),x, algorithm="giac")

[Out]

integrate(e^(n*cos(b*x + a))*sin(2*b*x + 2*a), x)

________________________________________________________________________________________

maple [C]  time = 0.00, size = 105, normalized size = 2.44 \[ -\frac {{\mathrm e}^{n \cos \left (b x \right ) \cos \relax (a )-n \sin \left (b x \right ) \sin \relax (a )} {\mathrm e}^{i b x} {\mathrm e}^{i a}}{b n}-\frac {{\mathrm e}^{n \cos \left (b x \right ) \cos \relax (a )-n \sin \left (b x \right ) \sin \relax (a )} {\mathrm e}^{-i b x} {\mathrm e}^{-i a}}{b n}+\frac {2 \,{\mathrm e}^{n \left (\cos \left (b x \right ) \cos \relax (a )-\sin \left (b x \right ) \sin \relax (a )\right )}}{b \,n^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(n*cos(b*x+a))*sin(2*b*x+2*a),x)

[Out]

-1/b/n*exp(n*cos(b*x)*cos(a)-n*sin(b*x)*sin(a))*exp(I*b*x)*exp(I*a)-1/b/n*exp(n*cos(b*x)*cos(a)-n*sin(b*x)*sin
(a))*exp(-I*b*x)*exp(-I*a)+2/b/n^2*exp(n*(cos(b*x)*cos(a)-sin(b*x)*sin(a)))

________________________________________________________________________________________

maxima [A]  time = 0.34, size = 37, normalized size = 0.86 \[ -\frac {2 \, {\left (n \cos \left (b x + a\right ) e^{\left (n \cos \left (b x + a\right )\right )} - e^{\left (n \cos \left (b x + a\right )\right )}\right )}}{b n^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(n*cos(b*x+a))*sin(2*b*x+2*a),x, algorithm="maxima")

[Out]

-2*(n*cos(b*x + a)*e^(n*cos(b*x + a)) - e^(n*cos(b*x + a)))/(b*n^2)

________________________________________________________________________________________

mupad [B]  time = 0.00, size = 27, normalized size = 0.63 \[ -\frac {2\,{\mathrm {e}}^{n\,\cos \left (a+b\,x\right )}\,\left (n\,\cos \left (a+b\,x\right )-1\right )}{b\,n^2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(n*cos(a + b*x))*sin(2*a + 2*b*x),x)

[Out]

-(2*exp(n*cos(a + b*x))*(n*cos(a + b*x) - 1))/(b*n^2)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int e^{n \cos {\left (a + b x \right )}} \sin {\left (2 a + 2 b x \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(n*cos(b*x+a))*sin(2*b*x+2*a),x)

[Out]

Integral(exp(n*cos(a + b*x))*sin(2*a + 2*b*x), x)

________________________________________________________________________________________