# Electric field at the centre of a ball

Tags:
1. Jun 29, 2016

### Nitin Gupta

Question : Find the electric field at the centre of a ball of radius R with volume charge density rho = a.r, where a is a constant vector and r is a radius vector drawn from ball's centre.

Relevant Equations and attempt at solution : I used the basic formula for electric field due to continuous volume charge density and arrived at an equation which I tried to solve two different ways as shown in image. I am getting different solutions by trying different methods which is not possible.
I have tried to think of a reason for this and my reasoning for this anomaly has been shown in the image.

#### Attached Files:

• ###### IMG_20160628_234944_1467138002625.jpg
File size:
37.1 KB
Views:
83
2. Jun 29, 2016

### haruspex

When theta varies, $\hat r$ varies, no?

3. Jun 29, 2016

### Nitin Gupta

Oho.. And since r hat is varying I can't take it as a constant under integration.. That's why we convert the spherical system to cartesian one.. Where the unit vectors are independent of the angles.. And that was the point of this exercise.. To teach us to consider the constancy of unit vectors when doing problems...

Is there any other way this could be done without resorting to cartesian coordinate system (or, for that matter, any system where the unit vectors are independent of angles)..such that I integrate using r hat itself..??

4. Jun 29, 2016

### Hamal_Arietis

did you try the Maxwell equation in differential form?
div E=rho/e
you used intergral form.
Or use Laplace equation to find voltage then use E=-gradV

Last edited: Jun 29, 2016
5. Jun 30, 2016

### Nitin Gupta

Yeah... Actually I wanted to figure it out this way