Skip to content

Boundary Conditions

A differential expression does not by itself define a differential operator or a well-posed physical problem. One must also specify where the solution lives and what it does at each boundary. Those requirements are boundary conditions.

In quantum mechanics, boundary conditions have three linked roles:

  • they select solutions of a differential equation;
  • they help specify the domain of an unbounded operator;
  • they control probability flow through the boundary.

The same formal Hamiltonian can therefore have different spectra and different physics on different domains. This page develops the working mathematics. The functional-analytic distinction between symmetric and self-adjoint operators is treated separately in Symmetric versus Self-Adjoint Operators.

Consider the regular second-order eigenvalue equation on a≤x≤ba\le x\le b,

−ddx(p(x)dydx)+q(x)y=λw(x)y,-\frac{d}{dx} \left( p(x)\frac{dy}{dx} \right) +q(x)y =\lambda w(x)y,

where p(x)>0p(x)>0 and w(x)>0w(x)>0. Its local solution space is two-dimensional for a fixed value of λ\lambda. A regular scalar problem therefore requires two independent scalar boundary conditions in total. Common choices are one condition at each endpoint, but the two endpoints can also be coupled.

For example,

y(a)=0,y(b)=0y(a)=0, \qquad y(b)=0

is a separated pair, while

y(b)=y(a),p(b)y′(b)=p(a)y′(a)\begin{aligned} y(b)&=y(a),\\ p(b)y'(b)&=p(a)y'(a) \end{aligned}

is a coupled periodic pair.

This counting rule changes with the order of the equation, the number of components, and whether an endpoint is singular. It is a guide, not a substitute for checking the operator domain.

Initial-value and boundary-value problems are different. An initial-value problem usually specifies all data at one point, such as y(a)y(a) and y′(a)y'(a), and evolves away from that point. A boundary-value problem distributes constraints across a region. It can have no solution, one solution, or several solutions; an eigenvalue problem asks which parameter values make nonzero solutions possible. See Ordinary Differential Equations for the corresponding existence and uniqueness framework.

Let ∂n\partial_n denote the outward normal derivative. On an interval,

∂ny(a)=−y′(a),∂ny(b)=y′(b).\partial_n y(a)=-y'(a), \qquad \partial_n y(b)=y'(b).

The sign matters when Robin parameters are assigned geometrically.

Dirichlet conditions fix the value,

y∣∂Ω=f.y\big|_{\partial\Omega}=f.

The homogeneous form has f=0f=0. In elementary quantum models this can represent a hard wall at which the wavefunction vanishes. In other contexts it means that the boundary value is externally prescribed.

Neumann conditions fix the outward normal derivative,

∂ny∣∂Ω=g.\partial_n y\big|_{\partial\Omega}=g.

Homogeneous Neumann data set the normal slope to zero. For a simple real Schrödinger operator they also force the normal probability current to vanish, but zero derivative should not be interpreted as a universal model of every reflecting surface.

Robin conditions combine value and normal derivative:

αy+β ∂ny=hon ∂Ω.\alpha y +\beta\,\partial_n y =h \qquad \text{on }\partial\Omega.

Dirichlet and Neumann conditions are limiting cases. In a homogeneous self-adjoint problem, α\alpha and β\beta are ordinarily real at each boundary, not both zero. A ratio such as α/β\alpha/\beta introduces a length scale and can encode an effective surface interaction.

Mixed conditions use different types on different boundary components. A one-dimensional example is

y(a)=0,y′(b)=0.y(a)=0, \qquad y'(b)=0.

Mixed does not mean inconsistent: this is exactly two independent conditions for a second-order equation.

Periodic data identify the two ends of an interval:

y(b)=y(a),p(b)y′(b)=p(a)y′(a).\begin{aligned} y(b)&=y(a),\\ p(b)y'(b)&=p(a)y'(a). \end{aligned}

They model a circle or a periodically repeated cell, not a particle bouncing between two hard walls. The corresponding mode basis is developed in Periodic Functions and Fourier Series.

A phase-twisted, or quasiperiodic, identification is

y(b)=eiθy(a),p(b)y′(b)=eiθp(a)y′(a),\begin{aligned} y(b)&=e^{i\theta}y(a),\\ p(b)y'(b)&=e^{i\theta}p(a)y'(a), \end{aligned}

with real θ\theta. Periodic data have θ=0\theta=0, and antiperiodic data have θ=π\theta=\pi. The same phase in both equations makes the endpoint contribution to Green’s identity cancel. Twists occur in ring geometries, Bloch theory, and systems with gauge holonomy. Their model-specific consequences belong in Periodic Boundary Conditions.

An operator domain must be a vector space. Homogeneous linear conditions have this property: if uu and vv satisfy them, so does c1u+c2vc_1u+c_2v. Thus a Dirichlet realization of a differential expression can have a domain schematically written as

D(LD)={y∈Dmax⁡:y(a)=y(b)=0}.\mathcal D(L_D) = \left\lbrace y\in\mathcal D_{\max}: y(a)=y(b)=0 \right\rbrace.

By contrast, y(a)=1y(a)=1 defines an affine set rather than a vector space. Inhomogeneous boundary data are entirely legitimate for a forced boundary-value problem, but they do not directly define the domain of a linear operator. One can often subtract a convenient function with the prescribed boundary values and solve a homogeneous problem for the remainder.

Likewise, a condition that depends on the unknown eigenvalue does not describe one fixed operator domain in the usual way. Such problems can be meaningful, but they are generalized spectral problems and require separate analysis.

The broader principle is developed in Domains of Operators: an unbounded operator is the pair consisting of an action and a domain, not merely a formula.

Define the Sturm–Liouville expression

τy=1w[−(py′)′+qy]\tau y = \frac{1}{w} \left[ -(py')'+qy \right]

in the weighted inner-product space

⟨u,v⟩w=∫abu(x)∗v(x)w(x) dx.\langle u,v\rangle_w = \int_a^b u(x)^*v(x)w(x)\,dx.

Integration by parts gives Green’s identity,

⟨u,τv⟩w−⟨τu,v⟩w=[p(u′∗v−u∗v′)]ab.\begin{aligned} \langle u,\tau v\rangle_w -\langle\tau u,v\rangle_w &= \left[ p \left( u'^*v-u^*v' \right) \right]_a^b. \end{aligned}

The endpoint expression on the right is the boundary form. Boundary conditions make the realization symmetric when this form vanishes for every pair u,vu,v in the proposed domain.

The standard conditions pass this test:

  • Dirichlet data kill every term containing an endpoint value.
  • Neumann data kill every term containing an endpoint derivative.
  • Real homogeneous Robin data make the two products cancel at each endpoint.
  • Periodic or twisted data make the contribution at bb cancel the contribution at aa.

Vanishing of the boundary form proves symmetry, not automatically self-adjointness. One must also show that the adjoint has the same domain. For regular scalar Sturm–Liouville problems, maximal boundary conditions of the standard self-adjoint types give the expected result. Singular endpoints require more care.

For the one-dimensional Hamiltonian

H=−ℏ22md2dx2+V(x),H = -\frac{\hbar^2}{2m}\frac{d^2}{dx^2} +V(x),

with real VV, integration by parts yields

⟨u,Hv⟩−⟨Hu,v⟩=ℏ22m[u′∗v−u∗v′]ab.\begin{aligned} \langle u,Hv\rangle-\langle Hu,v\rangle = \frac{\hbar^2}{2m} \left[ u'^*v-u^*v' \right]_a^b. \end{aligned}

The probability current is

j(x)=ℏ2mi(ψ∗ψ′−ψ′∗ψ).j(x) = \frac{\hbar}{2mi} \left( \psi^*\psi' -\psi'^*\psi \right).

Setting u=v=ψu=v=\psi relates the boundary form to the current:

⟨ψ,Hψ⟩−⟨Hψ,ψ⟩=−iℏ[j(b)−j(a)].\langle\psi,H\psi\rangle -\langle H\psi,\psi\rangle = -i\hbar \left[ j(b)-j(a) \right].

Separated Dirichlet, Neumann, and real Robin conditions set the current to zero at each endpoint. Periodic and twisted conditions can allow nonzero current, but the current leaving one identified end re-enters through the other. In both cases there is no net probability loss from the physical configuration space.

This is a useful diagnostic, not a complete proof of self-adjointness. The continuity equation and applications are developed in Probability Current.

Consider

−y′′=k2yon [0,L].-y''=k^2y \qquad \text{on }[0,L].

Different endpoint conditions produce different eigenmodes:

ConditionsEigenfunctionsAllowed wave numbers
Dirichlet–Dirichletsin⁡(nπx/L)\sin(n\pi x/L)kn=nπ/Lk_n=n\pi/L, n=1,2,…n=1,2,\ldots
Neumann–Neumanncos⁡(nπx/L)\cos(n\pi x/L)kn=nπ/Lk_n=n\pi/L, n=0,1,…n=0,1,\ldots
Dirichlet–Neumannsin⁡((n+12)πx/L)\sin((n+\tfrac12)\pi x/L)kn=(n+12)π/Lk_n=(n+\tfrac12)\pi/L, n=0,1,…n=0,1,\ldots
Periodice2πinx/Le^{2\pi i n x/L}kn=2πn/Lk_n=2\pi n/L, n∈Zn\in\mathbb Z

The Neumann problem has a constant zero mode. The periodic problem has opposite-traveling modes with the same kn2k_n^2 for n≠0n\ne0. The Dirichlet–Dirichlet problem has neither feature. Nothing about the differential expression −d2/dx2-d^2/dx^2 alone decides among these spectra.

The hard-wall derivation and its physical interpretation have a canonical home in Infinite Square Well.

As a simple interpolation, impose

y(0)=0,y′(L)+h y(L)=0,h≥0.\begin{gathered} y(0)=0,\\ y'(L)+h\,y(L)=0, \qquad h\ge0. \end{gathered}

For a positive eigenvalue, y(x)=Asin⁡(kx)y(x)=A\sin(kx), and the second condition gives

kcos⁡(kL)+hsin⁡(kL)=0.k\cos(kL) +h\sin(kL) =0.

Equivalently, away from the zeros of cos⁡(kL)\cos(kL),

tan⁡(kL)=−kh.\tan(kL)=-\frac{k}{h}.

The h=0h=0 limit is Dirichlet–Neumann, while large positive hh approaches a Dirichlet condition at LL. The roots move continuously as the boundary parameter changes. One must test k=0k=0 directly in the differential equation: the trigonometric ansatz degenerates there, and an equation obtained after division can create or discard a spurious root.

An internal interface behaves like a boundary shared by two regions. For

−(py′)′+qy=λwy,-(py')'+qy=\lambda wy,

integrating across an ordinary finite jump at x0x_0 gives continuity of the flux variable:

[py′]x0−x0+=0.\left[ py' \right]_{x_0^-}^{x_0^+} =0.

In the absence of a distributional source, yy is also normally continuous. For the constant-mass Schrödinger equation with a finite potential step, this reduces to continuity of ψ\psi and ψ′\psi'.

A delta interaction changes the derivative condition. For

V(x)=g δ(x−x0),V(x)=g\,\delta(x-x_0),

the wavefunction is continuous and

ψ′(x0+)−ψ′(x0−)=2mgℏ2ψ(x0).\psi'(x_0^+)-\psi'(x_0^-) = \frac{2mg}{\hbar^2}\psi(x_0).

The coefficient follows by integrating the Schrödinger equation through the interface. It should not be guessed from the finite-step rule. The complete model calculation belongs in Delta-Function Potential.

More generally, matching conditions must preserve the appropriate boundary form. Continuity of probability current is a quick physical check.

At an infinite endpoint, a bound-state wavefunction must be square-integrable, but the slogan that it must simply vanish at infinity can hide important details. Decay rate, differentiability, and the action of the operator all matter. Scattering states are not square-integrable and instead satisfy incoming, outgoing, or standing-wave asymptotic conditions; see Scattering States and Boundary Conditions.

At a singular endpoint, square-integrability may select one local behavior or may leave a family of admissible conditions. This is the distinction behind limit-point and limit-circle classification. Its systematic home is Sturm–Liouville Theory.

The radial origin is a common source of mistakes. If

ψ(r)=uℓ(r)rYℓm(θ,ϕ),\psi(\mathbf r) = \frac{u_\ell(r)}{r} Y_{\ell m}(\theta,\phi),

regularity of the ordinary three-dimensional wavefunction generally selects

uℓ(0)=0.u_\ell(0)=0.

This does not mean that the unreduced radial factor must always vanish. Singular potentials and point interactions can alter the domain analysis, so the origin should not be treated as an ordinary endpoint by reflex.

Spatial boundaries in time-dependent problems

Section titled “Spatial boundaries in time-dependent problems”

The time-dependent Schrödinger equation requires an initial state in time and boundary conditions in space. These play distinct roles:

ψ(x,t0)=ψ0(x)\psi(\mathbf x,t_0)=\psi_0(\mathbf x)

sets the initial state, while a condition such as

ψ(x,t)=0for x∈∂Ω\psi(\mathbf x,t)=0 \qquad \text{for }\mathbf x\in\partial\Omega

specifies the spatial operator domain for every time. A valid initial state must lie in the Hilbert space, and stronger regularity is required if one wants it in the Hamiltonian domain. Time evolution preserves the boundary condition when generated by the corresponding self-adjoint Hamiltonian.

For partial differential equations, Dirichlet, Neumann, and Robin data are imposed on boundary surfaces, and ∂n\partial_n is the geometric normal derivative. Corners, nonsmooth boundaries, and unbounded regions require additional analysis.

Boundary conditions must be built into the discretization, not appended after diagonalization.

  1. Specify the continuum operator and domain before choosing a grid.
  2. Eliminate fixed Dirichlet degrees of freedom or encode them consistently in the matrix.
  3. Use one-sided, ghost-point, finite-element, or spectral constructions that retain the intended order of accuracy for Neumann and Robin data.
  4. Wrap both the function and derivative stencil for periodic data.
  5. Check that the discrete Hamiltonian is Hermitian in the discrete inner product.
  6. Vary the grid spacing and artificial box size separately. Agreement under only one refinement does not establish convergence to the intended unbounded-domain problem.

A boundary implementation that produces a visibly non-Hermitian Hamiltonian, complex eigenvalues for a closed system, or probability drift should be treated as a defect until explained.

When setting up a new quantum boundary-value problem:

  1. Write the differential expression and the Hilbert-space measure.
  2. Identify regular endpoints, singular endpoints, interfaces, and infinity.
  3. Derive interface jumps by integrating the equation.
  4. State a homogeneous linear domain for the operator.
  5. Evaluate the boundary form for two arbitrary domain functions.
  6. Check probability current and dimensions.
  7. Only then solve the spectral equation or discretize it.

This sequence separates physical assumptions from algebraic consequences and makes it easier to compare two apparently similar models.

  • Treating a differential formula as a complete Hamiltonian.
  • Imposing two conditions at each endpoint of a second-order scalar problem.
  • Using inhomogeneous data as though they formed a linear operator domain.
  • Calling periodic conditions a hard-wall approximation.
  • Assuming every reflecting boundary requires ψ=0\psi=0.
  • Matching ψ′\psi' across a delta interaction as if the potential were finite.
  • Forgetting the coefficient pp when the equation is in divergence form.
  • Using a complex Robin parameter without checking the boundary form and flux.
  • Requiring a scattering state to be square-integrable.
  • Setting the reduced radial function and the unreduced radial factor to the same endpoint value.
  • Proving symmetry by integration by parts and calling it self-adjointness.
  • Trusting a discretized spectrum without varying both grid and domain size.
  1. Let L=−d2/dx2L=-d^2/dx^2 on [0,L0][0,L_0]. Show directly from the boundary form that the separated Robin conditions

    u′(0)=h0u(0),u′(L0)=−h1u(L0)\begin{aligned} u'(0)&=h_0u(0),\\ u'(L_0)&=-h_1u(L_0) \end{aligned}

    make LL symmetric when h0,h1∈Rh_0,h_1\in\mathbb R.

Solution

For two domain functions uu and vv, the boundary form is

[u′∗v−u∗v′]0L0.\left[ u'^*v-u^*v' \right]_0^{L_0}.

At the left endpoint, substitute the conditions term by term:

u′(0)∗v(0)=h0u(0)∗v(0),u(0)∗v′(0)=h0u(0)∗v(0).\begin{aligned} u'(0)^*v(0) &=h_0u(0)^*v(0),\\ u(0)^*v'(0) &=h_0u(0)^*v(0). \end{aligned}

Their difference is zero, where reality of h0h_0 was used. At the right endpoint, both derivatives carry the same factor −h1-h_1, so the two terms cancel in the same way. The complete boundary form vanishes. This establishes symmetry on the proposed domain; a separate maximal-domain argument establishes self-adjointness.

  1. Solve −y′′=k2y-y''=k^2y on [0,L][0,L] with y(0)=0y(0)=0 and y′(L)=0y'(L)=0. Normalize the eigenfunctions in L2([0,L])L^2([0,L]).
Solution

For k>0k>0,

y(x)=Asin⁡(kx)+Bcos⁡(kx).y(x)=A\sin(kx)+B\cos(kx).

The condition at zero gives B=0B=0. The condition at LL gives

Akcos⁡(kL)=0.A k\cos(kL)=0.

A nonzero eigenfunction therefore requires

kn=(n+12)πL,n=0,1,2,….k_n = \frac{(n+\tfrac12)\pi}{L}, \qquad n=0,1,2,\ldots.

Since

∫0Lsin⁡2(knx) dx=L2,\int_0^L \sin^2(k_nx)\,dx = \frac{L}{2},

the normalized modes are

yn(x)=2Lsin⁡((n+12)πxL).y_n(x) = \sqrt{\frac{2}{L}} \sin\left( \frac{(n+\tfrac12)\pi x}{L} \right).

The k=0k=0 equation gives y=Ax+By=Ax+B; the two boundary conditions force A=B=0A=B=0, so there is no zero mode.

  1. Verify that twisted conditions preserve both the boundary form and the probability current for p=1p=1:

    ψ(L)=eiθψ(0),ψ′(L)=eiθψ′(0).\begin{aligned} \psi(L)&=e^{i\theta}\psi(0),\\ \psi'(L)&=e^{i\theta}\psi'(0). \end{aligned}
Solution

For arbitrary domain functions uu and vv, the endpoint expression at LL is

u′(L)∗v(L)=e−iθu′(0)∗eiθv(0)=u′(0)∗v(0),u(L)∗v′(L)=e−iθu(0)∗eiθv′(0)=u(0)∗v′(0).\begin{aligned} u'(L)^*v(L) &= e^{-i\theta}u'(0)^* e^{i\theta}v(0)\\ &=u'(0)^*v(0),\\ u(L)^*v'(L) &= e^{-i\theta}u(0)^* e^{i\theta}v'(0)\\ &=u(0)^*v'(0). \end{aligned}

The values at the two ends are equal, so their difference in the boundary form vanishes. For u=v=ψu=v=\psi, the same cancellation gives

j(L)=j(0).j(L)=j(0).

The current need not vanish. It circulates through the identified endpoint rather than leaking from the configuration space.

  1. A particle obeys

    −ℏ22mψ′′+gδ(x)ψ=Eψ.-\frac{\hbar^2}{2m}\psi'' +g\delta(x)\psi =E\psi.

    Derive the derivative jump and show that a real gg preserves current across the interface when ψ\psi is continuous.

Solution

Integrate from −ϵ-\epsilon to ϵ\epsilon. The energy term vanishes in the limit because its integral is O(ϵ)O(\epsilon), while the kinetic and delta terms give

−ℏ22m[ψ′(0+)−ψ′(0−)]+gψ(0)=0.-\frac{\hbar^2}{2m} \left[ \psi'(0^+)-\psi'(0^-) \right] +g\psi(0) =0.

Hence

ψ′(0+)−ψ′(0−)=2mgℏ2ψ(0).\psi'(0^+)-\psi'(0^-) = \frac{2mg}{\hbar^2}\psi(0).

Let Δψ′=ψ′(0+)−ψ′(0−)\Delta\psi'=\psi'(0^+)-\psi'(0^-). Then the current difference is

j(0+)−j(0−)=ℏmIm⁡{ψ(0)∗Δψ′}=2gℏIm⁡∣ψ(0)∣2=0.\begin{aligned} j(0^+)-j(0^-) &= \frac{\hbar}{m} \operatorname{Im} \left\lbrace \psi(0)^*\Delta\psi' \right\rbrace\\ &= \frac{2g}{\hbar} \operatorname{Im}\lvert\psi(0)\rvert^2\\ &=0. \end{aligned}

Reality of gg is essential in the last step. A complex coupling would model gain or loss rather than a closed self-adjoint interaction.

  • E. A. Coddington and N. Levinson, Theory of Ordinary Differential Equations, McGraw–Hill, 1955.
  • A. Zettl, Sturm–Liouville Theory, American Mathematical Society, 2005.
  • G. Teschl, Mathematical Methods in Quantum Mechanics, 2nd ed., American Mathematical Society, 2014.
  • M. Reed and B. Simon, Methods of Modern Mathematical Physics, Vol. II: Fourier Analysis, Self-Adjointness, Academic Press, 1975.
  • B. C. Hall, Quantum Theory for Mathematicians, Springer, 2013.
  • D. J. Griffiths and D. F. Schroeter, Introduction to Quantum Mechanics, 3rd ed., Cambridge University Press, 2018.