For any real number $x$, let $x$ denote the largest integer less than or equal to $x$. Let $f$ be a real-valued function defined on the interval $-10, 10$ by
$fx = x - x$, if $x$ is odd
$fx = 1 + x - x$, if $x$ is even
Then, the value of $\frac{\pi^2}{10}\int_{-10}^{10} fx\ \cos\pi x dx$ is
- (1)
$4$
- (2)
$2$
- (3)
$1$
- (4)
$0$
Show answer
Option (1) is correct.
Key from source paper