Step 1: Understanding the Concept:
The integrand \(xe^x\) is a product of a polynomial and an exponential, so we use integration by parts:
\[ \int u\,dv = uv - \int v\,du \]
We pick \(u = x\) because it becomes simpler on differentiation, and \(dv = e^x\,dx\).
Step 2: Apply integration by parts:
With \(u=x\) and \(dv=e^x\,dx\), we get \(du = dx\) and \(v = e^x\).
\[ \int_0^1 xe^x\,dx = \Big[xe^x\Big]_0^1 - \int_0^1 e^x\,dx \]
Step 3: Evaluate each part:
\[ \Big[xe^x\Big]_0^1 = 1\cdot e - 0 = e \]
\[ \int_0^1 e^x\,dx = e - 1 \]
\[ \int_0^1 xe^x\,dx = e - (e-1) = 1 \]
Step 4: Why the other options are wrong:
The integrand \(xe^x\) is positive on \((0,1]\), so the integral cannot be 0 or negative. This rules out (B) and (D).
Also \(xe^x \le e\) on \([0,1]\), and in fact much smaller for most of the interval, so the area cannot reach 2. This rules out (C).
Final Answer:
The integral equals 1, which is option (A).
\[ \boxed{1} \]