The general expression for Poisson's equation in electrostatics is
where φ {\displaystyle \varphi } is the electric potential and ρ f {\displaystyle \rho _{f}} is the charge distribution over some region V {\displaystyle V} with boundary surface S {\displaystyle S} .
The uniqueness of the solution can be proven for a large class of boundary conditions as follows.
Suppose that we claim to have two solutions of Poisson's equation. Let us call these two solutions φ 1 {\displaystyle \varphi _{1}} and φ 2 {\displaystyle \varphi _{2}} . Then
It follows that φ = φ 2 − φ 1 {\displaystyle \varphi =\varphi _{2}-\varphi _{1}} is a solution of Laplace's equation, which is a special case of Poisson's equation that equals to 0 {\displaystyle 0} . Subtracting the two solutions above gives
By applying the vector differential identity we know that
However, from (1) we also know that throughout the region ∇ 2 φ = 0. {\displaystyle \nabla ^{2}\varphi =0.} Consequently, the second term goes to zero and we find that
By taking the volume integral over the region V {\displaystyle V} , we find that
By applying the divergence theorem, we rewrite the expression above as
We now sequentially consider three distinct boundary conditions: a Dirichlet boundary condition, a Neumann boundary condition, and a mixed boundary condition.
First, we consider the case where Dirichlet boundary conditions are specified as φ = 0 {\displaystyle \varphi =0} on the boundary of the region. If the Dirichlet boundary condition is satisfied on S {\displaystyle S} by both solutions (i.e., if φ = 0 {\displaystyle \varphi =0} on the boundary), then the left-hand side of (2) is zero. Consequently, we find that
Since this is the volume integral of a positive quantity (due to the squared term), we must have ∇ φ = 0 {\displaystyle \nabla \varphi =0} at all points. Further, because the gradient of φ {\displaystyle \varphi } is everywhere zero and φ {\displaystyle \varphi } is zero on the boundary, φ {\displaystyle \varphi } must be zero throughout the whole region. Finally, since φ = 0 {\displaystyle \varphi =0} throughout the whole region, and since φ = φ 2 − φ 1 {\displaystyle \varphi =\varphi _{2}-\varphi _{1}} throughout the whole region, therefore φ 1 = φ 2 {\displaystyle \varphi _{1}=\varphi _{2}} throughout the whole region. This completes the proof that there is the unique solution of Poisson's equation with a Dirichlet boundary condition.
Second, we consider the case where Neumann boundary conditions are specified as ∇ φ = 0 {\displaystyle \nabla \varphi =0} on the boundary of the region. If the Neumann boundary condition is satisfied on S {\displaystyle S} by both solutions, then the left-hand side of (2) is zero again. Consequently, as before, we find that
As before, since this is the volume integral of a positive quantity, we must have ∇ φ = 0 {\displaystyle \nabla \varphi =0} at all points. Further, because the gradient of φ {\displaystyle \varphi } is everywhere zero within the volume V {\displaystyle V} , and because the gradient of φ {\displaystyle \varphi } is everywhere zero on the boundary S {\displaystyle S} , therefore φ {\displaystyle \varphi } must be constant---but not necessarily zero---throughout the whole region. Finally, since φ = k {\displaystyle \varphi =k} throughout the whole region, and since φ = φ 2 − φ 1 {\displaystyle \varphi =\varphi _{2}-\varphi _{1}} throughout the whole region, therefore φ 1 = φ 2 − k {\displaystyle \varphi _{1}=\varphi _{2}-k} throughout the whole region. This completes the proof that there is the unique solution up to an additive constant of Poisson's equation with a Neumann boundary condition.
Mixed boundary conditions could be given as long as either the gradient or the potential is specified at each point of the boundary. Boundary conditions at infinity also hold. This results from the fact that the surface integral in (2) still vanishes at large distances because the integrand decays faster than the surface area grows.