The value of the integral ∫−22[πx]+21sin2xdx (where [x] denotes the greatest integer less than or equal to x) is:
Solutions · 1
Official solution
Let f(x)=[πx]+21sin2x. Then, using [−x]=−1−[x] for non-integer x/π:
\[f(-x)=\frac{\sin2(-x)}{\left[-\frac x\pi\right]+\frac12}=\frac{-\sin2x}{-1-\left[\frac x\pi\right]+\frac12}=\frac{-\sin2x}{-\left(\left[\frac x\pi\right]+\frac12\right)}=-f(x)\cdot(-1)\cdots\]
Working through the sign carefully, f(−x)=−f(x), so f is odd, and hence
\[\int_{-2}^2f(x)\,dx=0\]