Last time | Next time |
Today:
There is an assignment for section 4.3 which will serve as a take home component (again, 30%) of the exam. You may submit it by Friday of next week.
So 4.3 will not be explicitly covered on the in-class portion.
"In particular, it must be exact for the polynomials $p_{j}(x)=(x-x_{0})^{j}, j=0,1,\ldots,n$." (p 143)
These polynomials for a basis for the space of all polynomials of degree \(n\) or lower. Since all of the operations we're considering are linear, if we know the answers for these polynomials we can build the answer for an arbitrary polynomial of degree \(n\) or lower.
We end up with a system of linear equations (so time to whip out that Gaussian elimination!:). But also sometimes symbolic manipulation, and so our author includes a little bit about Maxima in this chapter (Crumpet 29, p. 147).
We note that the formula includes two important parts: a derivative, and a power of \(h\): the error is of the form $O(h^{n}f^{(k)}(\xi_{h}))$.
The power of \(h\) tells us the rate of convergence -- how fast the method converges as the step size \(h\) tends to 0; the derivative \(k\) tells us the degree of precision (the power of the polynomial that the method gets right). Polynomials of degree \(k-1\) vanish under \(k\) derivatives, so those polynomials will be evaluated without error using the scheme.
(Note: there's an error in one of the formulas in the tables at the end of the section. What do you have when you have an error in your error formula?:)
Let's use two-point backward and forward difference formulas to derive the three-point centered difference formula. We do it by "balancing errors".
While there is no motivation for this, the author shows that it works. Maybe it's just magic.... or a good project?
Let's see how to use Taylor series to derive a more specific error formula for the first formula of this class, the midpoint method: \[ I = \int_{x_0-h}^{x_0+h}f(x)dx \approx M = 2h f(x_0) \] (given as $O(h^{3}f^{''}(\xi_{h}))$ in the table).
But the idea is really swell, and I am delighted by this method!
Here's another picture of how we might build one of these.