Question

ابن الخطاب

مشرف قسم الرياضيات العامة
طاقم الإدارة
Salamu alikom

please would you help me to answer the following question


what is the error term in

1- trapezoidal rule of two variables
2- simpson's rule in two variables
3- midpoint rule in two varibles

i tried to refer to some numerical analysis books but ididn't find the formulas

i am just found the formulas in one varible

anyone can help me to get these formulas in two variables with the error term

thanks

may Allah thank to you
 


شوف هذا الموقع يمكن بفيدك

وهذه نبذة مما رأيته

[SIZE=+1]Module[/SIZE] [SIZE=+1]for[/SIZE]
[SIZE=+1]2D Integration using the Trapezoidal and Simpson Rules[/SIZE]

Background

The trapezoidal rule and Simpson's rule for ordinary integrals can be extended to multiple integrals.

Theorem (Trapezoidal 2D Rule) Consider
22504.imgcache.gif
over the rectangle
22505.imgcache.gif
. Given that the interval
22506.imgcache.gif
is subdivided into
22507.imgcache.gif
subintervals
22508.imgcache.gif
of equal width
22509.imgcache.gif
by using the equally spaced sample points
22510.imgcache.gif
for
22511.imgcache.gif
. Also, assume that the interval
22512.imgcache.gif
is subdivided into
22513.imgcache.gif
subintervals
22514.imgcache.gif
of equal width
22515.imgcache.gif
by using the equally spaced sample points
22516.imgcache.gif
for
22517.imgcache.gif
.
The
composite Trapezoidal rule is

22518.imgcache.gif

where

22519.imgcache.gif


It can be shown that the error term is of the form
22520.imgcache.gif
, that is

22521.imgcache.gif
.
Remark. The Trapezoidal rule had the pattern of weights
22522.imgcache.gif
and the Trapezoidal 2D rule extends this pattern to a grid in the rectangle R.
22523.imgcache.gif

Proof 2D Trapezoidal and Simpson Rules 2D Trapezoidal and Simpson Rules

Theorem (Simpson's 2D Rule) Consider
22524.imgcache.gif
over the rectangle
22525.imgcache.gif
. Given that the interval
22526.imgcache.gif
is subdivided into
22527.imgcache.gif
subintervals
22528.imgcache.gif
of equal width
22529.imgcache.gif
by using the equally spaced sample points
22530.imgcache.gif
for
22531.imgcache.gif
. Also, assume that the interval
22532.imgcache.gif
is subdivided into
22533.imgcache.gif
subintervals
22534.imgcache.gif
of equal width
22535.imgcache.gif
by using the equally spaced sample points
22536.imgcache.gif
for
22537.imgcache.gif
.
The
composite Simpson's rule is

22538.imgcache.gif

where
22539.imgcache.gif


It can be shown that the error term is of the form
22540.imgcache.gif
, that is

22541.imgcache.gif
.
Remark. Simpson's rule had the pattern of weights
22542.imgcache.gif
and Simpson's 2D rule extends this pattern to a grid in the rectangle R.
22543.imgcache.gif

Proof 2D Trapezoidal and Simpson Rules 2D Trapezoidal and Simpson Rules

Computer Programs 2D Trapezoidal and Simpson Rules 2D Trapezoidal and Simpson Rules
Mathematica Subroutine (Trapezoidal 2D Rule). Object oriented programming.
22544.imgcache.gif

Mathematica Subroutine (Simpson 2D Rule). Object oriented programming.
22545.imgcache.gif

Example 1. Use the composite Simpson's rule for multiple integrals to numerically approximate the iterated integral
22546.imgcache.gif
.
Remark. This is the volume of the solid bounded by the surface
22547.imgcache.gif
, that lies above the square
22548.imgcache.gif
in the xy-plane.
Solution 1.

Example 2. Find the analytic solution to the iterated integral
22549.imgcache.gif
.
Solution 2.

Example 3. How good are the Trapezoidal rule approximations to
22550.imgcache.gif
that were calculated in Example 1?
Solution 3.

Example 4. Use the composite Simpson's rule for multiple integrals to numerically approximate the iterated integral
22551.imgcache.gif
.
Remark. This is the volume of the solid bounded by the surface
22552.imgcache.gif
, that lies above the square
22553.imgcache.gif
in the xy-plane.
Solution 4.

Example 5. How good are the Simpson's rule approximations to
22554.imgcache.gif
that were calculated in Example 4?
Solution 5.

Example 6. Compare the 2D Trapezoidal and 2D Simpson rule approximations to
22555.imgcache.gif
that were calculated in Examples 1 and 4?
Solution 6.

More Background

Suppose we wish to numerically approximate the integral
22556.imgcache.gif
, where the limits of integration on the inside integral are functions of x. This can be accomplished as follows.

First, apply Simpson's rule using m subintervals of
22557.imgcache.gif
to f[x,y] and define the result as the function F[x].

Second, apply Simpson's rule using n subintervals of
22558.imgcache.gif
to F[x].

Remark. To make F[x] "look like a function of x" we shall fix the number of vertical subdivisions "m" in a global variable. Use the following two Mathematica subroutines.
22559.imgcache.gif


22560.imgcache.gif

Example 7. Use the composite Simpson's rule for multiple integrals to numerically approximate the iterated integral
22561.imgcache.gif
.
Solution 7.

Old Lab Project (Simpson's Rule for 2D Simpson's Rule for 2D). Internet hyperlinks to an old lab project.

[SIZE=+1]Research Experience for Undergraduates[/SIZE]
Trapezoidal Rule for Numerical Integration Trapezoidal Rule for Numerical Integration Internet hyperlinks to web sites and a bibliography of articles.
Simpson's Rule for Numerical Integration Simpson's Rule for Numerical Integration Internet hyperlinks to web sites and a bibliography of articles.

Download this Mathematica Notebook2D Integration using the Trapezoidal and Simpson Rules

Return to Numerical Methods - Numerical Analysis

 
عودة
أعلى