Tutorials › Calculus II › Antiderivatives of Exponential-Sine Products

Repeated and Tabular Parts · Tutorial 63 of 998

Antiderivatives of Exponential-Sine Products

Learn to derive and verify the coefficients in an antiderivative for an exponential-sine product, including the parameter cases where the usual derivation needs care.

Intermediate 8 min read

What You'll Learn

  • Derive the sine-product antiderivative using a coupled integration-by-parts system.
  • Identify how the growth rate and sine frequency determine the coefficients.
  • State the parameter conditions for the formula and handle the zero-frequency cases.
  • Verify a proposed antiderivative by differentiating it term by term.
  • Recognize and correct a common sign error in the cosine term.

Why This Product Needs a Cyclic Method

For a product such as \(e^{ax}\sin(bx)\), integration by parts does not simplify the integrand in the way it does for a polynomial times an exponential: differentiating the exponential preserves its form, and integrating the sine produces a cosine. A further integration by parts brings the sine back. The resulting pair of integrals can be solved together, which is the key step behind the formula in this tutorial.

The constants \(a\) and \(b\) affect the answer in different ways. The parameter \(a\) describes the exponential factor, while \(b\) controls the sine's frequency. Keeping these parameters visible makes the coefficient pattern easier to derive and check than memorizing a formula for one particular product.

Definition: Let \(a,b\in\mathbb{R}\) be constants. An antiderivative of \(e^{ax}\sin(bx)\) on \(\mathbb{R}\) is a differentiable function \(F\) such that \(F'(x)=e^{ax}\sin(bx)\) for every real \(x\).

The General Formula

When \(a\) and \(b\) are not both zero, the antiderivative is

$$ \int e^{ax}\sin(bx)\,dx = \frac{e^{ax}\bigl(a\sin(bx)-b\cos(bx)\bigr)}{a^2+b^2}+C. $$

The denominator is the sum of two squares, so it is positive whenever \((a,b)\ne(0,0)\). The numerator combines a sine term with coefficient \(a\) and a cosine term with coefficient \(-b\). Both the coefficients and the denominator are important: omitting either contribution generally means the derivative will not equal the original integrand.

Theorem: For real constants \(a,b\) with \(a^2+b^2>0\), every antiderivative of \(e^{ax}\sin(bx)\) has the form \(\dfrac{e^{ax}\bigl(a\sin(bx)-b\cos(bx)\bigr)}{a^2+b^2}+C\), where \(C\) is a constant. If \(a=b=0\), the integrand is identically zero and its antiderivatives are the constant functions.

Deriving the Coefficients by Integration by Parts

First suppose \(b\ne0\), so integration of the sine or cosine introduces a factor of \(1/b\). Use the following notation for antiderivatives:

$$ I=\int e^{ax}\sin(bx)\,dx, \qquad J=\int e^{ax}\cos(bx)\,dx. $$

Integration by parts gives two linked equations. For \(I\), take \(e^{ax}\) as the factor to differentiate and integrate \(\sin(bx)\). For \(J\), do the same with \(\cos(bx)\). Since indefinite antiderivatives are defined up to constants, include constants \(C_1,C_2\) in the equations:

$$ I=-\frac{e^{ax}\cos(bx)}{b}+\frac{a}{b}J+C_1, \qquad J=\frac{e^{ax}\sin(bx)}{b}-\frac{a}{b}I+C_2. $$

Substitute the second equation into the first. Then collect the terms involving \(I\) on one side. This isolates the sine integral without needing to determine \(J\) separately.

1
Substitute the equation for \(J\).
Replace \(J\) in the first integration-by-parts equation with its expression in terms of \(I\) and elementary functions.
2
Collect the \(I\)-terms.
Move the term \(-\dfrac{a^2}{b^2}I\) to the left. The combined coefficient is \(1+\dfrac{a^2}{b^2}\).
3
Simplify the coefficients.
Multiply through by \(b^2\) and divide by \(a^2+b^2\), which is nonzero in the stated parameter case.

In equations, the substitution and rearrangement are

$$ \begin{aligned} I &=-\frac{e^{ax}\cos(bx)}{b} +\frac{a}{b}\left( \frac{e^{ax}\sin(bx)}{b} -\frac{a}{b}I+C_2 \right)+C_1\\ \left(1+\frac{a^2}{b^2}\right)I &=e^{ax}\left(\frac{a\sin(bx)}{b^2}-\frac{\cos(bx)}{b}\right) +\frac{a}{b}C_2+C_1\\ I &=\frac{e^{ax}\bigl(a\sin(bx)-b\cos(bx)\bigr)}{a^2+b^2}+C. \end{aligned} $$

In the final line, the terms involving \(C_1\) and \(C_2\) have been combined into a single arbitrary constant \(C\). This is valid because they do not depend on \(x\). The derivation uses division by \(b\), so it directly covers \(b\ne0\). If \(b=0\) but \(a\ne0\), the integrand is \(e^{ax}\sin(0)=0\), and the displayed general formula also gives zero. If both parameters are zero, its denominator vanishes, so that case must be treated separately: the integrand is zero and the antiderivative is any constant.

Why the Formula Works: Differentiate It

Integration by parts produces the coefficients, but differentiation gives a direct check that no sign or factor has been lost. Write the proposed antiderivative without its constant as \(F(x)\). The product rule applies to the exponential and the expression in parentheses. The chain rule supplies the factors of \(b\) when differentiating the trigonometric functions.

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

The cancellation is the essential check: the \(-ab\cos(bx)\) from differentiating the exponential is canceled by the \(+ab\cos(bx)\) from differentiating the trigonometric expression. The remaining sine terms add to \((a^2+b^2)\sin(bx)\), which cancels the denominator. Thus the proposed function is indeed an antiderivative. Any other antiderivative differs from it by a constant, since two functions with the same derivative on an interval differ by a constant.

Worked Examples

Worked Example: An Exponential with Positive Growth

Find \(\int e^{2x}\sin(3x)\,dx\). Here \(a=2\), \(b=3\), and \(a^2+b^2=2^2+3^2=4+9=13\). Substituting these values gives

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

To check, differentiate the expression before \(C\). The derivative of \(2\sin(3x)-3\cos(3x)\) is \(6\cos(3x)+9\sin(3x)\). The product rule therefore gives

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

The derivative is the original integrand, so the antiderivative is verified.

Worked Example: A Decaying Exponential

Find \(\int e^{-x}\sin(2x)\,dx\). The parameters are \(a=-1\) and \(b=2\), so the denominator is \((-1)^2+2^2=1+4=5\). The coefficient of the sine is \(a=-1\), and the coefficient of the cosine is \(-b=-2\). Hence

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

For a check, set \(G(x)=-\sin(2x)-2\cos(2x)\). Then \(G'(x)=-2\cos(2x)+4\sin(2x)\), and the product rule yields

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

The negative growth parameter changes both the exponential and the sine coefficient. The differentiation check confirms that the signs are consistent.

Worked Example: Zero Exponential Rate

Find \(\int \sin(4x)\,dx\) using the general formula. This is the case \(a=0\), \(b=4\). The denominator is \(0^2+4^2=16\), and the numerator is \(e^0(0\sin(4x)-4\cos(4x))\). Thus

$$ \int \sin(4x)\,dx = -\frac{4\cos(4x)}{16}+C = -\frac{\cos(4x)}{4}+C. $$

Differentiate to check. Since \(\dfrac{d}{dx}\cos(4x)=-4\sin(4x)\),

$$ \frac{d}{dx}\left(-\frac{\cos(4x)}{4}\right) = -\frac{1}{4}\bigl(-4\sin(4x)\bigr) = \sin(4x). $$

This agrees with the integrand. The example also shows that the formula remains valid when \(a=0\), provided \(b\ne0\).

A Common Sign Error

A frequent mistake is to use \(+b\cos(bx)\) in the numerator instead of \(-b\cos(bx)\). For example, with \(a=2\) and \(b=3\), the incorrect expression would be

$$ H(x)=\frac{e^{2x}\bigl(2\sin(3x)+3\cos(3x)\bigr)}{13}. $$

It does not differentiate to \(e^{2x}\sin(3x)\). The product rule gives

$$ \begin{aligned} H'(x) &=\frac{e^{2x}}{13} \left[ 2\bigl(2\sin(3x)+3\cos(3x)\bigr) +6\cos(3x)-9\sin(3x) \right]\\ &=\frac{e^{2x}}{13}\left[-5\sin(3x)+12\cos(3x)\right], \end{aligned} $$

which contains an unwanted cosine term and has the wrong sine coefficient. The correction is to use \(-b\cos(bx)\). With this sign, the cosine contributions cancel when differentiating, as the general check showed.

Using the Formula Reliably

Before applying the formula, identify \(a\) and \(b\) from the factors \(e^{ax}\) and \(\sin(bx)\); the number multiplying \(x\) inside the sine is \(b\), not \(b^2\). Then calculate \(a^2+b^2\), substitute into both numerator coefficients, and retain the constant of integration for an indefinite integral. These steps help prevent common substitution errors.

The formula also gives a useful diagnostic. If a proposed answer has a denominator other than \(a^2+b^2\), or has a different coefficient on either trigonometric term, differentiate it before trusting it. A short product-rule check is often faster than trying to repair a lengthy integration-by-parts calculation.

Check Your Understanding

Use the formula and the differentiation check where appropriate.

  1. Find \(\int e^{3x}\sin(2x)\,dx\), and state the denominator before simplifying.
  2. For \(a=-2\) and \(b=1\), what are the coefficients of the sine and cosine in the numerator?
  3. Explain why the derivation using integration by parts divides by \(b\), and how the case \(b=0\) is handled.
  4. Differentiate \(\dfrac{e^{x}( \sin(2x)-2\cos(2x))}{5}\) to check whether it is an antiderivative of \(e^x\sin(2x)\).
  5. What goes wrong when \(a=b=0\) in the displayed general formula, and what are the antiderivatives in that case?

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