Next Article in Journal
Estimating the Number of Junta Variables for Optimizing Boolean Functions in Quantum Memories
Previous Article in Journal
Underwater Image Enhancement with a Hybrid U-Net-Transformer and Recurrent Multi-Scale Modulation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Green’s Functions for Neumann Boundary Conditions

Department of Physics, Temple University, Philadelphia, PA 19122, USA
Mathematics 2025, 13(21), 3399; https://doi.org/10.3390/math13213399 (registering DOI)
Submission received: 3 September 2025 / Revised: 10 October 2025 / Accepted: 15 October 2025 / Published: 25 October 2025

Abstract

Green’s functions for Neumann boundary conditions have been considered in Math, Physics, and Electromagnetism textbooks, but often with mistakes of omission and commission. Special constraints and other properties required for Neumann boundary conditions have generally not been noticed or treated correctly. In this paper, we derive appropriate Neumann Green’s functions with these properties properly incorporated.

1. Introduction

The Green’s function method for solving Sturm–Liouville problems of the following form:
L r f ( r ) = · [ p ( r ) f ( r ) ] + q ( r ) f ( r ) = ρ ( r )
is described in many textbooks, for instance, references [1,2,3,4,5,6,7,8]. In this paper, we treat and contrast Green’s functions for Dirichlet and Neumann boundary conditions. Textbooks generally discuss the Dirichlet case in detail, but do much less with the Green’s function for the Neumann boundary condition, and what is said about the Neumann case often has mistakes of omission and commission.
The motivation for using a Green’s function, G ( r , r ) , is that it satisfies homogeneous boundary conditions that makes it easier to solve for than the original problem, which has inhomogeneous boundary conditions. The application of Green’s second theorem (for simplicity, we have taken q ( r ) = 0 . Our general conclusions also apply to the case with q ( r ) , but some of the equations would be more complicated)
[ f ( r ) L r G ( r , r ) G ( r , r ) L r f ( r ) ] d 3 r = dS · [ f ( r ) p ( r ) G ( r , r ) G ( r , r ) p ( r ) ( r ) ]
provides the solution to the original problem if G ( r , r ) satisfies
L r G ( r , r ) = δ ( r r ) .
In this case, implementing Equations (1) and (3) leads to
f ( r ) = G ( r , r ) ρ ( r ) ] d 3 r + dS · [ f ( r ) p ( r ) G ( r , r ) G ( r , r ) p ( r ) f ( r ) ] .
The two simplest boundary conditions for which the Green’s function method is applicable are the Dirichlet boundary condition for which the solution f ( r ) is given on all bounding surfaces, and the Neumann boundary condition for which its normal derivative n ^ · f ( r ) is given.
For the Dirichlet boundary condition, the Green’s function satisfies the homogeneous boundary condition
G D ( r , r ) = 0
for r on all bounding surfaces. This reduces Equation (4) to
f D ( r ) = G D ( r , r ) p ( r ) ρ ( r ) ] ] d 3 r + dS · [ f ( r ) p ( r ) G D ( r , r ) ] ,
which is the solution to the Dirichlet problem once G D ( r , r ) is known.
The Neumann Green’s function satisfies the boundary condition,
n ^ · = 0 ,
where n ^ is a unit vector normal to the surface of integration. This reduces Equation (4) to
f N ( r ) = G D ( r , r ) p ( r ) ρ ( r ) ] ] d 3 r dS · [ G N ( r , r ) p ( r ) ( r ) ] ,
which is the solution to the Neumann problem once G N ( r , r ) is known.
The Neumann Green’s function differs from the Dirichlet in that the Neumann boundary condition for the solution f ( r ) must satisfy the constraint
dS · p ( r ) f ( r ) = ρ d 3 r ,
which follows from applying the divergence theorem to Equation (1). This constraint applies to Neumann boundary conditions where n ^ · f ( r ) is specified. It does not apply to a Dirichlet boundary condition where f ( r ) is specified on the surface, and the integral in Equation (9) automatically satisfies the constraint. Most texts do not mention this important constraint on the Neumann boundary condition.
There are cases where the boundary condition is Neumann on some surfaces and Dirichlet on others. In those cases, the normal derivative of f on the Dirichlet surfaces will adjust to satisfy the constraint surface integral. But for pure Neumann boundary conditions, the constraint must be satisfied or no solution exists.
We review the Dirichlet Green’s function in the next section, the one-dimensional Neumann Green’s function in Section 3, the three dimensional Neumann Green’s function in Section 4, and a comparison of the three dimensional Dirichlet and Neumann Green’s functions in Section 5. We summarize our conclusions in Section 6.

2. One-Dimensional Dirichlet Green’s Function

We first review how a Dirac delta function arises when a function f ( x ) , defined in the finite range 0 x L , is expanded in orthonormal Dirichlet eigenfunctions u n ( x ) of a Sturm–Liouville operator L x . The eigenfunctions satisfy the differential equation
L x u n ( x ) = d d x p ( x ) d u n d x = λ n u n ( x ) .
with homogeneous Dirichlet boundary conditions
u n ( 0 ) = 0 , u n ( L ) = 0 .
A function f ( x ) can be expanded in the Dirichlet eigenfunctions, u n ( x ) , as
f ( x ) = n = 1 b n u n ( x ) ,
with the expansion coefficients b n given by
b n = 0 L u n * ( x ) f ( x ) d x .
If Equation (13) for the expansion coefficients is substituted into Equation (12) for f ( x ) , and the sum executed before the integral, we get
f ( x ) = 0 L d x n = 1 u n * ( x ) u n ( x ) f ( x ) .
From the definition of the Dirac delta function by its sifting property,
f ( x ) = 0 L d x δ ( x x ) f ( x )
for x and x in the range [ 0 , L ] , we see that the delta function can be represented by a sum over Dirichlet eigenfunctions as
δ ( x x ) = n = 1 u n * ( x ) u n ( x ) .
For example, for the simple case
L x u n = u n = λ n u n , u n = 2 L sin ( n π x / L ) , λ n = n π L 2 ,
the delta function is represented by
δ ( x x ) = 2 L n = 1 sin ( n π x / L ) sin ( n π x / L )
A Dirichlet Green’s function that satisfies the differential equation
L x G D ( x , x ) = δ ( x x ) ,
and satisfies the homogeneous Dirichlet boundary conditions in the variable x can be formed from the Dirichlet eigenfunctions as
G D ( x , x ) = n = 1 u n * ( x ) u n ( x ) λ n = 2 L π 2 n = 1 sin ( n π x / L ) sin ( n π x / L ) / n 2 .
Acting on this Green’s function with the Sturm–Liouville operator L x removes the denominator in the sum, leaving the delta function of Equation (19). This shows that this is the appropriate Dirichlet Green’s function.

3. One-Dimensional Neumann Green’s Function

The above straightforward derivation for homogeneous Dirichlet boundary conditions is given in most texts, but a corresponding derivation for homogeneous Neumann boundary conditions is generally absent. Neumann eigenfunctions, v n ( x ) , satisfy the same differential Equation (10) as the Dirichlet eigenfunctions, but have the boundary conditions
v n ( 0 ) = 0 , v n ( L ) = 0 .
The expansion of the function, f ( x ) , in Neumann eigenfunctions has a constant term corresponding to n = 0 , so the expansion is given by
f ( x ) = a 0 + n = 1 a n v n ( x ) ,
The Neumann expansion coefficients a n are given by the integrals
a n = 0 L v n * ( x ) f ( x ) d x , n 1 ,
and
a 0 = 1 L 0 L f ( x ) d x = < f > ,
where < f > represents the average value of the function f ( x ) over the interval [ 0 , L ] .
Now, putting Equations (23) and (24) into the expansion Equation (22) results in
f ( x ) = 0 L d x 1 L + n = 1 u n * ( x ) u n ( x ) f ( x ) ,
so the representation of the delta function in terms of Neumann eigenfunctions is
δ ( x x ) = 1 L + n = 1 v n * ( x ) v n ( x ) .
For the simple case of L x v n = v n = λ n with the eigenfunctions satisfying the homogeneous Neumann boundary conditions of Equation (21) the delta function is represented by
δ ( x x ) = 1 L + 2 L n = 1 cos ( n π x / L ) cos ( n π x / L ) .
A Neumann’s Green function can be formed using Neumann eigenfunctions of the operator L x as the sum
G N ( x , x ) = n = 1 v n * ( x ) v n ( x ) λ n = 2 L π 2 n = 1 cos ( n π x / L ) cos ( n π x / L ) / n 2 .
This Green’s function satisfies the homogeneous Neumann boundary conditions
x G N ( x , x ) | ( x = 0 ) = 0 , x G N ( x , x ) | ( x = L ) = 0 .
However, because of the constant term 1 / L in Equation (27), the operation on G N ( x , x ) by L x is
L x G N ( x , x ) = δ ( x x ) 1 / L ,
so the Neumann Green’s function satisfies a different differential equation than the Dirichlet Green’s function. This difference is not generally recognized in textbooks.
We now use the Green’s function G N ( x , x ) to find the solution of the differential equation
L x f ( x ) = d d x p ( x ) d f d x = ρ ( x ) ,
with the inhomogeneous Neumann boundary conditions
f ( 0 ) = f 0 , f ( L ) = f L .
The boundary values must satisfy the constraint
p ( L ) f L p ( 0 ) f 0 = 0 L ρ ( x ) d x ,
which follows by using Equations (1) and (31) to integrate Equation (31) once.
Green’s theorem in one dimension (or integration by parts) for this differential equation leads to
0 L [ f ( x ) L x G N ( x , x ) G N ( x , x ) L x f ( x ) ] d x = G N ( x , L ) p ( L ) f L + G N ( x , 0 ) p ( 0 ) f 0 .
We used the boundary conditions (29) to eliminate terms containing x G ( x , x ) at the endpoints. Then, using Equation (30), we get
f ( x ) = < f > + 0 L G N ( x , x ) ρ ( x ) d x G N ( x , L ) p ( L ) f L + G N ( x , 0 ) p ( 0 ) f 0 ,
which constitutes the solution to the Sturm–Liouville problem for Neumann boundary conditions. The constant < f > , the average value of f ( x ) , arises from the term 1 / L in Equation (30).
Although we have used an expansion in eigenfunctions to give an heuristic derivation of the Green’s function for Neumann boundary conditions, any function satisfying the defining Equation (30) with the boundary conditions of Equation (29) will be a suitable Green’s function G N ( x . x ) . For example, a Neumann Green’s function for the problem
f ( x ) = x , f ( 0 ) = 0 , f ( L ) = 0 L x d x = L 2 / 2 , [ using Equation ( 33 ) ]
is given by
0 x x : G N 1 ( x , x ) = x 2 2 L + x
x x L : G N 2 ( x , x ) = x 2 2 L + x .
The term x 2 / 2 L in G N 1 and G N 2 provides the 1 / L term in x 2 G N ( x , x ) , and also satisfies the homogeneous Neumann boundary conditions at x = 0 and L. The terms x and x term in G N 2 provide a unit step in G N at x = x so that the next derivative will give the delta function in x 2 G N ( x , x ) .
We note that the Green’s function in Equations (37) and (38) is not symmetric with respect to x and x . To show that a Neumann Green’s function need not be symmetric, we repeat the usual proof of symmetry here. Applying Green’s theorem to two Green’s functions, G ( x 1 , x ) and G ( x 2 , x ) , of a Sturm–Liouville operator L gives
0 L [ G ( x 1 , x ) L x G ( x 2 , x ) G ( x 2 , x ) L x G ( x 1 , x ) ] = G ( x 1 , x ) p ( x ) x G ( x 2 , x ) G ( x 2 , x ) p ( x ) x G ( x 1 , x ) x = 0 x = L .
The right-hand side of Equation (39) vanishes for either Dirichlet or Neumann homogeneous boundary conditions.
For a Dirichlet Green’s function, with L x G D ( x , x ) = δ ( x x ) , Equation (39) reduces to
G D ( x 1 , x 2 ) G D ( x 2 , x 1 ) = 0 ,
so it must be symmetric. However, for a Neumann Green’s function, L x G D ( x , x ) = 1 / L + δ ( x x ) , and Equation (39) reduces to
G N ( x 1 , x 2 ) G N ( x 2 , x 1 ) = 1 L 0 L [ G N ( x 1 , x ) G N ( x 2 , x ) ] d x ,
so a Neumann Green’s function is not required to be symmetric.
We do know, however, from the eigenfunction expansion in Equation (28) that any Neumann Green’s function can be made symmetric. For instance, adding the term x 2 / 2 L to the Green’s functions Equations (37) and (38) will make that Neumann Green’s function symmetric without changing any of its actions. There is no need to do this, however, since the non-symmetric Green’s function is simpler, and either form will solve the original differential equation.

4. Three-Dimensional Neumann Green’s Function

In this section, we extend the one-dimensional results of the previous section to three dimensions. In three dimensions, we seek the solution of the differential equation
L r f ( r ) = · [ p ( r ) f ( r ) ] = ρ ( r )
with the inhomogeneous Neumann boundary conditions on any bounding surface
n ^ · f ( r ) = f ( r S ) ,
where f ( r S ) is an almost arbitrary function specified on all surfaces. A solution to Equation (42) exists only if the boundary conditions satisfy the constraint
dS · p ( r ) f ( r ) = ρ ( r ) ] d 3 r .
This constraint follows by applying the divergence theorem to Equation (42).
The Neumann Green’s function for this problem satisfies the differential equation
L r G N ( r , r ) = δ ( r r ) 1 / V ,
with the homogeneous boundary condition
n ^ · G N ( r , r ) = 0
on all surfaces. This Green’s function automatically satisfies the constraint
dS · p ( r ) G N ( r , r ) = 0 ,
which follows by applying the divergence theorem to Equation (45).
The extra term 1 / V in Equation (45) is the 3D equivalent of the term 1 / L in Equation (30), and also arises due to the constant term in any expansion using Neumann eigenfunctions.
The solution to Equation (42) is given by
f ( r ) = < f > + G ( r , r ) ρ ( r ) ] ] d 3 r dS · G ( r , r ) p ( r ) f ( r ) ,
which follows from Green’s theorem, and Equations (45) and (46) for G N ( r , r ) . As in the 1D case, < f > is an arbitrary constant that equals the average value of f in the volume. It will be removed with the mixed boundary conditions we discuss below.

5. Three-Dimensional Green’s Function Examples

In this section, we compare a three dimensional Green’s function with Neumann boundary conditions with a corresponding Dirichlet Green’s function.
We first consider the Dirichlet case of a conducting cube of dimensions, ( L × L × L ) with a constant potential, V 0 , on the top face, with the other five sides grounded. For simplicity, we let p ( r ) = 0 . This case is treated in a number of textbooks (see, for instance, Section 3.12 of [2]).
The solution starts with the representation of the delta function in terms of three dimensional eigenfuctions of the operator, L = 2 ,
δ ( x , y , z ; x , y , z ) = 8 L 3 l m n sin l π x L sin m π y L sin n π z L sin l π x L sin m π y L sin n π z L .
Then, the equation (we are using Gaussian units, which just affects the coefficients of the sums below),
2 G D ( ( x , y , z x , y , z ) = 4 π δ ( x , y , z x , y , z ) ,
has the solution
G D ( x , y , z ; x , y , z ) = 8 π 2 L l m n sin l π x L sin m π y L sin n π z L sin l π x L sin m π y L sin n π z L ( l 2 + m 2 + n 2 ) ,
where ( π 2 L 2 ) ( l 2 + m 2 + n 2 ) is the eigenfunction of 2 .
The Dirichlet potential, ϕ ( r ) , inside the cube for no charge within the cube is
ϕ D ( r ) = dS · [ ϕ ( r ) G D ( r , r ) ] = 8 V 0 π L 2 0 L d x 0 L d y l m n ( 1 ) n n sin l π x L sin m π y L sin n π z L sin l π x L sin m π y L ( l 2 + m 2 + n 2 ) .
We now compare the Dirichlet case with a corresponding Neumann case for a uniform charge, Q 0 , on the top face, with the other five sides grounded.
G N ( x , y , z ; x , y , z ) = 32 π L l m n sin l π x L sin m π y L cos n π z L sin l π x L sin m π y L cos n π z L ( l 2 + m 2 + n 2 ) .
Two sines on the upper face have been changed to cosines to satisfy the Neumann boundary conditions.
Then, the Neumann potential inside the cube is
ϕ N ( r ) = dS · G N ( r , r ) [ ϕ ( r ) ] = 4 π d S G N ( x , y , z ; x , y , 0 ) σ ( x , y ) ) = 128 Q 0 L 3 0 L d x 0 L d y l m n ( 1 ) n sin l π x L sin m π y L cos n π z L sin l π x L sin m π y L ( l 2 + m 2 + n 2 ) .
The main difference between the two results is the factor n in the Dirichlet potential, and cos ( n π z ) in the Neumann potential, which make the interior potentials quite different.

6. Summary

To summarize, we have found six essential differences between the Neumann Green’s function treated here and the Dirichlet Green’s function which is generally treated in Math Physics or Electromagnetism texts for the solution of a partial differential equation of the form
L r f ( r ) = · [ p ( r ) f ( r ) = ρ ( r ) .
We list the different Neumann properties below:
(1)
The Neumann boundary condition for the solution f ( r ) is
n ^ · f ( r ) = f ( r S ) ,
(2)
with the constraint
dS · p ( r ) f ( r ) = ρ ( r ) ] d 3 r
required for any solution to exist.
(3)
The Neumann Green’s function satisfies the differential equation
L r G N ( r , r ) = δ ( r r ) 1 / V ,
(4)
with the homogeneous surface boundary condition
n ^ · G N ( r , r ) = 0 .
(5)
The solution to Equation (55) is given by
f ( r ) = < f > + G ( r , r ) ρ ( r ) d 3 r dS · G ( r , r ) p ( x ) f ( r ) ,
where < f > is an arbitrary constant that equals the average value of f ( r ) in the volume.
(6)
The Neumann Green’s function is not necessarily symmetric, but can be made symmetric by adding a function of r to G N ( r , r ) .
Of these six differences, only numbers (1) and (4) are generally mentioned in Math, Physics, or Electromagnetism textbooks. Some books give the homogeneous boundary condition in Equation (59), but do not mention that it is inconsistent with omitting the 1 / V term in Equation (58). Other books [2] recognize this by making the Green’s function boundary condition inhomogeneous, but this is not a satisfactory remedy. A Green’s function with inhomogeneous boundary conditions can be just as hard to find as the original solution. Constructing a Green’s function by an expansion in eigenfunctions is difficult without homogeneous boundary conditions.

Funding

This research received no external funding.

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Arfken, G.B.; Weber, H.J.; Harris, F.E. Mathematical Methods for Physicists, 7th ed.; Elsevier: Boston, MA, USA, 2013. [Google Scholar]
  2. Jackson, J.D. Classical Electrodynamics, 3rd ed.; John Wiley & Sons: New York, NY, USA, 1999. [Google Scholar]
  3. Evans, L.C. Introduction to Partial Differential Equations, 2nd ed.; American Mathematical Society: Providence, RI, USA, 2014. [Google Scholar]
  4. Herman, R. Introduction to Partial Differential Equations; Libre Texts: Davis, CA, USA, 2015. [Google Scholar]
  5. Greenberg, M.D. Applications of Green’s Functions in Science and Engineering; Dover Publications, Inc.: Mineola, NY, USA, 2015. [Google Scholar]
  6. Rother, T. Green’s Functions in Classical Physics; Springer International Publishing: Cham, Switzerland, 2017. [Google Scholar]
  7. Razdan, A.K.; Ravichandran, V. Fundamentals of Partial Differential Equations; Springer International Publishing: Singapore, 2022. [Google Scholar]
  8. Olver, P.J. Introduction to Partial Differential Equations; Springer International Publishing: Cham, Switzerland, 2014. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Franklin, J. Green’s Functions for Neumann Boundary Conditions. Mathematics 2025, 13, 3399. https://doi.org/10.3390/math13213399

AMA Style

Franklin J. Green’s Functions for Neumann Boundary Conditions. Mathematics. 2025; 13(21):3399. https://doi.org/10.3390/math13213399

Chicago/Turabian Style

Franklin, Jerrold. 2025. "Green’s Functions for Neumann Boundary Conditions" Mathematics 13, no. 21: 3399. https://doi.org/10.3390/math13213399

APA Style

Franklin, J. (2025). Green’s Functions for Neumann Boundary Conditions. Mathematics, 13(21), 3399. https://doi.org/10.3390/math13213399

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop