# lecture25 - Lecture 25 Double Integrals for Non-rectangles...

This preview shows pages 1–2. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Lecture 25 Double Integrals for Non-rectangles In the previous lecture we considered only integrals over rectangular regions. In practice, regions of interest are rarely rectangles and so in this lecture we consider two strategies for evaluating integrals over other regions. Redefining the function One strategy is to redefine the function so that it is zero outside the region of interest, then integrate over a rectangle that includes the region. For example, suppose we need to approximate the value of I = integraldisplayintegraldisplay T sin 3 ( xy ) dx dy where T is the triangle with corners at (0 , 0), (1 , 0) and (0 , 2). Then we could let R be the rectangle [0 , 1] × [0 , 2] which contains the triangle T . Notice that the hypotenuse of the triangle has the equation 2 x + y = 2. Then make f ( x ) = sin 3 ( xy ) if 2 x + y ≤ 2 and f ( x ) = 0 if 2 x + y > 2. In Matlab we can make this function with the command: > f = inline(’sin(x.*y).^3.*(2*x + y <= 2)’) In this command <= is a logical command. The term in parentheses is then a logical statement and is given the value 1 if the statement is true and 0 if it is false. We can then integrate the modified f on [0 , 1] × [0 , 2] using the command: > I = dblquad(f,0,1,0,2) As another example, suppose we need to integrate x 2 exp( xy ) inside the circle of radius 2 centered...
View Full Document

## This note was uploaded on 02/09/2012 for the course MATH 344 taught by Professor Young,t during the Fall '08 term at Ohio University- Athens.

### Page1 / 3

lecture25 - Lecture 25 Double Integrals for Non-rectangles...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online