Tutorials › Calculus II › Definite Exponential-Trigonometric Integrals

Repeated and Tabular Parts · Tutorial 65 of 998

Definite Exponential-Trigonometric Integrals

Learn to evaluate exponential-trigonometric integrals on finite intervals, including shifted phases, and verify the endpoint calculation.

Intermediate 9 min read

What You'll Learn

  • Apply endpoint evaluation to exponential-sine and exponential-cosine integrals.
  • Use the correct antiderivative when the trigonometric phase is shifted.
  • Track signs and phase values at both interval endpoints.
  • Handle cases where one or both parameters are zero.
  • Check a definite-integral calculation by differentiating its antiderivative.

From Antiderivatives to Definite Integrals

For an indefinite integral, the main task is to find an antiderivative. For a definite integral, there is one more step: evaluate that antiderivative at both endpoints and subtract in the correct order. This is especially important for products of an exponential and a sine or cosine, because both the exponential value and the trigonometric phase can change from one endpoint to the other.

Let \(a,b,\phi\) be real numbers and let \(u\leq v\) be finite real endpoints. When \(a\) and \(b\) are not both zero, the antiderivatives needed here are

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

and

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

These formulas include unshifted products by taking \(\phi=0\). The focus here is their definite-integral use: substitute the upper endpoint, substitute the lower endpoint, and subtract the second value from the first.

Endpoint rule: If \(F'(x)=f(x)\) throughout \([u,v]\) and \(f\) is continuous there, then \(\int_u^v f(x)\,dx=F(v)-F(u)\). The order is always upper endpoint minus lower endpoint.

General Endpoint Formulas

Writing the endpoint subtraction explicitly helps keep the phase and signs visible. For \(a^2+b^2>0\), the sine integral is

$$ \int_u^v e^{ax}\sin(bx+\phi)\,dx = \frac{ e^{av}\bigl(a\sin(bv+\phi)-b\cos(bv+\phi)\bigr) - e^{au}\bigl(a\sin(bu+\phi)-b\cos(bu+\phi)\bigr) }{a^2+b^2}. $$

For the cosine integral, the corresponding formula is

$$ \int_u^v e^{ax}\cos(bx+\phi)\,dx = \frac{ e^{av}\bigl(a\cos(bv+\phi)+b\sin(bv+\phi)\bigr) - e^{au}\bigl(a\cos(bu+\phi)+b\sin(bu+\phi)\bigr) }{a^2+b^2}. $$

In each expression, the entire lower-endpoint term is subtracted. Parentheses matter: the minus sign applies to every part of that term.

Why the Endpoint Formulas Work

The endpoint step follows from the Fundamental Theorem of Calculus. To justify that the displayed expressions are suitable antiderivatives, differentiate them. Put \(\theta=bx+\phi\) and \(D=a^2+b^2\). For the sine antiderivative, the product rule gives

$$ \begin{aligned} \frac{d}{dx}\left[ \frac{e^{ax}(a\sin\theta-b\cos\theta)}{D} \right] &= \frac{e^{ax}}{D} \left[ a(a\sin\theta-b\cos\theta) +ab\cos\theta+b^2\sin\theta \right]\\ &= \frac{e^{ax}}{D}(a^2+b^2)\sin\theta\\ &=e^{ax}\sin(bx+\phi). \end{aligned} $$

Here \(\theta'=b\), so the derivative of \(a\sin\theta-b\cos\theta\) is \(ab\cos\theta+b^2\sin\theta\). For the cosine antiderivative, differentiation gives

$$ \begin{aligned} \frac{d}{dx}\left[ \frac{e^{ax}(a\cos\theta+b\sin\theta)}{D} \right] &= \frac{e^{ax}}{D} \left[ a(a\cos\theta+b\sin\theta) -ab\sin\theta+b^2\cos\theta \right]\\ &= \frac{e^{ax}}{D}(a^2+b^2)\cos\theta\\ &=e^{ax}\cos(bx+\phi). \end{aligned} $$

Both integrands are continuous on every finite interval. The Fundamental Theorem therefore gives their definite integrals by subtracting the antiderivative value at \(u\) from its value at \(v\). This also explains why the endpoint order is not optional: reversing it changes the sign of the integral.

Worked Examples

Worked Example: An Unshifted Exponential-Sine Integral

Evaluate \(\int_0^\pi e^x\sin x\,dx\).

Here \(a=1\), \(b=1\), and \(\phi=0\), so \(a^2+b^2=2\). An antiderivative is

$$ F(x)=\frac{e^x(\sin x-\cos x)}{2}. $$

At the upper endpoint, \(\sin\pi=0\) and \(\cos\pi=-1\), giving

$$ F(\pi)=\frac{e^\pi(0-(-1))}{2}=\frac{e^\pi}{2}. $$

At the lower endpoint, \(\sin 0=0\) and \(\cos 0=1\), so

$$ F(0)=\frac{e^0(0-1)}{2}=-\frac12. $$

Subtract the lower value from the upper value:

$$ \int_0^\pi e^x\sin x\,dx =F(\pi)-F(0) =\frac{e^\pi}{2}-\left(-\frac12\right) =\frac{e^\pi+1}{2}. $$

Check by differentiating the proposed antiderivative. The sine-antiderivative calculation above, with \(a=b=1\) and \(\phi=0\), gives \(F'(x)=e^x\sin x\). The endpoint values are \(F(\pi)=e^\pi/2\) and \(F(0)=-1/2\), so their difference reproduces the stated result.

Worked Example: An Exponential-Cosine Integral

Evaluate \(\int_0^{\pi/2}e^{2x}\cos(3x)\,dx\).

Now \(a=2\), \(b=3\), and \(\phi=0\), so \(a^2+b^2=4+9=13\). Use the cosine antiderivative:

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

At \(x=\pi/2\), the angle is \(3\pi/2\), where \(\cos(3\pi/2)=0\) and \(\sin(3\pi/2)=-1\). Thus

$$ G\left(\frac{\pi}{2}\right) = \frac{e^\pi(2\cdot0+3\cdot(-1))}{13} =-\frac{3e^\pi}{13}. $$

At \(x=0\), \(\cos 0=1\) and \(\sin 0=0\), hence

$$ G(0)=\frac{e^0(2\cdot1+3\cdot0)}{13}=\frac{2}{13}. $$

Therefore,

$$ \int_0^{\pi/2}e^{2x}\cos(3x)\,dx = -\frac{3e^\pi}{13}-\frac{2}{13} = -\frac{3e^\pi+2}{13}. $$

For a derivative check, set \(\theta=3x\). Differentiating \(G\) gives

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

The evaluated endpoint difference is therefore the required integral.

Worked Example: A Shifted Phase in a Sine Integral

Evaluate \(\int_0^{\pi/2}e^x\sin(2x+\pi/6)\,dx\).

The phase is \(2x+\pi/6\), so the shift \(\pi/6\) must be included at both endpoints. Here \(a=1\), \(b=2\), and \(a^2+b^2=5\). An antiderivative is

$$ F(x)=\frac{e^x\bigl(\sin(2x+\pi/6)-2\cos(2x+\pi/6)\bigr)}{5}. $$

At \(x=\pi/2\), the phase is \(\pi+\pi/6=7\pi/6\). Since \(\sin(7\pi/6)=-1/2\) and \(\cos(7\pi/6)=-\sqrt{3}/2\),

$$ F\left(\frac{\pi}{2}\right) = \frac{e^{\pi/2}\left(-\frac12-2\left(-\frac{\sqrt3}{2}\right)\right)}{5} = \frac{e^{\pi/2}(\sqrt3-\frac12)}{5}. $$

At \(x=0\), the phase is \(\pi/6\), with sine \(1/2\) and cosine \(\sqrt3/2\). Therefore,

$$ F(0)=\frac{\frac12-2\left(\frac{\sqrt3}{2}\right)}{5} =\frac{\frac12-\sqrt3}{5}. $$

Subtracting gives

$$ \begin{aligned} \int_0^{\pi/2}e^x\sin(2x+\pi/6)\,dx &=F\left(\frac{\pi}{2}\right)-F(0)\\ &=\frac{e^{\pi/2}(\sqrt3-\frac12)+\sqrt3-\frac12}{5}\\ &=\frac{(e^{\pi/2}+1)(\sqrt3-\frac12)}{5}. \end{aligned} $$

Differentiate to check: the general sine derivative identity with \(a=1\), \(b=2\), and \(\phi=\pi/6\) gives \(F'(x)=e^x\sin(2x+\pi/6)\). The endpoint values just calculated differ by the displayed answer, confirming both the phase substitution and the endpoint arithmetic.

Zero Parameters and Basic Conditions

The denominator \(a^2+b^2\) is positive unless \(a=b=0\). If exactly one parameter is zero, the formulas remain valid. For example, if \(b=0\), then \(\sin(bx+\phi)=\sin\phi\) is constant and the sine formula reduces to the exponential antiderivative when \(a\ne0\). If \(a=0\) and \(b\ne0\), the formulas reduce to the usual antiderivatives of a trigonometric function, with the phase retained.

If \(a=b=0\), the integrands are constants: \(e^{0x}\sin(\phi)=\sin\phi\) and \(e^{0x}\cos(\phi)=\cos\phi\). In that case the definite integrals are simply

$$ \int_u^v \sin\phi\,dx=(v-u)\sin\phi, \qquad \int_u^v \cos\phi\,dx=(v-u)\cos\phi. $$

There is no singularity in the integral itself; only the antiderivative formulas with denominator \(a^2+b^2\) are inapplicable when both parameters vanish.

Phase Shifts and Endpoint Accuracy

A phase shift changes the angle at which the sine or cosine is evaluated; it does not change the endpoint values of \(x\). For an integral on \([u,v]\), evaluate the phase as \(bu+\phi\) at the lower endpoint and \(bv+\phi\) at the upper endpoint. The exponential is evaluated separately as \(e^{au}\) and \(e^{av}\).

It is possible to change variables to make the trigonometric phase the new variable, but that also changes the exponential factor and the interval. Using the antiderivative directly usually keeps the bookkeeping simpler: substitute each original \(x\)-endpoint into the entire antiderivative.

A Common Sign Mistake

In the first example, a common error is to subtract in the wrong order and write \(F(0)-F(\pi)\). That gives

$$ F(0)-F(\pi) = -\frac12-\frac{e^\pi}{2} = -\frac{e^\pi+1}{2}. $$

This is the negative of the correct integral. The correction is to apply the endpoint rule as \(F(\pi)-F(0)\), which gives \((e^\pi+1)/2\). A related error is to subtract only part of the lower-endpoint expression. Writing \(F(v)-\bigl(F(u)\bigr)\) with parentheses makes clear that the whole lower value is subtracted.

Reliable check: Before simplifying, write the endpoint subtraction on its own line. Then verify the antiderivative by differentiation and check the phase and exponential value at each endpoint separately.

Why These Integrals Are Useful

Exponential-sine and exponential-cosine products occur whenever an exponential weight is combined with oscillation. Their definite integrals summarize the total signed accumulation over a specified interval. The endpoint formulas make that accumulation explicit, while also showing how changing the interval or phase changes the result.

The same procedure applies to any finite interval, not only intervals whose endpoints are familiar trigonometric angles. In such cases, the endpoint values may remain in terms of sine and cosine. Exact simplification is helpful when available, but it is not required for the endpoint rule to apply.

Summary

  • For \(a^2+b^2>0\), use the exponential-sine or exponential-cosine antiderivative with the same phase as the integrand.
  • Evaluate the full antiderivative at both endpoints and calculate \(F(v)-F(u)\).
  • For a shifted phase, substitute \(bu+\phi\) and \(bv+\phi\) at the respective endpoints.
  • When \(a=b=0\), integrate the resulting constant directly.
  • Check the antiderivative by differentiation and guard against reversing the endpoint order.

Check Your Understanding

Use the antiderivative formulas and endpoint rule to answer these questions. Check each result by differentiating the antiderivative you use.

  1. Evaluate \(\int_0^{\pi/2}e^x\sin x\,dx\).
  2. For \(\int_0^\pi e^{-x}\cos(2x+\pi/3)\,dx\), what phase is used at each endpoint?
  3. State the endpoint formula for \(\int_u^v e^{ax}\cos(bx+\phi)\,dx\) when \(a^2+b^2>0\).
  4. What is \(\int_1^4 e^{0x}\sin(\pi/6)\,dx\), and why do the exponential-trigonometric antiderivative formulas with denominator \(a^2+b^2\) not apply?
  5. If an endpoint calculation produces \(F(u)-F(v)\) instead of \(F(v)-F(u)\), how is the result related to the desired integral?

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