Lesson 20: Constructing a Field Theory from a Lagrangian

In the preceding lessons the Lagrangian and Hamiltonian formalisms were developed for systems possessing a finite number of degrees of freedom. The configuration of such a system at any instant is a point in a finite-dimensional manifold, and the dynamics are completely determined by a single function of the coordinates, velocities, and time. Many of the most important physical systems, however, are not of this kind. The electromagnetic field, the displacement field of an elastic solid, and the wave function of a quantum particle all require infinitely many degrees of freedom, where, at each event in spacetime, one must specify the value of one or more field variables. The purpose of the present lesson is to show how the Lagrangian apparatus already in hand extends, with only modest changes of language, to this continuum setting.

The central idea is simple. One begins with a discrete mechanical system whose Lagrangian is known, then imagines the number of degrees of freedom becoming larger and larger while the spacing between them becomes smaller and smaller. In the limit the discrete coordinates are replaced by a continuous field, the ordinary Lagrangian is replaced by an integral of a Lagrangian density, and the Euler–Lagrange equations become partial differential equations. Once that limit has been taken, the same variational principles, the same Noether correspondence between symmetries and conservation laws, and the same geometric language of configuration space and phase space continue to apply; only the dimension of the space has become infinite.

The sections that follow carry out this program in detail. We begin by extending a discrete system to a continuous one, thereby motivating the passage from a Lagrangian to a Lagrangian density. Classical field theory is then formulated in its own right, with the action principle written as an integral over a spacetime region. Two brief mathematical interludes introduce the d’Alembertian operator and the notion of a variational derivative, tools that make the subsequent calculations transparent. With these instruments in hand we return to the field equations, examine how coordinates and fields transform, and isolate the condition of invariance. The variation of the Lagrangian density under an infinitesimal transformation is computed, Noether’s theorem is stated for fields, and the associated conserved current is extracted. The lesson closes with a practical demonstration of how the entire apparatus is implemented in Mathematica.

Throughout, the emphasis remains on the geometric and variational ideas already familiar from finite-dimensional mechanics. The continuum limit does not replace those ideas; it merely supplies them with a larger arena in which to operate.

Extending a Discrete System to a Continuous System

Consider a chain of n particles, each of mass m, connected to its neighbors by identical springs of constant κ and unstretched length ℓ. Label the longitudinal displacement of the ith particle from its equilibrium position by l20_1.png. The ends of the chain are held fixed, so the boundary conditions are l20_2.png and l20_3.png

l20_4.gif

Figure 20.1: Discrete chain. Particles of mass $m$ are joined by springs of constant and unstretched length ℓ; the ends are held fixed.

The total kinetic energy is simply the sum of the individual contributions,

l20_5.png

(20.1

Exercise 20.1: Explain why the kinetic-energy sum may be extended from n to n+1.

The potential energy stored in the spring that joins particle i-1 to particle i is

l20_6.png

(20.2)

and the total potential energy of the chain is the sum of these terms. The Lagrangian of the discrete system is therefore

l20_7.png

(20.3)

The Euler–Lagrange equation for each interior coordinate yields the familiar nearest-neighbor difference equation

l20_8.png

(20.4)

Exercise 20.2: Derive the difference equation of motion from the discrete Lagrangian, showing each intermediate step.

To pass to the continuum, assign each spring a uniform cross-sectional area A, so that the volume of a single spring is l20_9.png. The mass density of the material is then l20_10.png. The spring constant may be expressed in terms of Young’s modulus ε,

l20_11.png

(20.5)

Substitution converts the discrete Lagrangian into a sum over volume elements,

l20_12.png

(20.6)

In the limit n->∞, ℓ->0 the sum becomes an integral over the volume of the string and the discrete index i is replaced by the continuous coordinate x. The integrand is the Lagrangian density

l20_13.png

(20.7)

so that

l20_14.png

(20.8)

The Euler–Lagrange equation derived from this density is the wave equation

l20_15.png

(20.9)

The coordinate x is no longer a dynamical variable; it has become a continuous label that replaces the discrete particle index.

l20_16.gif

Figure 20.2: Continuum limit. As the number of particles tends to infinity and the spacing tends to zero, the discrete chain becomes a continuous string whose motion is governed by the wave equation.

A New Look at Classical Field Theory

The fields encountered so far fall into three broad classes. A scalar field assigns a single number to each event; the mass density l20_17.png is an example. A vector field assigns a directed quantity; the velocity field l20_18.png is an example. A tensor field assigns a multilinear object; the strain tensor l20_19.png is an example. It is convenient to treat all of them on the same footing by collecting their independent components into a single list l20_20.png. In this notation one may write, for instance,

l20_21.png

(20.10)

Each l20_22.png is simply called a field component.

l20_23.gif

Figure 20.3: Scalar, vector, and tensor fields are collected into a single list of components l20_24.png so that a Lagrangian density may be written uniformly for all of them.

A classical field theory is completely specified once a function of these components and their derivatives is given. That function is the Lagrangian density already introduced in the continuum limit,

l20_25.png

(20.11)

The action whose stationary value determines the dynamics is the integral of the density over a spacetime region,

l20_26.png

(20.12)

The Euler–Lagrange equations that follow from δ S=0 are partial differential equations for the field components l20_27.png.

As a concrete illustration consider a single scalar field φ(x). Before the Lagrangian density for this field can be written, a modest enlargement of notation is required.

l20_28.gif

Figure 20.4: Action for a field. The dynamics are obtained by requiring the integral of the Lagrangian density over a spacetime region to be stationary.

Mathematical Interlude: The d’Alembertian Operator

The operator that plays the same role in Minkowski spacetime that the Laplacian plays in ordinary three-dimensional space is the d’Alembertian. In a local inertial frame it is written

l20_29.png

(20.13)

(The signature of l20_30.png is the one already adopted in the course.) The operator is applied to whatever scalar, vector, or tensor field follows it.

For the continuous string examined in the preceding section the wave equation becomes, after the identification l20_31.png),

l20_32.png

(20.14)

Thus the d’Alembertian converts the second-order system of ordinary differential equations that governed the discrete chain into a single covariant partial differential equation for the continuum field.

Exercise 20.3. Verify that the wave equation for the continuous string is identical to □ q=0 once the wave speed is expressed in terms of the material constants.

l20_33.gif

Figure 20.5: The d’Alembertian. The operator l20_34.png reduces in an inertial frame to the familiar wave operator; applied to the displacement field it yields the continuum wave equation.

Returning to Classical Fields

If the scalar field carries a mass parameter m, the simplest Lorentz-invariant Lagrangian density that is at most quadratic in the field and its first derivatives is

l20_35.png

(20.15)

In an inertial frame this expands to

l20_36.png

(20.16)

The constant m has the dimension of inverse length. The density is a Lorentz scalar by construction, and it is the unique choice of this degree of complexity that yields a linear field equation. More elaborate theories may require far more complicated densities; the sole criterion is that the resulting equations correctly describe the phenomena under study. When Lorentz invariance is not required, the density need not be a scalar.

The dynamics follow from the requirement that the action

l20_37.png

(20.17)

be stationary under an arbitrary variation l20_38.png that is differentiable and vanishes outside a bounded region. Expanding the variation and integrating by parts produces

l20_39.png

(20.18)

Because the variation is arbitrary, the coefficient of l20_40.png must vanish, yielding the Euler–Lagrange equation

l20_41.png

(20.19)

l20_42.png

(20.20)

and

l20_43.png

(20.21)

and the field equation becomes the Klein–Gordon equation

l20_44.png

(20.22)

l20_45.gif

Figure 20.6: Massive scalar field. Stationarity of the action constructed from the Lorentz-invariant density yields the Klein–Gordon equation.

Exercise 20.4. Verify that the given density is a Lorentz scalar and that its Euler–Lagrange equation is the Klein–Gordon equation.

Exercise 20.5. Carry out the integration by parts that converts the variation of the action into the Euler–Lagrange form.

An external disturbance is incorporated by adding a source term S(x) that does not depend on the field,

l20_46.png

(20.23)

Variation with respect to φ (but not with respect to S) then replaces the homogeneous Klein–Gordon equation by the inhomogeneous equation

l20_47.png

(20.24)

When the source is sinusoidal the equation is sometimes called the sine-Gordon equation.

The same density supplies a candidate energy density and energy current. In an inertial frame one may read off

l20_48.png

(20.25)

and

l20_49.png

(20.26)

Their four-divergence reduces, on shell, to

l20_50.png

(20.27)

If the source is independent of time the divergence vanishes identically. Gauss’s theorem then implies that the total energy contained in any large volume is constant, provided the field falls off sufficiently rapidly at spatial infinity. In this situation l20_51.png is the energy density and E is the energy flux: the rate of change of energy inside a volume equals the net flux through its boundary.

l20_52.gif

Figure 20.7: Energy balance. When the external source is independent of time the divergence of the energy current vanishes, so the total energy inside any large volume is constant.

Exercise 20.6. Show that the four-divergence of the energy current reduces to l20_53.png when the field equation is used.

More generally, any vector field l20_54.png that satisfies l20_55.png defines a conserved charge

l20_56.png

(20.28)

The integral may be rewritten as a surface integral over an arbitrary spacelike hypersurface,

l20_57.png

(20.29)

showing that Q is a Lorentz scalar. An analogous construction applied to a conserved tensor current of rank N yields a charge that transforms as a tensor of rank N-1.

Exercise 20.7. Rewrite the surface element l20_58.png in terms of the parametrization of an arbitrary hypersurface and confirm that Q is independent of that choice.

Finally, the canonical stress-energy tensor of any field theory is obtained by the same variational procedure. Given a Lagrangian density that may depend explicitly on the coordinates through an external source, we then write

l20_59.png

(20.30)

Its divergence vanishes whenever the fields satisfy their Euler–Lagrange equations, recovering the local conservation of four-momentum already established in Lesson 12.

Exercise 20.8. Prove that the charges computed by two observers on their respective constant-time slices are equal.

Exercise 20.9. Expand the total derivative of the Lagrangian density and identify the terms that cancel when the Euler–Lagrange equation holds.

Exercise 20.10. Complete the demonstration that l20_60.png is on shell.

l20_61.gif

Figure 20.8: Conserved charge. A divergenceless current defines a scalar charge that may be computed on any spacelike hypersurface.

Mathematical Interlude: Variational Derivatives

Given a Lagrangian density L that depends on the field components l20_62.png and their derivatives, the action is the integral

l20_63.png

(20.31)

An arbitrary variation of the fields produces a corresponding variation of the action that can be written

l20_64.png

(20.32)

The coefficient of the arbitrary variation l20_65.png is called the variational derivative of the action with respect to the field.

l20_66.gif

Figure 20.9: Variational derivative. The coefficient of an arbitrary field variation in the change of the action is the variational derivative; its vanishing is the field equation.

When the Lagrangian density depends on the field and its first and higher derivatives, the variational derivative is given by the Euler–Lagrange expression

l20_67.png

(20.33)

Stationarity of the action then requires that the variational derivative itself vanish,

l20_68.png

(20.34)

This is simply the field equation written in a compact notation that makes the parallel with ordinary mechanics transparent.

The existence of a variational principle of this form is the setting in which Noether’s theorem operates. As we have already discussed, Emmy Noether (1882–1935) completed the theorem in 1915; it establishes the precise correspondence between continuous symmetries of the action and conserved currents of the field theory. The variational derivative is the technical instrument that converts a symmetry of L into a divergenceless current.

l20_69.gif

Figure 20.10: Noether’s theorem. Continuous symmetries of the action are in one-to-one correspondence with conserved currents; the variational derivative is the tool that extracts the current.

Transformations of the Coordinates and Fields

A continuous transformation that carries one frame into another depends on a continuous parameter ε whose concrete meaning is fixed by the problem at hand. The transformed coordinates and the transformed field components are given by a pair of invertible functions

l20_70.png

(20.35)

This is simply the field equation written in a compact notation that makes the parallel with ordinary mechanics transparent.

This is simply the field equation written in a compact notation that makes the parallel with ordinary mechanics transparent.

This is simply the field equation written in a compact notation that makes the parallel with ordinary mechanics transparent.

and

l20_71.png

(20.36)

When the parameter vanishes both maps reduce to the identity,

l20_72.png

(20.37)

and

l20_73.png

(20.38)

l20_74.gif

Figure 20.11: Continuous transformation. Coordinates and field components are mapped by a pair of invertible functions that depend on a continuous parameter ε and reduce to the identity when ε=0.

A simple illustration is a planar rotation through an angle θ. The coordinate transformation is

l20_75.png

(20.39)

while a two-component field transforms by the same rotation matrix,

l20_76.png

(20.40)

The same pattern applies to any continuous family of transformations: the finite maps are determined by the infinitesimal generators obtained by differentiating with respect to the parameter at ε=0.

l20_77.gif

Figure 20.12: Planar rotation. Both the coordinates and a two-component field are rotated through the same angle θ.

Invariance

The action constructed from a Lagrangian density is

l20_78.png

(20.41)

The same density may be used to form the action in the transformed coordinates and fields,

l20_79.png

(20.42)

The action is said to be invariant under the continuous family of transformations if

l20_80.png

(20.43)

for every value of the parameter ε and for every field configuration. Equivalently, the derivative of the transformed action with respect to the parameter must vanish,

l20_81.png

(20.44)

Exercise 20.11. Show that invariance of the action is equivalent to the vanishing of dA'/dε, and that a pure divergence variation of the Lagrangian density is sufficient to guarantee this vanishing.

l20_82.gif

Figure 20.13: Invariance of the action. The numerical value of the action is the same in every frame related by the continuous family of transformations parametrized by ε.

An infinitesimal change in the parameter therefore produces

l20_83.png

(20.45)

where the variation of the density is

l20_84.png

(20.46)

A sufficient condition for this integral to vanish for arbitrary field configurations is that the variation of the density itself be a pure divergence,

l20_85.png

(20.47)

for some vector density l20_86.png. In that case the integral of δL reduces to a surface term that vanishes when the fields fall off sufficiently rapidly at the boundary of the region of integration.

l20_87.gif

Figure 20.13: Pure divergence. A variation of the Lagrangian density that is the four-divergence of a vector density integrates to a surface term and therefore leaves the action invariant.

The Variation of the Lagrangian Density

In many applications the vector density that appears in the pure-divergence condition takes the simple form

l20_88.png

(20.48)

It is useful to distinguish the Lagrangian density evaluated on the transformed fields from the density evaluated on the original fields. Write

l20_89.png

(20.49)

If these two functions are related by the Jacobian of the coordinate transformation,

l20_90.png

(20.50)

the Lagrangian density is said to transform as a scalar density. The determinant factor is frequently equal to unity, in which case the density itself is a scalar.

l20_91.gif

Figure 20.14: Scalar density. The transformed Lagrangian density differs from the original density only by the Jacobian determinant of the coordinate transformation.

l20_92.gif

Figure 20.15: Simple pure divergence. When the density transforms as a scalar density, the variation δ L reduces to the four-divergence of l20_93.png.

Exercise 20.12. For the planar rotation of the section Transformations of the Coordinates and Fields, verify that the Lagrangian density transforms as a scalar density.

Exercise 20.13. Compare the transformed action A'(ε) with the original action A. Show by a change of integration variable that their difference vanishes when the density transforms as a scalar density.

Exercise 20.14. Differentiate the scalar-density relation with respect to the parameter ε, holding the original coordinates fixed, and recover the pure-divergence expression for δ L.

Noether’s Theorem

Assume that the Lagrangian density transforms as a scalar density under a continuous family of transformations. The variation of the density may then be rearranged into the four-divergence of a current plus a term proportional to the variational derivative of the action,

l20_94.png

(20.51)

The current itself is given by

l20_95.png

(20.52)

Whenever the fields satisfy their field equations the variational derivative vanishes, and the current is divergenceless, giving us the familiar condition

l20_96.png

(20.53)

This is Noether’s theorem: every continuous symmetry of the action that leaves the Lagrangian density a scalar density produces a conserved current.

l20_97.gif

Figure 20.16: Noether current. The variation of a scalar-density Lagrangian rearranges into the four-divergence of a current plus a term that vanishes on shell.

l20_98.gif

Figure 20.17: Conservation on shell. When the field equations hold, the Noether current is divergenceless and the associated charge is constant in time.

Calculating the Current

In the great majority of applications the Lagrangian density transforms as a scalar density, so that the pure-divergence condition is satisfied. Moreover, the density ordinarily depends on the fields and their first derivatives alone. Under these restrictions the general expression for the Noether current collapses to

l20_99.png

(20.54)

The field variation l20_100.png is determined by the transformation laws for the coordinates and the fields. It is convenient to evaluate the current at the identity value ε=0, where the transformations reduce to the identity maps. Differentiating those maps with respect to the parameter and then setting the parameter to zero yields the explicit formula

l20_101.png

(20.55)

(The derivatives with respect to ε are understood to be evaluated at ε=0.)

Exercise 20.15. Starting from the simplified current and substituting the infinitesimal forms of the coordinate and field transformations, derive the explicit expression above.

l20_102.gif

Figure 20.18: Simplified Noether current. When the Lagrangian depends only on first derivatives and transforms as a scalar density, the current reduces to a compact expression involving L and the first variational derivative of the fields.

l20_103.gif

Figure 20.19: Evaluation at the identity. The current is computed by differentiating the finite transformation laws with respect to the parameter and then setting the parameter to zero.

Doing This Stuff in Mathematica

There are built-in variational method that we can use in Mathematica, but since we are working in spacetime they do not work. To proceed we must load up xAct.

l20_104.png

l20_105.png

l20_106.png

l20_107.png

l20_108.png

l20_109.png

l20_110.png

l20_111.png

l20_112.png

l20_113.png

l20_114.png

l20_115.png

Since we will need to vary the scalar field configuration, we also load up the perturbative package from xAct, called xPert.

l20_116.png

l20_117.png

l20_118.png

l20_119.png

l20_120.png

l20_121.png

l20_122.png

l20_123.png

l20_124.png

l20_125.png

l20_126.png

l20_127.png

We introduce a notation that will make some expressions readable to human beings.

l20_128.png

Then we define our spacetime manifold and the indices that we will set aside for out field equations.

l20_129.png

l20_130.png

l20_131.png

l20_132.png

We then define our symbols for the metric and the covariant derivatives, along with how these will be displayed.

l20_133.png

l20_134.png

l20_135.png

l20_136.png

l20_137.png

l20_138.png

l20_139.png

l20_140.png

l20_141.png

l20_142.png

l20_143.png

l20_144.png

l20_145.png

l20_146.png

l20_147.png

l20_148.png

l20_149.png

l20_150.png

l20_151.png

l20_152.png

l20_153.png

We next write out how the system will deal with perturbations of the metric.

l20_154.png

l20_155.png

l20_156.png

We also define how the system will display the perturbed metric.

l20_157.png

How does this work, here is an example of a first-order perturbation of the metric.

l20_158.png

l20_159.png

This is the symbol for a perturbation. We can see what it actually means by expanding the perturbation.

l20_160.png

l20_161.png

Not very impressive. Let’s say that for some unknown reason we need to display the metric perturbation to third order.

l20_162.png

l20_163.png

If we have an inverse metric, then we need to expand this.

l20_164.png

l20_165.png

We now define our field configuration.

l20_166.png

l20_167.png

We explain to Mathematica how to perturb the field.

l20_168.png

l20_169.png

Since it is a massive field, and the mass is constant, then we need to tell Mathematica it is a constant. If you do not do this you will get bizarre variational derivatives of the field with respect to the variation of the mass.

l20_170.png

l20_171.png

We write the Lagrangian from (1).

l20_172.png

l20_173.png

We now vary the Lagrangian.

l20_174.png

l20_175.png

We expand the variation.

l20_176.png

l20_177.png

We apply metric contractions.

l20_178.png

l20_179.png

We enforce symmetries.

l20_180.png

l20_181.png

We take the variational derivative of the Lagrangian with respect to the field variations.

l20_182.png

l20_183.png

We enforce the Kronecker deltas.

l20_184.png

l20_185.png

And now we have the equations of motion for our massive scalar field.

We can now add a source term.

Since the variation of the field has no effect on the source term, we will identify it as a constant for the purposes of the variational approach.

l20_186.png

l20_187.png

We then write the new Lagrangian.

l20_188.png

l20_189.png

We now vary the Lagrangian.

l20_190.png

l20_191.png

We take the variational derivative of the Lagrangian with respect to the field variations.

l20_192.png

l20_193.png

And now we have the sine-Gordon equation.

Further Reading

Kip S. Thorne, Roger D. Blandford, (2017), Modern Classical Physics, Princeton University Press

George E. Hrabovsky, (2023), Deriving a Field Theory from a Lagrangian, Midwest Relativity Meeting, University of Chicago, IL

Davison E. Soper, (1975), Classical Field Theory, Dover version published in 2008.

Created with the Wolfram Language