a

b

f(x) = x²
a = LowerSum(f, 0, 2.5, 4)
b = UpperSum(f, 0, 2.5, 4)