« previous | Thursday, February 20, 2014 | next »
Section 4.1: Numerical Differentiation
Section 4.3: Numerical Integration
Theorem. [Numerical Quadrature].
Where
are points on the interval ![{\displaystyle [a,b]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/9c4b788fc5c637e26ee98b45f89a5c08c85f7935)
are constants defined by 
is a value in ![{\displaystyle [a,b]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/9c4b788fc5c637e26ee98b45f89a5c08c85f7935)
Proof. Let
be the Lagrange interpolating polynomial of
. Since
is true for some
in
, it follows that
By substituting for the definition of
, we obtain
If we let
, we arrive at the desired formula:
such that
is our approximation and
is the error.
quod erat demonstrandum
Trapezoidal Rule
The simplest non-trivial case for the interpolating polynomial of
is a line between two sample points.
For simplicity, the notation
shall be used to express the (uniform) distance between equidistant points
Proof. We can apply the quadrature formula above using our definitions for
and
. Observe that
can be abstracted to a
term by the mean value theorem for some value
because
does not change signs on
.
quod erat demonstrandum
Simpson's Rule
If we use a quadratic interpolating polynomial instead of a linear one, we can derive Simpson's rule. The interpolating parabola defined by three points
,
, and
is given by
However, integrating this result using the quadrature method described above results in a
error term. We can do better by using an alternative method involving the 3rd-degree Taylor polynomial expansion of
centered at
:
Proof. Plugging in our definitions above yields
Like in the proof for the trapezoidal rule, we can apply the mean value theorem to replace the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f^{(4)}(\xi(x))}
factor in the integrand with the constant Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f^{(4)}(\xi_1)}
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \int_{x_0}^{x_2} \, \mathrm{d}x &= \left[ f(x_1) \, (x-x_1) + \frac{f'(x_1)}{2} \, (x-x_1)^2 + \frac{f''(x_1)}{6} \, (x-x_1)^3 + \frac{f'''(x_1)}{4!} \, (x-x_1)^4 \right]_{x_0}^{x_2} + \frac{f^{(4)}(\xi_1)}{24} \, \int_{x_0}^{x_2} (x-x_1)^4 \, \mathrm{d}x \\ &= 2h\,f(x_1) + \frac{h^3}{3} \, f''(x_1) + \frac{f^{(4)}(\xi_1)}{60} \, h^5 \end{align}}
Replacing Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f''(x_1)}
with its approximation from Section 4.1 gives
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \begin{align} \int_{x_0}^{x_2} &= 2h\,f(x_1) + \frac{h^3}{3} \, \left\{ \frac{1}{h^2} \, \left( f(x_0) - 2f(x_1) + f(x_2) \right) - \frac{h^2}{12} \, f^{(4)}(\xi_2) \right\} + \frac{f^{(4)}(\xi_1)}{60} \, h^5 \\ &= \frac{h}{3} \left( f(x_0) + 4f(x_1) + f(x_2) \right) - \frac{h^5}{12} \left( \frac{1}{3} \, f^{(4)}(\xi_2) - \frac{1}{5} \, f^{(4)}(\xi_1) \right) \end{align}}
The values Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \xi_1}
and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \xi_2}
can be replaced by a common value Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \xi \in (x_0, x_2)}
, giving the desired formula:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \int_a^b f(x) \, \mathrm{d}x = \frac{h}{3} \left( f(x_0) + 4f(x_1) + f(x_2) \right) \ - \ \frac{h^5}{90} \, f^{(4)}(\xi)}
quod erat demonstrandum
Degree of Accuracy
The degree of accuracy [in class, DAC], or precision, of a quadrature formula is the largest positive integer Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle n}
such that the formula is exact for Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle x^k}
, for each Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle k = 0, 1, \ldots, n}
. Burden 197 [1]
I can't believe the book just gave this definition: it treats accuracy and precision as interchangeable terms. However, accuracy and precision are most certainly two distinct, separate topics.
The degree of accuracy may be found by finding the largest degree polynomial such that the error term is identically 0.
The error term of the trapezoidal rule has a second-derivative term, so polynomials of degree 1 are identically zero (e.g. Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{\mathrm{d}}{\mathrm{d}x} \left( x \right) = 0}
), but polynomials of degree 2 are constant (e.g. Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{\mathrm{d}}{\mathrm{d}x} \left( x^2 \right) = 2}
). Hence the trapezoidal rule has degree of accuracy 1.
Similarly, the error term of Simpson's rule has a fourth-derivative term, so for polynomials of degree 3, Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{\mathrm{d}^4}{\mathrm{d}x^4} \left( x^3 \right) = 0}
, but Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \frac{\mathrm{d}^4}{\mathrm{d}x^4} \left( x^4 \right) = 24}
. Therefore Simpson's rule has degree of accuracy 3.
- ↑
Burden, Richard L. and J. Douglas Faires.
Numerical Analysis.
9th ed.
Boston:
Brooks/Cole, Cengage Learning,
2011.
197.
Print.