Section 16.1 -- Double Integrals over Rectangles

> restart;

> with( plots ):

Warning, the name changecoords has been redefined

> setoptions3d( axes=framed, shading=zhue ):

>

Auxiliary Procedures -- execute but do not modify

Example: Example 2 (p. 689)

> f := (64-8*x+y^2)/16;

f := 4-1/2*x+1/16*y^2

> xrange := x=0..4;

> yrange := y=0..8;

xrange := x = 0 .. 4

yrange := y = 0 .. 8

>

The Riemann sum computed on a 2x4 grid of rectangles can be found with

> riemann2( f, xrange, yrange, 2, 4 );

[Maple Plot]

>

Taking this example further, note the convergence of the Riemann sums as the number of rectangles increases.

> animate_riemann2( f, xrange, yrange, 6 );

[Maple Plot]

>

The (unevaluated) definite integral is

> def_int := Int( Int( f, xrange ), yrange );

def_int := Int(Int(4-1/2*x+1/16*y^2,x = 0 .. 4),y =...

>

The exact value of this integral is

> value( def_int );

416/3

which is approximately

> evalf( % );

138.6666667

Note that the approximating Riemann sums are converging to this value.

>

>

>