Variational derivatives and field Poisson brackets
A Hamiltonian field equation replaces the gradient of an ordinary function by the variational derivative of a functional. Integration by parts makes this replacement possible, but it also exposes boundary assumptions. We derive a periodic KdV equation from its Hamiltonian, test a variable-coefficient differential bracket, and show why a formal Hamiltonian representation does not by itself prove that a PDE has a well-posed evolution.
Required background. Integration by parts and the finite-dimensional rule from Poisson brackets and Hamiltonian flows.
Helpful background. Continuity equations and boundary flux distinguishes a local conservation identity from conservation of an integrated charge.
Functionals on a stated field space
Section titled “Functionals on a stated field space”Initially let be a real, smooth, periodic field of period . Variations are smooth and periodic too. A local functional has the form
where the explicit dependence is also periodic. The density depends on finitely many derivatives; “local” does not mean that the integral is concentrated at one spatial point.
The first variation is the linear functional
When integration by parts removes derivatives from , define the variational derivative by
For a local density,
The derivatives in this formula act on the entire coefficient to their right, including explicit dependence. The algebraic version treats densities modulo total derivatives; see De Sole, Kac and Valeri 2023, § 3, definition of the variational derivative. Here periodic integration supplies a concrete realization of that quotient.
Adding to a periodic density leaves its functional unchanged. Thus functional densities are not unique. Conversely, changing a density by a term that is only claimed to be a total derivative should be checked by differentiating it.
A squared derivative with a variable coefficient
Section titled “A squared derivative with a variable coefficient”Let be a prescribed smooth periodic function and a smooth function of one real variable. Consider
Direct differentiation gives
Before imposing any boundary condition, integration by parts gives
Periodicity cancels the boundary contribution, so
The term is essential. Treating the coefficient as a constant would vary a different functional.
On a finite interval with fixed endpoint values for , admissible variations satisfy , so the same bulk derivative is valid. With freely varying endpoints, the displayed boundary term remains part of the variation; stationary points must also obey the appropriate natural boundary conditions. A bulk Euler–Lagrange expression does not decide which endpoint problem was posed.
A differential operator defines a candidate bracket
Section titled “A differential operator defines a candidate bracket”For sufficiently regular local functionals, write . Let be a differential operator acting on periodic test functions and define
Our evolution convention is
The second formula follows by testing against arbitrary linear functionals with smooth periodic .
A necessary condition for antisymmetry is formal skew-adjointness:
Boundary terms must vanish in the chosen class. Skew-adjointness is not the Jacobi identity; both are needed for a Poisson bracket. The corresponding algebraic distinction is explicit in De Sole, Kac and Valeri 2023, § 2, discussion following equation (2.8).
That source writes the functional bracket in the opposite order and evolves an observable by placing the Hamiltonian first. We reverse both conventions. With identified with their Hamiltonian operator, the actual field equation is unchanged; see their § 4, equations (4.2), (4.4) and (4.5).
Why the constant operator passes Jacobi
Section titled “Why the constant operator passes Jacobi”The simplest example is . It is skew-adjoint on the circle:
It is also independent of the field . To see the significance of that fact, write the pairing as and let denote the linearization of . Equality of second variations makes formally self-adjoint. Differentiating the bracket yields
Hence
In the cyclic sum, the terms containing cancel because
and similarly for and . Thus Jacobi holds within the formal functional calculus.
This proof works for any fixed skew-adjoint operator on an admissible common class. If depends on , differentiating it produces additional terms, and the proof no longer applies without checking them. In distribution notation the constant example is sometimes written
where is the periodic delta distribution. Integrating this formula against two test functions reproduces ; the sign of the delta derivative is fixed by that test.
Worked example: the first Hamiltonian bracket of KdV
Section titled “Worked example: the first Hamiltonian bracket of KdV”Use dimensionless variables and choose
The variation is
Consequently,
or
This fixes the sign and scaling of the KdV equation on this page. The source’s alternative KdV normalization is stated in De Sole, Kac and Valeri 2023, § 4, equation (4.6) and the discussion after (4.7); its coefficients should not be imported without translating the field and Hamiltonian.
Three checks explain the construction.
First, is conserved along any sufficiently smooth periodic solution:
Second, the mass
has derivative and satisfies . It is a Casimir of this bracket, so it commutes with every admissible functional, not just this KdV Hamiltonian.
Third,
has and generates . Its flow is : translation of the argument. For the KdV Hamiltonian,
by periodic integration by parts. Unlike , is not a Casimir; it generates a nonzero motion.
These are consistency checks of a Hamiltonian representation. They do not yet produce the full KdV hierarchy, establish independent infinitely many charges, or reconstruct a solution from initial data.
A variable coefficient tests skew-adjointness
Section titled “A variable coefficient tests skew-adjointness”Suppose a proposed bracket uses . Its formal adjoint is
because differentiation also hits . Unless vanishes, is not skew-adjoint. In fact,
on the circle.
For a nonzero check, take period ,
With ,
A bracket of a functional with itself cannot equal in a Poisson algebra. Positivity of does not repair this failure.
The corrected fixed operator
satisfies . Since is prescribed independently of , the preceding Hessian argument also verifies formal Jacobi. Replacing by an arbitrary field-dependent coefficient is a different proposal and needs its own calculation.
A field-dependent bracket that can be straightened
Section titled “A field-dependent bracket that can be straightened”Take a smooth, strictly positive periodic field . In the operator
the coefficient depends on the field being varied. Put . For any differentiable local functional , the variation gives , where subscripts denote variational derivatives. Thus in the new coordinate the bracket becomes
This proves formal Jacobi by reduction to the constant bracket on the same periodic domain. It also recovers the term that is lost if is simply placed in front of a derivative. This is the one-component, nondegenerate case of straightening a first-order bracket of hydrodynamic type. Dubrovin and Novikov, §I, Eqs. (2)–(3), Theorem 1 and its corollary, PDF.
Two tests are available in the original variable. First, is a Casimir since . Second, choose
Then , so . Initial data evolve to on the circle. Reversing the direction of translation would give the wrong sign. Both the coordinate proof and this Hamiltonian use strict positivity.
For a numerical check at , apply using a centered difference on a uniform periodic grid. Comparing the velocity at each node with gives maximum errors of , and on 64, 128 and 256 nodes. The approximate factor of four per refinement checks the derivative used in the calculation. Download the calculation in Python.
What the formal calculation leaves open
Section titled “What the formal calculation leaves open”For smooth periodic fields, the integrations above are literal identities as long as the solution remains smooth. An analytic evolution theorem additionally needs a normed function space, a domain for the differential operator, existence, uniqueness, continuous dependence, and control of the lifespan. Conservation identities may help prove such results but do not supply them automatically.
Boundary conditions are equally substantive. On an interval, is not skew-adjoint on an unrestricted collection of test functions. Nor does a boundary condition that makes one Hamiltonian differentiable automatically make every functional bracket admissible. Operator domains and boundary conditions develops the analogous issue for linear spectral operators. The nonlinear hierarchies and reconstruction methods belong to Solitons and Nonlinear Waves.
Exercises
Section titled “Exercises”1. A fourth-order variational derivative
Section titled “1. A fourth-order variational derivative”On the circle, let
Find and the equation generated by .
Solution. Two integrations by parts give . Thus
The fourth derivative in has a plus sign because integration by parts was performed twice. Fourier modes also check it: has eigenvalue .
2. The boundary obstruction made numerical
Section titled “2. The boundary obstruction made numerical”On , apply the unrestricted candidate bracket with to
What fails?
Solution. Since and ,
Their sum is the endpoint term . The unrestricted proposal is not antisymmetric. The test is not periodic, so this does not contradict the circle calculation.
3. Verify the variable-coefficient variation
Section titled “3. Verify the variable-coefficient variation”Take , and on the circle. Evaluate explicitly.
Solution. Using and ,
Omitting would lose one term. An independent check is to differentiate at zero and compare with for several periodic test functions .
References
Section titled “References”- De Sole, Alberto, Victor G. Kac, and Daniele Valeri. “Poisson vertex algebras and Hamiltonian PDE.” Contribution to the second edition of Encyclopedia of Mathematical Physics, preprint version, 2023. arXiv:2306.09709v1. Versioned full text.
- Dubrovin, B. A., and S. P. Novikov. “Hamiltonian formalism of one-dimensional systems of hydrodynamic type, and the Bogolyubov–Whitham averaging method.” Doklady Akademii Nauk SSSR 270 (1983), 781–785. Journal record. Author’s English text, PDF.
Connected readings