
This is the graph of greatest integer function (or the floor function).
Now break the limit for the integral first from 1 to 2 and then from 2 to 2.5.
I = int x from 1 to 2.5 [x] . dx
I = int x from 1 to 2 [x] . dx + int x from 2 to 2.5 [x] . dx
I = int x from 1 to 2 (1) . dx + int x from 2 to 2.5 (2) . dx
I = limit from 1 to 2 (x) + limit from 2 to 2.5 (2x)
I = (2 - 1) + 2(2.5 - 2) = 2 (Ans)