I have a question that is related to a question asked on another stackexchange page: integral partition, real analysis
The question on the other page is written out here:
If we have $f(x) = x^2 $ and $P_n $ which partitions $[1,3]$ into $n$ sub-intervals, each equal in length,how can I write the formulas for $L(f,P_n)$ and $U(f,P_n)$ in terms of $n$?
Do they converge to the same limit as $n$ goes to infinity?
How large does $n$ need to be so that $U(f,P_n)$ is within $0.01$ of $\int_1^3 \! f(x) \, \mathrm{d}x$ ?
My question is about the last part. I have set up the following
$$\text{min $n$ such that} \frac{26}{3} - (2 + \frac{8(n+1)}{2n} + \frac{4}{3} \cdot \frac{2n^3 + 3n^2 +n}{n^3 } ) \leq 0.01$$
Is there some intuition from the Riemann Integrability of this function that will help me solve for n in a quick way? What is the standard way to do this?
Thanks.
There are error calculations for most of the standard numerical methods of computing integrals, such as the trapezoid rule, Simpson's rule, and yes, even the rectangle rule. These depend both on n and f.
For example for the trapezoid rule the error term on the interval [a,b] can be given as :
E = $\frac {(b-a)^3}{12n^2} f''(c)$ where $a \le c \le b$.
This formula assumes that f'' exists. So for your case the error above would work. Of course you have to assume something about f, or there is no way to bound the error. Assumptions based on the smoothness of f are natural; also easy to prove.
There is a nice write up of this material here: http://pages.cs.wisc.edu/~amos/412/lecture-notes/lecture19.pdf.