Integrate by parts using the formula , where and .

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

Multiply by .

Multiply by .

Reorder and .

Integrate by parts using the formula , where and .

Solving for , we find that = .

Factor out of .

Factor out of .

Factor out of .

Evaluate integral of cos(x)e^x with respect to x