So far we have considered
where the value of y(a) and y(b) were fixed. What happens if we allow the value at the endpoints to vary as well?
Let’s look at the simplest case: we once again want to find a function y such that
δI[y] = δ{\mathop{\mathop{\mathop{∫
}\nolimits }}\nolimits }_{a}^{b}dx\kern 1.66702pt F(y,y',x) = 0
| (5.9) |
where a, b, y(a) are fixed but we allow y(b) to vary.
In the integration by parts we can now no longer show that the boundary terms are zero, so we need to work through the algebra again to see what happens. As before we make the substitution y(x) → y(x) + ϵ(x) and expand to first order in ϵ with ϵ(a) = 0, but without a boundary condition for ϵ(b). Using the techniques employed before, we find
where we have applied the boundary condition ϵ(a) = 0 in the last line. From the integral we still get the the Euler-Lagrange equation,
{∂F\over
∂y(x)} − {d\over
dx} {∂F\over
∂y'(x)} = 0,
|
but from the boundary term we get an additional equation,
{
\left .{∂F\over
∂y'} \right |}_{x=b} = 0.
| (5.10) |
Example 5.5:
What is the shortest time for a particle to slide along a frictionless wire under the influence of gravity from (x,y) = (0,0) to x = {x}_{f} for arbitrary {y}_{f}? (A variation on the brachistochrone.)
Solution:
From the brachistochrone problem we know that for
and that the Euler-Lagrange equation has the first integral
The solution is still a cycloid,
which indeed passes through (0,0) for ϕ = 0. Now for an extremum of the travel time, we have the additional condition
We conclude y'({x}_{f}) = 0, i.e., the cycloid is horizontal at x = {x}_{f}. This occurs when
i.e., when ϕ = π. In that case we can find R from
and thus R = {x}_{f}∕π. Finally, y({x}_{f}) = 2{x}_{f}∕π.
We often encounter functionals of several functions {y}_{1},{y}_{2},\mathop{\mathop{…}},{y}_{n} of the form
I[\{{y}_{i}\}] ={\mathop{ \mathop{\mathop{∫
}\nolimits }}\nolimits }_{a}^{b}dx\kern 1.66702pt F(\{{y}_{
i}(x),{y'}_{i}(x)\},x),\qquad i = 1,2,\mathop{\mathop{…}},N.
| (5.11) |
We now look for stationary points with respect to all {y}_{i}, again keeping the functions at the endpoints fixed. Generalising the usual technique for partial derivatives to functional ones, i.e., varying each function in turn keeping all others fixed, we find
The usual integration-by-parts technique thus leads to N Euler-Lagrange equations,
{∂F\over
∂{y}_{i}(x)} − {d\over
dx} {∂F\over
∂{y'}_{i}(x)} = 0,\qquad i = 1,2,\mathop{\mathop{…}},N.
| (5.12) |
An important application in classical dynamics is Hamilton’s principle. Suppose we have a dynamical system defined by N “generalised coordinates” {q}_{i}(t), i = 1,2,\mathop{\mathop{…}},N, which fix all spacial positions of a mechanical system at time t.
In standard Newtonian mechanics, where the energy is made up of a kinetic energy T and potential energy V , we can now define an object called the Lagrangian by
{∂L\over
∂{q}_{i}(t)} − {d\over
dt}\left ( {∂L\over
∂\dot{{q}}_{i}(t)}\right ) = 0.
| (5.13) |
Example 5.6:
Derive Newton’s equation of motion for a particle of mass m attached to a spring from the Lagrangian.
Solution:
From (5.13) we find that
or
One interesting consequence of our previous discussion of first integrals, is that they carry over to this problem, and will give us conservation laws.
First of all, let us look what happens if we are looking at an isolated self-interacting system. This means there are no external forces, and thus there can be no explicit time dependence of the Lagrangian,
From experience we expect the total energy to be conserved. Can we verify that?
We know from the case of a functional of a single function,
that the first integral is
The obvious generalisation for this case is
Secondly, what happens if a coordinate is missing from L? In that case we get the first integral
If we identify {∂L\over ∂{\dot{q}}_{i}(t)} as the “canonical momentum” {p}_{i}, we find that {p}_{i} is a constant of motion, i.e., doesn’t change.
The form of mechanics based on Lagrangians is more amenable to generalisation than the use of the Hamiltonian, but it is not as easy to turn it into quantum mechanics. To show its power let us look at a relativistic charge in fixed external E.M. fields, where the Lagrangian takes the (at first sight surprising) form
The first term can be understood by Taylor expansion for small velocities, where we must find − m{c}^{2} + m\dot{{x}}^{2}∕2, which is the right mixture of a potential ( − m{c}^{2}) and kinetic term.
The equations of motion take the form (remembering that A and Φ depend on x)
With a standard definition of B = \mathop{∇}×A and E = −\mathop{∇}Φ − {∂}_{t}A, we have
For dynamics in more dimensions x = {x}^{1},{x}^{2},\mathop{\mathop{…}},{x}^{N}, we should look at the generalisation of the action,
S[ϕ] ={\mathop{ \mathop{\mathop{∫
}\nolimits }}\nolimits }_{Ω}dτ\kern 1.66702pt ℒ(ϕ(x),{∂}_{μ}ϕ(x),x)
| (5.14) |
where dτ = d{x}^{1}d{x}^{2}\mathop{\mathop{…}}d{x}^{N} is an infinitesimal volume in N-dimensional space and
{ϕ}_{,μ} ≡ {∂}_{μ}ϕ = {∂ϕ\over
∂{x}^{μ}},\qquad μ = 1,2,\mathop{\mathop{…}},N.
| (5.15) |
As usual, we now look for a minimum of the action. We make the change ϕ(x) → ϕ(x) + ϵ(x), keeping the variations small, but zero on the surface of the region Ω (mathematically, that is sometimes written as ϵ(x){|}_{∂Ω} = 0), see Fig. 5.5.
Looking for variations to first order in ϵ, we get
(d{S}_{μ} ={\mathop{ \mathop{∏ }}\nolimits }_{i\mathrel{≠}μ}d{x}^{i} = dτ∕d{x}^{μ}). The surface integral vanishes due to the boundary conditions, and requiring δS = 0, we find the Euler-Lagrange equation,
{∂ℒ\over
∂ϕ} −{\mathop{∑
}}_{μ}{∂}_{μ} {∂ℒ\over
∂{ϕ}_{μ}} = 0,
| (5.16) |
or, more explicitly:
{∂ℒ\over
∂ϕ(x)} −{\mathop{∑
}}_{μ} {∂\over
∂{x}^{μ}} {∂ℒ\over
∂{∂}_{μ}ϕ(x)} = 0.
| (5.17) |
The slightly abstract form discussed above can be illustrated for the case of a 1D continuum field (e.g., a displacement), which depends on both position x and time t. With μ = 1 for x and μ = 2 for t the E-L equations become
with
For that case the action takes the form
Clearly this suggest that \mathop{\mathop{\mathop{∫ }\nolimits }}\nolimits dx\kern 1.66702pt ℒ plays the role of Lagrangian, and we call ℒ the Lagrange density.
Example 5.7:
Describe the motion of an elastic stretched string, with fixed endpoints, assuming small deformation, see Fig. 5.6.
Solution:
As per usual, we parametrise the position by x,y(x,t), and assume y to be small. In that case we have
The mass density of the string remains almost constant, and we find that the contribution to the kinetic energy between x and x + dx is
The potential energy in that part of the string is the tension times the stretching,
We conclude
and
Using the previous results with ϕ → y, we get
We thus get the wave equation
with {c}^{2} = T∕ρ.
Example 5.8:
Find the equations of motion for a freely moving elastic band of length 2πl.
For simplicity, assume a two-dimensional world, small stretching, and uniform density.
Discuss the solution to the equations of motion for an almost circular band.
Solution:
Specify the points on the band as (x(ϕ),y(ϕ)), with periodic boundary conditions x(0) = x(2π), y(0) = y(2π). The local length is ds = \sqrt{{x' }^{2 } +{ y' }^{2}}\kern 1.66702pt dϕ. This needs to be compared to the unstretched band, where ds = ldϕ (but the band does not have to be circular!). For small stretching, the energy for compression or stretching must be given by a form Hook’s law, i.e, be proportional to the local stretching or compression squared,
At the same time the kinetic energy is given by
Thus,
The EoM are found form a combination of Hamilton’s principle and the field problems discussed above,
If the band is almost circular, we write (x(ϕ),y(ϕ)) = (l + λ(ϕ))(\mathop{cos}\nolimits (ϕ + ψ(ϕ)),\mathop{sin}\nolimits (ϕ + ψ(ϕ))), and expand to first order in λ and ψ,
This can be rewritten as
This shows the conservation law {∂}_{ϕ}\ddot{λ} = −l\ddot{ψ}.
Thus, it is easy to solve the case when λ is independent of ϕ and ψ = 0. Then
which describes simple harmonic motion.
Example 5.9:
Show that the Lagrangian density (in 3+1 dimensions)
leads to the Klein-Gordon equation.
Solution:
First note that the first term is the kinetic energy density, so the next two terms can be interpreted as minus the potential energy. There is some amiguity to this, since we have
the action for a relativistic (covariant) field theory.
From the Euler-Lagrange equations we find that
leading to the Klein-Gordon equation, a slightly modified form of the wave-equation, describing a field with modes with mass m–i.e., a classical description of massive bosons.
Occasionally we encounter problems where the functional contains higher than first order derivatives; much what we have said above is of course rather specific to the case of first order derivatives only!