And I'll do n= 2 for you. Pn= {0, 1/2, 1}. That is, the x-axis is divided into 2 intervals from 0 to 1: 0 to 1/2 and 1/2 to 1. If you draw y= x on coordinate system you see that it is increasing so the lowest value on each interval is on the left highest value is on the right. Draw vertical lines at x= 0, x= 1/2, x= 1. For L, the lower interval using the lowest value, draw horizontal lines from (0, 0) to (1/2, 0) and from (1/2,1/2) to (1, 1/2). You have divided the area into two "rectangles". I put "rectangles" in quotes because the first one is just the line from (0,0) to (1/2, 0). It has base 1/2 and height 0 so has area 0. The second rectangle has corners (1/2, 0), (1/2, 1/2), (1, 1/2) and (1, 0). Its base is 1/2 and its height is 1/2 so it has area 1/4. The total area of the two rectangles is 0+ 1/4 and so the total area L2= 1/4.
To get the "upper area" use the highest value in each interval, which is on the right.
Draw horizontal lines from (0, 1/2) to (1/2, 1/2) and from (1/2, 1) to (1, 1). Now we really have two rectangles, one with corners at (0,0), (0, 1/2), (1/2, 1/2) and (1/2, 0) and the other with corners at (1/2, 0), (1/2, 1), (1, 1) and (1, 0). The first rectangle has base 1/2 and height 1/2 and so has area 1/4. The second rectangle has base 1/2 and height 1 and so has area 1/2. The total area is 1/4+ 1/2= 3/4 and so U[sub2[/sub]= 3/4.
NOw you do n= 3 where you divide the interval from 0 to 1 into three parts.