Tutorials › Calculus II › Coupled Recurrences for Exponential-Sine Integrals

Reduction Formulas · Tutorial 87 of 998

Coupled Recurrences for Exponential-Sine Integrals

Learn to derive, solve, and check the coupled formulas for integrating an exponential multiplied by sine or cosine.

Intermediate 10 min read

What You'll Learn

  • Derive each exponential-sine and exponential-cosine recurrence by integration by parts.
  • Interpret indefinite-integral recurrence equations while accounting for additive constants.
  • Eliminate the coupled integrals to obtain explicit antiderivatives.
  • Apply the formulas when the exponential coefficient is zero or negative.
  • Check candidate antiderivatives by differentiating them.
  • Identify and correct a common sign error in the coupled recurrences.

Why These Integrals Form a Pair

Integrals of the form \(e^{ax}\sin(bx)\) and \(e^{ax}\cos(bx)\) are linked: integrating either one by parts introduces the other. Rather than treating that appearance as an obstacle, we can use it to form two equations and solve them together.

Throughout, \(a\) is any real constant and \(b\) is a nonzero real constant. The condition \(b\ne 0\) is needed to use the antiderivatives of sine and cosine in the integration-by-parts steps. The method will also work when \(a=0\); no division by \(a\) is required.

Definition: Write \(S\) for an antiderivative of \(e^{ax}\sin(bx)\), and \(C\) for an antiderivative of \(e^{ax}\cos(bx)\). Thus \(S'=e^{ax}\sin(bx)\) and \(C'=e^{ax}\cos(bx)\). When equations involving indefinite integrals are written with \(\doteq\), they are understood to hold up to an additive constant.

The symbol \(\doteq\) is useful because an indefinite integral represents a family of functions differing by constants. The recurrences below describe the relationship between those families. We will solve the pair and then verify the resulting formulas directly by differentiation.

Deriving the Coupled Recurrences

Begin with \(S=\int e^{ax}\sin(bx)\,dx\). For integration by parts, choose \(u=e^{ax}\) and \(dv=\sin(bx)\,dx\). Then \(du=ae^{ax}\,dx\) and \(v=-\cos(bx)/b\). Since \(b\ne0\), this choice of \(v\) is valid.

$$ \begin{aligned} S &\doteq -\frac{e^{ax}\cos(bx)}{b} +\frac{a}{b}\int e^{ax}\cos(bx)\,dx\\ &= -\frac{e^{ax}\cos(bx)}{b}+\frac{a}{b}C. \end{aligned} $$

Now apply integration by parts to \(C=\int e^{ax}\cos(bx)\,dx\), choosing \(u=e^{ax}\) and \(dv=\cos(bx)\,dx\). Here \(du=ae^{ax}\,dx\) and \(v=\sin(bx)/b\), so the second recurrence is

$$ \begin{aligned} C &\doteq \frac{e^{ax}\sin(bx)}{b} -\frac{a}{b}\int e^{ax}\sin(bx)\,dx\\ &= \frac{e^{ax}\sin(bx)}{b}-\frac{a}{b}S. \end{aligned} $$

Each recurrence contains the other integral. Taken together, however, they form a pair of linear equations in \(S\) and \(C\). The coupled structure is the key: substitute one relation into the other, or eliminate one integral by algebra.

Recurrence pair: For real \(a\) and nonzero real \(b\), $$ S\doteq-\frac{e^{ax}\cos(bx)}{b}+\frac{a}{b}C, \qquad C\doteq\frac{e^{ax}\sin(bx)}{b}-\frac{a}{b}S. $$

Solving the Pair

Clear the denominators by multiplying both equations by \(b\). Substitution then eliminates one of the integrals. For \(S\), substitute \(bC\doteq e^{ax}\sin(bx)-aS\) into the first equation after multiplying it by \(b\):

$$ \begin{aligned} bS &\doteq -e^{ax}\cos(bx)+aC,\\ b^2S &\doteq -b e^{ax}\cos(bx)+abC\\ &\doteq -b e^{ax}\cos(bx) +a\bigl(e^{ax}\sin(bx)-aS\bigr). \end{aligned} $$

Move the term \(-a^2S\) to the left and collect the terms involving \(S\):

$$ (a^2+b^2)S \doteq e^{ax}\bigl(a\sin(bx)-b\cos(bx)\bigr). $$

Because \(a\) and \(b\) are real and \(b\ne0\), \(a^2+b^2>0\). We may divide by this quantity. Eliminating \(S\) in the same way gives the corresponding expression for \(C\). Therefore the antiderivative formulas are

$$ \begin{aligned} \int e^{ax}\sin(bx)\,dx &= \frac{e^{ax}\bigl(a\sin(bx)-b\cos(bx)\bigr)}{a^2+b^2}+K_1,\\[4pt] \int e^{ax}\cos(bx)\,dx &= \frac{e^{ax}\bigl(a\cos(bx)+b\sin(bx)\bigr)}{a^2+b^2}+K_2. \end{aligned} $$

Here \(K_1\) and \(K_2\) are arbitrary constants. They are written separately because the two indefinite integrals are separate families of antiderivatives. The denominator is never zero under the stated assumptions, including when \(a=0\).

Why the Formulas Work

The integration-by-parts recurrences explain how the two integrals depend on each other. The final formulas can also be justified completely by differentiation. This independent check is especially useful because a sign error in either recurrence can produce a plausible-looking but incorrect result.

Let \(F(x)=e^{ax}(a\sin(bx)-b\cos(bx))/(a^2+b^2)\). By the product rule, its derivative is \(e^{ax}\) times the derivative of the bracket, plus \(ae^{ax}\) times the bracket, all divided by \(a^2+b^2\). The derivative of the bracket is \(ab\cos(bx)+b^2\sin(bx)\). Hence

$$ \begin{aligned} F'(x) &=\frac{e^{ax}}{a^2+b^2} \Bigl[ ab\cos(bx)+b^2\sin(bx) +a^2\sin(bx)-ab\cos(bx) \Bigr]\\ &=\frac{e^{ax}(a^2+b^2)\sin(bx)}{a^2+b^2}\\ &=e^{ax}\sin(bx). \end{aligned} $$

The cosine formula checks similarly. If \(G(x)=e^{ax}(a\cos(bx)+b\sin(bx))/(a^2+b^2)\), the derivative of the bracket is \(-ab\sin(bx)+b^2\cos(bx)\). Therefore

$$ \begin{aligned} G'(x) &=\frac{e^{ax}}{a^2+b^2} \Bigl[ -ab\sin(bx)+b^2\cos(bx) +a^2\cos(bx)+ab\sin(bx) \Bigr]\\ &=\frac{e^{ax}(a^2+b^2)\cos(bx)}{a^2+b^2}\\ &=e^{ax}\cos(bx). \end{aligned} $$

Both candidates differentiate to their respective integrands, so each is an antiderivative. Any other antiderivative of the same function differs by a constant on an interval, which accounts for \(K_1\) and \(K_2\).

Worked Examples

Worked Example: A Positive Exponential Rate

Find both \(\int e^{2x}\sin(3x)\,dx\) and \(\int e^{2x}\cos(3x)\,dx\). Here \(a=2\), \(b=3\), and \(a^2+b^2=2^2+3^2=4+9=13\). Substitution into the formulas gives

$$ \begin{aligned} \int e^{2x}\sin(3x)\,dx &=\frac{e^{2x}(2\sin(3x)-3\cos(3x))}{13}+K_1,\\ \int e^{2x}\cos(3x)\,dx &=\frac{e^{2x}(2\cos(3x)+3\sin(3x))}{13}+K_2. \end{aligned} $$

Check the sine antiderivative by differentiating its nonconstant part:

$$ \begin{aligned} \frac{d}{dx} \left[\frac{e^{2x}(2\sin(3x)-3\cos(3x))}{13}\right] &=\frac{e^{2x}}{13} \left[6\cos(3x)+9\sin(3x)+4\sin(3x)-6\cos(3x)\right]\\ &=\frac{e^{2x}(13\sin(3x))}{13}\\ &=e^{2x}\sin(3x). \end{aligned} $$

For the cosine antiderivative, differentiation gives

$$ \begin{aligned} \frac{d}{dx} \left[\frac{e^{2x}(2\cos(3x)+3\sin(3x))}{13}\right] &=\frac{e^{2x}}{13} \left[-6\sin(3x)+9\cos(3x)+4\cos(3x)+6\sin(3x)\right]\\ &=\frac{e^{2x}(13\cos(3x))}{13}\\ &=e^{2x}\cos(3x). \end{aligned} $$

Worked Example: A Negative Exponential Rate

Evaluate \(\int e^{-x}\sin(2x)\,dx\). The parameters are \(a=-1\) and \(b=2\), so \(a^2+b^2=(-1)^2+2^2=1+4=5\). The numerator is \(e^{-x}(-\sin(2x)-2\cos(2x))\). Thus

$$ \int e^{-x}\sin(2x)\,dx =-\frac{e^{-x}\bigl(\sin(2x)+2\cos(2x)\bigr)}{5}+K. $$

To check, differentiate the displayed expression without its constant. Write it as \(\frac{1}{5}e^{-x}P(x)\) with \(P(x)=-\sin(2x)-2\cos(2x)\), so \(P'(x)=-2\cos(2x)+4\sin(2x)\). The product rule, including the derivative \(-e^{-x}\) of \(e^{-x}\), gives

$$ \begin{aligned} \frac{d}{dx}\left[\frac{e^{-x}\bigl(-\sin(2x)-2\cos(2x)\bigr)}{5}\right] &=\frac{e^{-x}}{5}\bigl(P'(x)-P(x)\bigr)\\ &=\frac{e^{-x}}{5}\left[-2\cos(2x)+4\sin(2x)+\sin(2x)+2\cos(2x)\right]\\ &=e^{-x}\sin(2x). \end{aligned} $$

The derivative equals the integrand, so the antiderivative is \(-\frac{e^{-x}(\sin(2x)+2\cos(2x))}{5}+K\), as given by the general formula. The check also illustrates why product-rule signs should be written out before collecting terms.

Worked Example: Zero Exponential Rate

Find both integrals when \(a=0\) and \(b=4\). The denominator is \(0^2+4^2=16\). With \(a=0\), the sine formula has numerator \(-b\cos(bx)\) and the cosine formula has numerator \(b\sin(bx)\). Substitution gives

$$ \begin{aligned} \int \sin(4x)\,dx &=-\frac{4\cos(4x)}{16}+K_1 =-\frac{\cos(4x)}{4}+K_1,\\ \int \cos(4x)\,dx &=\frac{4\sin(4x)}{16}+K_2 =\frac{\sin(4x)}{4}+K_2. \end{aligned} $$

Differentiate to verify both results:

$$ \frac{d}{dx}\left[-\frac{\cos(4x)}{4}\right]=\sin(4x), \qquad \frac{d}{dx}\left[\frac{\sin(4x)}{4}\right]=\cos(4x). $$

This example emphasizes that the numerator and denominator must both be substituted and simplified correctly; the general formula remains valid at \(a=0\).

A Sign Pitfall to Avoid

A frequent mistake is to use \(v=\cos(bx)/b\) as an antiderivative of \(\sin(bx)\). That is incorrect because

$$ \frac{d}{dx}\left(\frac{\cos(bx)}{b}\right)=-\sin(bx), $$

not \(\sin(bx)\). The correct antiderivative is \(v=-\cos(bx)/b\), since its derivative is \(\sin(bx)\). Using the wrong sign produces a wrong first recurrence, and the error then spreads into the solved formula. A reliable check at the integration-by-parts stage is to differentiate each chosen \(v\) before proceeding.

Another tempting but invalid shortcut is to divide by \(a\) while solving. The parameter \(a\) is allowed to be zero, so such a step would exclude a valid case. The elimination above divides only by \(a^2+b^2\), which is positive because \(b\ne0\). That condition is sufficient and includes both positive, negative, and zero values of \(a\).

When the Coupled Method Is Useful

The recurrences are useful when integration by parts produces a cycle rather than a simpler integral. One recurrence alone does not finish the calculation: it introduces the companion integral. The second recurrence supplies the additional equation needed to eliminate both unknown integrals algebraically.

The resulting expressions are compact, but the method also provides a dependable route to them: identify the two related integrals, derive both equations with their signs intact, solve the coupled pair, and differentiate the result. Keeping those steps distinct helps reveal whether a problem is in the integration-by-parts setup, the algebra, or the final verification.

Check Your Understanding

Use the recurrence pair and the final formulas to answer the following questions.

  1. What choices of \(u\) and \(dv\) produce the recurrence for \(S\), and why must \(b\) be nonzero?
  2. Write the recurrence for \(C\) and identify where its minus sign comes from.
  3. Why is it valid to divide by \(a^2+b^2\) for all real \(a\) when \(b\ne0\)?
  4. Use the formulas to find \(\int e^{3x}\cos(2x)\,dx\).
  5. Explain why the recurrence equations for indefinite integrals are understood up to additive constants.

Test yourself: Calculus II final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon