Appropriate coordinates for a given electric field

4 replies · 2K views · last reply
kirito
Messages
77
Reaction score
9
TL;DR
I was facing a problem where I have an electric field and I have to find the charge density , I noticed that the field outside is that of a dipole and because I decided to use spherical coordinates and reached an appropriate answer yet using divergence in cylindrical lead me to different outputs
Piecewise electric field expression: E vector equals -(A/epsilon_0) z-hat for r less than R, and (A R^3 / (epsilon_0 r^3)) times (3 cos theta r-hat minus z-hat) for r greater than R.

this is the field I was provided
and this is the charge density that I have reached
Handwritten-style typeset derivation of the divergence of an electric field in spherical coordinates, reducing step by step to the result 0 for the outside region.

Two equations in cylindrical coordinates: left, E vector = E_r r-hat + E_theta theta-hat + E_z z-hat; right, divergence of E vector = (1/r) d/dr (r E_r) + (1/r) dE_theta/dtheta + dE_z/dz.

I tried to use this yet the output was different
I also used Cartesian it gave me the same output as the spherical ones
 
Last edited:
The value of the divergence of a field at a point is independent of the coordinate system. So, if you get zero in spherical coordinates you should also get zero in cylindrical coordinates.
 
TSny said:
The value of the divergence of a field at a point is independent of the coordinate system. So, if you get zero in spherical coordinates you should also get zero in cylindrical coordinates.
thats actually why I even made this post , I got weirded out by the calculation using cylindrical coordinates since there is no component in the theta direction whereas the z results in 0 and the component in the r direction results in something other than zero unless I had to do something to the coordinates I changed from cylindrical to spherical so changed the z hat appropriately in the first case I may have missed something but got no clue what it may be
 
kirito said:
since there is no component in the theta direction whereas the z results in 0 and the component in the r direction results in something other than zero
What is the divergence in cylindrical (or spherical) coordinates? Hint: it is not the same as for Cartesian replacing variable names.
 
It's easier to do it without coordinates:
$${\bf E}=\frac{3{\bf (r\cdot \mu)r}}{r^5}-\frac{\mu}{r^3}$$
$$\nabla\cdot{\bf E}=\frac{3[\mu\cdot{\bf r}+3{\bf (\mu\cdot r)]}}{r^5}-\frac{15\mu\cdot{\bf r}}{r^5}+\frac{3\mu\cdot{\bf r}}{r^5}=0.$$
Sorry. I don't know what's wrong with my latex.
 
Last edited: