So with these kind of questions they tend to be more of a first part to a question, probably worth about two marks on an A Level exam.The first thing to spot with this question is that f(x) contains a product (two values multiplied together) with respect to x. This means that we have to use the product rule in order to find its derivative, which you can remember of the derivative of function 1 multiplied by function 2 itself plus the derivative of function 2 multiplied by 1 itself. This therefore gives us f'(x) = 2e^x + 2xe^x = 2e^x(1+x)