Last time | Next time |
First come, first served -- I'll take the first 8 who respond. Otherwise you'll have to zoom it.
\[ A=\int{dA} \]
"dA" is called an "infinitesimal" -- it's a tiny chunk of area -- tinier than anything you know ("vanishingly small")!
What's numerical integration all about? We do pretty much the same thing, only we have a finite sum \[ A=\sum{\Delta {A}} \]
where the $\Delta {A}$ are small, but not vanishingly small. And our favorite little areas are rectangles.
but as the image to the right (above) and the graphical insight below show, we can think of the Midpoint rule as being a "Tangent rule":
Midpoint Rule: \[ \int_a^b f(x) dx \approx M_n = \Delta x [f(\overline{x_1})+f(\overline{x_2})+\cdots+f(\overline{x_n})] \] where \[ \Delta x = \frac{b-a}{n} \] and $\overline{x_i}=\frac{1}{2}(x_{i-1}+x_i)=$ midpoint of $[x_{i-1},x_i]$.
This gives rise to an important observation, which I want to encourage you to remember, and here it is:
(their arithmetic average, in this case). Notice that the two methods (LRR and RRR) make errors in the opposite sense in this case (and generally): one method tends to overestimate (the left, in this case), while the other tends to underestimate (RRR here); the average cancels their errors, to produce a more accurate estimate (in general).
Trapezoidal Rule: \[ \int_a^b f(x) dx \approx T_n = \frac{\Delta x}{2} [f(a)+2f(x_1)+2f(x_2)+\cdots+2f(x_{n-1})+f(b)] \] where \[ \Delta x = \frac{b-a}{n} \] and $x_i=a + i \Delta x$. This is just the average of the RRR and LRR: \[ LRR = \Delta x [f(a)+f(x_1)+f(x_2)+\cdots+f(x_{n-1})] \] \[ RRR = \Delta x [f(x_1)+f(x_2)+\cdots+f(x_{n-1})+f(b)] \] (and note that each of those methods ignores one endpoint).
Be careful however not to confuse the midpoint and trapezoidal rule. Each is effectively a trapezoid method, but the midpoint method uses "tangent trapezoids", while the trapezoid method uses "endpoint trapezoids" (and it turns out that the tangent trapezoids give better results, generally).
Notice that the number of subintervals in Simpson's rule must be even.
Now we can go further:
(their weighted arithmetic averages).
Here are the error bounds, that illustrate that the errors of midpoint and trapezoidal are related, and suggest how to combine them to create a better method (Simpson's rule):
Notice that we're adding two copies of the Midpoint rule to one copy of the Trapezoidal rule -- so Simpson's rule has three estimates of the integral in the numerator (so we must divide that by 3 to produce a single estimate, Simpson's rule). Because the error of the Trapezoidal rule tends to be about twice the error of the Midpoint rule, and of opposite sign, the errors cancel in a beautiful way to create a cool new rule!