AP Calculus BC
Integral of e^2x sin x: Answer and Steps
The integral of e^(2x)sin(x) is e^(2x)(2sin(x) - cos(x))/5 + C. Integration by parts twice brings the original integral back, and solving the resulting equation for it produces the denominator 5, which is 2^2 + 1^2 for the coefficients 2 and 1.
Parts twice, on purpose
Neither factor gets simpler under differentiation, so parts will never terminate here. It closes instead: after two rounds the original integral reappears, and you solve for it like an unknown. Give it a name.
First round: and , so and .
The second round closes the loop
Apply parts to the new integral with and , keeping the trig factor as both times. Now and , and the integral that comes back is itself.
Substitute that back into the first line and collect the terms on one side.
The mistake students make
The classic failure is switching roles on the second round. If opened the work and runs the second round, every step undoes itself and the equation collapses to , true and useless. Keep the same type of factor as throughout.
The other slip is losing . The constant is not part of the algebra while you solve for , so it has to be reattached once the division by is done.
The 5 is not a coincidence
For the denominator is always . Here and , so it is . A denominator that is not means an arithmetic slip happened somewhere in the two rounds.
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
Why does the integral come back instead of ending?
Both and keep their form under differentiation and integration, up to constants. Nothing shrinks, so parts cycles. Here the cycle is the tool: two rounds give an equation in .
Does it matter whether I start with u = sin x or u = e^(2x)?
Either opening works. What matters is consistency: use the same kind of factor as in both rounds, or the second round simply reverses the first.
How do I check the answer quickly?
Differentiate with the product rule: .