Integration
Integration
Many of these exercises are intended to be done with pen and paper (and calculator), so try NOT to use Excel unless many iterations are required. Theorems and proofs 1. Show that the formula for the Trapezoidal rule is given by
b
f (x)dx =
a
2. Consider the general expression for the closed and open Newton-Cotes formulas and nd particular formulas for n = 1, 2, 3, 4 and n = 0, 1, 2, 3, respectively. 3. Approximate the integrals below using the Trapezoidal, Simpsons and Midpoint rules. Find an error bound using the error formulas and compare this to the actual error. (I)
1
x4 dx
0.5
(II)
/4
x sin(x) dx
0
(III)
/4
e3x sin(2x) dx
0
(IV)
1
x2 ex dx
0
(V)
e+1 e
1 dx xln(x)
4. The quadrature formulas below are exact for all polynomials of degree less than or equal to 2. Determine c0 , c1 , and c2 . (I)
1
(II)
2
Composite Numerical Integration 5. Use the composite Trapezoidal rule and the composite Simpsons rule for n = 6 to approximate the following integrals: (I)
1
x4 dx
0.5
(II)
/4
x sin(x) dx
0
(III)
/4
e3x sin(2x) dx
0
(IV)
1
x2 ex dx
0
(V)
e+1 e
1 dx xln(x)
6. Determine the values of n and h required to approximate the list of integrals below to within 104 and using Composite Trapezoidal, Simpsons and Midpoint rules: (I)
2
e2x sin(3x) dx
0
(II)
0
x2 cos(x) dx Romberg Integration 7. Use Romberg integration to compute R3,3 for the following integrals: (I)
1
x4 dx
0.5
(II)
/4
x sin(x) dx
0
(III)
/4
e3x sin(2x) dx
0
(IV)
1
x2 ex dx
0
(V)
e+1 e
1 dx xln(x)
Gaussian Quadrature 8. Use Gaussian quadrature with n = 2 to approximate the following integrals and compare the results to the exact values. (I)
1.5
x2 ln(x) dx
1
(II)
1
x2 ex dx
0
(III)
0.35 0
x2
2 dx 4
(IV)
/4
x2 sin(x) dx
0