Use Upper And Lower Sums To Evaluate An Integral

Homework Statement

The question is to use upper and lowers sums, Un and Ln, on a regular petition of the intervals to find the integral from 1 to 2 of f(x) = [[x]], where [[x]] is the greatest integer function.

Homework Equations

$$\Delta$$x = $$\frac{b-a}{n}$$

The Attempt at a Solution

$$\Delta$$x = $$\frac{2-1}{n}$$ = $$\frac{1}{n}$$

The minimum and maximum of f(x) on every subinterval of [1,2] would be 1 except for the subinterval which includes x=2 where the maximum value of f(x)=2, so for f(x) there exists a unique number I such that Ln $$\leq$$ I $$\leq$$ Un

I know that the area will be 1, as for [1,2) Un = Ln = $$\Delta$$x$$\sum$$1 = $$\frac{1}{n}$$ x 1n = 1

However I am not sure how to include the subinterval that contains x=2 into my calculations. Any help on this would be great!

Thanks!

$$(\sum_{i=1}^{n-1} \frac{1}{n})+\frac{2}{n}$$ adding up all the parts where the upper bound is 1, plus the one part where the upper bound is 2. Can you find the limit of that summation as n goes to infinity? (Of course we know it should be 1)