Problem Set - Trapezoidal and Simpson approximations

Problem Set - Trapezoidal and Simpson approximations

Arun Ram
Department of Mathematics and Statistics
University of Melbourne
Parkville, VIC 3010 Australia
aram@unimelb.edu.au

and

Department of Mathematics
University of Wisconsin, Madison
Madison, WI 53706 USA
ram@math.wisc.edu

Last updates: 7 December 2009

Trapezoidal and Simpson approximations

Determine the area of a trapezoid with left edge at x=l , right edge at x=l+Δx , left height f(l) , and right height f(l+Δx) .
Determine the area of a parabola topped slice with left edge at x=l , right edge at x=l+2Δx , middle at x=l+Δx , left height f(l) , middle height f(l+Δx) , and right height f(l+2Δx) .
Let N be a positive integer. Show that adding up N trapezoidal slices gives the approximation to ab f(x)dx given by Δx2 ( f(a) + 2f(a+Δx) + 2f(a+2Δx) ++ 2f(b-Δx) + f(b) ) , where Δx= b-aN .
Let N be an even positive integer. Show that adding up N parabola topped slices gives the approximation to ab f(x)dx given by Δx2 ( f(a) + 4f(a+Δx) + 2f(a+2Δx) ++ 4f(b-Δx) + f(b) ) , where Δx= b-aN .
Compute a trapezoidal approximation with N=4 slices for the integral 02 (1+x2 ) dx and obtain a bound for the error.

Compute a trapezoidal approximation with N=8 slices for the integral 02 (1+x2 ) dx and obtain a bound for the error.

Compute a trapezoidal approximation with N=4 slices for the integral 01 e-x dx and obtain a bound for the error.

Compute a trapezoidal approximation with N=8 slices for the integral 01 e-x dx and obtain a bound for the error.

Compute a trapezoidal approximation with N=4 slices for the integral 0π/2 sinx dx and obtain a bound for the error.

Compute a trapezoidal approximation with N=8 slices for the integral 0π/2 sinx dx and obtain a bound for the error.

Compute a trapezoidal approximation with N=4 slices for the integral 01 (1+x2)-1 dx and obtain a bound for the error.

Compute a trapezoidal approximation with N=8 slices for the integral 01 (1+x2)-1 dx and obtain a bound for the error.

Compute a Simpson approximation with N=4 slices for the integral 02 (1+x2 ) dx and obtain a bound for the error.

Compute a Simpson approximation with N=8 slices for the integral 02 (1+x2 ) dx and obtain a bound for the error.

Compute a Simpson approximation with N=4 slices for the integral 01 e-x dx and obtain a bound for the error.

Compute a Simpson approximation with N=8 slices for the integral 01 e-x dx and obtain a bound for the error.

Compute a Simpson approximation with N=4 slices for the integral 0π/2 sinx dx and obtain a bound for the error.

Compute a Simpson approximation with N=8 slices for the integral 0π/2 sinx dx and obtain a bound for the error.

Compute a Simpson approximation with N=4 slices for the integral 01 (1+x2)-1 dx and obtain a bound for the error.

Compute a Simpson approximation with N=8 slices for the integral 01 (1+x2)-1 dx and obtain a bound for the error.

Let T4 be the trapezoidal approximation with N=8 slices for the integral 01 (1+x2)-1 dx . Show that | f(x) | 2 for x[0,1] and that | T4-14π | 1/96 <0.0105 .

Use the trapezoidal approximation with N=4 slices to approximate the integral log2 = 12 x-1 dx . Show that 0.6866log20.6958 .

Use Simpson's approximation with N=4 slices to approximate log2 . Show that 0.6927log20.6933 .

Compute a trapezoidal approximation with N=8 slices for the integral 01 e-x2 dx .

Compute a trapezoidal approximation with N=16 slices for the integral 01 e-x2 dx .

Compute a Simpson approximation with N=8 slices for the integral 01 e-x2 dx .

Compute a Simpson approximation with N=16 slices for the integral 01 e-x2 dx .

Compute a trapezoidal approximation with N=8 slices for the integral 0π/2 sinxx , dx .

Compute a trapezoidal approximation with N=16 slices for the integral 0π/2 sinxx , dx .

Compute a Simpson approximation with N=8 slices for the integral 0π/2 sinxx , dx .

Compute a Simpson approximation with N=16 slices for the integral 0π/2 sinxx , dx .

Derive the midpoint approximation for ab f(x) , dx . With N slices it is obtained by adding up the areas of rectangles with height equal to the value of the function at the midpoint of the interval. Show that the error estimate is given by | ab f(x) , dx - MN | (b-a)3 24n2 M , where M is an upper bound for |f(x)| on [a,b] .

References [PLACEHOLDER]

[BG] A. Braverman and D. Gaitsgory, Crystals via the affine Grassmanian, Duke Math. J. 107 no. 3, (2001), 561-575; arXiv:math/9909077v2, MR1828302 (2002e:20083)