Let the function $f : [0, 2] \rightarrow \mathbb{R}$ be defined as $f(x) = \begin{cases} e^{\min\{x^2,\, x - [x]\}}, & x \in [0, 1) \\ e^{[x - \log_e x]}, & x \in [1, 2] \end{cases}$, where $[t]$ denotes the greatest integer less than or equal to $t$. Then the value of the integral $\int_0^2 x f(x)\,dx$ is
- (1)
$1 + \frac{3e}{2}$
- (2)
$(e - 1)\left(e^2 + \frac{1}{2}\right)$
- (3)
$2e - 1$
- (4)
$2e - \frac{1}{2}$
Show answer
Option (4) is correct.
Key from source paper