AP Calculus BC
Integral of e^x sin x: Answer and Proof
The integral of e^x sin x with respect to x is e^x(sin x - cos x)/2 + C. Integration by parts applied twice brings back a copy of the original integral, and solving the resulting equation for it gives the answer. Differentiating e^x(sin x - cos x)/2 returns e^x sin x.
How to integrate e^x sin x by parts twice
Both factors, and , reproduce themselves under differentiation, so one pass of parts does not simplify the integrand. The method is to apply parts twice and watch the original integral reappear, then solve for it algebraically. Call the integral .
First pass: take and , so and .
Apply parts again to the new integral with and , giving and .
Substitute that back. The original integral returns on the right, which is the whole point.
Add to both sides and divide by .
Check it by differentiating
Differentiate with the product rule: . The cosine terms cancel.
Why one pass is not enough
In most parts problems one factor simplifies toward a constant after enough differentiations and the process ends. Here never simplifies, it cycles through and back, so a single pass leaves you with an integral just as hard as the one you started with, .
The second pass is what makes the method work, because it regenerates with a sign that lets you solve for it. Keep the same choice of type on both passes; if you switch and take the second time, you undo the first pass and return to , which tells you nothing.
The companion integral falls out of the same work, differing only by the sign inside the parentheses.
Common mistakes with the integral of e^x sin x
- Stopping after one pass. is not an answer; the remaining integral is as hard as the original.
- Switching the choice on the second pass. Taking the second time reverses the first pass and collapses to .
- Forgetting to divide by . After solving , the antiderivative is that over .
- Sign errors in the second pass. With , , and the two minus signs make , a plus in front of .
- Dropping the . It is an indefinite integral, so the constant belongs at the end.
Every answer on this page is machine checked
An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you.
Frequently asked questions
What is the integral of e^x sin x?
It is . Integration by parts twice regenerates the original integral , and solving gives the result.
Why do you integrate by parts twice?
Because neither nor simplifies under differentiation, one pass just trades for the equally hard . The second pass brings back the original integral, and you solve for it algebraically.
What is the integral of e^x cos x?
It is . It comes out of the same two-pass parts computation; only the sign inside the parentheses changes.