

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


MATH 441/541 - Numerical Analysis Ninth Meeting: Interpolation Thursday, October 25 th, 2007
An Example: Consider the following boundary value problem: (x + 1)y′′^ + xy′^ + 3y = g(x), 0 ≤ x ≤ 1 subject to y(0) = 3, y(1) = 7
f (x)g(x) dx = f (c)
∫ (^) b
a
g(x) dx
∗ Degree of Accuracy: The degree of accuracy, or precision, of a quadrature formula is the largest positive integer n such that the formula is exact for f (x) = xk, for each k = 0, 1 , · · · , n. (So, look at the error term. If it has derivatives of f (n), then all polynomials of degree n − 1 will vanish by the nth^ derivative, f (n).)
a
f (x) dx =
∫ (^) xn
x 0
f (x) dx ≈
∑^ n
i=
aif (xi)
where ai =
∫ (^) xn x 0 Li(x). (b) The (n + 1)-point open Newton-Cotes formula uses nodes xi = x 0 + ih for i = 0 , 1 , · · · , n where x 0 = a + h, xn = b − h and h = bn−+2a , approximating
∫ (^) b
a
f (x) dx =
∫ (^) xn+
x− 1
f (x) dx ≈
∑^ n
i=
aif (xi)
with the same ai definition as above.
(a) For (n+1)-point closed Newton-Cotes formula Suppose that
∑n i=0 aif^ (xi) denotes the (n + 1)-point closed Newton-Cotes formula with x 0 = a, xn = b and h = (b − a)/n. There exists ξ ∈ (a, b) for which ∫ (^) b
a
f (x) dx =
∑^ n
i=
aif (xi) +
hn+3f (n+2)(ξ) (n + 2)!
∫ (^) n
0
t^2 (t − 1) · · · (t − n) dt
if n is even and f ∈ Cn+2[a, b], and ∫ (^) b
a
f (x) dx =
∑^ n
i=
aif (xi) +
hn+2f (n+1)(ξ) (n + 1)!
∫ (^) n
0
t(t − 1) · · · (t − n) dt
if n is odd and f ∈ Cn+1[a, b]. (b) For (n + 1)-point open Newton-Cotes formula Suppose that
∑n i=0 aif^ (xi) denotes the (n + 1)-point open Newton-Cotes formula with x 0 = a + h, xn = b − h and h = (b − a)/(n + 2). There exists ξ ∈ (a, b) for which ∫ (^) b
a
f (x) dx =
∑^ n
i=
aif (xi) +
hn+3f (n+2)(ξ) (n + 2)!
∫ (^) n+
− 1
t^2 (t − 1) · · · (t − n) dt
if n is even and f ∈ Cn+2[a, b], and ∫ (^) b
a
f (x) dx =
∑^ n
i=
aif (xi) +
hn+2f (n+1)(ξ) (n + 1)!
∫ (^) n+
− 1
t(t − 1) · · · (t − n) dt
if n is odd and f ∈ Cn+1[a, b].