Key idea: An integral of the form ∫ekxsin(linear)dx is found by integrating by parts twice. The original integral appears again on the right, and we solve for it like an unknown in an equation.
Step 1 — Name the integral.
We write u=4π+x for the angle, so dxdu=1, and call the indefinite integral I.
I=∫e2xsinudx
Step 2 — First integration by parts.
We take sinu as the function to differentiate and e2x as the function to integrate, so the new pieces are cosu and 2e2x.
I=2e2xsinu−21∫e2xcosudx
Step 3 — Second integration by parts.
We do the same with the new integral; differentiating cosu gives −sinu, so the original integral I returns.
∫e2xcosudx=2e2xcosu+21I
Step 4 — Solve for I.
We substitute Step 3 into Step 2 and collect the I terms on the left.
I=2e2xsinu−4e2xcosu−41I
45I=4e2x(2sinu−cosu)
I=5e2x(2sinu−cosu)
Step 5 — Value at the upper limit.
At x=π the angle u is 45π, where sinu and cosu are both −21.
So 2sinu−cosu is −21.
5e2π(−21)=−52e2π
Step 6 — Value at the lower limit.
At x=0 the angle u is 4π, where sinu and cosu are both 21.
So 2sinu−cosu is 21, and e0 is 1.
51⋅21=521
Step 7 — Subtract.
We take the value at the lower limit from the value at the upper limit.
∫0πe2xsin(4π+x)dx=−52e2π−521=−52e2π+1
The result is negative because for x between 43π and π the sine is negative, and there the factor e2x is far larger than on the rest of the interval.