Tutorials › Calculus II › Cyclic Integration by Parts for Exponential-Trigonometric Products

Repeated and Tabular Parts · Tutorial 61 of 998

Cyclic Integration by Parts for Exponential-Trigonometric Products

See how integration by parts links exponential-sine and exponential-cosine integrals in a cycle, and how to organize that cycle without losing its signs or boundary terms.

Intermediate 9 min read

What You'll Learn

  • Identify when choosing an exponential factor for integration by parts produces a cycle.
  • Define matching sine and cosine integrals so their equations can be organized together.
  • Track the signs and coefficients in each integration-by-parts step.
  • Distinguish the cyclic case from zero-frequency or zero-exponent special cases.
  • Check cyclic equations using differentiation or endpoint values.

When Integration by Parts Cycles

Some integrals become simpler after integration by parts because one factor eventually disappears. For instance, repeated integration by parts works well when differentiating a polynomial: its degree falls at each step. Exponential-sine and exponential-cosine products behave differently. Differentiating sine produces cosine, and differentiating cosine produces sine. Integrating an exponential leaves an exponential factor. The same kinds of terms therefore reappear.

This repetition is not a failure of the method. It is a signal that the integrals should be treated as a pair. One integration-by-parts step relates the sine integral to the cosine integral; a second step relates the cosine integral back to the sine integral. Keeping both equations visible makes the cycle manageable.

Key idea: For an exponential multiplied by a sine or cosine, integration by parts can return to the original type of integral after passing through the other trigonometric function. Organize the two related integrals together instead of repeatedly expanding a single integral.

Set Up a Matched Pair

Let \(a\) and \(b\) be real constants, and first suppose \(a\ne 0\). For a fixed base point \(x_0\), define the two accumulated integrals

$$ S(x)=\int_{x_0}^{x} e^{at}\sin(bt)\,dt, \qquad C(x)=\int_{x_0}^{x} e^{at}\cos(bt)\,dt. $$

Using a fixed lower endpoint avoids ambiguity about additive constants: \(S(x_0)=C(x_0)=0\), and each integral has a definite value for every \(x\). The dummy variable \(t\) is used inside the integrals so it is distinct from the endpoint \(x\).

For the sine integral, take \(u=\sin(bt)\) and \(dv=e^{at}\,dt\). Then \(du=b\cos(bt)\,dt\) and \(v=e^{at}/a\). For the cosine integral, take \(u=\cos(bt)\) and \(dv=e^{at}\,dt\). In the second calculation, the derivative \(du=-b\sin(bt)\,dt\) is responsible for a plus sign in the resulting relation.

$$ S(x)=\left[\frac{e^{at}\sin(bt)}{a}\right]_{x_0}^{x} -\frac{b}{a}C(x), \qquad C(x)=\left[\frac{e^{at}\cos(bt)}{a}\right]_{x_0}^{x} +\frac{b}{a}S(x). $$

These are the cyclic equations. Each equation contains one of the two integrals and a multiple of the other. The boundary terms depend on the chosen interval; the coefficients linking the integrals come from differentiating the trigonometric factors.

Condition: These particular equations use \(v=e^{at}/a\), so they require \(a\ne 0\). If \(a=0\), the exponential is constant and this choice of antiderivative is unavailable; the integral reduces to an ordinary sine or cosine integral instead.

Why Two Steps Return to the Starting Integral

The cycle follows directly from the two derivatives \(\frac{d}{dt}\sin(bt)=b\cos(bt)\) and \(\frac{d}{dt}\cos(bt)=-b\sin(bt)\). The first integration-by-parts step changes sine to cosine. The second changes cosine back to sine. Substitution therefore returns to an equation involving the original \(S(x)\).

To see the algebra without dropping the endpoint terms, write

$$ P(x)=\left[\frac{e^{at}\sin(bt)}{a}\right]_{x_0}^{x}, \qquad Q(x)=\left[\frac{e^{at}\cos(bt)}{a}\right]_{x_0}^{x}. $$

The two equations become \(S=P-\frac{b}{a}C\) and \(C=Q+\frac{b}{a}S\). Substitute the second into the first. Every step is an equality, and the coefficient of \(S\) comes from moving the returned \(S\)-term to the left.

$$ \begin{aligned} S &=P-\frac{b}{a}\left(Q+\frac{b}{a}S\right)\\ &=P-\frac{b}{a}Q-\frac{b^2}{a^2}S,\\ \left(1+\frac{b^2}{a^2}\right)S &=P-\frac{b}{a}Q. \end{aligned} $$

This is the basic reason the cycle is useful: after two steps, the original integral has not proliferated into a longer chain. It satisfies an algebraic relation with explicit boundary terms. Since \(a\ne0\), the coefficient \(1+b^2/a^2\) is positive, so it is nonzero. The same substitution can be made in the other direction to obtain an equation for \(C\).

Takeaway: A cyclic integration-by-parts calculation is organized as a pair of linked equations. Substituting one equation into the other brings back the starting integral with a definite coefficient, rather than requiring an endless sequence of parts.

Worked Example: A Cycle with Equal Exponent and Frequency

Worked Example: A Cycle with Equal Exponent and Frequency

Use integration by parts to find \(S(x)=\int_0^x e^t\sin t\,dt\), keeping the paired cosine integral \(C(x)=\int_0^x e^t\cos t\,dt\) visible.

Here \(a=b=1\). The sine equation has boundary term \([e^t\sin t]_0^x=e^x\sin x\), since \(e^0\sin 0=0\). The cosine equation has boundary term \([e^t\cos t]_0^x=e^x\cos x-1\), since \(e^0\cos 0=1\). Thus

$$ S=e^x\sin x-C, \qquad C=e^x\cos x-1+S. $$

Substitute the second equation into the first:

$$ \begin{aligned} S &=e^x\sin x-(e^x\cos x-1+S),\\ 2S&=e^x(\sin x-\cos x)+1,\\ S(x)&=\frac{e^x(\sin x-\cos x)+1}{2}. \end{aligned} $$

Check by differentiating the result. The derivative of the numerator \(e^x(\sin x-\cos x)\) is \(e^x(\sin x-\cos x)+e^x(\cos x+\sin x)=2e^x\sin x\). Dividing by \(2\) gives \(S'(x)=e^x\sin x\), as required. At \(x=0\), the expression is \((0-1+1)/2=0\), matching the defining lower endpoint.

Worked Example: Keep the Frequency Coefficients

Worked Example: Keep the Frequency Coefficients

Find \(C(x)=\int_0^x e^{2t}\cos(3t)\,dt\) by pairing it with \(S(x)=\int_0^x e^{2t}\sin(3t)\,dt\).

Now \(a=2\) and \(b=3\). Applying the two cyclic equations gives

$$ S=\frac{e^{2x}\sin(3x)}{2}-\frac{3}{2}C, \qquad C=\frac{e^{2x}\cos(3x)-1}{2}+\frac{3}{2}S. $$

The \(-1\) in the second boundary term is necessary because \(e^0\cos 0=1\). Substitute the expression for \(S\) into the equation for \(C\):

$$ \begin{aligned} C &=\frac{e^{2x}\cos(3x)-1}{2} +\frac{3}{2}\left(\frac{e^{2x}\sin(3x)}{2}-\frac{3}{2}C\right),\\ C+\frac{9}{4}C &=\frac{e^{2x}\cos(3x)-1}{2} +\frac{3e^{2x}\sin(3x)}{4},\\ \frac{13}{4}C &=\frac{e^{2x}\cos(3x)-1}{2} +\frac{3e^{2x}\sin(3x)}{4},\\ C(x)&=\frac{2e^{2x}\cos(3x)+3e^{2x}\sin(3x)-2}{13}. \end{aligned} $$

For the check, differentiate the numerator's \(x\)-dependent terms. Their derivative is \(2e^{2x}\cos(3x)-6e^{2x}\sin(3x)+6e^{2x}\sin(3x)+9e^{2x}\cos(3x)=13e^{2x}\cos(3x)\). Dividing by \(13\) gives \(C'(x)=e^{2x}\cos(3x)\). At \(x=0\), the numerator is \(2-2=0\), as required.

Worked Example: Organize a Definite Cyclic Integral

Worked Example: Organize a Definite Cyclic Integral

Evaluate \(A=\int_0^{\pi/2}e^t\sin t\,dt\) by setting up the paired integral \(B=\int_0^{\pi/2}e^t\cos t\,dt\). The endpoint values of sine and cosine make the boundary terms easy to track.

For the sine integral, \([e^t\sin t]_0^{\pi/2}=e^{\pi/2}-0\), so \(A=e^{\pi/2}-B\). For the cosine integral, \([e^t\cos t]_0^{\pi/2}=0-1=-1\), so \(B=-1+A\). Consequently,

$$ A=e^{\pi/2}-(-1+A), \qquad 2A=e^{\pi/2}+1, \qquad A=\frac{e^{\pi/2}+1}{2}. $$

Check this value using the antiderivative from the previous example, \(\frac{e^t(\sin t-\cos t)+1}{2}\). At \(t=\pi/2\), it is \((e^{\pi/2}+1)/2\); at \(t=0\), it is \(0\). Their difference matches the computed definite integral.

Signs, Special Cases, and Common Pitfalls

The cycle is short, so a single sign error can change the final coefficient or result. In the cosine calculation, the derivative of \(\cos(bt)\) is \(-b\sin(bt)\). Integration by parts also subtracts the integral of \(v\,du\). These two negative signs combine to give a plus sign in the equation for \(C\).

Common mistake: Writing \(C=Q-\frac{b}{a}S\) instead of \(C=Q+\frac{b}{a}S\) is a sign error. It comes from overlooking the negative derivative of cosine. The correction is to write \(du=-b\sin(bt)\,dt\), then apply \(\int u\,dv=uv-\int v\,du\); the two negatives yield \(+\frac{b}{a}S\).

Two special cases are worth separating from the genuine cycle. If \(b=0\), then \(\sin(bt)=0\) and \(\cos(bt)=1\): the sine integral is zero, and the cosine integral is just an exponential integral. If \(a=0\), the exponential factor is \(1\), so the integrals are ordinary trigonometric integrals. The cyclic equations above should not be used with \(a=0\), because they divide by \(a\).

For a definite integral, do not discard endpoint terms. The cyclic equations include the values at both endpoints, and those values may be unequal even when one endpoint makes a sine or cosine term vanish. For an indefinite integral, integration by parts yields relations between antiderivatives up to additive constants. Definite integrals from a common base point avoid that bookkeeping issue.

A Reliable Way to Organize the Cycle

When an exponential-sine or exponential-cosine product appears, use a consistent setup rather than repeating parts informally:

1
Name both integrals.
Use one symbol for the sine product and another for the cosine product, with the same exponent, frequency, and limits.
2
Record the conditions.
If integrating the exponential as \(e^{at}/a\), confirm that \(a\ne0\).
3
Apply parts to each integral.
Write the boundary term and the remaining paired integral, keeping the derivative sign of cosine explicit.
4
Substitute one equation into the other.
Collect the returned integral terms on one side; this exposes the cycle's coefficient.
5
Check the result.
For an antiderivative, differentiate it. For definite integrals, check the endpoint values and confirm the paired equations use the same limits.

This organization is useful because it turns a potentially confusing sequence of repeated integrations by parts into a small, auditable system. It also makes clear which features are structural—the return from sine to cosine and back—and which depend on the particular interval through the boundary terms.

Check Your Understanding

Use the paired-integral viewpoint to answer these questions.

  1. Why does integration by parts for an exponential times sine naturally introduce an exponential times cosine?
  2. For \(a\ne0\), what sign appears in front of the sine integral in the equation for the cosine integral, and why?
  3. What condition is required to use \(e^{at}/a\) as the antiderivative of \(e^{at}\)?
  4. When defining paired definite integrals, why should they use the same endpoints?
  5. What is one appropriate check for a computed antiderivative, and what endpoint check applies when the integral starts at \(x_0\)?

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