When integrating a product of different types of functions like x and ex, use integration by parts.
∫udv=uv−∫vdu
Using the ILATE rule (Inverse, Logarithmic, Algebraic, Trigonometric, Exponential), choose the function that appears first as u.
Let u=x (Algebraic) and dv=exdx (Exponential)
Then du=dx and v=ex
Applying integration by parts:
∫xexdx=x⋅ex−∫ex⋅dx
=xex−ex+C
=ex(x−1)+C
Evaluating the definite integral from 0 to 1:
∫01xexdx=[ex(x−1)]01
At x=1:
e1(1−1)=0
At x=0:
e0(0−1)=−1
∫01xexdx=0−(−1)
=1
Therefore, the value is 1.