# Homework Help: Calculating surface integral using diverg. thm.

1. Jan 24, 2014

### Miike012

I believe the book is wrong.. Can some one please check my work.
PROBLEM IS IN THE 2nd POST ( SORRY I COULDNT ADD BOTH PICS FOR SOME REASON )

#### Attached Files:

• ###### QQQQ.jpg
File size:
16.4 KB
Views:
125
2. Jan 24, 2014

### Miike012

Problem:

#### Attached Files:

• ###### RRR.jpg
File size:
12.3 KB
Views:
129
3. Jan 25, 2014

### haruspex

Not an area I know well, but I think your problem is that 1/r gives you a singularity on the axis, so your divergence integral does not vanish there.

4. Jan 25, 2014

### BvU

I will check the book thingy, but checking your result is easier: what if k2 = 0 and k1 is not ?

5. Jan 25, 2014

### vanhees71

If you could use Gauß's Theorem it would read
$$\int_{V} \mathrm{d}^3 \vec{x} \vec{\nabla} \cdot \vec{F}=\int_{\partial V} \mathrm{d}^2 \vec{A} \cdot \vec{F}.$$
However, as already stated by haruspex, there is the problem along the $z$ axis, where the field is singular, and thus there the divergence of the field is not well defined. So you have to do the surface integral directly. I have not checked in detail, whether the book is correct, but the explanation looks correct.

6. Jan 25, 2014

### Miike012

Instead of making [1/r]d(k1)/dr = 0, I change it to k1/2 where r = 2. Then I get the correct answer.. still don't understand why though.

7. Jan 25, 2014

### haruspex

It's because $\frac 1r \frac \partial {\partial r} r F(r)$ is only valid where F(r) is defined, and F(r)=k/r is not defined at r = 0.