How do you find the average value of a function of two variables on a rectangle?

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
4 replies · 2K views
Master J
Messages
219
Reaction score
0
To find the average value of a function of one variable, you integrate it and multiply it by 1/(b - a) , where b and a are the limits of integration , uper and lower, respectively.

But how does one do this for a function of two variables, defined on a rectangle?
 
Physics news on Phys.org
The same way, basically. Integrate the function over the rectangle and divide by the area of the rectangle.
 
Thanks.

Well I am trying a question. The integrand is (x^2)y. The domain is [2,4] * [-6,6].

Now when I integrate it with respect to y first, it goes to zero. It does not go to zero when you start with x. How is this possible?
 
Master J said:
How is this possible?

Bad math. :wink:...It should be zero in both cases, try showing us what you are doing when you integrate it over x first...:smile:
 
Possibly!:biggrin:

Ah I see what I've been doing wrong! I don't even need to work out the average value, since it integrates to zero, as it should, since it is evenly distributed in the positve and negative y areas!
 
Last edited: