Functionals and Function Spaces

A function maps numbers to numbers; a functional maps whole functions to numbers. The arc length of a curve, the descent time of a bead, the action of a mechanical trajectory, and the bending energy of an elastic beam are each a single real number fixed by an entire profile y(x)y(x) — not by any one of its values. Writing such a quantity as J[y]J[y], with square brackets by long convention, signals that its argument is a function drawn from some admissible class A\mathcal{A}, and that JJ lives one storey above ordinary calculus. The calculus of variations is the systematic study of how J[y]J[y] responds when the whole curve yy is deformed, and of which curves make JJ stationary — the first variation, the Euler–Lagrange equation, and Hamilton's principle are all this one idea, differentiated. To do calculus on a functional we must first say two things the notation hides: which functions are allowed in, and how we measure when two of them are close. That is the job of the function space — a vector space of functions carrying a norm. The admissible class is almost always an affine slice of such a space: functions of a prescribed smoothness that also satisfy fixed endpoint data y(a)=yay(a)=y_a, y(b)=yby(b)=y_b. A deformation is then y+ϵηy+\epsilon\eta, and the test function η\eta must vanish wherever the data are pinned, so that y+ϵηy+\epsilon\eta stays admissible for every small ϵ\epsilon. Two choices in that setup do real physical work. The norm — weak (C0C^0, heights only) versus strong (C1C^1, heights and slopes) — decides which curves count as near and therefore which minima exist at all. And the split of boundary data into essential (built into A\mathcal{A}) and natural (falling out of stationarity) is entirely a statement about how the space was defined. The function space is not decoration; it is part of the problem.

Key takeaways
  • A functional is a map J:A→RJ:\mathcal{A}\to\mathbb{R} that eats an entire function and returns one real number — arc length, action, energy — with square brackets J[y]J[y] marking the functional dependence.
  • Its domain A\mathcal{A} is a function space: a vector space of functions of fixed smoothness and boundary data, carrying a norm so that "nearby function" has a precise meaning.
  • Most physical functionals are integrals J[y]=∫abF(x,y,y′) dxJ[y]=\int_a^b F(x,y,y')\,\mathrm{d}x; this local integral structure is exactly what makes JJ differentiable — you differentiate FF under the integral sign.
  • The functional derivative is a gradient in infinitely many directions: δJ/δy=Fy−ddxFy′\delta J/\delta y = F_y-\tfrac{\mathrm{d}}{\mathrm{d}x}F_{y'}, the Euler–Lagrange operator, and setting it to zero is ∇J=0\nabla J=0.
  • The norm chooses the minima: the sequence yn=1nsin⁡(n2x)y_n=\tfrac1n\sin(n^2x) is C0C^0-small (1/n→01/n\to0) yet C1C^1-large (slope n→∞n\to\infty), which is why weak and strong extrema differ.
  • Boundary data split into essential (imposed on A\mathcal{A}) and natural (emerging from δJ=0\delta J=0) — a distinction that lives entirely in how the space is built.
  • Key idea: a functional is a real-valued function whose domain is a space of functions; the calculus of variations is ordinary calculus done on that infinite-dimensional domain, with the norm deciding what "small change" and "minimum" even mean.
The core insight

A functional is a real-valued function whose domain is a space of functions; the calculus of variations is just ordinary calculus performed on that infinite-dimensional domain, with the choice of norm deciding what "small change" and "minimum" mean.

Where this lives today

The idea that a physical quantity is a functional, minimised over a function space, is load-bearing across modern computation and theory. The finite element method — the engine behind structural, aerodynamic, and electromagnetic simulation — is Volterra's discretisation heuristic made industrial: an energy functional is minimised over a finite-dimensional subspace of piecewise-polynomial shape functions, turning a PDE into a sparse linear system, with the choice of Sobolev space (H1H^1, H2H^2) fixing which elements are admissible. In quantum chemistry, density functional theory rests on the Hohenberg–Kohn theorem that the ground-state energy is a functional E[n]E[n] of the electron density alone; minimising it is how essentially every molecule and material is now computed (the 1998 Nobel Prize in Chemistry). In quantum field theory the action is a functional over a space of field configurations, and Feynman's path integral sums eiS[ϕ]/ℏe^{iS[\phi]/\hbar} across it; the same template drives optimal control, general relativity's Einstein–Hilbert action, and optimal transport. In every case the two questions this article insists on — which functions are admissible, and in what norm — separate a well-posed computation from a divergent one.

The physical picture

Think of an ordinary function f(x)f(x) as a machine: drop in a number, read off a number. A functional J[y]J[y] is a machine one storey higher: drop in a whole curve and read off a number. The arc-length machine swallows the entire shape of a path and returns its total length; the action machine swallows a trajectory and returns a number whose stationarity is Newton's law. The right mental image is a landscape over the space of admissible curves — each curve is a single point, its JJ-value is the height above it, and a physical solution sits at the bottom of a valley. The first figure makes that concrete: several competing curves through the same two endpoints, each mapped by the arc-length functional to one number on a line, with the straight segment sitting lowest.

Figure
Candidate paths sharing fixed endpoints each map to one number under the arc-length functional J = ∫√(1+y′²) dx. The straight line gives the least, J = √2 ≈ 1.41421; the downward-bowing parabola y = x² gives J ≈ 1.47894, about 4.6% longer. Stationarity selects the straight line — the valley floor of the functional
One functional, many curves → one number each: J maps a whole path to ℝ fixed endpoints A, B A B bowed up (longer) straight y = x² J[y] J larger ↑ 1.41421 straight (minimum) 1.47894 parabola y = x² 1.62 bowed-up arc (each curve → one height)

The second thing the picture must show is why the ruler matters. On a function space you can measure how far apart two curves are by their heights alone (the weak, C0C^0 norm) or by their heights and their slopes together (the strong, C1C^1 norm). These disagree violently: a curve can hug another in height while its slope thrashes wildly, so a functional that "sees" slope registers a large change where a height-only ruler sees almost none. The canonical witness is yn(x)=1nsin⁡(n2x)y_n(x)=\tfrac1n\sin(n^2x) — vanishingly small in height, enormous in slope. Whether your functional feels that wiggle is exactly what separates a weak extremum from a strong one, as the second figure shows.

Figure
Weak versus strong distance. The wiggle yₙ(x) = (1/n) sin(n²x) hugs the smooth reference y = 0 in height, ‖yₙ‖_C⁰ = 1/n → 0, yet its slope reaches ‖yₙ′‖ = n → ∞. At n = 10 the height is only 0.1 but the slope climbs to 10 — close in the C⁰ norm, far in the C¹ norm
Small in height, huge in slope: the norm decides what counts as close smooth reference y = 0 yₙ(x) = (1/n) sin(n²x), n = 10 height 1/n = 0.1 local slope reaches n = 10 ‖yₙ‖_C⁰ = 1/n → 0 (weak: close) ‖yₙ′‖ = n → ∞ (strong: far)

Admissibility encodes the physics in the same breath. Fixing y(a)y(a) and y(b)y(b) pins the endpoints of every allowed curve; demanding a continuous slope forbids kinks. Those constraints carve the admissible class A\mathcal{A} out of a larger space of functions, and any deformation must respect them — which is precisely why the test functions η\eta that build a variation vanish wherever the data are held fixed.

The core equations

A functional is defined by its type: it is a rule that assigns one real number to each function in an admissible class. The square brackets are not decoration — they warn the reader that the slot expects an entire function, not a point value.

J:A→R,y↦J[y](1)J:\mathcal{A}\to\mathbb{R},\qquad y\mapsto J[y] \qquad (1)

where: JJ — the functional, a real-valued map; A\mathcal{A} — the admissible class, a subset of a function space; yy — an admissible function, the argument of JJ; J[y]J[y] — the single real number assigned to yy. Reading: JJ is to functions what an ordinary function is to numbers, one level up. Nearly every functional in physics is local and integral: its value accumulates a density FF along the curve. The integrand depends on only three slots — the point, the height, and the slope — and this locality is exactly what makes the theory tractable.

J[y]=∫abF(x, y(x), y′(x)) dx(2)J[y]=\int_a^b F\big(x,\,y(x),\,y'(x)\big)\,\mathrm{d}x \qquad (2)

where: FF — the integrand or Lagrangian density, an ordinary function of three arguments; xx — the independent variable, x∈[a,b]x\in[a,b]; y(x)y(x) — the height at xx; y′(x)y'(x) — the slope dy/dx\mathrm{d}y/\mathrm{d}x. Reading: to differentiate JJ you differentiate FF under the integral sign — the infinite-dimensional problem collapses to ordinary partial derivatives of FF. The domain is not "all functions" but an affine slice: functions smooth enough for FF to make sense, obeying the prescribed endpoint data. Those pinned values are the essential boundary conditions.

A={ y∈C1[a,b]  :  y(a)=ya,  y(b)=yb }(3)\mathcal{A}=\{\,y\in C^1[a,b]\;:\;y(a)=y_a,\;y(b)=y_b\,\} \qquad (3)

where: C1[a,b]C^1[a,b] — functions with a continuous first derivative on [a,b][a,b]; ya, yby_a,\,y_b — prescribed endpoint values (essential boundary conditions). Reading: A\mathcal{A} is not a vector space (it does not contain 00 unless ya=yb=0y_a=y_b=0) but an affine translate of the space of variations that vanish at the ends. To measure proximity we need a norm, and the choice is physical, not cosmetic. The weak norm controls only heights; the strong norm controls heights and slopes together, a strictly finer topology.

∥y∥C0=max⁡x∈[a,b]∣y(x)∣,∥y∥C1=max⁡x∈[a,b]∣y(x)∣+max⁡x∈[a,b]∣y′(x)∣(4)\|y\|_{C^0}=\max_{x\in[a,b]}|y(x)|,\qquad \|y\|_{C^1}=\max_{x\in[a,b]}|y(x)|+\max_{x\in[a,b]}|y'(x)| \qquad (4)

where: ∥y∥C0\|y\|_{C^0} — the uniform (sup) norm, sensitive to height only; ∥y∥C1\|y\|_{C^1} — the strong norm, sensitive to height and slope. Reading: C1C^1-close implies C0C^0-close but never the reverse, which is the whole content of weak-versus-strong extrema. The derivative of a functional along a direction η\eta is the first variation, or Gateaux derivative — the infinite-dimensional analogue of a directional derivative. It is an ordinary ϵ\epsilon-derivative of the number-valued function ϵ↦J[y+ϵη]\epsilon\mapsto J[y+\epsilon\eta].

δJ[y;η]≡ddϵ J[y+ϵη]∣ϵ=0(5)\delta J[y;\eta]\equiv\left.\frac{\mathrm{d}}{\mathrm{d}\epsilon}\,J[y+\epsilon\eta]\right|_{\epsilon=0} \qquad (5)

where: δJ[y;η]\delta J[y;\eta] — the first variation of JJ at yy in the direction η\eta; η\eta — an admissible variation (test function) with η(a)=η(b)=0\eta(a)=\eta(b)=0 at fixed ends. Reading: stationarity means δJ[y;η]=0\delta J[y;\eta]=0 for every admissible η\eta, the infinite-dimensional statement "all directional derivatives vanish". Carrying (5) through the integral (2) and integrating by parts factors the variation into a single density times η\eta. Because η\eta is arbitrary, that density must vanish pointwise — the functional gradient.

δJ[y;η]=∫ab(Fy−ddxFy′)η dx    ⟹    δJδy=Fy−ddxFy′(6)\delta J[y;\eta]=\int_a^b\Big(F_y-\frac{\mathrm{d}}{\mathrm{d}x}F_{y'}\Big)\eta\,\mathrm{d}x\;\;\Longrightarrow\;\;\frac{\delta J}{\delta y}=F_y-\frac{\mathrm{d}}{\mathrm{d}x}F_{y'} \qquad (6)

where: Fy=∂F/∂yF_y=\partial F/\partial y, Fy′=∂F/∂y′F_{y'}=\partial F/\partial y' — partial derivatives of the density; δJ/δy\delta J/\delta y — the functional (variational) derivative. Reading: δJ/δy\delta J/\delta y is the gradient of JJ over function space, and setting it to zero is the Euler–Lagrange equation — the subject of the very next article.

The physics of it — three derivations

Derivation AThe first variation and the functional derivative

The goal is to turn the abstract map J[y]J[y] into something we can differentiate, and to show that its gradient is a single density — the Euler–Lagrange operator — sitting under the integral. We embed the curve in a one-parameter family, reduce JJ to an ordinary function of the parameter ϵ\epsilon, differentiate under the integral sign, integrate by parts to peel every derivative off the arbitrary variation η\eta, and invoke the fundamental lemma of the calculus of variations to turn "the integral vanishes for all η\eta" into "the density vanishes pointwise". The payoff: stationarity of an infinite-dimensional object becomes a single differential equation.

Step 1. Embed yy in the family yϵ(x)=y(x)+ϵ η(x)y_\epsilon(x)=y(x)+\epsilon\,\eta(x), where η∈C1\eta\in C^1 is a fixed test function with η(a)=η(b)=0\eta(a)=\eta(b)=0 so that yϵ∈Ay_\epsilon\in\mathcal{A} for every ϵ\epsilon. Why: a single real dial ϵ\epsilon now sweeps out a curve of admissible functions, so the functional becomes an ordinary function of ϵ\epsilon that we already know how to differentiate.

Step 2. Define Φ(ϵ)=J[yϵ]=∫abF(x, y+ϵη, y′+ϵη′) dx\Phi(\epsilon)=J[y_\epsilon]=\int_a^b F(x,\,y+\epsilon\eta,\,y'+\epsilon\eta')\,\mathrm{d}x. Because [a,b][a,b] is fixed and FF is smooth, we may differentiate under the integral sign. Why: the endpoints do not move with ϵ\epsilon, so d/dϵ\mathrm{d}/\mathrm{d}\epsilon passes inside the integral and only acts on the integrand.

Step 3. Apply the chain rule to FF in its height and slope slots, then set ϵ=0\epsilon=0:

δJ[y;η]=Φ′(0)=∫ab(Fy η+Fy′ η′) dx.\delta J[y;\eta]=\Phi'(0)=\int_a^b\big(F_y\,\eta+F_{y'}\,\eta'\big)\,\mathrm{d}x.

Why: only the height slot (y+ϵηy+\epsilon\eta) and the slope slot (y′+ϵη′y'+\epsilon\eta') carry ϵ\epsilon, contributing Fy ηF_y\,\eta and Fy′ η′F_{y'}\,\eta' respectively — this is the raw first variation.

Step 4. Integrate the second term by parts to move the derivative off η\eta:

∫abFy′ η′ dx=[Fy′ η]ab−∫abη ddxFy′ dx.\int_a^b F_{y'}\,\eta'\,\mathrm{d}x=\Big[F_{y'}\,\eta\Big]_a^b-\int_a^b\eta\,\frac{\mathrm{d}}{\mathrm{d}x}F_{y'}\,\mathrm{d}x.

The boundary term vanishes because η(a)=η(b)=0\eta(a)=\eta(b)=0. Why: with the variation off η′\eta' and onto Fy′F_{y'}, both surviving terms multiply the same undifferentiated η\eta, and we can factor it out.

Step 5. Collect terms into δJ[y;η]=∫ab(Fy−ddxFy′)η dx\displaystyle\delta J[y;\eta]=\int_a^b\Big(F_y-\frac{\mathrm{d}}{\mathrm{d}x}F_{y'}\Big)\eta\,\mathrm{d}x. If this vanishes for every admissible η\eta, the fundamental lemma forces the bracket to vanish identically, giving δJ/δy=Fy−ddxFy′=0\delta J/\delta y=F_y-\tfrac{\mathrm{d}}{\mathrm{d}x}F_{y'}=0. Why: a continuous function whose weighted integral against all smooth test weights is zero must itself be zero — this is what promotes an integral identity to a pointwise differential equation. *Verified: δJ/δy=Fy−ddxFy′\delta J/\delta y=F_y-\tfrac{\mathrm{d}}{\mathrm{d}x}F_{y'}, the Euler–Lagrange operator; consistent with Stone & Goldbart §1.2 and Gelfand & Fomin §3.*

Go deeper · Derivation B · 1 minFrom sampled function to functional — the discretisation heuristic
Derivation BFrom sampled function to functional — the discretisation heuristic

The aim is to demystify the functional derivative by exhibiting a functional as the continuum limit of an ordinary function of many variables, so that δJ/δy\delta J/\delta y is literally an infinite-dimensional gradient. We sample the curve on a grid of N+1N+1 points, replace the integral by a Riemann sum and slopes by finite differences, so JJ becomes an ordinary function of the interior samples. Differentiating with respect to one sample — which sits in one height slot and two neighbouring slope differences — and letting the grid spacing vanish, the bracketed difference becomes a derivative and the Euler–Lagrange operator emerges as the gradient component, the same object derived analytically above, now seen as ∇J\nabla J.

Step 1. Discretise the interval: xk=a+khx_k=a+kh with h=(b−a)/Nh=(b-a)/N and yk=y(xk)y_k=y(x_k), approximating slopes by forward differences yk′≈(yk+1−yk)/hy'_k\approx(y_{k+1}-y_k)/h. Why: replacing the curve by finitely many numbers turns the functional into a genuine multivariable function whose calculus is elementary.

Step 2. Approximate the integral by a Riemann sum,

J≈∑kF ⁣(xk, yk, yk+1−ykh)h,J\approx\sum_{k}F\!\left(x_k,\,y_k,\,\frac{y_{k+1}-y_k}{h}\right)h,

so JJ is now an ordinary function of the N−1N-1 free interior values y1,…,yN−1y_1,\dots,y_{N-1} (the endpoints are fixed data). Why: with endpoints pinned, only the interior samples are free — these are the coordinates of our finite-dimensional stand-in for function space.

Step 3. Differentiate with respect to one interior value. The sample yky_k appears in the height slot at xkx_k and inside the slope differences at xk−1x_{k-1} and xkx_k, giving

∂J∂yk=h Fy(xk,… )+[Fy′(xk−1,… )−Fy′(xk,… )].\frac{\partial J}{\partial y_k}=h\,F_y(x_k,\dots)+\Big[F_{y'}(x_{k-1},\dots)-F_{y'}(x_k,\dots)\Big].

Why: this is just the multivariable chain rule bookkeeping — the two bracketed terms are the fingerprints of the two neighbouring finite-difference slopes that contain yky_k.

Step 4. Divide by hh and let N→∞N\to\infty. The bracket is minus a forward difference of Fy′F_{y'}, so 1h[Fy′(xk−1)−Fy′(xk)]→−ddxFy′\tfrac1h[F_{y'}(x_{k-1})-F_{y'}(x_k)]\to-\tfrac{\mathrm{d}}{\mathrm{d}x}F_{y'}, leaving

1h∂J∂yk  → N→∞   δJδy(x)=Fy−ddxFy′.\frac{1}{h}\frac{\partial J}{\partial y_k}\;\xrightarrow{\,N\to\infty\,}\;\frac{\delta J}{\delta y(x)}=F_y-\frac{\mathrm{d}}{\mathrm{d}x}F_{y'}.

Why: the continuum limit converts a difference quotient of Fy′F_{y'} into its derivative, reproducing exactly the operator of the previous derivation and confirming that δJ/δy\delta J/\delta y is the gradient of JJ. *Verified: reduces to the Euler–Lagrange operator; the 1/h1/h scaling makes ∂J/∂yk\partial J/\partial y_k the discrete gradient whose limit is δJ/δy\delta J/\delta y; consistent with Stone & Goldbart §1.2.*

Go deeper · Derivation C · 1 minFirst variation of the arc-length functional
Derivation CFirst variation of the arc-length functional

The purpose is to run the general machinery on the oldest functional in geometry — the length of a curve — and watch it deliver the straight line as the unique stationary path, the geodesic of the plane. We take the arc-length density F=1+y′2F=\sqrt{1+y'^2}, note that it depends on slope alone, compute its single nonzero partial derivative, assemble the first variation, and integrate by parts. The vanishing boundary term (fixed endpoints) leaves a stationarity condition that forces the slope to be constant — and a curve of constant slope through two given points is the straight segment, closing the loop from abstract functional to concrete, checkable answer.

Step 1. Write the density F(x,y,y′)=1+y′2F(x,y,y')=\sqrt{1+y'^2}. It has no explicit xx or yy dependence, so Fy=0F_y=0. Why: length accumulates 1+y′2 dx=ds\sqrt{1+y'^2}\,\mathrm{d}x=\mathrm{d}s, which depends only on how steep the curve is, never on where it is — hence the height slot drops out.

Step 2. Differentiate in the slope slot: Fy′=y′1+y′2F_{y'}=\dfrac{y'}{\sqrt{1+y'^2}}. Why: this is the only surviving derivative, and it is exactly sin⁡θ\sin\theta where θ\theta is the tangent angle — a quantity the straight line will make constant.

Step 3. Assemble the first variation using the raw form from Derivation 1:

δJ[y;η]=∫ab(Fy η+Fy′ η′) dx=∫aby′ η′1+y′2 dx.\delta J[y;\eta]=\int_a^b\big(F_y\,\eta+F_{y'}\,\eta'\big)\,\mathrm{d}x=\int_a^b\frac{y'\,\eta'}{\sqrt{1+y'^2}}\,\mathrm{d}x.

Why: with Fy=0F_y=0 only the slope term remains, so length responds solely to how the variation changes the slope.

Step 4. Integrate by parts and impose fixed endpoints η(a)=η(b)=0\eta(a)=\eta(b)=0:

δJ=[y′η1+y′2]ab−∫abη ddx ⁣(y′1+y′2)dx=−∫abη ddx ⁣(y′1+y′2)dx.\delta J=\Big[\tfrac{y'\eta}{\sqrt{1+y'^2}}\Big]_a^b-\int_a^b\eta\,\frac{\mathrm{d}}{\mathrm{d}x}\!\Big(\frac{y'}{\sqrt{1+y'^2}}\Big)\mathrm{d}x=-\int_a^b\eta\,\frac{\mathrm{d}}{\mathrm{d}x}\!\Big(\frac{y'}{\sqrt{1+y'^2}}\Big)\mathrm{d}x.

Stationarity for all η\eta then forces ddx(y′/1+y′2)=0\tfrac{\mathrm{d}}{\mathrm{d}x}\big(y'/\sqrt{1+y'^2}\big)=0, so y′/1+y′2y'/\sqrt{1+y'^2} is constant, hence y′y' is constant — a straight line. Why: constant y′y' through two fixed points is a single segment, recovering the elementary fact that the shortest plane path is straight, now as a stationarity condition. *Verified: minimiser is the straight segment, the planar geodesic; Fy′=sin⁡θ=F_{y'}=\sin\theta= const is the geometric reading; cf. Riley–Hobson–Bence §22.2.*

Limiting cases

Specialising the general integral functional (2) recovers the household functionals of physics and pins down what each demands of its function space.

CaseResultMeaning
Arc lengthJ[y]=∫ab1+y′2 dxJ[y]=\int_a^b\sqrt{1+y'^2}\,\mathrm{d}xFF depends on slope only; minimisers are straight lines. Needs y∈C1y\in C^1.
Action of a particleS[q]=∫t1t2(12mq˙2−V(q)) dtS[q]=\int_{t_1}^{t_2}\big(\tfrac12 m\dot q^2-V(q)\big)\,\mathrm{d}tFF is the Lagrangian L(q,q˙,t)L(q,\dot q,t); stationarity is Newton's law via Hamilton's principle. Needs q∈C2q\in C^2.
Dirichlet energyJ[y]=12∫aby′2 dxJ[y]=\tfrac12\int_a^b y'^2\,\mathrm{d}xQuadratic functional; Euler–Lagrange equation y′′=0y''=0. Natural home is the Sobolev space H1H^1.
Beam bending energyE[y]=12∫abEI y′′2 dxE[y]=\tfrac12\int_a^b EI\,y''^2\,\mathrm{d}xSecond derivative enters; needs y∈C2y\in C^2 and the higher-derivative Euler–Lagrange operator.
Pointwise (degenerate)J[y]=y(c),   a<c<bJ[y]=y(c),\;\,a<c<bA valid linear functional that is not an integral — functionals need not be integrals.
Linear / Riesz formJ[y]=∫abw(x) y(x) dxJ[y]=\int_a^b w(x)\,y(x)\,\mathrm{d}xLinear in yy; the exception, since arc length and action are nonlinear in y′y'.
Several fieldsJ[y]=∫F(x,y1,…,yn,y1′,… ) dxJ[\mathbf{y}]=\int F(x,y_1,\dots,y_n,y_1',\dots)\,\mathrm{d}xOne Euler–Lagrange equation per component yiy_i — as for coordinates qi(t)q_i(t).

Worked examples

1 · Arc length picks the straight line (fully numerical)

Between the points (0,0)(0,0) and (1,1)(1,1), evaluate the arc-length functional J[y]=∫011+y′2 dxJ[y]=\int_0^1\sqrt{1+y'^2}\,\mathrm{d}x on the straight line y=xy=x and on the parabola y=x2y=x^2 (both admissible — both hit the endpoints), and confirm the straight line is shorter, as Derivation 3 predicts.

Step 1. Straight line y=xy=x, so y′=1y'=1 and the integrand is the constant 1+1=2\sqrt{1+1}=\sqrt2. Hence Jline=∫012 dx=2=1.41421J_{\text{line}}=\int_0^1\sqrt2\,\mathrm{d}x=\sqrt2=\mathbf{1.41421}, the ordinary Euclidean distance between the endpoints.

Step 2. Parabola y=x2y=x^2, so y′=2xy'=2x and Jpar=∫011+4x2 dxJ_{\text{par}}=\int_0^1\sqrt{1+4x^2}\,\mathrm{d}x. The antiderivative is x21+4x2+14arcsinh⁡(2x)\tfrac{x}{2}\sqrt{1+4x^2}+\tfrac14\operatorname{arcsinh}(2x); evaluating at x=1x=1 gives 125+14arcsinh⁡(2)=1.118034+0.360909=1.47894\tfrac12\sqrt5+\tfrac14\operatorname{arcsinh}(2)=1.118034+0.360909=\mathbf{1.47894}.

Step 3. Compare: the parabola is longer by 1.47894−1.41421=0.064731.47894-1.41421=0.06473, about 4.6%\mathbf{4.6\%}. This matches Derivation 3 — the straight line, the unique curve with y′=y'= const through these endpoints, is the minimising path, and every admissible competitor is strictly longer. The straight line wins: J = √2 ≈ 1.41421 versus 1.47894 for the parabola.

2 · Stationarity of the Dirichlet energy (first variation with numbers)

Take the Dirichlet energy J[y]=12∫01y′2 dxJ[y]=\tfrac12\int_0^1 y'^2\,\mathrm{d}x on A={y∈C1[0,1]:y(0)=0, y(1)=1}\mathcal{A}=\{y\in C^1[0,1]:y(0)=0,\,y(1)=1\}. Show that y(x)=xy(x)=x is stationary by computing the first variation in the direction η(x)=sin⁡πx\eta(x)=\sin\pi x, and confirm it is a minimum from the second-order term.

Step 1. The base value: with y=xy=x, y′=1y'=1, so J[x]=12∫011 dx=0.5J[x]=\tfrac12\int_0^1 1\,\mathrm{d}x=\mathbf{0.5}. The variation η=sin⁡πx\eta=\sin\pi x is admissible because η(0)=η(1)=0\eta(0)=\eta(1)=0, so y+ϵηy+\epsilon\eta stays in A\mathcal{A}.

Step 2. First variation from equation (5): δJ=∫01y′ η′ dx=∫01(1) (πcos⁡πx) dx=[sin⁡πx]01=sin⁡π−sin⁡0=0\delta J=\int_0^1 y'\,\eta'\,\mathrm{d}x=\int_0^1 (1)\,(\pi\cos\pi x)\,\mathrm{d}x=\big[\sin\pi x\big]_0^1=\sin\pi-\sin 0=\mathbf{0}. The directional derivative vanishes, so y=xy=x is stationary in this direction — and since Fy=0, Fy′=y′F_y=0,\,F_{y'}=y', the Euler–Lagrange equation y′′=0y''=0 confirms y=xy=x is stationary in every direction.

Step 3. Second-order term: expand fully, J[x+ϵη]=12∫01(1+ϵπcos⁡πx)2 dx=12[1+0+ϵ2π2 ⁣∫01cos⁡2πx dx]=0.5+π24ϵ2J[x+\epsilon\eta]=\tfrac12\int_0^1(1+\epsilon\pi\cos\pi x)^2\,\mathrm{d}x=\tfrac12\big[1+0+\epsilon^2\pi^2\!\int_0^1\cos^2\pi x\,\mathrm{d}x\big]=0.5+\tfrac{\pi^2}{4}\epsilon^2. The coefficient π2/4≈2.467\pi^2/4\approx\mathbf{2.467} is positive, so JJ curves upward in this direction — a genuine local minimum, not a saddle. δJ = 0 (stationary) and the second variation ½∫η′² = π²/4 · 2 > 0 confirms J[x] = 0.5 is a minimum.

Physics of the portrait

Behind the word functional stands the man who first made "a number that depends on an entire function" a legitimate mathematical object, and in doing so opened the door to function spaces and functional analysis.

Origins · 1 minVito Volterra and how this was discovered
VV
Vito Volterra
1860–1940 · founder of the theory of functionals and functional analysis

Vito Volterra, born in Ancona in 1860 into a poor Jewish family and a mathematical prodigy by his teens, gave the calculus of variations the object it had been using without naming. In a series of papers from 1887 he introduced what he called funzioni che dipendono da altre funzioni — functions of lines — quantities assigning a number to an entire curve or field. This was the birth of the functional as an object of study in its own right, not merely the integrand of a variational problem; Jacques Hadamard later coined the French term fonctionnelle for exactly Volterra's construction. Volterra pushed the analogy relentlessly: if a functional is a function of infinitely many variables (the values y(x)y(x) at every point), then it should have derivatives, differentials, and a Taylor expansion — and he built precisely that calculus, the direct ancestor of the functional derivative δJ/δy\delta J/\delta y. His ideas fed the twentieth-century abstraction of function spaces — Fréchet's metric spaces, Riesz's and Banach's normed spaces, and ultimately the Hilbert and Sobolev spaces that host modern variational analysis. A committed anti-fascist, Volterra refused Mussolini's loyalty oath in 1931 and was stripped of his chair; he died in Rome in 1940, but the object he named is now everywhere, from Lagrangian mechanics to quantum field theory.

History
1696
— Johann Bernoulli poses the brachistochrone, the first genuine variational problem
1744
— Euler's Methodus inveniendi systematises the search for extremal curves
1755
— the young Lagrange sends Euler the δ-algorithm, founding the calculus of variations
1887
— Volterra introduces functions of lines, the functional as an object of study
1906
— Fréchet's thesis abstracts metric and function spaces
1932
— Banach's Théorie des opérations linéaires codifies normed function spaces

Going further

Texts. Stone & Goldbart, Mathematics for Physics, Ch. 1 (Calculus of Variations) · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., Ch. 22 · Hassani, Mathematical Physics, Ch. 33 (Calculus of Variations) · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, 3rd ed., Ch. 22 · Gelfand & Fomin, Calculus of Variations, Ch. 1 · Courant & Hilbert, Methods of Mathematical Physics, Vol. 1, Ch. IV.

Provenance. The definition and integral form follow Stone & Goldbart Ch. 1, Arfken–Weber–Harris Ch. 22, and Hassani Ch. 33; the weak/strong topology discussion follows Gelfand & Fomin Ch. 1. A verifier should recompute: (1) the first variation δJ=∫(Fy−ddxFy′)η dx\delta J=\int(F_y-\tfrac{\mathrm{d}}{\mathrm{d}x}F_{y'})\eta\,\mathrm{d}x and the fundamental-lemma step; (2) the discretisation limit reproducing the Euler–Lagrange operator; (3) the arc-length variation giving y′=y'= const; (4) the numbers 2=1.41421\sqrt2=1.41421 and ∫011+4x2 dx=1.47894\int_0^1\sqrt{1+4x^2}\,\mathrm{d}x=1.47894 (≈4.6% longer); (5) the Dirichlet stationarity δJ=0\delta J=0 with second-order coefficient π2/4\pi^2/4; (6) the C0/C1C^0/C^1 witness yn=1nsin⁡(n2x)y_n=\tfrac1n\sin(n^2x) with sup 1/n1/n and slope sup nn. All results are standard textbook identities; no empirical constants are quoted.

Prerequisites. Multivariable calculus and partial derivatives · Riemann integration · Vector spaces and norms. Leads to. First Variation and Stationarity · The Euler–Lagrange Equation · Natural and Essential Boundary Conditions · Hamilton's Principle of Stationary Action.

Ask the tutor: ask me to vary any functional you like — arc length, the brachistochrone descent time, or a beam's bending energy — and I will walk you from δJ\delta J to its Euler–Lagrange equation step by step.

What is the difference between a function and a functional?

A function takes a number and returns a number: feed ff the input 33 and it hands back f(3)f(3). A functional takes an entire function and returns a number: feed the arc-length functional the whole curve y(x)y(x) and it hands back one length. The square brackets in J[y]J[y] are the flag — they announce that the slot expects a function, not a point. The distinction matters because the domain of a functional is an infinite-dimensional space of functions, so its calculus — the calculus of variations — is genuinely richer than ordinary calculus, even though it is built from the same chain rule.

Why do we bother with the function space and its norm — isn't the integrand enough?

No, and this is the deepest point of the subject. The same integrand FF can have a minimiser, a maximiser, a saddle, or nothing at all, depending on which functions you allow and how you measure closeness. Change the smoothness (does y′′y'' exist?), the boundary data (which endpoints are pinned?), or the norm (C0C^0 versus C1C^1), and the answer changes — a curve minimising length in the weak sense can fail to in the strong sense, because the strong topology admits nearby wild-slope competitors. So the function space is not scaffolding around the problem — it is half the problem.

What exactly is the first variation, and how is it like a derivative?

The first variation δJ[y;η]\delta J[y;\eta] is the directional derivative of JJ at the "point" yy in the "direction" η\eta: you form the ordinary function Φ(ϵ)=J[y+ϵη]\Phi(\epsilon)=J[y+\epsilon\eta] and take Φ′(0)\Phi'(0). It answers "how fast does the number JJ change as I nudge the whole curve yy along the shape η\eta?" Stationarity means every such directional derivative vanishes — δJ[y;η]=0\delta J[y;\eta]=0 for all admissible η\eta — which is the infinite-dimensional analogue of setting all partial derivatives of an ordinary function to zero. Integrating by parts collapses that infinite family of conditions into a single equation, the Euler–Lagrange equation.

What do "essential" and "natural" boundary conditions mean?

Essential boundary conditions are the ones you build into the admissible class A\mathcal{A} by hand — for example y(a)=yay(a)=y_a — and every admissible curve, and every variation, must respect them (which is why η\eta vanishes there). Natural boundary conditions are the ones you do not impose; instead they fall out of the stationarity calculation as the price of leaving an endpoint free. When you integrate by parts, the boundary term [Fy′η]ab[F_{y'}\eta]_a^b survives at a free end, and forcing it to vanish for arbitrary η(a)\eta(a) gives a condition like Fy′=0F_{y'}=0 there. Which conditions are essential and which are natural is decided entirely by how you defined the function space.

Is every functional an integral?

No — that is a useful misconception to shed early. Point evaluation J[y]=y(c)J[y]=y(c) assigns a real number to each function and is perfectly linear, yet it is not an integral of a smooth density; it is a distribution (a delta functional). Integral functionals dominate physics because most physical quantities accumulate a local density along the curve, and that local structure is exactly what makes the first variation computable by differentiating under the integral sign. But the definition of a functional asks only for a rule mapping functions to numbers, and non-integral functionals — point evaluations, suprema, boundary values — are genuine and occasionally important.

How does minimising over a function space connect to real computation?

Directly, through discretisation. The heuristic in Derivation 2 — sample the curve, turn the functional into an ordinary function of the samples, and minimise — is precisely the finite element method, the workhorse of engineering simulation. In practice you minimise the energy functional over a finite-dimensional subspace of simple shape functions (piecewise polynomials), converting a variational problem into an algebraic system a computer can solve; density functional theory does the same with the electron-density functional E[n]E[n]. Convergence as the grid refines is guaranteed by working in a complete function space (a Sobolev space), which is why completeness, not just the integrand, is part of the modern theory.

Where this leads