The value of $\int_{-1}^{1} |x - [x]| dx$ (where $[.]$ denotes greatest integer function) is

The value of $\int_{-1}^{1} |x - [x]| dx$ (where $[.]$ denotes greatest integer function) is
  1. 0
  2. 1
  3. 2
  4. None of these

Solution

$\int_{-1}^{1}(x-[x])dx = \int_{-1}^{1}xdx - \int_{-1}^{1}[x]dx$ $= \left[\frac{x^{2}}{2}\right]_{-1}^{1} - \left[\int_{-1}^{0}[x]dx + \int_{0}^{1}[x]dx\right]$ $= $\frac{1}{2}$[1 - (-1)] - \left[\int_{-1}^{0}(-1)dx + \int_{0}^{1}0dx\right]$ $\begin{aligned} &\text{If } -1 \leq x < 0, [x] = -1\\ &\text{If } 0 \leq x < 1, [x] = 0 \end{aligned}$ $= 0 - [-x]_{-1}^{0} - 0 = 0 - [-0 - (-1)] = 1$

Asked in: MHT CET Full Test 3

Practice more Definite Integration questions on Aicharya