The function is a product of two functions, $x$ and $e^{-x}$, so we will use the product rule for differentiation. The product rule states that the derivative of a product of two functions is the derivative of the first function times the second function plus the
Show more…