Solution (source code)

= Solution

Apply the <product rule> and the <chain rule> to the <exponential function>:
$$
\boxed{\frac d{dx}(xe^{-2x})=e^{-2x}-2xe^{-2x}=(1-2x)e^{-2x}.}
$$