Let $f : \mathbb{R} \rightarrow \mathbb{R}$ be a function defined as $f(x) = a\sin\left(\frac{\pi[x]}{2}\right) + [2 - x]$, $a \in \mathbb{R}$, where $[t]$ is the greatest integer less than or equal to $t$. If $\lim_{x \to -1} f(x)$ exists, then the value of $\int_0^4 f(x)dx$ is equal to
- (1)
$-1$
- (2)
$-2$
- (3)
1
- (4)
2
Show answer
Option (2) is correct.
Key from source paper