Question

\text { 8. } f(x)=\left\{\begin{array}{ll} x e^{-x} & \text { if }-1<x<0 \\ 0 & \text { otherwise } \end{array}\right.

Fig: 1