Evaluating the definite integral $\int_{-1}^1 \lfloor \arccos x \rfloor \,dx$ involving the greatest integer function 
Evaluating the definite integral $$\int_{-1}^1 \lfloor \arccos x \rfloor \,dx .$$

I tried it but unable to do as it is discontinuous. Somebody told me that you should do this by drawing graph---how?
Can anybody please give me the start?


In terms of indicator functions, $$\lfloor \arccos(x)\rfloor = 3\Bbb{1}_{[-1,b)} + 2\Bbb{1}_{[b,c)} + \Bbb{1}_{[c,d)}$$ where $b$, $c$ and $d$ are the points at which the $\arccos$ graph hits $3, 2$ and $1$ $$ \implies \int_{-1}^{1} \lfloor \arccos(x) \rfloor \text{ d}x \ = \  3(b+1) \Bbb{1}_{[-1,b)} + 2(c-b)\Bbb{1}_{[b,c)} + (d-c)\Bbb{1}_{[c,d)}$$

 If you haven't yet met the indicator function, $\Bbb{1}_{[a,b]}$ simply means that we take the value $1$ when $a \leqslant x \leqslant b$ and $0$ elsewhere i.e. $$ \Bbb{1}_{[a,b]} = \begin{cases} 1 & a \leqslant x \leqslant b \\ 0 & \text{ else} \end{cases} $$


In more plain English, your integral is simply a sum of the areas of rectangles of widths $b+1$, $c-b$ and $d-c$ with respective heights $3, 2$ and $1$.
All you gotta do is find $b, c$ and $d$. The graph's below if you wanna have a go first and compare afterwards!

 $\hskip1in$ 

