During the 18th century, Bernoulli, who was a student of Leibniz, developed the field of variational calculus which underlies the integral variational approach to mechanics. He solved the brachistochrone problem which involves finding the path for which the transit time between two points is the shortest. The integral variational approach also underlies Fermat’s principle in optics, which can be used to derive that the angle of reflection equals the angle of incidence, as well as derive Snell’s law. Other applications of the calculus of variations include solving the catenary problem, finding the maximum and minimum distances between two points on a surface, polygon shapes having the maximum ratio of enclosed area to perimeter, or maximizing profit in economics. Bernoulli, developed the principle of virtual work used to describe equilibrium in static systems, and d’Alembert extended the principle of virtual work to dynamical systems. Euler, the preeminent Swiss mathematician of the 18th century and a student of Bernoulli, developed the calculus of variations with full mathematical rigor. The culmination of the development of the Lagrangian variational approach to classical mechanics was done by Lagrange (1736-1813), who was a student of Euler.
The Euler-Lagrangian approach to classical mechanics stems from a deep philosophical belief that the laws of nature are based on the principle of economy. That is, the physical universe follows paths through space and time that are based on extrema principles. The standard LagrangianL is defined as the difference between the kinetic and potential energy, that is
L=T−U
Chapters 6 through 9 will show that the laws of classical mechanics can be expressed in terms of Hamilton’s variational principle which states that the motion of the system between the initial time t1and final time t2 follows a path that minimizes the scalar action integralS defined as the time integral of the Lagrangian.
S=∫t1t2Ldt
The calculus of variations provides the mathematics required to determine the path that minimizes the action integral. This variational approach is both elegant and beautiful, and has withstood the rigors of experimental confirmation. In fact, not only is it an exceedingly powerful alternative approach to the intuitive Newtonian approach in classical mechanics, but Hamilton’s variational principle now is recognized to be more fundamental than Newton’s Laws of Motion. The Lagrangian and Hamiltonian variational approaches to mechanics are the only approaches that can handle the Theory of Relativity, statistical mechanics, and the dichotomy of philosophical approaches to quantum physics.
The calculus of variations, presented here, underlies the powerful variational approaches that were developed for classical mechanics. Variational calculus, developed for classical mechanics, now has become an essential approach to many other disciplines in science, engineering, economics, and medicine.
For the special case of one dimension, the calculus of variations reduces to varying the function y(x) such that the scalar functional F is an extremum, that is, it is a maximum or minimum, where.
F=∫x1x2f[y(x),y′(x);x]dx
Here x is the independent variable, y(x) the dependent variable, plus its first derivative y′≡dxdy. The quantity f[y(x),y′(x);x] has some given dependence on y,y′ and x. The calculus of variations involves varying the function y(x) until a stationary value of F is found, which is presumed to be an extremum. This means that if a function y=y(x) gives a minimum value for the scalar functional F, then any neighboring function, no matter how close to y(x), must increase F. For all paths, the integral F is taken between two fixed points, x1,y1 and x2,y2. Possible paths between the initial and final points are illustrated in Figure 5.2.1. Relative to any neighboring path, the functional F must have a stationary value which is presumed to be the correct extremum path.
Define a neighboring function using a parametric representation y(ϵ,x), such that for ϵ=0, y=y(0,x)=y(x) is the function that yields the extremum for F. Assume that an infinitesimally small fraction ϵ of the neighboring function η(x) is added to the extremum path y(x). That is, assume
where it is assumed that the extremum function y(0,x) and the auxiliary function η(x) are well behaved functions of x with continuous first derivatives, and where η(x) vanishes at x1 and x2, because, for all possible paths, the function y(ϵ,x) must be identical with y(x) at the end points of the path, i.e. η(x1)=η(x2)=0. The situation is depicted in Figure 5.2.1. It is possible to express any such parametric family of curves F as a function of ϵ
F(ϵ)=∫x1x2f[y(ϵ,x),y′(ϵ,x);x]dx(5.5)
The condition that the integral has a stationary (extremum) value is that F be independent of ϵ to first order along the path. That is, the extremum value occurs for (ϵ=0) where
(dϵdF)ϵ=0=0(5.6)
for all functions η(x). This is illustrated on the right side of Figure 5.2.1.
Applying condition 5.6 to Equation 5.5, and since x is independent of ϵ, then
∂ϵ∂F=∫x1x2(∂y∂f∂ϵ∂y+∂y′∂f∂ϵ∂y′)dx=0(5.7)
Since the limits of integration are fixed, the differential operation affects only the integrand. From equations 5.4,
∂ϵ∂y=η(x)
and
∂ϵ∂y′=dxdη
Consider the second term in the integrand
∫x1x2∂y′∂f∂ϵ∂y′dx=∫x1x2∂y′∂fdxdηdx
Figure 5.2.1:The left shows the extremum y(x) and neighboring paths y(ϵ,x)=y(x)+ϵη(x) between (x1,y1) and (x2,y2) that minimizes the function F=∫x1x2f[y(x),y′(x);x]dx. The right shows the dependence of F as a function of the admixture coefficient ϵ for a maximum (upper) or a minimum (lower) at ϵ=0.
The function ∂ϵ∂F will be an extremum if it is stationary at ϵ=0. That is,
∂ϵ∂F=∫x1x2(∂y∂f−dxd∂y′∂f)η(x)dx=0
This integral now appears to be independent of ϵ. However, the functions y and y′ occurring in the derivatives are functions of ϵ. Since (∂ϵ∂F)ϵ=0 must vanish for a stationary value, and becauseη(x)is an arbitrary function subject to the conditions stated ,then the above integrand must be zero. This derivation that the integrand must be zero leads to Euler’s differential equation
∂y∂f−dxd∂y′∂f=0
where y and y′ are the original functions, independent of ϵ. The basis of the calculus of variations is that the function y(x) that satisfies Euler’s equation is an stationary function. Note that the stationary value could be either a maximum or a minimum value. When Euler’s equation is applied to mechanical systems using the Lagrangian as the functional, then Euler’s differential equation is called the Euler-Lagrange equation.
A wide selection of variables can be chosen as the independent variable for variational calculus. The derivation of Euler’s equation and example (5.3.1) both assumed that the independent variable is x, whereas example (5.3.2) used y as the independent variable, example (5.3.3) used z, and Lagrange mechanics uses time t as the independent variable. Selection of which variable to use as the independent variable does not change the physics of a problem, but some selections can simplify the mathematics for obtaining an analytic solution. The following example of a cylindrically-symmetric soap-bubble surface formed by blowing a soap bubble that stretches between two circular hoops, illustrates the importance when selecting the independent variable.
5.5: Functions with Several Independent Variables¶
Functions with several independent variables yi(x)¶
The discussion has focussed on systems having only a single function y(x) such that the functional is an extremum. It is more common to have a functional that is dependent upon several independent variables f[y1(x),y1′(x),y2(x),y2′(x),....;x] which can be written as
F=∫x1x2i=1∑Nf[yi(x),yi′(x);x]dx
where i=1,2,3,....,N.
By analogy with the one dimensional problem, define neighboring functions ηi for each variable. Then
where ηi are independent functions of x that vanish at x1 and x2. Using equations (5.2.10) and 5.17 leads to the requirements for an extremum value to be
If the variables yi(x) are independent, then the ηi(x) are independent. Since the ηi(x) are independent, then evaluating the above equation at ϵ=0 implies that each term in the bracket must vanish independently. That is, Euler’s differential equation becomes a set of Nequations for theNindependent variables
∂yi∂f−dxd∂yi′∂f=0
where i=1,2,3..N. Thus, each of the Nequations can be solved independently when theNvariables are independent. Euler’s equation involves partial derivatives for the dependent variables yi, yi′and the total derivative for the independent variable x.
An integral form of the Euler differential equation can be written which is useful for cases when the function f does not depend explicitly on the independent variable x, that is, when ∂x∂f=0. Note that
dxdf=∂x∂f+∂y∂fdxdy+∂y′∂fdxdy′
But
dxd(y′∂y′∂f)=∂y′∂fdxdy′+y′dxd∂y′∂f
Combining these two equations gives
dxd(y′∂y′∂f)=dxdf−∂x∂f−y′∂y∂f+y′dxd∂y′∂f
The last two terms can be rewritten as
y′(dxd∂y′∂f−∂y∂f)
which vanishes when the Euler equation is satisfied. Therefore the above equation simplifies to
∂x∂f−dxd(f−y′∂y′∂f)=0(5.24)
This integral form of Euler’s equation is especially useful when∂x∂f=0,that is, whenfdoes not depend explicitly on the independent variablex. Then the first integral of Equation 5.24 is a constant, i.e.
f−y′∂y′∂f=constant
This is Euler’s integral variational equation. Note that the shortest distance between two points, the minimum surface of rotation, and the brachistochrone, described earlier, all are examples where ∂x∂f=0 and thus the integral form of Euler’s equation is useful for solving these cases.
Imposing a constraint on a variational system implies:
The N constrained coordinates yi(x) are correlated which violates the assumption made in chapter 5.5 that the N variables are independent.
Constrained motion implies that constraint forces must be acting to account for the correlation of the variables. These constraint forces must be taken into account in the equations of motion.
For example, for a disk rolling down an inclined plane without slipping, there are three coordinates x [perpendicular to the wedge], y, [Along the surface of the wedge], and the rotation angle θ shown in Figure 5.7.1. The constraint forces, FfN, lead to the correlation of the variables such that x=R, while y=Rθ. Basically there is only one independent variable, which can be either y or θ. The use of only one independent variable essentially buries the constraint forces under the rug, which is fine if you only need to know the equation of motion. If you need to determine the forces of constraint then it is necessary to include all coordinates explicitly in the equations of motion as discussed below.
Most systems involve restrictions or constraints that couple the coordinates. For example, the yi(x) may be confined to a surface in coordinate space. The constraints mean that the coordinates yi(x) are not independent, but are related by equations of constraint. A constraint is called holonomic if the equations of constraint can be expressed in the form of an algebraic equation that directly and unambiguously specifies the shape of the surface of constraint. A non-holonomic constraint does not provide an algebraic relation between the correlated coordinates. In addition to the holonomy of the constraints, the equations of constraint also can be grouped into the following three classifications depending on whether they are algebraic, differential, or integral. These three classifications for the constraints exhibit different holonomy relating the coupled coordinates. Fortunately the solution of constrained systems is greatly simplified if the equations of constraint are holonomic.
Geometric constraints can be expressed in the form of algebraic relations that directly specify the shape of the surface of constraint in coordinate space q1,q2,…,qj,..qn.
gk(q1,q2,..qj,..qn;t)=0(5.26)
where j=1,2,3,…n. There can be m such equations of constraint where 0≤k≤m. An example of such a geometric constraint is when the motion is confined to the surface of a sphere of radius R in coordinate space which can be written in the form g=x2+y2+z2−R2=0. Such algebraic constraint equations are called Holonomic which allows use of generalized coordinates as well as Lagrange multipliers to handle both the constraint forces and the correlation of the coordinates.
The m constraint equations also can be expressed in terms of the infinitessimal displacements of the form
j=1∑n∂qj∂gkdqj+∂t∂gkdt=0(5.27)
where k=1,2,3,…m, j=1,2,3,…n. If Equation 5.27 represents the total differential of a function then it can be integrated to give a holonomic relation of the form of Equation 5.26. However, if Equation 5.27 is not the total differential, then it is non-holonomic and can be integrated only after having solved the full problem.
An example of differential constraint equations is for a wheel rolling on a plane without slipping which is non-holonomic and more complicated than might be expected. The wheel moving on a plane has five degrees of freedom since the height z is fixed. That is, the motion of the center of mass requires two coordinates (x,y) plus there are three angles (ϕ,θ,ψ) where ϕ is the rotation angle for the wheel, θ is the pivot angle of the axis, and ψ is the tilt angle of the wheel. If the wheel slides then all five degrees of freedom are active. If the axis of rotation of the wheel is horizontal, that is, the tilt angle ψ=0 is constant, then this kinematic system leads to three differential constraint equations The wheel can roll with angular velocity ϕ˙, as well as pivot which corresponds to a change in θ. Combining these leads to two differential equations of constraint
dx−asinθdϕ=0dy+acosθdϕ=0
These constraints are insufficient to provide finite relations between all the coordinates. That is, the constraints cannot be reduced by integration to the form of Equation 5.26 because there is no functional relation between ϕ and the other three variables, x,y,θ. Many rolling trajectories are possible between any two points of contact on the plane that are related to different pivot angles. That is, the point of contact of the disk could pivot plus roll in a circle returning to the same point where x,y,θ are unchanged whereas the value of ϕ depends on the circumference of the circle. As a consequence the rolling constraint is non-holonomic except for the case where the disk rolls in a straight line and remains vertical.
Equations of constraint also can be expressed in terms of direct integrals. This situation is encountered for isoperimetric problems, such as finding the maximum volume bounded by a surface of fixed area, or the shape of a hanging rope of fixed length. Integral constraints occur in economics when minimizing some cost algorithm subject to a fixed total cost constraint.
A simple example of an isoperimetric problem involves finding the curve y=y(x) such that the functional has an extremum where the curve y(x) satisfies boundary conditions such that y(x1)=a and y(x2)=b, that is
F(y)=∫x1x2f(y,y′;x)dx
is an extremum such that the perimeter also is constrained to satisfy
G(y)=∫x1x2g(y,y′;x)dx=l
where l is a fixed length. This integral constraint is geometric and holonomic. Another example is finding the minimum surface area of a closed surface subject to the enclosed volume being the constraint.
Geometric constraints can be expressed in the form of an algebraic equation that directly specifies the shape of the surface of constraint
g(y1,y2,y3,…;x)=0(5.31)
Such a system is called holonomic since there is a direct relation between the coupled variables. An example of such a holonomic geometric constraint is if the motion is confined to the surface of a sphere of radius R which can be written in the form
There are many classifications of non-holonomic constraints that exist if Equation 5.31 is not satisfied. The algebraic approach is difficult to handle when the constraint is an inequality, such as the requirement that the location is restricted to lie inside a spherical shell of radius R which can be expressed as
g=x2+y2+z2−R2≤0
This non-holonomic constrained system has a one-sided constraint. Systems usually are non-holonomic if the constraint is kinematic as discussed above.
Partial-holonomic constraints are holonomic for a restricted range of the constraint surface in coordinate space, and this range can be case specific. This can occur if the constraint force is one-sided and perpendicular to the path. An example is the pendulum with the mass attached to the fulcrum by a flexible string that provides tension but not compression. Then the pendulum length is constant only if the tension in the string is positive. Thus the pendulum will be holonomic if the gravitational plus centrifugal forces are such that the tension in the string is positive, but the system becomes non-hononomic if the tension is negative as can happen when the pendulum rotates to an upright angle where the centrifugal force outwards is insufficient to compensate for the vertical downward component of the gravitational force. There are many other examples where the motion of an object is holonomic when the object is pressed against the constraint surface, such as the surface of the Earth, but is unconstrained if the object leaves the surface.
A constraint is called scleronomic if the constraint is not explicitly time dependent. This ignores the time dependence contained within the solution of the equations of motion. Fortunately a major fraction of systems are scleronomic. The constraint is called rheonomic if the constraint is explicitly time dependent. An example of a rheonomic system is where the size or shape of the surface of constraint is explicitly time dependent such as a deflating pneumatic tire.
The solution depends on whether the constraint is conservative or dissipative, that is, if friction or drag are acting. The system will be conservative if there are no drag forces, and the constraint forces are perpendicular to the trajectory of the path such as the motion of a charged particle in a magnetic field. Forces of constraint can result from sliding of two solid surfaces, rolling of solid objects, fluid flow in a liquid or gas, or result from electromagnetic forces. Energy dissipation can result from friction, drag in a fluid or gas, or finite resistance of electric conductors leading to dissipation of induced electric currents in a conductor, e.g. eddy currents.
A rolling constraint is unusual in that friction between the rolling bodies is necessary to maintain rolling. A disk on a frictionless inclined plane will conserve it’s angular momentum since there is no torque acting if the rolling contact is frictionless, that is, the disk will just slide. If the friction is sufficient to stop sliding, then the bodies will roll and not slide. A perfect rolling body does not dissipate energy since no work is done at the instantaneous point of contact where both bodies are in zero relative motion and the force is perpendicular to the motion. In real life, a rolling wheel can involve a very small energy dissipation due to deformation at the point of contact coupled with non-elastic properties of the material used to make the wheel and the plane surface. For example, a pneumatic tire can heat up and expand due to flexing of the tire.
Treatment of constraint forces in variational calculus¶
There are three major approaches to handle constraint forces in variational calculus. All three of them exploit the tremendous freedom and flexibility available when using generalized coordinates. The (1) generalized coordinate approach, described in chapter 5.8, exploits the correlation of the n coordinates due to the m constraint****forces to reduce the dimension of the equations of motion to s=n−m degrees of freedom. This approach embeds the m constraint forces, into the choice of generalized coordinates and does not determine the constraint forces, (2) Lagrange multiplier approach, described in chapter 5.9, exploits generalized coordinates but includes the m constraint forces into the Euler equations to determine both the constraint forces in addition to the n equations of motion. (3) Generalized forces approach, described in chapter 6.7.3, introduces constraint and other forces explicitly.
5.8: Generalized coordinates in Variational Calculus¶
Newtonian mechanics is based on a vectorial treatment of mechanics which can be difficult to apply when solving complicated problems in mechanics. Constraint forces acting on a system usually are unknown. In Newtonian mechanics constrained forces must be included explicitly so that they can be determined simultaneously with the solution of the dynamical equations of motion. The major advantage of the variational approaches is that solution of the dynamical equations of motion can be simplified by expressing the motion in terms of n independent generalized coordinates. These generalized coordinates can be any set of independent variables, qi, where 1≤i≤n, plus the corresponding velocities q˙i for Lagrangian mechanics, or the corresponding canonical variables, qi,pi for Hamiltonian mechanics. These generalized coordinates for the n variables are used to specify the scalar functional dependence on these generalized coordinates. The variational approach employs this scalar functional to determine the trajectory. The generalized coordinates used for the variational approach do not need to be orthogonal, they only need to be independent since they are used only to completely specify the magnitude of the scalar functional. This greatly expands the arsenal of possible generalized coordinates beyond what is available using Newtonian mechanics. For example, generalized coordinates can be the dimensionless amplitudes for the n normal modes of coupled oscillator systems, or action-angle variables. In addition, generalized coordinates having different dimensions can be used for each of the n variables. Each generalized coordinate,qispecifies an independent mode of the system, not a specific particle. For example, each normal mode of coupled oscillators can involve correlated motion of several coupled particles. The major advantage of using generalized coordinates is that they can be chosen to be perpendicular to a corresponding constraint force, and therefore that specific constraint force does no work for motion along that generalized coordinate. Moreover, the constrained motion does no work in the direction of the constraint force for rigid constraints. Thus generalized coordinates allow specific constraint forces to be ignored in evaluation of the minimized functional. This freedom and flexibility of choice of generalized coordinates allows the correlated motion produced by the constraint forces to be embedded directly into the choice of the independent generalized coordinates, and the actual constraint forces can be ignored. Embedding of the constraint induced correlations into the generalized coordinates, effectively “sweeps the constraint forces under the rug” which greatly simplifies the equations of motion for any system that involve constraint forces. Selection of the appropriate generalized coordinates can be obvious, and often it is performed subconsciously by the user.
Three variational approaches are used that employ generalized coordinates to derive the equations of motion of a system that has n generalized coordinates subject to m constraints.
1) Minimal set of generalized coordinates: When the m equations of constraint are holonomic, then the m algebraic constraint relations can be used to transform the coordinates into s=n−m independent generalized coordinatesqi. This approach reduces the number of unknowns, n, by the number of constraints m, to give a minimal set of s=n−m independent generalized dynamical variables. The forces of constraint are not explicitly discussed, or determined, when this generalized coordinate approach is employed. This approach greatly simplifies solution of dynamical problems by avoiding the need for explicit treatment of the constraint forces. This approach is straight forward for holonomic constraints, since the nspatial coordinatesy1(x),…yN(x), are coupled by m algebraic equations which can be used to make the transformation to generalized coordinates. Thus the ncoupled spatial coordinates are transformed to s=n−mindependent generalized dynamical coordinatesq1(x),….qs(x), and their generalized first derivatives q˙1(x),….q˙s(x). Thesegeneralized coordinates are independent, and thus it is possible to use Euler’s equation for each independent parameter qi
∂qi∂f−dxd∂qi′∂f=0
where i=1,2,3...s. There are s=n−m such Euler equations. The freedom to choose generalized coordinates underlies the tremendous advantage of applying the variational approach.
2)Lagrange multipliers: The****n Lagrange equations, plus the m equations of constraint, can be used to explicitly determine the n generalized coordinates plus the m constraint forces. That is, n+m unknowns are determined. This approach is discussed in chapter 5.9.
3) Generalized forces: This approach introduces the constraint forces explicitly. This approach, applied to Lagrangian mechanics, is discussed in chapter 6.6.3.
The above three approaches exploit generalized coordinates to handle constraint forces as described in chapter 6.
5.9: Lagrange multipliers for Holonomic Constraints¶
The Lagrange multiplier technique provides a powerful, and elegant, way to handle holonomic constraints using Euler’s equations[1]. The general method of Lagrange multipliers for n variables, with m constraints, is best introduced using Bernoulli’s ingenious exploitation of virtual infinitessimal displacements, which Lagrange signified by the symbol δ. The term “virtual” refers to an intentional variation of the generalized coordinates δqi in order to elucidate the local sensitivity of a function F(qi,x) to variation of the variable. Contrary to the usual infinitessimal interval in differential calculus, where an actual displacement dqi occurs during a time dt, a virtual displacement is imagined to be an instantaneous, infinitessimal, displacement of a coordinate, not an actual displacement, in order to elucidate the local dependence of F on the coordinate. The local dependence of any functional F, to virtual displacements of all n coordinates, is given by taking the partial differentials of F.
δF=i∑n∂qi∂Fδqi(5.35)
The function F is stationary, that is an extremum, if Equation 5.35 equals zero. The extremum of the functional F, given by equation (5.5.1), can be expressed in a compact form using the virtual displacement formalism as
The auxiliary conditions, due to the m holonomic algebraic constraints for the n variables qi, can be expressed by the m equations
gk(q)=0(5.37)
where 1≤k≤m and 1≤i≤n with m<n. The variational problem for the m holonomic constraint equations also can be written in terms of m differential equations where 1≤k≤m
δgk=i=1∑n∂qi∂gkδqi=0(5.38)
Since equations 5.36 and 5.38 both equal zero, the m equations 5.38 can be multiplied by arbitrary undetermined factors λk, and added to equations 5.36 to give.
Note that this is not trivial in that although the sum of the constraint equations for each yiis zero; the individual terms of the sum are not zero.
Insert equations 5.36 plus 5.38 into 5.39, and collect all n terms, gives
i∑n(∂qi∂F+k=1∑mλk∂qi∂gk)δqi=0(5.40)
Note that all the δqi are free independent variations and thus the terms in the brackets, which are the coefficients of each δqi, individually must equal zero. For each of the n values of i, the corresponding bracket implies
∂qi∂F+k=1∑mλk∂qi∂gk=0(5.41)
This is equivalent to what would be obtained from the variational principle
δF+k=1∑mλkδgk=0(5.42)
Equation 5.42 is equivalent to a variational problem for finding the stationary value of F′
δ(F′)=δ(F+k∑mλkgk)=0(5.43)
where F′ is defined to be
F′≡(F+k=1∑mλkgk)(5.44)
The solution to Equation 5.43 can be found using Euler’s differential equation (5.5.4) of variational calculus. At the extremum δ(F′)=0 corresponds to following contours of constant F′ which are in the surface that is perpendicular to the gradients of the terms in F′. The Lagrange multiplier constants are required because, although these gradients are parallel at the extremum, the magnitudes of the gradients are not equal.
The beauty of the Lagrange multipliers approach is that the auxiliary conditions do not have to be handled explicitly, since they are handled automatically as m additional free variables during solution of Euler’s equations for a variational problem with n+m unknowns fit to n+m equations. That is, the n variables qi are determined by the variational procedure using the n variational equations
The elegance of Lagrange multipliers is that a single variational approach allows simultaneous determination of all n+m unknowns. Chapter 6.2 shows that the forces of constraint are given directly by the λk∂qi∂gk terms.
The constraint equation also can be given in an integral form which is used frequently for isoperimetric problems . Consider a one dependent-variable isoperimetric problem, for finding the curve q=q(x) such that the functional has an extremum, and the curve q(x) satisfies boundary conditions such that q(x1)=a and q(x2)=b. That is
F(y)=∫x1x2f(q,q′;x)dx
is an extremum such that the fixed length l of the perimeter satisfies the integral constraint
G(y)=∫x1x2g(q,q′;x)dx=l
Analogous to 5.44 these two functionals can be combined requiring that
δK(q,x,λ)≡δ[F(q)+λG(q)]=δ∫x1x2[f+λg]dx=0
That is, it is an extremum for both q(x) and the Lagrange multiplier λ. This effectively involves finding the extremum path for the function K(q,x,λ)=F(q,x)+λG(q,x) where both q(x) and λ are the minimized variables. Therefore the curve q(x) must satisfy the differential equation
The geodesic is defined as the shortest path between two fixed points for motion that is constrained to lie on a surface. Variational calculus provides a powerful approach for determining the equations of motion constrained to follow a geodesic.
The use of variational calculus is illustrated by considering the geodesic constrained to follow the surface of a sphere of radius R. As discussed in appendix 19.3.2C, the element of path length on the surface of the sphere is given in spherical coordinates as ds=Rdθ2+(sinθdϕ)2. Therefore the distance s between two points 1 and 2 is
s=R∫12⎣⎡(dϕdθ)2+sin2θ⎦⎤dϕ
The function f for ensuring that s be an extremum value uses
f=θ′2+sin2θ
where θ′=dϕdθ. This is a case where ∂ϕ∂f=0 and thus the integral form of Euler’s equation can be used leading to the result that
θ′2+sin2θ−θ′∂θ′∂θ′2+sin2θ= constant=a
This gives that
sin2θ=aθ′2+sin2θ
This can be rewritten as
dθdϕ=θ′1=1−a2csc2θacsc2θ
Solving for ϕ gives
ϕ=sin−1(βcotθ)+α
where
β≡a21−a2
That is
cotθ=βsin(ϕ−α)
Expanding the sine and cotangent gives
(βcosα)Rsinθsinϕ−(βsinα)Rsinθcosϕ=Rcosθ
Since the brackets are constants, this can be written as
A(Rsinθsinϕ)−B(Rsinθcosϕ)=(Rcosθ)
The terms in the brackets are just expressions for the rectangular coordinates x,y,z. That is,
Ay−Bx=z
This is the equation of a plane passing through the center of the sphere. Thus the geodesic on a sphere is the path where a plane through the center intersects the sphere as well as the initial and final locations. This geodesic is called a great circle. Euler’s equation gives both the maximum and minimum extremum path lengths for motion on this great circle.
Chapter 17 discusses the geodesic in the four-dimensional space-time coordinates that underlie the General Theory of Relativity. As a consequence, the use of the calculus of variations to determine the equations of motion for geodesics plays a pivotal role in the General Theory of Relativity.
5.11: Variational Approach to Classical Mechanics¶
This chapter has introduced the general principles of variational calculus needed for understanding the Lagrangian and Hamiltonian approaches to classical mechanics. Although variational calculus was developed originally for classical mechanics, now it has grown to be an important branch of mathematics with applications to many other fields outside of physics. The prologue of this book emphasized the dramatic differences between the differential vectorial approach of Newtonian mechanics, and the integral variational approaches of Lagrange and Hamiltonian mechanics. The Newtonian vectorial approach involves solving Newton’s differential equations of motion that relate the force and momenta vectors. This requires knowledge of the time dependence of all the force vectors, including constraint forces, acting on the system which can be very complicated. Chapter 2 showed that the first-order time integrals, equations (2.4.1), (2.4.7), relate the initial and final total momenta without requiring knowledge of the complicated instantaneous forces acting during the collision of two bodies. Similarly, for conservative systems, the first-order spatial integral, equation (2.4.12), relates the initial and final total energies to the net work done on the system without requiring knowledge of the instantaneous force vectors. The first-order spatial integral has the advantage that it is a scalar quantity, in contrast to time integrals which are vector quantities. These first-order integral relations are used frequently in Newtonian mechanics to derive solutions of the equations of motion that avoid having to solve complicated differential equations of motion.
This chapter has illustrated that variational principles provide a means of deriving more detailed information, such as the trajectories for the motion between given initial and final conditions, by requiring that scalar functionals have extrema values. For example, the solution of the brachistochrone problem determined the trajectory having the minimum transit time, based on only the magnitudes of the kinetic and gravitational potential energies. Similarly, the catenary shape of a suspended chain was derived by minimizing the gravitational potential energy. The calculus of variations uses Euler’s equations to determine directly the differential equations of motion of the system that lead to the functional of interest being stationary at an extremum. The Lagrangian and Hamiltonian variational approaches to classical mechanics are discussed in chapters 6−16. The broad range of applicability, the flexibility, and the power provided by variational approaches to classical mechanics and modern physics will be illustrated.
that satisfies x(1)=3 and x(2)=18. Show that this extremal provides the global minimum of J.
Consider the use of equations of constraint.
A particle is constrained to move on the surface of a sphere. What are the equations of constraint for this system?
A disk of mass m and radius R rolls without slipping on the outside surface of a half-cylinder of radius 5R. What are the equations of constraint for this system?
What are holonomic constraints? Which of the equations of constraint that you found above are holonomic?
Equations of constraint that do not explicitly contain time are said to be scleronomic. Moving constraints are rheonomic. Are the equations of constraint that you found above scleronomic or rheonomic?
For each of the following systems, describe the generalized coordinates that would work best. There may be more than one answer for each system.
An inclined plane of mass M is sliding on a smooth horizontal surface, while a particle of mass m is sliding on the smooth inclined surface.
A disk rolls without slipping across a horizontal plane. The plane of the disk remains vertical, but it is free to rotate about a vertical axis.
A double pendulum consisting of two simple pendula, with one pendulum suspended from the bob of the other. The two pendula have equal lengths and have bobs of equal mass. Both pendula are confined to move in the same plane.
A particle of mass m is constrained to move on a circle of radius R. The circle rotates in space about one point on the circle, which is fixed. The rotation takes place in the plane of the circle, with constant angular speed ω, in the absence of a gravitational force.
A particle of mass m is attracted toward a given point by a force of magnitude k/r2, where k is a constant.
Looking back at the systems in problem 3, which ones could have equations of constraint? How would you classify the equations of constraint (holonomic, scleronomic, rheonomic, etc.)?
Find the extremal of the functional
J(x)=∫0π(2xsint−x˙2)dt
that satisfies x(o)=x(π)=0. Show that this extremal provides the global maximum of J.
Find and describe the path y=y(x) for which the integral ∫x1x2x1+(y′)2dx is stationary.
Find the dimensions of the parallelepiped of maximum volume circumscribed by a sphere of radius R.
Consider a single loop of the cycloid having a fixed value of a as shown in the figure. A car released from rest at any point P0 anywhere on the track between O and the lowest point P, that is, P0 has a parameter 0<θ0<π.
Show that the time T for the cart to slide from P0 to P is given by the integral
T(P0→P)=ga∫θ0πcosθ0−cosθ1−cosθdθ
Prove that this time T is equal to πa/g which is independent of the position P0.
Explain qualitatively how this surprising result can possibly be true.
Consider a medium for which the refractive index n=r2a where a is a constant and r is the distance from the origin. Use Fermat’s Principle to find the path of a ray of light travelling in a plane containing the origin. Hint, use two-dimensional polar coordinates with ϕ=ϕ(r). Show that the resulting path is a circle through the origin.
Find the shortest path between the (x,y,z) points (0,−1,0) and (0,1,0) on a conical surface
z=1−x2+y2
What is the length of this path? Note that this is the shortest mountain path around a volcano.
Show that the geodesic on the surface of a right circular cylinder is a segment of a helix.
The calculus of variations has been introduced and Euler’s differential equation was derived. The calculus of variations reduces to varying the functions yi(x), where i=1,2,3,...n, such that the integral
F=∫x1x2f[yi(x),yi′(x);x]dx
is an extremum, that is, it is a maximum or minimum. Here x is the independent variable, yi(x) are the dependent variables plus their first derivatives yi′≡dxdyi. The quantity f[y(x),y′(x);x] has some given dependence on yi,yi′ and x. The calculus of variations involves varying the functions yi(x) until a stationary value of F is found which is presumed to be an extremum. It was shown that if theyi(x)are independent, then the extremum value of F leads to n independent Euler equations
∂yi∂f−dxd∂yi′∂f=0
where i=1,2,3..n. This can be used to determine the functional form yi(x) that ensures that the integral F=∫x1x2f[y(x),y′(x);x]dx is a stationary value, that is, presumably a maximum or minimum value.
Note that Euler’s equation involves partial derivatives for the dependent variables yi,yi′, and the total derivative for the independent variable x.
It was shown that if the function ∫x1x2f[yi(x),yi′(x);x] does not depend on the independent variable, then Euler’s differential equation can be written in an integral form. This integral form of Euler’s equation is especially useful when∂x∂f=0,that is, whenfdoes not depend explicitly onx, then the first integral of the Euler equation is a constant
Most applications involve constraints on the motion. The equations of constraint can be classified according to whether the constraints are holonomic or non-holonomic, the time dependence of the constraints, and whether the constraint forces are conservative.
Independent generalized coordinates can be chosen that are perpendicular to the rigid constraint forces and therefore the constraint does not contribute to the functional being minimized. That is, the constraints are embedded into the generalized coordinates and thus the constraints can be ignored when deriving the variational solution.
If the constraints are holonomic then the m holonomic equations of constraint can be used to transform the n coupled generalized coordinates to s=n−m independent generalized variables qi,qi′. The generalized coordinate method then uses Euler’s equations to determine these s=n−m independent generalized coordinates.
The Lagrange multipliers approach for n variables, plus m holonomic equations of constraint, determines all N+m unknowns for the system. The holonomic forces of constraint acting on the N variables, are related to the Lagrange multiplier terms λk(x)∂yi∂gk) that are introduced into the Euler equations.
That is,
∂yi∂f−dxdf∂yi′∂f+k∑mλk(x)∂yi∂gk
where the holonomic equations of constraint are given by
gk(yi;x)=0
The advantage of using the Lagrange multiplier approach is that the variational procedure simultaneously determines both the equations of motion for the N variables plus the m constraint forces acting on the system.
This textbook uses the symbol qi to designate a generalized coordinate, and qi′ to designate the corresponding first derivative with respect to the independent variable, in order to differentiate the spatial coordinates from the more powerful generalized coordinates.