Skip to content

Mathematics · Ch 11 — Integral Calculus

Integrals of the Form ∫e^{ax}sin(bx)dx and ∫e^{ax}cos(bx)dx

11.7.8

Integrals of the Form ∫e^{ax}sin(bx)dx and ∫e^{ax}cos(bx)dx

A genuinely different situation arises with integrands like eaxsin⁡bxe^{ax}\sin bx or eaxcos⁡bxe^{ax}\cos bx: applying integration by parts does not make the integral simpler or terminate the way it does for xneaxx^ne^{ax} — instead, after two applications, the original integral reappears on the right-hand side, and the trick is to solve for it algebraically rather than keep integrating forever.

Result 11.1.

∫eaxsin⁡bx dx=eaxa2+b2[asin⁡bx−bcos⁡bx]+c,\int e^{ax}\sin bx\,dx=\dfrac{e^{ax}}{a^2+b^2}\big[a\sin bx-b\cos bx\big]+c,

∫eaxcos⁡bx dx=eaxa2+b2[acos⁡bx+bsin⁡bx]+c.\int e^{ax}\cos bx\,dx=\dfrac{e^{ax}}{a^2+b^2}\big[a\cos bx+b\sin bx\big]+c.

Proof (own words), part (i). Let I=∫eaxsin⁡bx dxI=\displaystyle\int e^{ax}\sin bx\,dx. Take u=sin⁡bxu=\sin bx (du=bcos⁡bx dxdu=b\cos bx\,dx) and dv=eaxdxdv=e^{ax}dx (v=eaxav=\dfrac{e^{ax}}a); integration by parts gives

I=eaxasin⁡bx−ba∫eaxcos⁡bx dx.I=\dfrac{e^{ax}}a\sin bx-\dfrac ba\int e^{ax}\cos bx\,dx.

Now apply integration by parts a second time to the remaining integral, this time with u=cos⁡bxu=\cos bx (du=−bsin⁡bx dxdu=-b\sin bx\,dx) and the same dv=eaxdxdv=e^{ax}dx:

∫eaxcos⁡bx dx=eaxacos⁡bx+ba∫eaxsin⁡bx dx=eaxacos⁡bx+baI.\int e^{ax}\cos bx\,dx=\dfrac{e^{ax}}a\cos bx+\dfrac ba\int e^{ax}\sin bx\,dx=\dfrac{e^{ax}}a\cos bx+\dfrac ba I.

Substituting this back into the expression for II:

I=eaxasin⁡bx−ba[eaxacos⁡bx+baI]=eaxasin⁡bx−beaxa2cos⁡bx−b2a2I.I=\dfrac{e^{ax}}a\sin bx-\dfrac ba\left[\dfrac{e^{ax}}a\cos bx+\dfrac ba I\right]=\dfrac{e^{ax}}a\sin bx-\dfrac{be^{ax}}{a^2}\cos bx-\dfrac{b^2}{a^2}I.

The unknown II now appears on both sides, exactly the payoff of doing two by-parts steps with the same pairing convention throughout (per the Caution of §11.7.6). Collecting the II terms,

I(1+b2a2)=aeaxsin⁡bx−beaxcos⁡bxa2 ⟹ I⋅a2+b2a2=eax[asin⁡bx−bcos⁡bx]a2,I\left(1+\dfrac{b^2}{a^2}\right)=\dfrac{ae^{ax}\sin bx-be^{ax}\cos bx}{a^2}\ \Longrightarrow\ I\cdot\dfrac{a^2+b^2}{a^2}=\dfrac{e^{ax}[a\sin bx-b\cos bx]}{a^2},

and multiplying both sides by a2a2+b2\dfrac{a^2}{a^2+b^2} gives I=eaxa2+b2[asin⁡bx−bcos⁡bx]+cI=\dfrac{e^{ax}}{a^2+b^2}[a\sin bx-b\cos bx]+c, as stated. The cosine version follows by the identical two-step argument with the roles of sine and cosine exchanged at the first step.

Watch out

As with Bernoulli's formula, the pairing of uu and dvdv chosen at the first application must be kept consistent at the second application (sine paired with eaxe^{ax} the same way both times) — swapping the assignment partway through would make the two by-parts steps cancel instead of closing the loop.

Using the result. With aa and bb read off the given integral, the two boxed formulas are applied directly — e.g. for ∫e3xcos⁡2x dx\int e^{3x}\cos2x\,dx, take a=3,b=2a=3,b=2 to get e3x13(3cos⁡2x+2sin⁡2x)+c\dfrac{e^{3x}}{13}(3\cos2x+2\sin2x)+c; for ∫e−5xsin⁡3x dx\int e^{-5x}\sin3x\,dx, take a=−5,b=3a=-5,b=3 to get −e−5x34(5sin⁡3x+3cos⁡3x)+c-\dfrac{e^{-5x}}{34}(5\sin3x+3\cos3x)+c.

Result 11.2. A second, unrelated shortcut is useful whenever the integrand has the specific shape exe^x times a sum of a function and its own derivative:

∫ex[f(x)+f′(x)] dx=exf(x)+c.\int e^x\big[f(x)+f'(x)\big]\,dx=e^xf(x)+c.

Proof (own words). Split the integral into two pieces, ∫exf(x) dx+∫exf′(x) dx\displaystyle\int e^xf(x)\,dx+\int e^xf'(x)\,dx. Apply integration by parts to the first piece only, with u=f(x)u=f(x) (du=f′(x)dxdu=f'(x)dx) and dv=exdxdv=e^xdx (v=exv=e^x): ∫exf(x) dx=exf(x)−∫exf′(x) dx\displaystyle\int e^xf(x)\,dx=e^xf(x)-\int e^xf'(x)\,dx. Substituting this back,

∫ex[f(x)+f′(x)] dx=exf(x)−∫exf′(x) dx+∫exf′(x) dx+c=exf(x)+c,\int e^x[f(x)+f'(x)]\,dx=e^xf(x)-\int e^xf'(x)\,dx+\int e^xf'(x)\,dx+c=e^xf(x)+c,

since the two copies of ∫exf′(x)dx\int e^xf'(x)dx exactly cancel. …