Natural and Essential Boundary Conditions

A variational problem is only half-specified by its functional. Writing J[y]=∫abF(x,y,y′) dxJ[y]=\int_a^b F(x,y,y')\,\mathrm{d}x tells you what to extremize, but not what the competing curves may do at the two ends — and until that is fixed, the problem has no unique answer. There are exactly two kinds of endpoint statement. Essential (geometric, Dirichlet) conditions fix the value of yy at an endpoint; they are wired into the admissible space, so every trial function already obeys them and the variation vanishes there. Natural (dynamical, Neumann-type) conditions are the opposite in spirit — you do not impose them, you discover them, because they fall out of the stationarity requirement wherever an endpoint is left free. The remarkable thing is that both come from a single act: the same integration by parts that produces the Euler–Lagrange equation. Moving one derivative off the perturbation splits δJ\delta J into an interior integral — which the Fundamental Lemma turns into the field equation — and a leftover boundary term [Fy′ δy]ab[F_{y'}\,\delta y]_a^b that must vanish on its own. At a pinned end δy=0\delta y=0 does this automatically; at a free end δy\delta y is arbitrary, so its coefficient Fy′F_{y'} must vanish instead. That is the natural boundary condition — a force balance the variational principle hands you for free. This article is the accounting rule that keeps every calculus-of-variations problem well posed: one condition per endpoint, essential or natural, never both, never neither.

Key takeaways
  • Extremizing J[y]=∫abF(x,y,y′) dxJ[y]=\int_a^b F(x,y,y')\,\mathrm{d}x, one integration by parts in δJ\delta J leaves a bulk term (Euler–Lagrange) and a boundary term [Fy′ δy]ab[F_{y'}\,\delta y]_a^b that must vanish separately.
  • An essential (Dirichlet) condition prescribes yy at an endpoint; it lives in the function space, forcing δy=0\delta y=0 there so the boundary term dies automatically.
  • A natural (Neumann-type) condition is what stationarity forces at a free endpoint: δy\delta y is arbitrary, so its coefficient must vanish, Fy′=0F_{y'}=0 — a result, not an input.
  • Each endpoint needs exactly one condition. A second-order Euler–Lagrange equation wants two total; a fourth-order (higher-derivative) one wants four, two per end.
  • A free-ended beam obeys the natural conditions EI y′′=0EI\,y''=0 (zero moment) and EI y′′′=0EI\,y'''=0 (zero shear); a geodesic meeting a free boundary satisfies transversality and crosses it orthogonally.
  • Adding an endpoint energy g(y(b))g(y(b)) turns the natural condition into the Robin relation Fy′+g′(y)=0F_{y'}+g'(y)=0 without touching the bulk equation.
  • Key idea: Integration by parts in δJ\delta J generates the boundary term [Fy′ δy]ab[F_{y'}\,\delta y]_a^b. A prescribed endpoint sets δy=0\delta y=0 (essential condition); a free endpoint forces Fy′=0F_{y'}=0 there (natural condition). Each endpoint needs exactly one.

Where this lives today

The essential/natural split is the organizing principle of the finite element method (FEM), the numerical workhorse of structural, thermal, and electromagnetic engineering. In an FEM code, essential (Dirichlet) conditions are imposed on the trial functions by fixing nodal values, while natural (Neumann) conditions — tractions, heat fluxes, surface charges — are never imposed at all: they emerge from the weak form's boundary integral exactly as Fy′F_{y'} emerges here, which is precisely why "natural" is the numerical-analysis name for them. The same accounting governs field theory: the Einstein–Hilbert action of general relativity is variationally ill-posed until one adds the Gibbons–Hawking–York surface term, whose job is to fix the boundary term so the metric can be held fixed (essential) at the boundary — a gravitational instance of adding g(y(b))g(y(b)) to JJ. Transversality reappears as the terminal condition of Pontryagin's maximum principle in optimal control; and the free-edge conditions of membranes, soap films, and lipid bilayers are natural boundary conditions of a bending-energy (Helfrich) functional, read off exactly as the beam conditions were here.

The physical picture

Picture the trial curve y(x)y(x) between the two verticals at x=ax=a and x=bx=b, and wiggle it by a small perturbation δy(x)\delta y(x). The interior wiggle tells you the field equation: demand that no interior wiggle changes JJ to first order and you get Euler–Lagrange. But the perturbation also acts at the ends, and that is where boundary conditions are born. If a peg holds an endpoint in place you cannot wiggle there — δy=0\delta y=0 — an essential condition imposed by hand. If the endpoint is loose you can wiggle it, and stationarity insists even that end wiggle produce no first-order change; the only way is for the coefficient Fy′F_{y'} to vanish there. The first figure freezes this contrast: a pinned left end, a free right end, and the one boundary term both must kill.

Figure
At a pinned end the value is fixed so the variation vanishes there, δy(a) = 0 (essential); at a free end the variation is arbitrary so stationarity forces ∂F/∂y′ = 0 at that end (natural) — the boundary term ∂F/∂y′ · δy must vanish at every endpoint
One boundary term, two ways to kill it: pin the value, or let stationarity set the flux boundary term ∂F/∂y′ · δy must vanish at each endpoint δy(b) ≠ 0 δy(a) = 0 essential: y(a) prescribed natural: ∂F/∂y′ = 0 at b a — pinned (peg holds it) b — free (endpoint may slide)

The same accounting has teeth the moment you put real physics behind FF. Minimizing the bending energy of an elastic beam delivers not only the Euler–Bernoulli equation in the bulk but, at any unsupported end, the two conditions a structural analyst would otherwise quote from a handbook — zero bending moment and zero shear. Nobody imposes them; the variation coughs them up. The second figure makes this concrete: a uniformly loaded cantilever whose clamped root carries the essential data and whose free tip carries the natural data, with a tip deflection you can compute to the millimetre.

Figure
A uniformly loaded cantilever, clamped at the wall and free at the tip, with EI = 8×10⁵ N·m², load w = 1000 N/m, length L = 2 m. The clamp imposes essential conditions y(0) = 0 and y′(0) = 0; the free tip yields the natural conditions M = EI y″(L) = 0 and V = EI y‴(L) = 0. Solving EI y⁗ = w gives tip deflection y(L) = wL⁴/(8EI) = 2.5 mm
The variational principle hands you the free-tip conditions M = 0 and V = 0, tip drop 2.5 mm w = 1000 N/m free tip M = EI y″(L) = 0 (natural) V = EI y‴(L) = 0 (natural) y(0) = 0, y′(0) = 0 clamp (essential) 2.5 mm L = 2 m bulk equation EI y⁗ = w → y(L) = wL⁴/(8EI) = 2.5 mm, with EI = 8×10⁵ N·m²

The core equations

Everything begins with the first variation — the linear-in-δy\delta y part of the change in JJ. No derivative has yet moved, so the perturbed slope δy′\delta y' still appears explicitly and nothing distinguishes interior from boundary.

δJ=∫ab(Fy δy+Fy′ δy′)dx(1)\delta J=\int_a^b\left(F_y\,\delta y+F_{y'}\,\delta y'\right)\mathrm{d}x \qquad (1)

where: J[y]J[y] — the functional ∫abF(x,y,y′) dx\int_a^b F(x,y,y')\,\mathrm{d}x being extremized; Fy, Fy′F_y,\,F_{y'} — the partial derivatives ∂F/∂y\partial F/\partial y and ∂F/∂y′\partial F/\partial y'; δy, δy′\delta y,\,\delta y' — the variation of yy and of its slope, related by δy′=(δy)′\delta y'=(\delta y)'. A curve is stationary when this vanishes for every admissible δy\delta y. Integrating the δy′\delta y' term by parts transfers its derivative onto Fy′F_{y'} — the hinge of the whole subject. It converts equation (1) into an interior integral multiplying δy\delta y plus a pure boundary term.

δJ=∫ab(Fy−ddxFy′)δy dx+[Fy′ δy]ab(2)\delta J=\int_a^b\left(F_y-\frac{\mathrm{d}}{\mathrm{d}x}F_{y'}\right)\delta y\,\mathrm{d}x+\Big[F_{y'}\,\delta y\Big]_a^b \qquad (2)

where: ddxFy′\frac{\mathrm{d}}{\mathrm{d}x}F_{y'} — the total derivative of Fy′F_{y'} along the curve; [ ⋅ ]ab[\,\cdot\,]_a^b — evaluation at bb minus at aa, the boundary term. The two pieces are logically independent and must each vanish on their own. The interior integral must vanish for all variations free in the interior, so the Fundamental Lemma forces its integrand to zero everywhere — the Euler–Lagrange equation.

Fy−ddxFy′=0(3)F_y-\frac{\mathrm{d}}{\mathrm{d}x}F_{y'}=0 \qquad (3)

where: =0=0 — forced pointwise by the Fundamental Lemma because δy\delta y is arbitrary on the open interval (a,b)(a,b). This is the field equation; the boundary term below is a separate set of statements. With the interior integral gone, whatever is left of δJ\delta J is the boundary term, which stationarity demands vanish by itself at each end.

[Fy′ δy]ab=Fy′(b) δy(b)−Fy′(a) δy(a)=0(4)\Big[F_{y'}\,\delta y\Big]_a^b=F_{y'}(b)\,\delta y(b)-F_{y'}(a)\,\delta y(a)=0 \qquad (4)

where: δy(a), δy(b)\delta y(a),\,\delta y(b) — the endpoint variations, zero if the endpoint value is prescribed and arbitrary if it is free. Each endpoint contributes one term, and there are exactly two ways to make a term vanish. The first way is to fix the value. Then the trial space contains only curves through the prescribed point, so δy=0\delta y=0 there by construction — an essential (Dirichlet, geometric) condition.

y(a)=ya⟹δy(a)=0(essential)(5)y(a)=y_a\qquad\Longrightarrow\qquad \delta y(a)=0\quad(\text{essential}) \qquad (5)

where: yay_a — the prescribed endpoint value, wired into the definition of the admissible functions. Essential conditions are inputs you supply; they never appear as extra equations. The second way is to leave the endpoint free. Then δy\delta y is arbitrary, so the only escape is for its coefficient to vanish — a natural (Neumann-type) condition, produced by the variation rather than imposed.

∂F∂y′∣x=a=0(natural)(6)\left.\frac{\partial F}{\partial y'}\right|_{x=a}=0\qquad(\text{natural}) \qquad (6)

where: ∂F/∂y′\partial F/\partial y' — the conjugate momentum or generalized force associated with yy; its vanishing is a force-balance statement at the free end. Natural conditions are outputs; you read them off, you do not choose them. When FF depends on higher derivatives the procedure just runs longer. For F(x,y,y′,y′′)F(x,y,y',y'') two integrations by parts expose two boundary contributions per end — one multiplying δy\delta y, one multiplying δy′\delta y' — so each end carries two conditions.

δJ=∫ab ⁣(Fy−ddxFy′+d2dx2Fy′′)δy dx+[(Fy′−ddxFy′′)δy+Fy′′ δy′]ab(7)\delta J=\int_a^b\!\Big(F_y-\tfrac{\mathrm{d}}{\mathrm{d}x}F_{y'}+\tfrac{\mathrm{d}^2}{\mathrm{d}x^2}F_{y''}\Big)\delta y\,\mathrm{d}x+\Big[\Big(F_{y'}-\tfrac{\mathrm{d}}{\mathrm{d}x}F_{y''}\Big)\delta y+F_{y''}\,\delta y'\Big]_a^b \qquad (7)

where: Fy′′=∂F/∂y′′F_{y''}=\partial F/\partial y''; the bulk equation is now the fourth-order Fy−ddxFy′+d2dx2Fy′′=0F_y-\tfrac{\mathrm{d}}{\mathrm{d}x}F_{y'}+\tfrac{\mathrm{d}^2}{\mathrm{d}x^2}F_{y''}=0; the two boundary coefficients give the natural conditions Fy′′=0F_{y''}=0 and ddxFy′′−Fy′=0\tfrac{\mathrm{d}}{\mathrm{d}x}F_{y''}-F_{y'}=0 at a free end. A fourth-order equation needs four conditions, two per end, matched by the two variations δy\delta y and δy′\delta y'. Two variants round out the toolkit. Adding an endpoint energy g(y(b))g(y(b)) to JJ contributes g′(y(b)) δy(b)g'(y(b))\,\delta y(b), converting the natural condition into a Robin (mixed) condition without disturbing Euler–Lagrange. And if the endpoint may move horizontally along a target curve, the changing limit contributes an extra F δxF\,\delta x and the natural condition generalizes to transversality.

Fy′∣b+g′ ⁣(y(b))=0,[F+(ϕ′−y′) Fy′]x=xb=0(8)F_{y'}\big|_b+g'\!\big(y(b)\big)=0,\qquad\qquad \Big[F+(\phi'-y')\,F_{y'}\Big]_{x=x_b}=0 \qquad (8)

where: g(y(b))g(y(b)) — an added endpoint contribution such as a spring or surface energy, g′g' its derivative; y=ϕ(x)y=\phi(x) — the target curve the free end rides on, ϕ′\phi' its slope. The left relation is Robin; the right is transversality, collapsing to Fy′=0F_{y'}=0 when the target is a vertical line.

Derivation ASplitting the first variation into bulk and boundary

The goal is the single integration by parts that simultaneously delivers the Euler–Lagrange equation and reveals which endpoint data are essential and which are natural. We vary the curve by y→y+εηy\to y+\varepsilon\eta with η\eta a smooth perturbation that is NOT required to vanish at the ends, demand that dJ/dε\mathrm{d}J/\mathrm{d}\varepsilon vanish at ε=0\varepsilon=0, and watch the derivative move off η\eta and onto Fy′F_{y'}, leaving behind a boundary term that carries all the endpoint physics.

Step 1. Differentiate J[y+εη]J[y+\varepsilon\eta] under the integral at ε=0\varepsilon=0: the chain rule on F(x,y+εη,y′+εη′)F(x,y+\varepsilon\eta,y'+\varepsilon\eta') gives dJdε∣0=∫ab(Fy η+Fy′ η′) dx\tfrac{\mathrm{d}J}{\mathrm{d}\varepsilon}\big|_0=\int_a^b(F_y\,\eta+F_{y'}\,\eta')\,\mathrm{d}x. Why: this is the linear response of JJ, and it is where the slope perturbation η′=(η)′\eta'=(\eta)' still appears explicitly.

Step 2. Integrate the second term by parts, ∫abFy′η′ dx=[Fy′η]ab−∫ab(ddxFy′)η dx\int_a^b F_{y'}\eta'\,\mathrm{d}x=[F_{y'}\eta]_a^b-\int_a^b(\tfrac{\mathrm{d}}{\mathrm{d}x}F_{y'})\eta\,\mathrm{d}x. Why: this transfers the derivative off the arbitrary η\eta onto the known Fy′F_{y'}, exposing a common factor of η\eta — and the price is the boundary term.

Step 3. Collect into δJ=∫ab(Fy−ddxFy′)η dx+[Fy′η]ab\delta J=\int_a^b\big(F_y-\tfrac{\mathrm{d}}{\mathrm{d}x}F_{y'}\big)\eta\,\mathrm{d}x+[F_{y'}\eta]_a^b. Why: the interior integral and the boundary term are independent, because η\eta on (a,b)(a,b) and η\eta at the ends can be chosen separately.

Step 4. Restrict first to perturbations vanishing at both ends. Then [Fy′η]ab=0[F_{y'}\eta]_a^b=0 trivially, and the Fundamental Lemma forces Fy−ddxFy′=0F_y-\tfrac{\mathrm{d}}{\mathrm{d}x}F_{y'}=0. Why: end-vanishing perturbations are a legitimate subset, so δJ=0\delta J=0 for them isolates the field equation.

Step 5. Now widen to perturbations free at the ends. The interior integral already vanishes, so stationarity reduces to [Fy′η]ab=0[F_{y'}\eta]_a^b=0; at each end either η=0\eta=0 (prescribed — essential) or Fy′=0F_{y'}=0 (free — natural). Why: with the bulk annihilated, the survivor is purely a boundary statement — the two ways a product can vanish. *Setting η(a)=η(b)=0\eta(a)=\eta(b)=0 recovers the fixed-endpoint derivation, and the boundary term matches equation (2).*

Go deeper · Derivation B · 1 minNatural conditions for a free-ended elastic beam
Derivation BNatural conditions for a free-ended elastic beam

The goal is to show that the two conditions an engineer quotes for the free tip of a cantilever — zero bending moment and zero shear — are not assumptions but natural conditions produced by minimizing the bending energy. We take the Euler–Bernoulli energy, a genuine higher-derivative functional, apply the two-integration-by-parts boundary structure of equation (7), leave the end free so both δy\delta y and δy′\delta y' survive, and read off the coefficients that must vanish.

Step 1. Write the energy J[y]=∫0L(12EI y′′2−q y)dxJ[y]=\int_0^L\big(\tfrac12 EI\,y''^2-q\,y\big)\mathrm{d}x and identify Fy′′=EI y′′F_{y''}=EI\,y'', Fy′=0F_{y'}=0, Fy=−qF_y=-q. Why: the y′′y'' dependence promotes the problem to the higher-derivative case, so equation (7) is the correct template.

Step 2. Insert into the boundary term of equation (7), which with Fy′=0F_{y'}=0 collapses to [−EI y′′′ δy+EI y′′ δy′]0L[-EI\,y'''\,\delta y+EI\,y''\,\delta y']_0^L. Why: the surviving coefficients are the shear-like EIy′′′EI y''' multiplying δy\delta y and the moment-like EIy′′EI y'' multiplying δy′\delta y'.

Step 3. At a free tip the end may both displace and rotate, so δy(L)\delta y(L) and δy′(L)\delta y'(L) are both arbitrary. Why: nothing pins either one, unlike the clamped root where both are held to zero.

Step 4. Set each free coefficient to zero: EI y′′(L)=0EI\,y''(L)=0 and EI y′′′(L)=0EI\,y'''(L)=0. Why: independent arbitrary variations vanish only if every coefficient does — giving M=EIy′′=0M=EI y''=0 (no moment) and V=EIy′′′=0V=EI y'''=0 (no shear) at the tip.

Step 5. The bulk equation from (7) is d2dx2(EIy′′)−q=0\tfrac{\mathrm{d}^2}{\mathrm{d}x^2}(EI y'')-q=0, i.e. EI y′′′′=qEI\,y''''=q. Why: the same variation yields the field equation, confirming the four required conditions (two essential at the clamp, two natural at the tip) match its fourth order. *The constants fixed by y(0)=y′(0)=0y(0)=y'(0)=0 and y′′(L)=y′′′(L)=0y''(L)=y'''(L)=0 give the tip deflection y(L)=wL4/(8EI)y(L)=wL^4/(8EI) of Worked example 1.*

Go deeper · Derivation C · 1 minThe free terminal point and the transversality condition
Derivation CThe free terminal point and the transversality condition

The goal is to handle the richest free-endpoint case, in which the terminal point may slide along a target curve y=ϕ(x)y=\phi(x) so that even the abscissa xbx_b is free. We track the two ways the endpoint can move — the changing integration limit and the changing endpoint value — combine them, and extract the transversality condition, which reduces to the plain natural condition when the target is vertical.

Step 1. Let the endpoint slide by δxb\delta x_b along ϕ\phi; the vertical change of the extremal endpoint is δy(xb)=(ϕ′−y′) δxb\delta y(x_b)=(\phi'-y')\,\delta x_b. Why: moving along ϕ\phi raises the point by ϕ′ δxb\phi'\,\delta x_b, following the extremal by y′ δxby'\,\delta x_b; the admissible variation is their difference.

Step 2. Assemble the endpoint part of δJ\delta J from the boundary term Fy′ δy(xb)F_{y'}\,\delta y(x_b) and the term F δxbF\,\delta x_b from the moving upper limit. Why: a varying limit of integration contributes the integrand FF at the endpoint times the shift δxb\delta x_b, on top of the usual boundary term.

Step 3. Substitute Step 1 and factor: δJ∣end=[F+Fy′(ϕ′−y′)] δxb\delta J\big|_{\text{end}}=\big[F+F_{y'}(\phi'-y')\big]\,\delta x_b. Why: both contributions are now proportional to the single free parameter δxb\delta x_b.

Step 4. Because δxb\delta x_b is arbitrary, the bracket vanishes: F+(ϕ′−y′)Fy′=0F+(\phi'-y')F_{y'}=0 at x=xbx=x_b — the transversality condition. Why: stationarity against every slide forces the coefficient to zero, replacing the missing endpoint datum.

Step 5. Check limits. A vertical target (ϕ′→∞\phi'\to\infty) gives Fy′=0F_{y'}=0, the ordinary natural condition; the arc-length integrand F=1+y′2F=\sqrt{1+y'^2} gives 1+ϕ′y′=01+\phi'y'=0, so the extremal meets ϕ\phi at a right angle. Why: recovering both special cases confirms transversality is the correct generalization, not a new axiom. *The orthogonality result y′ϕ′=−1y'\phi'=-1 is the shortest-path-to-a-curve condition of Worked example 2.*

Limiting cases

How the single boundary term [Fy′ δy]ab[F_{y'}\,\delta y]_a^b resolves in the standard endpoint scenarios:

CaseResultMeaning
Both ends fixed (Dirichlet)y(a)=ya,  y(b)=yby(a)=y_a,\ \ y(b)=y_bδy(a)=δy(b)=0\delta y(a)=\delta y(b)=0, so the boundary term vanishes identically; only Euler–Lagrange survives. Two essential conditions.
One end fixed, one freey(a)=ya,  Fy′∣b=0y(a)=y_a,\ \ F_{y'}\big|_{b}=0Essential at aa, natural at bb. The free end self-selects the slope making Fy′F_{y'} vanish.
Both ends freeFy′∣a=0,  Fy′∣b=0F_{y'}\big|_{a}=0,\ \ F_{y'}\big|_{b}=0Two natural conditions; with the second-order equation they generically fix the two constants.
Endpoint energy addedFy′∣b+g′ ⁣(y(b))=0F_{y'}\big|_{b}+g'\!\big(y(b)\big)=0An added g(y(b))g(y(b)) turns the natural condition into a Robin condition — elastic supports, surface tension.
Endpoint free in xx too[F+(ϕ′−y′)Fy′]xb=0\big[F+(\phi'-y')F_{y'}\big]_{x_b}=0Transversality: the terminal point rides a target curve, crossing it at the transversal (for arc length, orthogonal) angle.
Higher-derivative F(x,y,y′,y′′)F(x,y,y',y'')Fy′′=0,  ddxFy′′−Fy′=0F_{y''}=0,\ \ \tfrac{\mathrm{d}}{\mathrm{d}x}F_{y''}-F_{y'}=0Two natural conditions per free end (moment and shear for a beam), matching the fourth-order equation.

Worked examples

1 · The uniformly loaded cantilever (fully worked)

A steel cantilever of length L=2 mL=2\ \mathrm{m} and flexural rigidity EI=8×105 N m2EI=8\times10^5\ \mathrm{N\,m^2} carries a uniform load w=1000 N/mw=1000\ \mathrm{N/m}, clamped at x=0x=0 and free at x=Lx=L. Find the deflection y(x)y(x) and the tip deflection y(L)y(L).

Step 1. The bending energy J[y]=∫0L(12EI y′′2−w y) dxJ[y]=\int_0^L(\tfrac12 EI\,y''^2-w\,y)\,\mathrm{d}x has the Euler–Lagrange equation EI y′′′′=wEI\,y''''=w (Derivation 2). Integrating four times: y(x)=w24EIx4+C16x3+C22x2+C3x+C4y(x)=\dfrac{w}{24EI}x^4+\dfrac{C_1}{6}x^3+\dfrac{C_2}{2}x^2+C_3x+C_4.

Step 2. Essential conditions at the clamp fix position and slope, y(0)=0y(0)=0, y′(0)=0y'(0)=0, giving immediately C4=0C_4=0, C3=0C_3=0 — inputs on the trial space.

Step 3. Natural conditions at the free tip: y′′′(L)=0y'''(L)=0 gives C1=−wLEIC_1=-\dfrac{wL}{EI}, y′′(L)=0y''(L)=0 gives C2=wL22EIC_2=\dfrac{wL^2}{2EI}. These were never assumed — the variation produced them.

Step 4. Assemble y(x)=w24EI(x4−4Lx3+6L2x2)y(x)=\dfrac{w}{24EI}\big(x^4-4Lx^3+6L^2x^2\big) and evaluate at the tip: y(L)=w24EI(1−4+6)L4=wL48EIy(L)=\dfrac{w}{24EI}(1-4+6)L^4=\boxed{\dfrac{wL^4}{8EI}}.

Step 5. Numbers: y(L)=(1000)(2)48 (8×105)=160006.4×106=2.5×10−3 my(L)=\dfrac{(1000)(2)^4}{8\,(8\times10^5)}=\dfrac{16000}{6.4\times10^6}=2.5\times10^{-3}\ \mathrm{m}. The tip drops 2.5 mm, with the free-end conditions M=EIy′′(L)=0M=EI y''(L)=0, V=EIy′′′(L)=0V=EI y'''(L)=0 coming entirely from the natural boundary term.

2 · Shortest path to a target curve (transversality)

Find the shortest curve from (0,0)(0,0) to the vertical line x=3x=3, then generalize to a target curve y=ϕ(x)y=\phi(x).

Step 1. The length functional J[y]=∫0xb1+y′2 dxJ[y]=\int_0^{x_b}\sqrt{1+y'^2}\,\mathrm{d}x has F=1+y′2F=\sqrt{1+y'^2} and Fy′=y′1+y′2F_{y'}=\dfrac{y'}{\sqrt{1+y'^2}}. Euler–Lagrange gives y′=consty'=\text{const}: every extremal is a straight line.

Step 2. The start is fixed (essential at x=0x=0), but the end slides freely along x=3x=3 — a free endpoint in yy, so the natural condition applies: Fy′∣x=3=0⇒y′=0F_{y'}\big|_{x=3}=0\Rightarrow y'=0.

Step 3. The straight line through (0,0)(0,0) with y′=0y'=0 is the horizontal segment to (3,0)(3,0), of length 3\mathbf{3}. It meets the vertical target at a right angle — the natural condition is literally "hit the boundary perpendicularly".

Step 4. Generalize: for a target curve y=ϕ(x)y=\phi(x), transversality F+(ϕ′−y′)Fy′=0F+(\phi'-y')F_{y'}=0 simplifies to 1+ϕ′y′1+y′2=0\dfrac{1+\phi'y'}{\sqrt{1+y'^2}}=0, hence 1+ϕ′y′=0\mathbf{1+\phi'y'=0}, i.e. y′ϕ′=−1y'\phi'=-1.

Step 5. Product of slopes −1-1 means the extremal crosses the target orthogonally — the same as Step 3 for a vertical line (ϕ′→∞⇒y′→0\phi'\to\infty\Rightarrow y'\to0). Geodesics meet a free boundary at right angles, a result that carries over to Fermat's principle.

Physics of the portrait

Natural boundary conditions are the fingerprint of one idea — that a physical law and its boundary behaviour can be squeezed from a single variational principle. The clean algorithm that turns a functional into a field equation plus its endpoint conditions is the work of Joseph-Louis Lagrange, who at nineteen sent Euler a method that reorganized all of mechanics around it.

Origins · 1 minJoseph-Louis Lagrange and how this was discovered
JL
Joseph-Louis Lagrange
1736–1813 · founder of the δ-calculus of variations and analytical mechanics

Lagrange was born Giuseppe Lodovico Lagrangia in Turin in 1736 and, essentially self-taught, was a professor there by nineteen. In 1755 he wrote to Leonhard Euler describing a purely analytic method for extremal problems: instead of Euler's geometric polygon constructions, Lagrange introduced the variation operator δ\delta — a formal "small change" that commutes with differentiation and integration and reduces the whole subject to symbol-pushing. Euler was so impressed he held back his own work so the young Lagrange could publish first, and coined the name "calculus of variations". It was Lagrange's integration by parts of the first variation that first isolated the boundary term [Fy′ δy]ab[F_{y'}\,\delta y]_a^b and made explicit that a free endpoint imposes its own condition. Called to Berlin in 1766 to succeed Euler, and later to Paris, he crowned the programme with the Mécanique analytique (1788), a treatise so committed to the analytic ideal that he boasted it contained not a single diagram. The essential-versus-natural terminology was standardized much later, in Courant and Hilbert's 1924 Methoden der mathematischen Physik, but the machinery behind the distinction is Lagrange's.

History
1744
— Euler's Methodus inveniendi lays the geometric foundations of the calculus of variations
1755
— the nineteen-year-old Lagrange sends Euler the δ-algorithm, mechanizing the first variation
1786
— Legendre analyses the second variation and the question of sufficiency
1788
— Lagrange's Mécanique analytique recasts all mechanics as a variational principle
1877
— du Bois-Reymond gives the first rigorous proof of the fundamental lemma
1924
— Courant and Hilbert codify the essential versus natural boundary-condition terminology

Going further

Texts. Gelfand & Fomin, Calculus of Variations, §§1–2, 6, 14 (the cleanest treatment of natural and transversality conditions) · Stone & Goldbart, Mathematics for Physics, Ch. 1 · Arfken & Weber, Mathematical Methods for Physicists, calculus-of-variations chapter · Hassani, Mathematical Physics, variational-methods chapter · Courant & Hilbert, Methods of Mathematical Physics, Vol. I, Ch. IV (origin of the terminology and the beam application) · Riley, Hobson & Bence, Ch. 22. Every equation here is a standard calculus-of-variations result. The key checkpoints are: (1) the integration-by-parts split δJ=∫ab(Fy−dxFy′)η dx+[Fy′η]ab\delta J=\int_a^b(F_y-\mathrm{d}_xF_{y'})\eta\,\mathrm{d}x+[F_{y'}\eta]_a^b; (2) the higher-derivative boundary terms Fy′′=0F_{y''}=0 and ddxFy′′−Fy′=0\tfrac{\mathrm{d}}{\mathrm{d}x}F_{y''}-F_{y'}=0, giving the beam conditions EIy′′=0EI y''=0 and EIy′′′=0EI y'''=0, with tip deflection y(L)=wL4/(8EI)=2.5 mmy(L)=wL^4/(8EI)=2.5\ \mathrm{mm} for w=1000 N/mw=1000\ \mathrm{N/m}, L=2 mL=2\ \mathrm{m}, EI=8×105 N m2EI=8\times10^5\ \mathrm{N\,m^2}; (3) the transversality condition and its orthogonality reduction 1+ϕ′y′=01+\phi'y'=0 for F=1+y′2F=\sqrt{1+y'^2}. Material constants are symbolic; the numerical example is reproducible from the boxed formula.

Prerequisites. First Variation and Stationarity · Euler–Lagrange Equation · Fundamental Lemma of the Calculus of Variations · Functionals and Function Spaces. Leads to. Functionals of Several Functions and Higher Derivatives · Hamilton's Principle of Stationary Action · The Brachistochrone Problem · Geodesics as Variational Problems.

Ask the tutor: Hand me any functional and say which ends are pinned and which are free, and I will walk you through the integration by parts and the essential and natural conditions it forces — step by step.

What is the one-line difference between essential and natural conditions?

An essential condition is something you impose; a natural condition is something you derive. Essential (Dirichlet) conditions prescribe yy at an endpoint and are built into the admissible trial space, so every competing curve already obeys them and δy\delta y vanishes there. Natural (Neumann-type) conditions are not imposed: at a free endpoint the variation is arbitrary, so stationarity forces Fy′=0F_{y'}=0. Essential conditions constrain the function space, natural conditions constrain the variational equation, and each endpoint carries exactly one.

Why are they called "natural" conditions?

Because they arise naturally — automatically — from the variational principle, without being added by hand. When you integrate δJ\delta J by parts, the boundary term [Fy′ δy]ab[F_{y'}\,\delta y]_a^b appears on its own; at any free endpoint the requirement that it vanish for arbitrary δy\delta y forces Fy′=0F_{y'}=0 with no further input. The name became standard through Courant and Hilbert (natürliche Randbedingungen), and it carried into the finite element method, where "natural" conditions (fluxes, tractions) are enforced automatically by the weak form, unlike "essential" ones imposed on the trial space.

How many boundary conditions does my variational problem need?

Count the order of the Euler–Lagrange equation. A functional depending on y′y' gives a second-order equation needing two conditions, one per end; one depending up to y′′y'' gives a fourth-order equation needing four, two per end. The variation delivers exactly the right number automatically: each integration by parts exposes one boundary coefficient per end, and each is one datum you may prescribe (essential) or leave to the natural condition. If your count does not match the order of the equation, you have over- or under-specified it.

Can I trade a natural condition for an essential one?

Not freely — but you can reshape a natural condition by editing the functional. Adding a boundary energy g(y(b))g(y(b)) contributes g′(y(b)) δy(b)g'(y(b))\,\delta y(b), converting the natural condition Fy′=0F_{y'}=0 into the Robin condition Fy′+g′(y)=0F_{y'}+g'(y)=0, without changing the bulk equation. This is how an elastic support, surface tension, or the Gibbons–Hawking–York term in gravity enters. What you cannot do is impose an essential and the natural condition at the same end: prescribing yy already kills the boundary term via δy=0\delta y=0, so demanding Fy′=0F_{y'}=0 on top over-determines the problem.

What is transversality and when do I need it?

Transversality is the generalized natural condition you need when a free endpoint can move in xx as well as yy — when the terminal point must land on a target curve y=ϕ(x)y=\phi(x) rather than a fixed vertical line. The moving upper limit adds F δxbF\,\delta x_b to the boundary variation, giving F+(ϕ′−y′)Fy′=0F+(\phi'-y')F_{y'}=0 at the endpoint. For a vertical target it collapses to Fy′=0F_{y'}=0; for the arc-length integrand it says the extremal meets the target at a right angle. It is the calculus-of-variations ancestor of the terminal conditions in optimal control.

Is the essential/natural distinction just for one-dimensional problems?

No — it generalizes directly to fields in higher dimensions and is arguably more important there. For a functional over a region with boundary ∂Ω\partial\Omega, integration by parts becomes the divergence theorem and the boundary term is a surface integral over ∂Ω\partial\Omega. Prescribing the field on the boundary (essential/Dirichlet) makes the surface variation vanish; leaving it free forces a natural condition on the normal derivative or flux (Neumann). This is the structure of electrostatics (potential vs. surface charge), heat conduction (temperature vs. flux), and elasticity (displacement vs. traction) — the backbone of the finite element method in every dimension.

Before this

Where this leads