Let’s start out by differentiating with respect to x. In this case both the cosine and the exponential contain x’s and so we’ve really got a product of two functions involving x’s and so we’ll need to product rule this up. Here is the derivative with respect to x.