Find following integration
$\int_{a}^{b}\ [x] dx + \int_{a}^{b}\ [-x] dx $ where [.] denotes greatest integer function
Find following integration
$\int_{a}^{b}\ [x] dx + \int_{a}^{b}\ [-x] dx $ where [.] denotes greatest integer function
Note that if $x$ is not an integer, then $\lfloor x \rfloor +\lfloor -x\rfloor=-1$. And the integral is not affected by function values at finitely many points. So the integral is $-(b-a)$.