Poisson's equation and charge density distribution (electromagnetism)

Click For Summary
SUMMARY

The discussion focuses on solving Poisson's equation and determining charge density distribution from a given electric potential, specifically ##\phi(\vec{r}) = k \frac{q}{r} e^{-r/R}##. The electric field is derived using the gradient, yielding ##\vec{E} (\vec{r}) = kqe^{-r/R} \bigg(\frac{1}{R r^2} + \frac{1}{r^3}\bigg) \vec{r}##. Gauss' law is applied to find the enclosed charge ##Q(r)##, resulting in ##Q(r) = q e^{-r/R} \bigg(\frac{r}{R} + 1\bigg)##. The charge density ##\rho(\vec{r})## is calculated using Poisson's equation, leading to a complex expression that varies with ##r##, indicating non-uniform charge distribution.

PREREQUISITES
  • Understanding of electromagnetism concepts, specifically Poisson's equation.
  • Familiarity with Gauss' law and its application in electrostatics.
  • Knowledge of vector calculus, particularly gradient and divergence operations.
  • Proficiency in spherical coordinates for simplifying calculations in three-dimensional space.
NEXT STEPS
  • Study the derivation of electric fields from potentials using spherical coordinates.
  • Learn how to apply Gauss' law in various geometries to find enclosed charge.
  • Explore advanced applications of Poisson's equation in electrostatics.
  • Investigate the implications of non-uniform charge distributions on electric fields and potentials.
USEFUL FOR

This discussion is beneficial for students and professionals in physics, particularly those preparing for exams in electromagnetism, as well as researchers dealing with electrostatic problems involving charge distributions.

JulienB
Messages
408
Reaction score
12

Homework Statement



Hi everybody! I'm preparing for an exam of electromagnetism, and I am struggling with the last question of this problem (hopefully the two first ones are correctly solved):

Given potential: ##\phi(\vec{r}) = k \frac{q}{r} e^{-r/R}## with ##r=\sqrt{x^2 + y^2 + z^2}## and ##R =##const.)
Calculate:
1. The electric field ##\vec{E} (\vec{r})## for ##r>0##.
2. The charge ##Q(r)## enclosed in a sphere of radius ##r>0## having the null-point as center.
3. The charge density ##\rho (\vec{r})## for ##r>0##.

Homework Equations



1. Eletric field: ##\vec{E} = -\nabla \phi##.
2. Gauss' law: ##\frac{Q(r)}{\epsilon_0} = \oint_A \vec{E} \cdot d\vec{A}##.
3. Poisson's equation: ##\Delta \phi = \frac{\rho (\vec{r})}{\epsilon_0}## or something else?

The Attempt at a Solution



For 1) I simply calculated the partial derivatives for ##x##, ##y##, ##z## of ##\phi(r)## and got:

##\vec{E} (\vec{r}) = kqe^{-r/R} \bigg(\frac{1}{R r^2} + \frac{1}{r^3}\bigg) \vec{r}##

Not such a straight forward derivative, so hopefully that is correct.

2) I used Gauss' law like that:

##\frac{Q(r)}{\epsilon_0} = \oint_A \vec{E} d\vec{A} = \vec{E} \cdot \vec{A}##

because I assume that the electric field is perpendicular to any sphere centered on the null-point. Is that a correct assumption? Then follows:

##Q(r) = \epsilon_0 \vec{E} \cdot \hat{n} A = \epsilon_0 k q e^{-r/R} \bigg(\frac{1}{R r^2} + \frac{1}{r^3}\bigg) r \cdot 4\pi r^2##
##= q e^{-r/R} \bigg(\frac{r}{R} + 1\bigg)##

And now question 3 is a big problem to me... I tried with Poisson's equation, and after a monster derivative I arrived to:

##\Delta \phi = \nabla^2 \phi = - \nabla \vec{E} = \frac{\rho (\vec{r})}{\epsilon_0}##
##= kq e^{-r/R} \bigg(\frac{xr}{R^2} - \frac{x^2 + 2x}{R r^4} - \frac{3x^2}{r^5} + \frac{1}{r^3}\bigg)## (for the ##x##-component)

Now that was quite a derivative, and I don't have so much time during the exam... Could there be another way? Another problem I have is that when I add the components together and rearrange for ##\rho## I get:

##\rho (x,y,z) = k \epsilon_0 q e^{-r/R} \Bigg(\frac{r(x+y+z)}{R^2} - \frac{(x^2+y^2+z^2) + 2(x+y+z)}{R r^4} - \frac{3(x^2+y^2+z^2)}{r^5} + \frac{3}{r^3}\Bigg)##
##= k \epsilon_0 q e^{-r/R} \Bigg(\frac{r(x+y+z)}{R^2} - \frac{r^2 + 2(x+y+z)}{R r^4} - \frac{3r^2}{r^5} + \frac{3}{r^3}\Bigg)##
##= k \epsilon_0 q e^{-r/R} \Bigg(\frac{r(x+y+z)}{R^2} - \frac{1}{R r^2} - \frac{2(x+y+z)}{R r^4}\Bigg)##

I don't manage to get rid of the ##x,y,z## in order to write the charge density for ##\vec{r}##... Any idea?

Any suggestion for how to solve such problems would be greatly appreciated. Thank you a lot in advance for your answers.Julien.
 
Physics news on Phys.org
You will save a lot of time if you work in spherical coordinates rather than Cartesian. See http://isites.harvard.edu/fs/docs/icb.topic970148.files/Spherical_coord.pdf

Your result for (1) looks correct. Try getting that result using the formula for gradient in spherical coordinates.

Your result for (2) also looks correct.

For (3) use the formula for divergence in spherical coordinates. However, something interesting is going on at r = 0. You'll need to treat that case separately. (Edit: but I just noticed that you are not asked for ρ at r = 0.)
 
  • Like
Likes   Reactions: JulienB
For (3) you could also use the result you derived in (2) by realizing that ρ(r) = [Q(r + dr) - Q(r)] divided by the volume of a shell of thickness dr, thus avoiding the dreaded Poisson equation ... :smile: ... I presume that Q(r + dr) - Q(r) is suggestive somehow!
 
  • Like
Likes   Reactions: JulienB
Hi @rude man and @TSny and thanks for your answers. Sorry I took so long to answer.

So something strange has happened. I've asked Mathematica to solve the Poisson equation with cartesian coordinates, and this came out:

##\rho (r) = k \cdot q \cdot \epsilon_0 \frac{e^{-r/R}}{R^2 r}##

which with ##r = R## gives

##\rho(R) = k \cdot q \cdot \epsilon_0 \frac{1}{R^3}##

When doing the same with spherical coordinates, I got:

##\rho(R) = 3 \cdot k \cdot \epsilon_0 \cdot q \frac{1}{R^3}##

which is the same as if I took the formula suggested by @rude man :

##\rho = Q/V = 3 \cdot k \cdot \epsilon_0 \cdot q \frac{1}{R^3}##

So two questions come directly to my mind after such results: somehow the result is different when I use cartesian coordinates or spherical coordinates (by a factor of 3). I am sure it is a calculation mistake (probably related to the components), but the student I am working with and myself have been searching for a couple of hours for the mistake and couldn't find it. Moreover, the result I wrote above comes from Mathematica! Any idea about what could have gone wrong?

The second one is that in such a problem, we are only given a potential. I would say that the general formulation of the equation given by @rude man is ##\rho = dQ/dV## which transforms to ##\rho = Q/V## only if the charge is homogeneously distributed. Obviously the formula works in this case, and we were wondering how can that be justified? This is an old exam problem, and we have around 20 mins to solve each problem. I can hardly see myself managing to differentiate the whole thing with cartesian and spherical coordinates, then check if this works with the other equation. And if I don't, maybe the result is wrong or incomplete without a justification. Any tip about how to tackle such problems real fast? :)Thanks a lot for your answers, I appreciate it. This has gone a step further already.Julien.
 
JulienB said:
Moreover, the result I wrote above comes from Mathematica! Any idea about what could have gone wrong?
Mathematica's result for spherical coordinates looks correct.

The second one is that in such a problem, we are only given a potential. I would say that the general formulation of the equation given by @rude man is ##\rho = dQ/dV## which transforms to ##\rho = Q/V## only if the charge is homogeneously distributed. Obviously the formula works in this case
I'm not sure what you mean when you say the formula works in this case.
In your problem ##\rho## is not uniform, it varies with r. So, ##\rho = Q/V## will only give an average value of ##\rho## in the volume ##V##.

This is an old exam problem, and we have around 20 mins to solve each problem. I can hardly see myself managing to differentiate the whole thing with cartesian and spherical coordinates, then check if this works with the other equation. And if I don't, maybe the result is wrong or incomplete without a justification. Any tip about how to tackle such problems real fast? :)

You just need to use the spherical coordinate expressions for the gradient and the divergence. See link in post #2. Since the potential ##\phi## depends only on the spherical coordinate ##r##, these expressions simplify. You can get the answers without very much work.
 
  • Like
Likes   Reactions: JulienB
Hi again @TSny and thank you for your answer.

TSny said:
I'm not sure what you mean when you say the formula works in this case.
In your problem ##\rho## is not uniform, it varies with r. So, ##\rho = Q/V## will only give an average value of ##\rho## in the volume ##V##.

Sorry, I think what I wrote was a bit confused. I meant: could I have used ##\rho(\vec{r}) = q(\vec{r})/V(\vec{r})## instead of the Poisson's equation? And I guess the answer is no, since the charge density is not uniform. So the Poisson's equation is the only way to go in the present case (I will have a look at what rude man suggested).Thanks both of you for your answers, this has been very helpful.Julien.
 
JulienB said:
And I guess the answer is no, since the charge density is not uniform.
That's right.

So the Poisson's equation is the only way to go in the present case (I will have a look at what rude man suggested).
Instead of setting up the Poisson equation, consider getting ##\rho## from ##\vec{E}##.
 
Julien, I believe you computed E(r) wrong. I got
E(r) =(2kq/rR)exp(-r/R) r
with r the unit vector.
(This is another example why checking dimensions is so important. Your expression for E is dimensionally incorrect.)
From there, compute Q(r) as you did using Gauss' law.
Finally, avoiding Poisson if you want to, use my previous hint.
If you post your results I would be happy to compare with mine.

Like tsny I strongly advise working with spherical rather than cartesian coordinates. Descartes was an s.o.b. anyway - he cut his live dog's stomach open to see if the dog's soul would emanate from it!
 
Last edited:
The second one is that in such a problem, we are only given a potential. I would say that the general formulation of the equation given by @rude man is ##\rho = dQ/dV## which transforms to ##\rho = Q/V## only if the charge is homogeneously distributed. Obviously the formula works in this case, and we were wondering how can that be justified? Julien.
Try to follow my reasoning, which results in
ρ(r) = dQ(r) divided by the differential shell volume, so
ρ(r) = dQ(r)/4πr2dr = (1/4πr2) dQ/dr.
Since Q = Q(r) you can't just go ρ = Q/V.
See my post #8 also! You started with the wrong E.

BTW kε0 = 1/4π.
 
Last edited:
  • #10
rude man said:
Julien, I believe you computed E(r) wrong. I got
E(r) =(2kq/rR)exp(-r/R) r
with r the unit vector.
(This is another example why checking dimensions is so important. Your expression for E is dimensionally incorrect.)
I get Julien's result for ##\vec{E}##. Namely, ##\vec{E} (\vec{r}) = kqe^{-r/R} \bigg(\frac{1}{R r^2} + \frac{1}{r^3}\bigg) \vec{r}##
Note that ##\vec{r}## at the end of his expression is the position vector with magnitude ##r##, rather than a unit vector.

Your method for getting ##\rho(r)## from ##Q(r)## is nice.
 
  • #11
TSny said:
I get Julien's result for ##\vec{E}##. Namely, ##\vec{E} (\vec{r}) = kqe^{-r/R} \bigg(\frac{1}{R r^2} + \frac{1}{r^3}\bigg) \vec{r}##
Note that ##\vec{r}## at the end of his expression is the position vector with magnitude ##r##, rather than a unit vector.
Yes, you're both right. I messed up doing dΦ/dr. Sorry Julien. (I won't apologize to tsny since he's used to my making mistakes by now :smile:). Another senior moment. And his E is dimensionally correct since r is not the unit vector in his expression. Most embarrassing.
 
Last edited:

Similar threads

Replies
11
Views
1K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 18 ·
Replies
18
Views
1K
Replies
2
Views
1K
Replies
1
Views
3K
Replies
64
Views
5K
  • · Replies 11 ·
Replies
11
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K