Primitive of x by Exponential of a x by Sine of b x

Theorem

 * $\displaystyle \int x e^{a x} \sin b x \ \mathrm d x = \frac {x e^{a x} \left({a \sin b x - b \cos bx}\right)} {a^2 + b^2} - \frac {e^{a x} \left({\left({a^2 - b^2}\right) \sin b x - 2 a b \cos bx}\right)} {\left({a^2 + b^2}\right)^2} + C$

Proof
With a view to expressing the primitive in the form:
 * $\displaystyle \int u \frac {\mathrm d v}{\mathrm d x} \ \mathrm d x = u v - \int v \frac {\mathrm d u}{\mathrm d x} \ \mathrm d x$

let:

and let:

Then: