# Find the average value of the function f(x,y)=x^2+y^2

een

## Homework Statement

Let a>0 be a constant. Find the average value of the function f(x,y)=x^2+y^2
1) on the square -a$$\leq$$x$$\leq$$a, -a$$\leq$$y$$\leq$$a
2) on the disk x^2+y^2$$\leq$$a^2

## The Attempt at a Solution

1) I integrated $$\int$$a-(-a) $$\int$$a-(-a) (x^2+y^2) dxdy and got (8/3)a^4..Is this right?

2)I converted it to polar coordinates 0$$\leq$$$$\theta$$$$\leq$$2pi
and 0$$\leq$$r$$\leq$$sqrt(a)
i integrated $$\int$$0-2pi$$\int$$0-sqrt(a) r^2drd$$\theta$$
and got 2/3pi*(sqrt(a)^3)... is this right?----- 2pi$$\frac{\sqrt{a}^3}{3}$$