# Charge of a Non-uniform Ball

1. Nov 4, 2009

### zoso335

1. The problem statement, all variables and given/known data
"Charge is distributed spherically-symmetrically but nonuniformly within a ball of radius a. There is no charge outside the ball and no sheet-charge on its surface. The (radial) electric field is uniform within the ball, having the constant value Ea.
a.) Calculate the total charge.
b.) Calculate the volume charge density at any distance r<a from the center.
c.) Check that your answers to part a and part b agree.

2. Relevant equations
Gauss' Law. Differential form of Gauss' Law.

3. The attempt at a solution
Part a posed no problem to me, you just use Gauss' law in integral form over the sphere of radius a. This results in Q equating to Ea times the surface area of the sphere times epsilon nought.
Part b on the other hand is where I have a problem. If I use the differential form of Gauss' Law, $$\nabla$$$$\bullet$$ E = $$\rho$$ / $$\epsilon$$0 then taking the gradient of a constant electric field would result in zero, and thus the volume charge density would be zero, but that physically does not make sense, so that is where I'm lost.
1. The problem statement, all variables and given/known data

2. Relevant equations

3. The attempt at a solution
1. The problem statement, all variables and given/known data

2. Relevant equations

3. The attempt at a solution

2. Nov 4, 2009

### Dick

The electric field is only constant in magnitude, it's not constant in direction. The divergence isn't zero. I'd suggest you stick with the integral form and figure out how Q(r) varies with r.

3. Nov 4, 2009

### zoso335

That's interesting though because my professor sent out and email giving hints, and for the volume charge density he suggested using Gauss' Law in differential form. So....there must be something I'm not doing right with that.

4. Nov 4, 2009