Finding E field and charge density due to a potential given

Click For Summary

Homework Help Overview

The problem involves finding the electric charge density and electric field due to a given electrostatic potential, expressed as ## \phi(r)=\phi_0 e^{-\alpha r}##, where ##\phi_0## and ##\alpha## are constants. The discussion centers around applying relevant equations, specifically the Laplacian and gradient in electrostatics.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • The original poster attempts to derive the charge density and electric field using the equations for Laplacian and gradient. Some participants question the application of these equations, particularly regarding the treatment of variables and potential sign errors in calculations.

Discussion Status

Participants are actively engaging with the original poster's attempts, providing feedback on potential errors and suggesting the use of spherical coordinates for simplification. There is acknowledgment of corrections needed in the calculations, but no consensus has been reached on the final expressions.

Contextual Notes

Some participants note the complexity of the problem and the potential for minor errors in the calculations, emphasizing the importance of careful application of mathematical principles in electrostatics.

FaraDazed
Messages
347
Reaction score
2

Homework Statement


There is an electrostatic potential, given by ## \phi(r)=\phi_0 e^{-\alpha r}## where ##\phi_0## and ##\alpha## are some constants.

A: Find the electric charge denisty ##\rho(r)## which produces this aforementioned potential.

A: What is the electric field ##\vec{E}(\vec{r})## due to this charge denisty?

Homework Equations


##\nabla^2 \phi = \frac{- \rho(\vec{r})}{\epsilon_0}##
##\vec{E}(\vec{r}) = - \nabla \phi(\vec{r})##

The Attempt at a Solution


Very new to this material so still am a bit confused and when I can use certain equations and relations etc.
I have used the two equations in the section above, but am not sure if I can. For example the first equation the charge density is a function of the vector r whilst in my question it is just r; although I assume/hope that that just means that is is a constant charge density and the relation still holds in that case.

Also not sure if this is the most suitable section of the forum, so move if needed.

Anyway for A I have done
<br /> \nabla^2 \phi = \frac{- \rho(r)}{\epsilon_0} \\<br /> \nabla \cdot \nabla \phi = \frac{-\rho(r)}{\epsilon_0} \\<br />

Then ## \nabla \phi## is ..
<br /> \nabla \phi(r) = (\phi(r))&#039; \frac{\vec{r}}{r} \\<br /> \nabla \phi(r) = -\alpha \phi_0 e^{-\alpha r}\frac{\vec{r}}{r} \\<br />

Then for ##\nabla^2 \phi =##...

<br /> \nabla \cdot (-\alpha \phi_0 e^{-\alpha r}\frac{\vec{r}}{r})<br />

Let ##a=-\alpha \phi_0 e^{-\alpha r}## and ##\vec{B}= \frac{\vec{r}}{r}##

Then ## \nabla \cdot a \vec{B} = \vec{B} \cdot \nabla a + a \nabla \cdot \vec{B} ##

Then just ##\vec{B} \cdot \nabla a##

<br /> \vec{B} \cdot \nabla a = \frac{\vec{r}}{r} \cdot - \alpha^2 \phi_0 e^{-\alpha r} \frac{\vec{r}}{r} = -\alpha^2 \phi_0 e^{-\alpha r} \frac{r^2}{r^2} = -\alpha^2 e^{-\alpha r}<br />

Then for ##a \nabla \cdot \vec{B}##

<br /> \nabla \cdot \vec{B} = \nabla \cdot r^{-1} \vec{r} = \vec{r} \cdot \nabla r^{-1} + r^{-1} \nabla \cdot \vec{r} \\<br /> \nabla \cdot \vec{B} = \vec{r} \cdot - r^{-2} \frac{\vec{r}}{r} + 3 r^{-1} = - \frac{r^2}{r^3} + r^{-1} = \frac{2}{r}<br />

So that ##a \nabla \cdot \vec{B} = \frac{- 2 \alpha \phi_0 e^{-\alpha r}}{r} ##So then ##\nabla^2 \phi = \vec{B} \cdot \nabla a + a \nabla \cdot \vec{B} ##

<br /> \nabla^2 \phi = - \alpha^2 \phi_0 e^{- \alpha r} - \frac{- 2 \alpha \phi_0 e^{-\alpha r}}{r} \\<br /> \nabla^2 \phi = \phi_0 e^{-\alpha r}(- \alpha^2 - \frac{2 \alpha}{r}) = \frac{- \rho(r) }{\epsilon_0} \\<br /> \rho(r) =- \epsilon_0 \phi_0 e^{-\alpha r}(\alpha^2 + \frac{2 \alpha}{r})<br />And then for B I don't know if this is correct as it seemed to easy but...
<br /> \vec{E} ( \vec{r} ) = - \nabla \phi ( \vec{r} ) \\<br /> \vec{E} ( \vec{r} ) = \alpha^2 e^{-\alpha r} \frac{\vec{r}}{r}<br />
Any help or advice is very much appreciated! Thank you :)
 
Physics news on Phys.org
It would be much easier if you used the known expressions for the divergence and/or Laplacian in spherical coordinates. See https://en.wikipedia.org/wiki/Del_in_cylindrical_and_spherical_coordinates

However, your method will work. But it looks like you might have made a couple of minor errors.

FaraDazed said:
Then just ##\vec{B} \cdot \nabla a##
<br /> \vec{B} \cdot \nabla a = \frac{\vec{r}}{r} \cdot - \alpha^2 \phi_0 e^{-\alpha r} \frac{\vec{r}}{r}
Did you make a sign error on the right?

<br /> \nabla^2 \phi = \phi_0 e^{-\alpha r}(- \alpha^2 - \frac{2 \alpha}{r}) = \frac{- \rho(r) }{\epsilon_0} \\<br /> \rho(r) =- \epsilon_0 \phi_0 e^{-\alpha r}(\alpha^2 + \frac{2 \alpha}{r})<br />
Another sign error going from the first to second equation shown above?
And then for B I don't know if this is correct as it seemed to easy but...
<br /> \vec{E} ( \vec{r} ) = - \nabla \phi ( \vec{r} ) \\<br /> \vec{E} ( \vec{r} ) = \alpha^2 e^{-\alpha r} \frac{\vec{r}}{r}<br />
Check whether the factor of ##\alpha^2## is correct in the last equation.
 
TSny said:
It would be much easier if you used the known expressions for the divergence and/or Laplacian in spherical coordinates. See https://en.wikipedia.org/wiki/Del_in_cylindrical_and_spherical_coordinates

However, your method will work. But it looks like you might have made a couple of minor errors.Did you make a sign error on the right?

Another sign error going from the first to second equation shown above?Check whether the factor of ##\alpha^2## is correct in the last equation.
Ah, yes it looks like I did, thanks! Also kept forgetting to type the phi zero factor before all the exp's.

Yes, so that and with the above error corrected as well the last part shold be..

<br /> \nabla^2 \phi = \alpha^2 \phi_0 e^{- \alpha r} - \frac{- 2 \alpha \phi_0 e^{-\alpha r}}{r} \\<br /> \nabla^2 \phi = \phi_0 e^{-\alpha r}( \alpha^2 - \frac{2 \alpha}{r}) = \frac{- \rho(r) }{\epsilon_0} \\<br /> \rho(r) =- \epsilon_0 \phi_0 e^{\alpha r}(\alpha^2 - \frac{2 \alpha}{r})<br />
Oops yeah should only be alpha, and again I forgot the phi zero,

So that should be
<br /> \vec{E} ( \vec{r} ) = - \nabla \phi ( \vec{r} ) \\<br /> \vec{E} ( \vec{r} ) = \alpha \phi_0 e^{-\alpha r} \frac{\vec{r}}{r}<br />
 
I believe that's the correct expression for the electric field.
 
  • Like
Likes   Reactions: FaraDazed
TSny said:
I believe that's the correct expression for the electric field.
Thank you. I just edited my reply, when I first posted it half of my reply got caught in the quote tags.
 
FaraDazed said:
\rho(r) =- \epsilon_0 \phi_0 e^{\alpha r}(\alpha^2 - \frac{2 \alpha}{r})<br />
Looks good except for a sign error in the exponent of ##e##.
 
  • Like
Likes   Reactions: FaraDazed
TSny said:
Looks good except for a sign error in the exponent of ##e##.
Ah yeah, I think that one was just a typo, the others were proper sign errors haha. Thanks for taking a look! :)
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
4K
Replies
1
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
4K
Replies
8
Views
2K
Replies
12
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 13 ·
Replies
13
Views
6K
  • · Replies 5 ·
Replies
5
Views
1K