Whenever you see an integral involving a product of $e^x$ and another function, always try to check if the other function can be expressed as a sum of a function and its derivative, i.e., $f(x) + f'(x)$. This pattern is very common in competitive exams.