The value of \(\int_{-1}^{1}\displaystyle x^2[x]\,dx\) is:
Answer & explanation
Correct answer: option 4
The correct answer is Option (4) → \(-\displaystyle\frac{1}{3}\)
Here [x] is the greatest integer function (the greatest integer less than or equal to x). On the interval of integration
\([x] = -1\) for \(-1 \le x \lt 0\)
\([x] = 0\) for \(0 \le x \lt 1\)
(the single point x = 1 does not change the integral). So the integral is split at x = 0:
\( \displaystyle I = \int_{-1}^{0}x^2(-1)\,dx + \int_{0}^{1}x^2(0)\,dx \)
\( \displaystyle = -\left[\frac{x^3}{3}\right]_{-1}^{0} \)
\( \displaystyle = -\left(0 + \frac{1}{3}\right) = -\frac{1}{3} \)