How can I integrate e^x sin(x)?

This integral is a particularly difficult integral that has shown up in STEP questions before. It's not hard because of how difficult the actual calculations are, but more because of how hard it is to spot the 'trick' to doing this integral.
The trick is integration by parts twice. You can integrate by parts by letting u=e^x and v'=sin(x). You end up with the integral of e^x cos(x), which you integrate with exactly the same method. Then, you end up with, if I is the integral of e^x sin(x),
I=e^x sin(x) - e^x cos(x) - I + c, which implies that I=e^x (sin(x)-cos(x)) + c.

LH

Related STEP University answers

All answers ▸

Prove that any number of the form pq, where p and q are prime numbers greater than 2, can be written as the difference of two squares in exactly two distinct ways.


Differentiate: f(x)=(ax^2 + bx + c) ln(x + (1+x^2)^(1/2)) + (dx + e) (1 + x^2)^(1/2). Hence integrate i) ln(x + (1 + x^2)^(1/2)), ii) (1 + x^2)^(1/2), iii) x ln(x + (1 + x^2)^(1/2)).


Find h(x), for x≠0, x≠1, given that: h(x)+h(1/(1−x))=1−x−1/(1−x)


Show that if a polynomial with integer coefficients has a rational root, then the rational root must be an integer. Hence, show that x^n-5x+7=0 has no rational roots.