Question:

Evaluate $\displaystyle \int_{-2}^{2} [x]\,dx$, where $[x]$ denotes the greatest integer function

Show Hint

For greatest integer functions, always split the interval at integer points.
Updated On: Feb 18, 2026
  • $2$
  • $4$
  • $-2$
  • $0$
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

Step 1: Understanding the greatest integer function.
The function $[x]$ takes constant integer values in each interval $[n,n+1)$.
Step 2: Breaking the interval.
\[ \int_{-2}^{2} [x]\,dx = \int_{-2}^{-1}(-2)\,dx + \int_{-1}^{0}(-1)\,dx + \int_{0}^{1}(0)\,dx + \int_{1}^{2}(1)\,dx \]
Step 3: Evaluating each integral.
\[ = (-2)(1) + (-1)(1) + 0(1) + 1(1) \] \[ = -2 - 1 + 0 + 1 = -2 \]
Step 4: Conclusion.
\[ \int_{-2}^{2} [x]\,dx = -2 \]
Was this answer helpful?
0
0