# Homework Help: Spherical coordinate integral

1. Mar 14, 2005

### vincentchan

My professor said this problem is straightforward in spherical coordinates,

$$\int_{|\vec{r_1}|\leq a } \int_{|\vec{r_2}|\leq a } \frac{1}{|\vec{r_1}-\vec{r_2}|} d^3 r_2d^3r_1$$

i set up the integral in spherical coordinate and found it really ugly...

2. Mar 14, 2005

### StatusX

Think about what this double integral means. The inner one is the integral over all points inside a sphere of the reciprocal of the distance between each point and a given point, r1. It's clear that this value will depend only on the distance from the origin of r1, so you might as well place it on the $\theta$=0 axis. Once you get the inner integral into the form of a function of r1 (which will have no $\theta$ or $\phi$ dependance), the outer integral should be pretty easy.

3. Mar 14, 2005

### vincentchan

thank you for your quick reply, i don't think i can do this because the distance is depend on both r1 and r2 (not the origin to r1).

EDIT:
the angle between r1 and r2 will make the whole thing very messy

4. Mar 14, 2005

### StatusX

Yes, but I'm saying the angle of r1 won't matter in the inner integral because you're integrating over every point in the sphere. You'll get a value that only depends on the distance of r1 from the origin.

Also, you'll still have a rough integral to do over r2. A couple hints: Do the theta integral first, and when you get an expression that involves the square roots of perfect squares, make sure you take the positive root, which may mean you'll have to split up the integral into two ranges.

EDIT: The answer I get is: 32/15 pi^2 a^5

Last edited: Mar 14, 2005
5. Mar 14, 2005

### vincentchan

okay, I follow your way and find the first integral is 2 pi a^2, which is independent of r1... surely i did somthing wrong....

6. Mar 14, 2005

### StatusX

Well I can't help you if you don't show me some of your work. How did you set up the first integral? Use the law of cosinesfor the distance.

7. Mar 14, 2005

### vincentchan

this is how my integral look like

$$\int \frac{ r_2^2sin \theta dr_2 d \theta d \phi }{\sqrt{r_1^2+r_2^2-2r_1r_2cos \theta }}$$

8. Mar 14, 2005

### StatusX

That looks right. Try using the substitution $u=r_1^2+r_2^2-2r_1r_2 cos \theta$ to do the integral over theta first.

Last edited: Mar 15, 2005