The question requires us to find $\int_0^3 (x^2 + 1){\rm d}\left[x\right]$ where [.] denotes greatest integer function
My attempt: For... $$\left[x\right] =0\text { , } x\in[0,1) \text { , } x^2+1 \in [1,2)\\ \left[x\right] =1\text { , } x\in[1,2) \text { , } x^2+1 \in [2,5)\\ \left[x\right] =2\text { , } x\in[2,3) \text { , } x^2+1 \in [5,10)\\$$
Plotting them would look like
The shaded area sums up to 9. So I thought it would give ans 9.
But the original answer key says 17. On onservation, it is visible as the sum of shaded as well as non-shaded area just under it.
Could anyone suggest a method to proceed?
