You are on page 1of 5

Deriving Lagranges equations using elementary calculus

Jozef Hanc, Edwin F. Taylor, and Slavomir Tuleja

Citation: Am. J. Phys. 72, 510 (2004); doi: 10.1119/1.1603270


View online: http://dx.doi.org/10.1119/1.1603270
View Table of Contents: http://ajp.aapt.org/resource/1/AJPIAS/v72/i4
Published by the American Association of Physics Teachers

Related Articles
MicroReviews by the Book Review Editor: The Irrationals: A Story of the Numbers You Can't Count On: Julian
Havil
Phys. Teach. 51, 319 (2013)
MicroReviews by the Book Review Editor: Radioactive Transformations: Ernest Rutherford
Phys. Teach. 51, 319 (2013)
MicroReviews by the Book Review Editor: Heavenly Mathematics: The Forgotten Art of Spherical Trigonometry:
Glen Van Brummelen
Phys. Teach. 51, 319 (2013)
MicroReviews by the Book Review Editor: Why You Hear What You Hear: An Experiential Approach to Sound,
Music, and Psychoacoustics: Eric J. Heller
Phys. Teach. 51, 319 (2013)
SOLAR IMAGE
Phys. Teach. 51, 266 (2013)

Additional information on Am. J. Phys.


Journal Homepage: http://ajp.aapt.org/
Journal Information: http://ajp.aapt.org/about/about_the_journal
Top downloads: http://ajp.aapt.org/most_downloaded
Information for Authors: http://ajp.dickinson.edu/Contributors/contGenInfo.html

Downloaded 29 Jun 2013 to 203.199.213.130. Redistribution subject to AAPT license or copyright; see http://ajp.aapt.org/authors/copyright_permission
Deriving Lagranges equations using elementary calculus
Jozef Hanca)
Technical University, Vysokoskolska 4, 042 00 Kosice, Slovakia
Edwin F. Taylorb)
Massachusetts Institute of Technology, Cambridge, Massachusetts 02139
Slavomir Tulejac)
Gymnazium arm. gen. L. Svobodu, Komenskeho 4, 066 51 Humenne, Slovakia
Received 30 December 2002; accepted 20 June 2003
We derive Lagranges equations of motion from the principle of least action using elementary
calculus rather than the calculus of variations. We also demonstrate the conditions under which
energy and momentum are constants of the motion. 2004 American Association of Physics Teachers.
DOI: 10.1119/1.1603270

I. INTRODUCTION The action S along a world line is defined as


The equations of motion1 of a mechanical system can be
derived by two different mathematical methodsvectorial
S along the
world line
L x, v dt. 2
and analytical. Traditionally, introductory mechanics begins
with Newtons laws of motion which relate the force, mo- The principle of least action requires that between a fixed
mentum, and acceleration vectors. But we frequently need to initial event and a fixed final event the particle follow a
describe systems, for example, systems subject to constraints world line such that the action S is a minimum.
without friction, for which the use of vector forces is cum- The action S is an additive scalar quantity, and is the sum
bersome. Analytical mechanics in the form of the Lagrange of contributions Lt from each segment along the entire
equations provides an alternative and very powerful tool for world line between two events fixed in space and time. Be-
obtaining the equations of motion. Lagranges equations em- cause S is additive, it follows that the principle of least action
ploy a single scalar function, and there are no annoying vec- must hold for each individual infinitesimal segment of the
tor components or associated trigonometric manipulations. world line.6 This property allows us to pass from the integral
Moreover, the analytical approach using Lagranges equa- equation for the principle of least action, Eq. 2, to
tions provides other capabilities2 that allow us to analyze a Lagranges differential equation, valid anywhere along the
wider range of systems than Newtons second law. world line. It also allows us to use elementary calculus in
The derivation of Lagranges equations in advanced me- this derivation.
chanics texts3 typically applies the calculus of variations to We approximate a small section of the world line by two
the principle of least action. The calculus of variation be- straight-line segments connected in the middle Fig. 1 and
longs to important branches of mathematics, but is not make the following approximations: The average position
widely taught or used at the college level. Students often coordinate in the Lagrangian along a segment is at the mid-
encounter the variational calculus first in an advanced me- point of the segment.7 The average velocity of the particle is
chanics class, where they struggle to apply a new mathemati- equal to its displacement across the segment divided by the
cal procedure to a new physical concept. This paper provides time interval of the segment. These approximations applied
a derivation of Lagranges equations from the principle of to segment A in Fig. 1 yield the average Lagrangian L A and
least action using elementary calculus,4 which may be em- action S A contributed by this segment:
ployed as an alternative to or a preview of the more ad-
vanced variational calculus derivation.
In Sec. II we develop the mathematical background for L A L x 1 x 2 x 2 x 1
2
,
t
, 3a


deriving Lagranges equations from elementary calculus.
Section III gives the derivation of the equations of motion x 1 x 2 x 2 x 1
S A L A tL , t, 3b
for a single particle. Section IV extends our approach to 2 t
demonstrate that the energy and momentum are constants of
the motion. The Appendix expands Lagranges equations to with similar expressions for L B and S B along segment B.
multiparticle systems and adds angular momentum as an ex-
ample of generalized momentum.
III. DERIVATION OF LAGRANGES EQUATION
II. DIFFERENTIAL APPROXIMATION TO THE
We employ the approximations of Sec. II to derive
PRINCIPLE OF LEAST ACTION Lagranges equations for the special case introduced there.
A particle moves along the x axis with potential energy As shown in Fig. 2, we fix events 1 and 3 and vary the x
coordinate of the intermediate event to minimize the action
V(x) which is time independent. For this special case the
between the outer two events.
Lagrange function or Lagrangian L has the form:5 For simplicity, but without loss of generality, we choose
L x, v TV 21 m v 2 V x . 1 the time increment t to be the same for each segment,

510 Am. J. Phys. 72 4, April 2004 http://aapt.org/ajp 2004 American Association of Physics Teachers 510

Downloaded 29 Jun 2013 to 203.199.213.130. Redistribution subject to AAPT license or copyright; see http://ajp.aapt.org/authors/copyright_permission
S AB L A tL B t. 6
The principle of least action requires that the coordinates of
the middle event x be chosen to yield the smallest value of
the action between the fixed events 1 and 3. If we set the
derivative of S AB with respect to x equal to zero8 and use the
chain rule, we obtain
dS AB L A dx A LA dvA L B dx B
0 t t t
dx x A dx v A dx x B dx
LB dvB
t. 7
v B dx
We substitute Eq. 5 into Eq. 7, divide through by t, and
regroup the terms to obtain
Fig. 1. An infinitesimal section of the world line approximated by two
straight line segments.
1 LA LB

2 xA xB

1 LB LA

t v B v A
0. 8

To first order, the first term in Eq. 8 is the average value


which also equals the time between the midpoints of the two of L/ x on the two segments A and B. In the limit t
segments. The average positions and velocities along seg- 0, this term approaches the value of the partial derivative
ments A and B are at x. In the same limit, the second term in Eq. 8 becomes
the time derivative of the partial derivative of the Lagrangian
x 1 x xx 1
x A , v A , 4a with respect to velocity d( L/ v )/dt. Therefore in the limit
2 t t0, Eq. 8 becomes the Lagrange equation in x:

x B
xx 3
2
, v B
x 3 x
t
. 4b
L d L

x dt v
0. 9
The expressions in Eq. 4 are all functions of the single We did not specify the location of segments A and B along
variable x. For later use we take the derivatives of Eq. 4 the world line. The additive property of the action implies
with respect to x: that Eq. 9 is valid for every adjacent pair of segments.
dx A 1 dvA 1 An essentially identical derivation applies to any particle
, , 5a with one degree of freedom in any potential. For example,
dx 2 dx t the single angle tracks the motion of a simple pendulum,
dx B 1 dvB 1 so its equation of motion follows from Eq. 9 by replacing x
, . 5b with without the need to take vector components.
dx 2 dx t
Let L A and L B be the values of the Lagrangian on segments
IV. MOMENTUM AND ENERGY AS CONSTANTS
A and B, respectively, using Eq. 4, and label the summed
OF THE MOTION
action across these two segments as S AB :
A. Momentum
We consider the case in which the Lagrangian does not
depend explicitly on the x coordinate of the particle for ex-
ample, the potential is zero or independent of position. Be-
cause it does not appear in the Lagrangian, the x coordinate
is ignorable or cyclic. In this case a simple and well-
known conclusion from Lagranges equation leads to the mo-
mentum as a conserved quantity, that is, a constant of mo-
tion. Here we provide an outline of the derivation.
For a Lagrangian that is only a function of the velocity,
LL( v ), Lagranges equation 9 tells us that the time de-
rivative of L/ v is zero. From Eq. 1, we find that
L/ v m v , which implies that the x momentum, pm v , is
a constant of the motion.
This usual consideration can be supplemented or replaced
by our approach. If we repeat the derivation in Sec. III with
LL( v ) perhaps as a student exercise to reinforce under-
Fig. 2. Derivation of Lagranges equations from the principle of least action.
standing of the previous derivation, we obtain from the prin-
Points 1 and 3 are on the true world line. The world line between them is ciple of least action
approximated by two straight line segments as in Fig. 1. The arrows show
dS AB LA dvA LB dvB
that the x coordinate of the middle event is varied. All other coordinates are 0 t t. 10
fixed. dx v A dx v B dx

511 Am. J. Phys., Vol. 72, No. 4, April 2004 Hanc, Taylor, and Tuleja 511

Downloaded 29 Jun 2013 to 203.199.213.130. Redistribution subject to AAPT license or copyright; see http://ajp.aapt.org/authors/copyright_permission
Despite the form of Eq. 13, the derivatives of velocities are
not accelerations, because the x separations are held constant
while the time is varied.
As before see Eq. 6,
S AB L A tt 1 L B t 3 t . 14
Note that students sometimes misinterpret the time differ-
ences in parentheses in Eq. 14 as arguments of L.
We find the value of the time t for the action to be a
minimum by setting the derivative of S AB equal to zero:
dS AB LA dvA LB dvB
0 tt 1 L A t t L B .
dt v A dt v B dt 3
15
Fig. 3. A derivation showing that the energy is a constant of the motion. If we substitute Eq. 13 into Eq. 15 and rearrange the
Points 1 and 3 are on the true world line, which is approximated by two result, we find
straight line segments as in Figs. 1 and 2. The arrows show that the t
coordinate of the middle event is varied. All other coordinates are fixed. LA LB
v A L A v L B . 16
vA vB B
We substitute Eq. 5 into Eq. 10 and rearrange the terms to Because the action is additive, Eq. 16 is valid for every
find: segment of the world line and identifies the function
v L/ v L as a constant of the motion. By substituting Eq.
LA LB 1 for the Lagrangian into v L/ v L and carrying out the

vA vB partial derivatives, we can show that the constant of the mo-
or tion corresponds to the total energy ETV.

p A p B . 11
V. SUMMARY
Again we can use the arbitrary location of segments A and B
along the world line to conclude that the momentum p is a Our derivation and the extension to multiple degrees of
constant of the motion everywhere on the world line. freedom in the Appendix allow the introduction of
Lagranges equations and its connection to the principle of
B. Energy least action without the apparatus of the calculus of varia-
tions. The derivations also may be employed as a preview of
Standard texts9 obtain conservation of energy by examin- Lagrangian mechanics before its more formal derivation us-
ing the time derivative of a Lagrangian that does not depend ing variational calculus.
explicitly on time. As pointed out in Ref. 9, this lack of One of us ST has successfully employed these deriva-
dependence of the Lagrangian implies the homogeneity of tions and the resulting Lagrange equations with a small
time: temporal translation has no influence on the form of the group of talented high school students. They used the equa-
Lagrangian. Thus conservation of energy is closely con- tions to solve problems presented in the Physics Olympiad.
nected to the symmetry properties of nature.10 As we will The excitement and enthusiasm of these students leads us to
see, our elementary calculus approach offers an alternative hope that others will undertake trials with larger numbers
way11 to derive energy conservation. and a greater variety of students.
Consider a particle in a time-independent potential V(x).
Now we vary the time of the middle event Fig. 3, rather
than its position, requiring that this time be chosen to mini- ACKNOWLEDGMENT
mize the action.
For simplicity, we choose the x increments to be equal, The authors would like to express thanks to an anonymous
with the value x. We keep the spatial coordinates of all referee for his or her valuable criticisms and suggestions,
three events fixed while varying the time coordinate of the which improved this paper.
middle event and obtain
x x APPENDIX: EXTENSION TO MULTIPLE DEGREES
v A , v B . 12 OF FREEDOM
tt 1 t 3 t
These expressions are functions of the single variable t, with We discuss Lagranges equations for a system with mul-
respect to which we take the derivatives tiple degrees of freedom, without pausing to discuss the
usual conditions assumed in the derivations, because these
dvA x vA can be found in standard advanced mechanics texts.3
, 13a
dt tt 1 2 tt 1 Consider a mechanical system described by the following
Lagrangian:
and
LL q 1 ,q 2 ,...,q s ,q 1 ,q 2 ,...,q s ,t , 17
dvB x vB
. 13b where the q are independent generalized coordinates and the
dt t 3 t 2 t 3 t dot over q indicates a derivative with respect to time. The

512 Am. J. Phys., Vol. 72, No. 4, April 2004 Hanc, Taylor, and Tuleja 512

Downloaded 29 Jun 2013 to 203.199.213.130. Redistribution subject to AAPT license or copyright; see http://ajp.aapt.org/authors/copyright_permission
a
subscript s indicates the number of degrees of freedom of the Electronic mail: jozef.hanc@tuke.sk
b
system. Note that we have generalized to a Lagrangian that is Electronic mail: eftaylor@mit.edu; http://www.eftaylor.com
c
Electronic mail: tuleja@stonline.sk
an explicit function of time t. The specification of all the 1
We take equations of motion to mean relations between the accelera-
values of all the generalized coordinates q i in Eq. 17 de- tions, velocities, and coordinates of a mechanical system. See L. D. Lan-
fines a configuration of the system. The action S summarizes dau and E. M. Lifshitz, Mechanics Butterworth-Heinemann, Oxford,
the evolution of the system as a whole from an initial con- 1976, Chap. 1, Sec. 1.
figuration to a final configuration, along what might be called
2
Besides its expression in scalar quantities such as kinetic and potential
a world line through multidimensional spacetime. Symboli- energy, Lagrangian quantities lead to the reduction of dimensionality of a
problem, employ the invariance of the equations under point transforma-
cally we write: tions, and lead directly to constants of the motion using Noethers theo-

S initial configuration
to final configuration
L q 1 ,q 2 ...q s ,q 1 ,q 2 ...q s ,t dt.
rem. More detailed explanation of these features, with a comparison of
analytical mechanics to vectorial mechanics, can be found in Cornelius
Lanczos, The Variational Principles of Mechanics Dover, New York,
18 1986, pp. xxixxix.
3
Chapter 1 in Ref. 1 and Chap. V in Ref. 2; Gerald J. Sussman and Jack
The generalized principle of least action requires that Wisdom, Structure and Interpretation of Classical Mechanics MIT, Cam-
the value of S be a minimum for the actual evolution of bridge, 2001, Chap. 1; Herbert Goldstein, Charles Poole, and John Safko,
the system symbolized in Eq. 18. We make an argu- Classical Mechanics AddisonWesley, Reading, MA, 2002, 3rd ed.,
ment similar to that in Sec. III for the one-dimensional Chap. 2. An alternative method derives Lagranges equations from
motion of a particle in a potential. If the principle of least DAlambert principle; see Goldstein, Sec. 1.4.
4
action holds for the entire world line through the inter- Our derivation is a modification of the finite difference technique em-
ployed by Euler in his path-breaking 1744 work, The method of finding
mediate configurations of L in Eq. 18, it also holds for an plane curves that show some property of maximum and minimum. Com-
infinitesimal change in configuration anywhere on this world plete references and a description of Eulers original treatment can be
line. found in Herman H. Goldstine, A History of the Calculus of Variations
Let the system pass through three infinitesimally close from the 17th Through the 19th Century Springer-Verlag, New York,
configurations in the ordered sequence 1, 2, 3 such that all 1980, Chap. 2. Cornelius Lanczos Ref. 2, pp. 4954 presents an abbre-
generalized coordinates remain fixed except for a single viated version of Eulers original derivation using contemporary math-
coordinate q at configuration 2. Then the increment of ematical notation.
5
R. P. Feynman, R. B. Leighton, and M. Sands, The Feynman Lectures on
the action from configuration 1 to configuration 3 can be Physics AddisonWesley, Reading, MA, 1964, Vol. 2, Chap. 19.
considered to be a function of the single variable q. As a 6
See Ref. 5, p. 19-8 or in more detail, J. Hanc, S. Tuleja, and M. Hancova,
consequence, for each of the s degrees of freedom, we Simple derivation of Newtonian mechanics from the principle of least
can make an argument formally identical to that carried action, Am. J. Phys. 71 4, 386 391 2003.
out from Eq. 3 through Eq. 9. Repeated s times, once for 7
There is no particular reason to use the midpoint of the segment in the
each generalized coordinate q i , this derivation leads to s Lagrangian of Eq. 2. In Riemann integrals we can use any point on the
given segment. For example, all our results will be the same if we used the
scalar Lagrange equations that describe the motion of the coordinates of either end of each segment instead of the coordinates of the
system: midpoint. The repositioning of this point can be the basis of an exercise to
L d L

q i dt q i
0 i1,2,3,...,s . 19
8
test student understanding of the derivations given here.
A zero value of the derivative most often leads to the world line of mini-
mum action. It is possible also to have a zero derivative at an inflection
point or saddle point in the action or the multidimensional equivalent in
The inclusion of time explicitly in the Lagrangian 17 does configuration space. So the most general term for our basic law is the
not affect these derivations, because the time coordinate is principle of stationary action. The conditions that guarantee the existence
held fixed in each equation. of a minimum can be found in I. M. Gelfand and S. V. Fomin, Calculus of
Suppose that the Lagrangian 17 is not a function of a 9
Variations PrenticeHall, Englewood Cliffs, NJ, 1963.
given coordinate q k . An argument similar to that in Sec. Reference 1, Chap. 2 and Ref. 3, Goldstein et al., Sec. 2.7.
10
The most fundamental justification of conservation laws comes from sym-
IV A tells us that the corresponding generalized momentum metry properties of nature as described by Noethers theorem. Hence en-
L/ q k is a constant of the motion. As a simple example of ergy conservation can be derived from the invariance of the action by
such a generalized momentum, we consider the angular mo- temporal translation and conservation of momentum from invariance un-
mentum of a particle in a central potential. If we use polar der space translation. See N. C. Bobillo-Ares, Noethers theorem in dis-
coordinates r, to describe the motion of a single particle in crete classical mechanics, Am. J. Phys. 56 2, 174 177 1988 or C. M.
Giordano and A. R. Plastino, Noethers theorem, rotating potentials, and
the plane, then the Lagrangian has the form LTV Jacobis integral of motion, ibid. 66 11, 989995 1998.
m(r 2 r 2 2 )/2V(r), and the angular momentum of the 11
Our approach also can be related to symmetries and Noethers theorem,
system is represented by L/ . which is the main subject of J. Hanc, S. Tuleja, and M. Hancova, Sym-
metries and conservation laws: Consequences of Noethers theorem, Am.
If the Lagrangian 17 is not an explicit function of time, J. Phys. to be published.
then a derivation formally equivalent to that in Sec. IVB 12
Reference 3, Goldstein et al., Sec. 2.7.
with time as the single variable shows that the function 13
For the case of generalized coordinates, the energy function h is generally
( q 1 L/ q i )L, sometimes called12 the energy function h, not the same as the total energy. The conditions for conservation of the
is a constant of the motion of the system, which in the simple energy function h are distinct from those that identify h as the total energy.
For a detailed discussion see Ref. 12. Pedagogically useful comments on a
cases we cover13 can be interpreted as the total energy E of
particular example can be found in A. S. de Castro, Exploring a rheon-
the system. omic system, Eur. J. Phys. 21, 2326 2000 and C. Ferrario and A.
If the Lagrangian 17 depends explicitly on time, then Passerini, Comment on Exploring a rheonomic system, ibid. 22, L11
this derivation yields the equation dh/dt L/ t. L14 2001.

513 Am. J. Phys., Vol. 72, No. 4, April 2004 Hanc, Taylor, and Tuleja 513

Downloaded 29 Jun 2013 to 203.199.213.130. Redistribution subject to AAPT license or copyright; see http://ajp.aapt.org/authors/copyright_permission