Reorder and .

Integrate by parts using the formula , where and .

Reorder and .

Integrate by parts using the formula , where and .

Since is constant with respect to , move out of the integral.

Multiply by .

Multiply by .

Apply the distributive property.

Solving for , we find that = .

Factor out of .

Factor out of .

Factor out of .

Evaluate integral of e^x*sin(x) with respect to x