I am stuck on the following problem from an exercise in my analysis book:
Show that $$\int_0^4 x \mathrm d(x-[x])=-2$$ where $[x]$ is the greatest integer not exceeding $x$.
I think I have to partition the interval $[0,4]$ into some suitable subintervals and here I see $x-[x] \ge 0$.
But, I am not sure how to tackle it as no similar types of problems has been discussed in the book. Can someone explain? Thanks and regards to all.