Docsity

Numerical Analysis - 4 Problems on Assignment 3 | MATH 471, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Homework 3, Math 471, 11 September,
2008
Name:
ID:
1. With the usual notation for the Newton-Cotes quadrature formula and using the
equally spaced points xk=a+k h, for k= 0,1,...,n, where h= (b−a)/n and
n≥1, show that wk=wn−k, for k= 0,1,...,n.
2. By considering the polynomial (x−c)n+1 on the interval [a, b], where c= (b+a)/2
and n≥1, and the result of the last exercise, show that the Newton-Cotes formula
using n+ 1 equally-spaced points xkk= 0,1,...,n, is exact for all polynomials of
degree n+ 1, whenever nis even.
3. The Newton-Cotes formula with n= 3 on the interval [−1,1] is
Z1
−1
f(x)dx ≈w0f(−1) + w1f(−1/3) + w2f(1/3) + w3f(1) .
Using the fact that this formula is to be exact for all polynomials of degree 3 show
that
2w0+ 2w1= 2,
2w0+2
9w2=2
3,
and hence find the values of the weights w0,w1,w2, and w3.
4. For each of the functions 1, x,x2, ..., x6, find the difference between R1
−1f(x)dx
and (i) Simpson’s rule and (ii) the formula derived in the last exercise. Deduce
that for every polynomial of degree 5 formula (ii) is more accurate than formula
(i). Find a polynomial of degree 6 for which formula (i) is more accurate than
formula (ii).
1

Partial preview of the text

Download Numerical Analysis - 4 Problems on Assignment 3 | MATH 471 and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Homework 3, Math 471, 11 September,

Name:

ID:

  1. With the usual notation for the Newton-Cotes quadrature formula and using the equally spaced points xk = a + k h, for k = 0, 1 ,... , n, where h = (b − a)/n and n ≥ 1, show that wk = wn−k, for k = 0, 1 ,... , n.
  2. By considering the polynomial (x − c)n+1^ on the interval [a, b], where c = (b + a)/ 2 and n ≥ 1, and the result of the last exercise, show that the Newton-Cotes formula using n + 1 equally-spaced points xk k = 0, 1 ,... , n, is exact for all polynomials of degree n + 1, whenever n is even.
  3. The Newton-Cotes formula with n = 3 on the interval [− 1 , 1] is ∫ (^1)

− 1

f (x) dx ≈ w 0 f (−1) + w 1 f (− 1 /3) + w 2 f (1/3) + w 3 f (1).

Using the fact that this formula is to be exact for all polynomials of degree 3 show that

2 w 0 + 2w 1 = 2 ,

2 w 0 +

w 2 =

and hence find the values of the weights w 0 , w 1 , w 2 , and w 3.

  1. For each of the functions 1, x, x^2 ,... , x^6 , find the difference between

∫ (^1) − 1 f^ (x)^ dx and (i) Simpson’s rule and (ii) the formula derived in the last exercise. Deduce that for every polynomial of degree 5 formula (ii) is more accurate than formula (i). Find a polynomial of degree 6 for which formula (i) is more accurate than formula (ii).