Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    Variations, Functional Derivatives, and Boundaries

    A field can satisfy its bulk equation and still fail to make the action stationary. At a movable endpoint, a boundary force remains. The mathematical question is therefore more precise than “differentiate the action”: on which space of fields is the action defined, which directions are allowed, and in which space should its derivative live?

    We answer these questions for a scalar field fixed at one end of an interval and attached to a spring and an external drive at the other. The same calculation identifies the domain of its spatial operator and the boundary conditions on its linearized solutions. Those conditions will make the symplectic flux vanish in covariant phase space and Peierls brackets.

    Preparation: boundary terms and variational principles supplies the elementary boundary-force interpretation; self-adjoint operators and domains explains why a differential expression alone is not an operator. We use the mostly-minus scalar convention.

    A derivative needs a space of variations

    For a functional FF on a normed space XX, its directional derivative at uu in direction vv is

    DF[u](v)=ddϵF[u+ϵv]∣ϵ=0.DF[u](v)=\left.\frac{d}{d\epsilon}F[u+\epsilon v]\right|_{\epsilon=0}.

    A Fréchet derivative is a bounded linear functional satisfying the stronger remainder estimate

    F[u+v]=F[u]+DF[u](v)+o(∥v∥X).F[u+v]=F[u]+DF[u](v)+o(\lVert v\rVert_X).

    A directional derivative by itself need not have this uniform control. In the quadratic examples below the remainder is explicitly quadratic, so the distinction can be checked rather than assumed.

    The notation δF/δu(x)\delta F/\delta u(x) often denotes a density representing DF[u]DF[u] after integration against v(x)v(x). Such a density depends on the pairing and on the allowed variations. A derivative may be continuous on H1H^1 while having no L2L^2 representative. Boundary evaluation is the simplest example.

    Let L>0L>0, m2≥0m^2\geq0, and κ≥0\kappa\geq0. At a fixed time set

    V={u∈H1(0,L):u(0)=0},V=\{u\in H^1(0,L):u(0)=0\},

    and define the quadratic form and potential energy

    aκ[u,v]=∫0L(u′v′+m2uv) dx+κu(L)v(L),Uj[u]=12aκ[u,u]−j u(L).\begin{aligned} a_\kappa[u,v]&=\int_0^L(u'v'+m^2uv)\,dx +\kappa u(L)v(L),\\ \mathcal U_j[u]&=\frac12a_\kappa[u,u]-j\,u(L). \end{aligned}

    The endpoint trace is continuous on VV: the fundamental theorem of calculus and Cauchy–Schwarz give

    ∣v(L)∣≤L ∥v′∥L2.|v(L)|\leq\sqrt L\,\lVert v'\rVert_{L^2}.

    Consequently DUj[u]D\mathcal U_j[u] is an element of V∗V^* for every u∈Vu\in V, with

    DUj[u](v)=aκ[u,v]−jv(L).D\mathcal U_j[u](v)=a_\kappa[u,v]-jv(L).

    Its remainder is aκ[v,v]/2a_\kappa[v,v]/2, bounded by a constant times ∥v∥H12\lVert v\rVert_{H^1}^2. Thus this is a Fréchet derivative on VV even before any natural boundary equation is imposed.

    For u∈H2(0,L)u\in H^2(0,L), integration by parts rewrites it as

    DUj[u](v)=∫0L(−u′′+m2u)v dx+[u′(L)+κu(L)−j]v(L).D\mathcal U_j[u](v)= \int_0^L(-u''+m^2u)v\,dx +\bigl[u'(L)+\kappa u(L)-j\bigr]v(L).

    The last term cannot be represented by an L2L^2 function unless its coefficient vanishes. It is a boundary trace functional. Writing only the bulk density loses part of the derivative whenever the right endpoint is free to vary.

    The mixed boundary action

    On a time slab [t−,t+]×[0,L][t_-,t_+]\times[0,L], use

    S[ϕ]=12∫t−t+dt∫0Ldx (ϕ˙2−ϕx2−m2ϕ2)+∫t−t+dt [j(t)ϕ(t,L)−κ2ϕ(t,L)2].\begin{aligned} S[\phi]={}&\frac12\int_{t_-}^{t_+}dt\int_0^Ldx\, \bigl(\dot\phi^2-\phi_x^2-m^2\phi^2\bigr)\\ &+\int_{t_-}^{t_+}dt\, \left[j(t)\phi(t,L)-\frac\kappa2\phi(t,L)^2\right]. \end{aligned}

    The prescribed drive j(t)j(t) is not varied. Impose the essential boundary condition ϕ(t,0)=0\phi(t,0)=0. Initially take smooth histories and variations η\eta satisfying η(t,0)=0\eta(t,0)=0; to derive stationary equations, also set η=0\eta=0 at the initial and final times. The right endpoint value of η\eta is arbitrary. In particular, we do not impose a Robin condition on these off-shell variations before varying the action.

    Differentiation before integrating by parts gives

    DS[ϕ](η)=∫dt dx (ϕ˙η˙−ϕxηx−m2ϕη)+∫dt [j−κϕ(L)]η(L).\begin{aligned} DS[\phi](\eta)={}&\int dt\,dx\, (\dot\phi\dot\eta-\phi_x\eta_x-m^2\phi\eta)\\ &+\int dt\,[j-\kappa\phi(L)]\eta(L). \end{aligned}

    Write L=∂t2−∂x2+m2\mathcal L=\partial_t^2-\partial_x^2+m^2. Keeping the time caps visible, the same derivative is

    DS[ϕ](η)=−∫dt dx (Lϕ)η+[∫0Lϕ˙η dx]t−t++∫dt [j−ϕx(L)−κϕ(L)]η(L).\begin{aligned} DS[\phi](\eta)={}&-\int dt\,dx\,(\mathcal L\phi)\eta +\left[\int_0^L\dot\phi\eta\,dx\right]_{t_-}^{t_+}\\ &+\int dt\,[j-\phi_x(L)-\kappa\phi(L)]\eta(L). \end{aligned}

    The signs follow directly from the negative spatial-gradient term. Interior variations imply the field equation; independently varying the right boundary then gives

    Lϕ=0,ϕ(t,0)=0,ϕx(t,L)+κϕ(t,L)=j(t).\boxed{ \mathcal L\phi=0,\qquad \phi(t,0)=0,\qquad \phi_x(t,L)+\kappa\phi(t,L)=j(t). }

    Thus the boundary action supplies exactly the spring force and drive needed for the selected problem. If the right endpoint were also fixed, its variation would vanish and stationarity would not imply this Robin equation. Essential boundary data and natural boundary equations play different roles.

    For the local bulk Lagrangian the corresponding spacetime identity is

    δL=−(□+m2)ϕ δϕ+∂μθμ,θμ=∂μϕ δϕ.\delta\mathscr L=-(\Box+m^2)\phi\,\delta\phi +\partial_\mu\theta^\mu, \qquad \theta^\mu=\partial^\mu\phi\,\delta\phi.

    The distinction between a bulk variation, boundary action and time-cap term is developed systematically in Harlow and Wu, §2.2, Eqs. (25)–(31). Their metric signature is opposite to ours; translating their scalar kinetic term gives the action above. Their general boundary analysis also permits corner contributions. Our simple boundary potential has no tangential derivatives and requires no such extra term.

    From the energy form to an operator domain

    For fluctuations at fixed jj, define the homogeneous spatial operator

    Hκu=−u′′+m2u,D(Hκ)={u∈H2(0,L):u(0)=0, u′(L)+κu(L)=0}.\begin{aligned} H_\kappa u&=-u''+m^2u,\\ D(H_\kappa)&=\{u\in H^2(0,L): u(0)=0,\ u'(L)+\kappa u(L)=0\}. \end{aligned}

    The form domain VV is larger than this operator domain. To see how the latter arises, ask for those u∈Vu\in V for which there exists h∈L2h\in L^2 such that

    aκ[u,v]=∫0Lhv dxfor every v∈V.a_\kappa[u,v]=\int_0^Lhv\,dx \quad\hbox{for every }v\in V.

    Testing first with compactly supported vv gives −u′′+m2u=h-u''+m^2u=h weakly, hence u∈H2u\in H^2 in one dimension. The remaining boundary term gives u′(L)+κu(L)=0u'(L)+\kappa u(L)=0. This recovers precisely D(Hκ)D(H_\kappa) and h=Hκuh=H_\kappa u.

    For real smooth u,vu,v the Green identity is

    ⟨u,Hκv⟩−⟨Hκu,v⟩=[u′v−uv′]0L.\langle u,H_\kappa v\rangle- \langle H_\kappa u,v\rangle =\bigl[u'v-uv'\bigr]_0^L.

    Both endpoint terms vanish on the stated domain. This proves symmetry; self-adjointness needs the converse domain statement as well. If vv lies in the adjoint domain, interior test functions again imply v∈H2v\in H^2. In the boundary form, u′(0)u'(0) and u(L)u(L) can be chosen independently among u∈D(Hκ)u\in D(H_\kappa). Their coefficients force v(0)=0v(0)=0 and v′(L)+κv(L)=0v'(L)+\kappa v(L)=0. Thus the adjoint has the same domain. For complex functions, insert the complex conjugate on the first entry of the pairing.

    The form is positive and closed. For example, u(x)=∫0xu′(s)dsu(x)=\int_0^x u'(s)ds gives

    ∥u∥L22≤L22∥u′∥L22,aκ[u,u]≥∥u′∥L22.\lVert u\rVert_{L^2}^2\leq\frac{L^2}{2}\lVert u'\rVert_{L^2}^2, \qquad a_\kappa[u,u]\geq\lVert u'\rVert_{L^2}^2.

    These inequalities make the form norm equivalent to the H1H^1 norm on VV and exclude a zero mode even at m=0m=0. The compact embedding of VV into L2L^2 then gives a discrete complete spatial eigenbasis. This positive spatial operator determines the wave evolution.

    To see what the boundary term stores, return to the energy of an endpoint spring. There both ends carry springs. The outward derivatives have opposite signs at the two ends, and the energy in the springs accounts for the change in the bulk energy of a standing wave.

    Second variation and linearized boundary data

    Because the scalar model is quadratic, its Hessian is independent of the background. For variations ξ,η\xi,\eta with the essential and time-cap conditions,

    B(ξ,η)=∫dt dx (ξ˙η˙−ξxηx−m2ξη)−κ∫dt ξ(L)η(L).B(\xi,\eta)=\int dt\,dx\, (\dot\xi\dot\eta-\xi_x\eta_x-m^2\xi\eta) -\kappa\int dt\,\xi(L)\eta(L).

    This is a symmetric bilinear form on the allowed form directions. Integration by parts in the second argument gives

    B(ξ,η)=−∫dt dx ξLη−∫dt ξ(L)[ηx(L)+κη(L)].B(\xi,\eta)= -\int dt\,dx\,\xi\mathcal L\eta -\int dt\,\xi(L)[\eta_x(L)+\kappa\eta(L)].

    The differential expression representing the bulk Hessian is −L-\mathcal L, not +L+\mathcal L. The homogeneous Robin condition removes its right boundary term when passing to the corresponding operator domain.

    A tangent vector uu to the space of solutions obeys more conditions than an arbitrary off-shell variation: differentiating both the field equation and the boundary equation at fixed jj yields

    Lu=0,u(t,0)=0,ux(t,L)+κu(t,L)=0.\mathcal L u=0,\qquad u(t,0)=0, \qquad u_x(t,L)+\kappa u(t,L)=0.

    Such solution tangents need not vanish at initial and final times. Fixing those caps was useful for the stationary-action argument; it is not part of the covariant phase space. This distinction prevents us from accidentally discarding the initial-data degrees of freedom.

    Worked example: a static drive and a normal mode

    Set m=0m=0 and let j(t)=j0j(t)=j_0 be constant. The stationary solution is linear:

    ϕ∗(x)=j0x1+κL.\phi_*(x)=\frac{j_0x}{1+\kappa L}.

    For a fluctuation u∈Vu\in V, the linear term in its shifted energy vanishes because ϕ∗\phi_* satisfies the boundary equation. Explicitly,

    Uj0[ϕ∗+u]=−j02L2(1+κL)+12aκ[u,u].\mathcal U_{j_0}[\phi_*+u] =-\frac{j_0^2L}{2(1+\kappa L)} +\frac12a_\kappa[u,u].

    The static configuration is therefore the unique minimum of this driven potential energy. Its negative value records the work convention implicit in the term −j0ϕ(L)-j_0\phi(L); the positive fluctuation form determines stability.

    For any mass, write a separated fluctuation as u(t,x)=q(t)e(x)u(t,x)=q(t)e(x), with e(x)e(x) proportional to sin⁡(kx)\sin(kx). Its spatial boundary equation and time equation are

    kcos⁡(kL)+κsin⁡(kL)=0,q¨+(k2+m2)q=0.k\cos(kL)+\kappa\sin(kL)=0, \qquad \ddot q+(k^2+m^2)q=0.

    The first displayed equation has a spurious zero at k=0k=0 if one forgets that sin⁡(kx)\sin(kx) itself then vanishes. The nonzero limiting solution is xx, and its boundary equation is 1+κL=01+\kappa L=0, excluded here. Equivalently use the regular determinant

    cos⁡(kL)+κsin⁡(kL)k,whose value at k=0 is 1+κL.\cos(kL)+\kappa\frac{\sin(kL)}{k}, \qquad \hbox{whose value at }k=0\hbox{ is }1+\kappa L.

    An explicit normalized mode is available at L=1L=1 and κ=3π/4\kappa=3\pi/4:

    k0=3π4,e0(x)=sin⁡(k0x)12+13π,∫01e02 dx=1.k_0=\frac{3\pi}{4},\qquad e_0(x)=\frac{\sin(k_0x)}{\sqrt{\frac12+\frac{1}{3\pi}}}, \qquad \int_0^1 e_0^2\,dx=1.

    Since cos⁡k0=−sin⁡k0\cos k_0=-\sin k_0, the Robin equation holds. This mode will turn the Peierls calculation into a completely specified forced oscillator. The companion examples/mathematical-methods/symplectic-methods/boundary-peierls.py checks the boundary variation, Hessian, energy completion and mode normalization symbolically.

    Total derivatives and the chosen problem

    Adding a total spatial derivative changes no interior Euler–Lagrange equation. It can nevertheless change the natural boundary equation. For constant α\alpha, add

    ΔS=∫dt∫0Ldx ∂x(α2ϕ2)=α2∫dt ϕ(L)2,\Delta S=\int dt\int_0^Ldx\, \partial_x\left(\frac\alpha2\phi^2\right) =\frac\alpha2\int dt\,\phi(L)^2,

    where the left contribution vanishes by the essential condition. Its variation is α∫ϕ(L)η(L)dt\alpha\int\phi(L)\eta(L)dt. Without a compensating boundary term, the Robin coefficient becomes κ−α\kappa-\alpha.

    If we instead subtract the same endpoint functional from the boundary action, the total action and variational problem are unchanged. If both endpoint values were fixed, the added functional would have zero variation on that restricted class, even though its numerical value need not vanish. These are different reasons for retaining the same stationary equations. The accounting of bulk and boundary terms in Harlow and Wu, §2.2, Eqs. (25)–(30) makes this distinction explicit.

    Summary

    A functional derivative belongs to the dual of a specified variation space. Integration by parts exposes whether it also has a bulk L2L^2 representative. In the mixed scalar problem, the endpoint potential produces the driven Robin equation; the homogeneous Robin condition then appears in the spatial operator domain and in solution tangents. The form Hessian is symmetric before imposing that operator domain, while its bulk differential expression carries the Lorentzian sign −L-\mathcal L. These distinctions are exactly what the subsequent symplectic and Green-function constructions need.

    Exercises

    1. Why a boundary derivative is not an L2L^2 density. Construct vϵ∈Vv_\epsilon\in V with vϵ(L)=1v_\epsilon(L)=1 but ∥vϵ∥L2→0\lVert v_\epsilon\rVert_{L^2}\to0. Use this to show that the functional v↦v(L)v\mapsto v(L) has no L2L^2 representative.

    Solution

    For 0<ϵ<L0<\epsilon<L, take the piecewise linear function that vanishes on [0,L−ϵ][0,L-\epsilon] and equals (x−L+ϵ)/ϵ(x-L+\epsilon)/\epsilon on the remaining interval. It belongs to H1H^1, has the required endpoint value, and

    ∥vϵ∥L22=ϵ3.\lVert v_\epsilon\rVert_{L^2}^2=\frac\epsilon3.

    If v(L)=∫hv dxv(L)=\int hv\,dx for some h∈L2h\in L^2, Cauchy–Schwarz would give

    1≤∥h∥L2ϵ/3,1\leq\lVert h\rVert_{L^2}\sqrt{\epsilon/3},

    a contradiction as ϵ→0\epsilon\to0. There is no contradiction with continuity on VV: the derivatives of these functions have norm ϵ−1/2\epsilon^{-1/2}, so their H1H^1 norms do not tend to zero.

    2. Energy supplied by the drive. For a smooth solution with time-dependent j(t)j(t), differentiate the bulk-plus-spring energy. Compare it with the Hamiltonian that includes the source term −j(t)ϕ(L)-j(t)\phi(L).

    Solution

    Define

    E(t)=12∫0L(ϕ˙2+ϕx2+m2ϕ2)dx+κ2ϕ(L)2.E(t)=\frac12\int_0^L(\dot\phi^2+\phi_x^2+m^2\phi^2)dx +\frac\kappa2\phi(L)^2.

    Use ϕ¨=ϕxx−m2ϕ\ddot\phi=\phi_{xx}-m^2\phi and integrate the spatial derivative once. The left contribution vanishes since ϕ˙(t,0)=0\dot\phi(t,0)=0. The right contribution is

    E˙=[ϕx(L)+κϕ(L)]ϕ˙(L)=j(t)ϕ˙(L).\dot E=[\phi_x(L)+\kappa\phi(L)]\dot\phi(L) =j(t)\dot\phi(L).

    Thus the endpoint drive supplies force times velocity. For Hj=E−jϕ(L)H_j=E-j\phi(L),

    dHjdt=−j˙ ϕ(L).\frac{dH_j}{dt}=-\dot j\,\phi(L).

    At constant jj, this source-inclusive Hamiltonian is conserved. A time-dependent prescribed drive can change energy while the solution tangents still obey homogeneous Robin data, because those tangents keep jj fixed.

    3. The boundary can create an instability. Now allow negative κ\kappa, set m=0m=0, and keep the left Dirichlet condition. Locate the value where a zero mode appears. Show that κ<−1/L\kappa<-1/L gives a negative spatial eigenvalue and explain the corresponding time dependence.

    Solution

    A zero mode solves u′′=0u''=0 and u(0)=0u(0)=0, so u=axu=ax. The right condition becomes a(1+κL)=0a(1+\kappa L)=0. A nonzero mode therefore appears at κ=−1/L\kappa=-1/L.

    For κ<−1/L\kappa<-1/L, use u=xu=x as a form-domain trial function:

    aκ[x,x]=L+κL2<0.a_\kappa[x,x]=L+\kappa L^2<0.

    The Robin form on a bounded interval remains closed and bounded below for each fixed real κ\kappa: the trace estimate ∣u(L)∣2≤ε∥u′∥2+Cε∥u∥2|u(L)|^2\leq\varepsilon\lVert u'\rVert^2+C_\varepsilon\lVert u\rVert^2 absorbs any fixed negative boundary coefficient. Its self-adjoint operator has compact resolvent. The variational principle therefore gives at least one eigenvalue λ<0\lambda<0. The associated wave amplitude satisfies q¨+λq=0\ddot q+\lambda q=0 and contains a growing solution e−λ te^{\sqrt{-\lambda}\,t}. Here the trial function proves a genuine negative mode; merely losing a convenient positive bound would not have sufficed.

    References

    • D. Harlow and J.-Q. Wu, Covariant phase space with boundaries, JHEP 10 (2020) 146, arXiv:1906.08616v4. See §2.2, Eqs. (25)–(37), for bulk, boundary and corner variations, and §3.2, Eqs. (73)–(83), for the scalar example. Their spacetime signature and symplectic-form sign are translated explicitly in this article and its Peierls continuation.

    Scrollable formula. Use Left and Right arrow keys to reveal hidden content.

    Scrollable table. Use Left and Right arrow keys to reveal hidden columns.

    Scrollable figure. Use Left and Right arrow keys to reveal hidden content.