4.7.16Partial Differential Equations

Neumann and Dirichlet boundary conditions

1,899 words9 min readdifficulty · medium2 backlinks

WHAT they are


WHY boundary conditions are needed (derivation-from-scratch)


Figure — Neumann and Dirichlet boundary conditions

HOW they change the eigenfunctions (separation of variables)

When you solve the heat equation ut=kuxxu_t=k u_{xx} on [0,L][0,L] by separation, you get X+λX=0X''+\lambda X=0 and the boundary condition decides the allowed modes.


More worked examples



Recall Feynman: explain it to a 12-year-old

Imagine a metal rod. A Dirichlet rule is like saying "I am gripping the two ends and forcing them to be exactly this hot." A Neumann rule is like saying "I'm wrapping the ends in a thick blanket so no heat sneaks out the ends (slope = 0), or letting exactly this much heat leak out." The equation tells the heat how to move inside; the boundary rule tells it what's allowed to happen at the edges. Without an edge rule there are zillions of possible answers — the edge rule picks the real one.


Active recall

Dirichlet condition fixes which quantity on the boundary?
The value of uu itself: u=gu=g on Ω\partial\Omega.
Neumann condition fixes which quantity on the boundary?
The normal derivative / flux: u/n=h\partial u/\partial n=h on Ω\partial\Omega.
Why does Neumann use the normal (not tangential) derivative?
Only the component of u\nabla u perpendicular to the boundary represents flow across it; tangential flow stays inside.
What is the physical meaning of homogeneous Neumann (u/n=0\partial u/\partial n=0)?
Insulated / no-flux boundary — nothing crosses the edge.
Dirichlet on [0,L][0,L] gives which eigenfunctions?
Xn=sin(nπx/L)X_n=\sin(n\pi x/L), n=1,2,n=1,2,\dots (sine series), with λn=(nπ/L)2\lambda_n=(n\pi/L)^2.
Neumann on [0,L][0,L] gives which eigenfunctions?
Xn=cos(nπx/L)X_n=\cos(n\pi x/L), n=0,1,2,n=0,1,2,\dots (cosine series, includes constant n=0n=0).
Why is the n=0n=0 mode kept for Neumann but dropped for Dirichlet?
cos0=1\cos0=1 satisfies X=0X'=0 at both ends (valid), but sin0=0\sin0=0 gives the trivial zero solution.
Long-run temperature of an insulated rod with initial f(x)f(x)?
The average 1L0Lfdx\frac1L\int_0^L f\,dx — only the non-decaying λ0=0\lambda_0=0 constant mode survives.
Why is a pure-Neumann solution non-unique?
Only derivatives are constrained; adding any constant leaves all normal derivatives unchanged.
Compatibility condition for a steady pure-Neumann problem?
Net flux must vanish: ΩhdS=0\oint_{\partial\Omega} h\,dS=0 (and for Laplace's eqn Ωf=h\int_\Omega f=\oint h).

Connections

  • Separation of Variables — boundary conditions select the eigenfunctions.
  • Heat Equation — Dirichlet → cooling to 0, Neumann → settling to average.
  • Laplace Equation — Neumann needs the compatibility (zero-net-flux) condition.
  • Sturm-Liouville Theory — both conditions make the operator self-adjoint, giving real λn\lambda_n and orthogonal modes.
  • Fourier Series — Dirichlet ↔ sine series, Neumann ↔ cosine series.
  • Robin Boundary Conditions — the mixed αu+βu/n=g\alpha u+\beta\,\partial u/\partial n=g generalisation.

Concept Map

underdetermines

needs

selects

type

type

prescribes

uses

gives

if g=0

if h=0 insulated

PDE on region Omega

Family of solutions

Boundary conditions on edge

Unique physical solution

Dirichlet: fix value u=g

Neumann: fix normal derivative

Flux across boundary

Outward unit normal n

Solution up to constant

Homogeneous case g=0 or h=0

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, ek PDE (jaise heat equation ya Laplace equation) sirf region ke andar ka behaviour batati hai. Lekin akeli equation se unique answer nahi milta — bahut saari functions same equation ko satisfy kar sakti hain. Isliye humein boundary (kinaare) par extra information chahiye. Yahi kaam karte hain Dirichlet aur Neumann conditions.

Dirichlet ka matlab: boundary par uu ki value fix kar do. Jaise rod ke dono ends ko 00^\circC par pakad ke rakha. Neumann ka matlab: boundary par slope / flux (u/n\partial u/\partial n) fix kar do. Jaise rod ke ends ko motey kambal se dhak diya taaki koi heat bahar na nikle — yeh hota hai homogeneous Neumann (u/n=0\partial u/\partial n = 0, insulated). Yaad rakhne ka trick: Dirichlet = value (Door height), Neumann = No-flow/slope.

Jab separation of variables se solve karte ho, to boundary condition decide karti hai ke kaunse modes allowed hain. Dirichlet se sine series milti hai (sin(nπx/L)\sin(n\pi x/L), n=1,2,n=1,2,\dots) kyunki sine ends par zero ho jaata hai. Neumann se cosine series milti hai (cos(nπx/L)\cos(n\pi x/L), n=0,1,2,n=0,1,2,\dots) — aur yahan n=0n=0 wala constant mode bhi allowed hai. Yahi constant mode physics batata hai: insulated rod time ke saath apni average temperature par settle ho jaata hai (kyunki koi heat bahar gaya hi nahi).

Sabse important galti se bacho: Neumann ka matlab "u=0u=0" nahi hota — uska matlab slope/flux fix hota hai. Aur pure Neumann problem ka solution sirf ek constant tak unique hota hai, kyunki sirf derivatives constrained hain — ek constant add karo to derivatives same rehte hain. Exam mein yeh do points mark le aate hain!

Test yourself — Partial Differential Equations

Connections