just doing some review and I am a bit confused on how I pick the upper vs lower sum of a Riemann sum. I get for the upper sum I choose the maximum value of $f$ on $[x_{k-1},x_k]$ and the lower sum is the minimum of $[x_{k-1},x_k]$.
Could someone give me a worked out example of an upper or lower sum using Riemann's definition.
Do I plug in values of the interval $[a,b]$ and see where it is increasing and decreasing? But which formula do I plug this in, the left sum or right sum?
An example of a lower sum with intervals of length $1$ for the monotonically increasing function $f(x) = x^2$ (on $x\in[0,k]$):
$$\int_0^{k}x^2dx \leq\sum_{0}^{k-1} n^2$$
It is easier to verify that this is a lower sum because for an interval where the function is monotonic the smallest function value will allways be at one of the end points. In our case with a monotonically increasing function, the lowest end: $$f(x_k)\leq f(\xi) \,\,\forall\,\, \xi \in[x_{k},x_{k+1}]$$
For more advanced problems we may need to search for an estimate of the maximum or minimum function value. That can sometimes be a rather difficult problem!