Solve Poisson's Equation for Electrostatic Potential

  • Context: Undergrad 
  • Thread starter Thread starter aaaa202
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around solving Poisson's equation for electrostatic potential in various charge configurations, particularly focusing on a constant charge density and its implications in one-dimensional scenarios. Participants explore boundary conditions, potential calculations, and the behavior of potentials near singular charge distributions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant proposes calculating the electrostatic potential for a constant charge density ρ0 and questions the appropriate boundary conditions for the potential V.
  • Another suggests setting V = 0 at infinity, while also noting that for certain configurations, this may not be feasible and proposes V = 0 at x = 0 instead.
  • A participant raises concerns about the divergence of the integral when calculating potential inside the charge distribution and contrasts this with results obtained from Poisson's equation.
  • There are requests for participants to show their work and clarify the equations being solved, indicating some ambiguity in the problem setup.
  • One participant describes using Poisson's equation in one dimension and expresses uncertainty about boundary conditions and the relationship between integration and differential approaches.
  • Another participant provides a specific integral solution for the potential and discusses its singular nature at the location of the line charge.
  • There is a discussion about the correct form of Poisson's equation and whether participants are considering the problem in three dimensions or one dimension.
  • Concerns are raised about the existence of solutions for the potential and the implications of singular charge distributions on the calculations.
  • A participant introduces a new problem involving a rectangular box with a homogeneous charge distribution and questions the solvability of the integral for potential in this context.
  • There is a mention of using variational calculus to determine stable charge distributions within the box.
  • Some participants emphasize the idealized nature of point, line, or surface charges and the need for a non-singular charge distribution for meaningful calculations.

Areas of Agreement / Disagreement

Participants express differing views on boundary conditions, the validity of various approaches to calculating potentials, and the implications of singular charge distributions. The discussion remains unresolved with multiple competing perspectives on the correct methods and interpretations.

Contextual Notes

The discussion highlights limitations in the assumptions made regarding charge distributions, the dependence on definitions of singularities, and the challenges in reconciling numerical and analytical approaches to potential calculations.

aaaa202
Messages
1,144
Reaction score
2
Suppose I have a constant charge density ρ0 for some region 0≤x≤a and zero charge density elsewhere. I want to calculate the electrostatic potential for this charge configuration. The general solution is of course a second order polynomial. But which boundary conditions should I impose on the potential V?
 
Physics news on Phys.org
Google potential of line charge. It is customary to set V = 0 at infinity when possible.

Or perhaps you mean a http://web.mit.edu/8.02t/www/materials/InClass/_notes/IC_Sol_W04D1_3.pdf ? In that case V = 0 at infinity isn't possible ... and we choose V = 0 at x = 0
 
Okay makes sense. So say I am confined to one dimension and want to find the potential from a line charge extending from -a<x<a anywhere on the x-axis. If I try to calculate the potential inside the charge distribution i.e. V(x) for -a<x<a I get that the 1/r character makes the integral diverge..
On the other hand if I use Poissons equation I get something sensible for all x.
Is this not weird or am I doing something wrong?
 
Show your work! How did you calculate the potential/electric field? Of course, you expect non-analyticities at the place of the line charge, because that's a pretty singular (idealized) charge distribution.
 
aaaa202 said:
say I am confined to one dimension
That's ambiguous (I think...). So what's the equation you are trying to solve ?
 
Well if I am on the x-axis and want to calculate the electrostatic potential I can do it in two ways. I can integrate over the line charge with density λ to find:
V(x) = λ/4πε0-aadx' 1/lx'-xl
But if x is inside the interval -a<x<a then the above integral has a divergence at x=x'.
Now to calculate the potential V I could also use Poissons equation in 1d:
d2V/dx2 = {λ -a < x < a, 0 elsewhere}
The above solution must be parabolic but I am not sure about the boundary condition. Either way I don't see how it could produce the same as the integration approach.
Actually in my problem I have a charge density and I find the electrostatic potential numerically by simply inverting the differential operator d2V/dx2 (which is written as an NxN matrix). In that case what boundary conditions does this procedure choose?
 
You mean your ##\vec{x}=x \vec{e}_x##. Then your integral is very simple and indeed only defined for ##|x|>a##. Assume $x>a$. Then you have
$$V(x)=\frac{\lambda}{4\pi} \int_{-a}^{a} \mathrm{d} x' \frac{1}{x-x'}=\frac{\lambda}{2 \pi} \mathrm{artanh} \left(\frac{a}{x} \right).$$
[corrected from the original version]

As expected, it's defined everywhere except for ##x \in [-a,a]##. That it's singular there is expected, because the charge distribution is also singular,
$$\rho(\vec{x})=\lambda \delta(y) \delta(z) \Theta(-a<x<a).$$
 
Last edited:
$$V(x)=\frac{\lambda}{4\pi} \int_{-a}^{a} \mathrm{d} x' \frac{1}{x-x'}=\frac{\lambda}{2 \pi} \mathrm{artanh} \left(\frac{x}{a} \right).$$ I'd expect something like ##\log {x+ a\over x - a}## ?
 
Hmm okay but what about solving the Poisson equation? Would that yield the same answer?
 
  • #10
That's not the Poisson equation !
 
  • #11
Which one?
Isn't this Poissons equation for the system:
d2V/dx2 = {-λ/ε0 -a < x < a, 0 elsewhere}
 
  • #12
No. You still live in a 3D world, even when you are only interested in the potential on a 1D subspace ! So ##\nabla^2V = 0## is what you have to solve.

(outside the line charge. Inside ##(0,0, -a<x<a)## it's ##\nabla^2V = ## ##\rho\ \ ## with vanHees #7 ##\rho## )
 
Last edited:
  • #13
BvU said:
$$V(x)=\frac{\lambda}{4\pi} \int_{-a}^{a} \mathrm{d} x' \frac{1}{x-x'}=\frac{\lambda}{2 \pi} \mathrm{artanh} \left(\frac{x}{a} \right).$$ I'd expect something like ##\log {x+ a\over x - a}## ?
Of course, you can rewrite the artanh function in terms of a logarithm
$$V(x)=\frac{\lambda}{4 \pi} \ln \left(\frac{x+a}{x-a} \right ).$$
Concerning your further questions, it's clear that you are still in 3D space and you solve the Poisson equation, which reads
$$\Delta V=-\rho,$$
where ##\rho## is the charge density. The solution is
$$V(\vec{x})=\frac{1}{4 \pi} \int_{\mathbb{R}^3} \mathrm{d}^3 \vec{x}' \frac{\rho(\vec{x}')}{|\vec{x}-\vec{x}'|}.$$
 
Last edited:
  • #14
With |x| > a this doesn't exist...
I'd settle for arctanh(a/x), though ...

And I made a mistake with the sign of ##\rho##. TGIF.
 
  • #15
BvU said:
With |x| > a this doesn't exist...
I'd settle for arctanh(a/x), though ...

And I made a mistake with the sign of ##\rho##. TGIF.
Argh, one should copy results right from Mathematica (it's corrected now also in my original posting), it's
$$V(x)=\frac{\lambda}{2 \pi} \mathrm{artanh} \left (\frac{a}{x} \right)=\frac{\lambda}{4 \pi} \ln \frac{x+a}{x-a}.$$
 
  • #16
Aren't we having fun ? My comments look a bit silly now, but never mind.

But how is aaaa doing ? All clear as to why you can't get a V on the line charge itself (##\rho## is infinite there) ?
 
  • #17
Thanks for your answers. I think it makes more sense now. What troubles me is that I have a 1d constant charge distribution in a program, where I am working with everything numerically. And if I invert the discrete operator ∇2 to get the potential as -[∇2]-1ρ/ε0, which is well defined even inside the charge distribution. Why does it not diverge like in the analytical calculation?
So moving on:
Suppose I now have some rectangular box containing a homogenous charge distribution with density ρ0. Then the solution to Poissons equation is that I should calculate the integral:

V(r) = ρ0/4πε0 ∫dr 1/lr-r'l
Is this integral solvable or divergent?

Either way my end goal is to look at what the stable charge distribution is for a rectangular box. I.e. which distribution of charge inside the box will minimize the energy. Is it possible to solve this problem using variational calculus or something like that?
 
  • #18
aaaa202 said:
Thanks for your answers. I think it makes more sense now. What troubles me is that I have a 1d constant charge distribution in a program, where I am working with everything numerically. And if I invert the discrete operator ∇2 to get the potential as -[∇2]-1ρ/ε0, which is well defined even inside the charge distribution. Why does it not diverge like in the analytical calculation?
So moving on:
Suppose I now have some rectangular box containing a homogenous charge distribution with density ρ0. Then the solution to Poissons equation is that I should calculate the integral:

V(r) = ρ0/4πε0 ∫dr 1/lr-r'l
Is this integral solvable or divergent?

Either way my end goal is to look at what the stable charge distribution is for a rectangular box. I.e. which distribution of charge inside the box will minimize the energy. Is it possible to solve this problem using variational calculus or something like that?
You still haven't made clear how you want to have a finite ##\rho## ? You really need that to get an answer within the 'line charge'. Rectangular box, conducting sphere, :
(where have I seen that before :smile: ?) equal sign charges want to sit as far away form each other as they can ...
 
  • #19
Again: Point, line or surface charges are not finite. It's an expression containing Dirac-##\delta## distributions that are singular along the points, lines, and surfaces they are located. These are idealizations of the true charge distribution, which as a coarse-grained macroscopic quantity in reality is always non-singular.
 

Similar threads

  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 3 ·
Replies
3
Views
870
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 12 ·
Replies
12
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K