# GetWiki

*Lagrangian mechanics*

ARTICLE SUBJECTS

being →

database →

ethics →

fiction →

history →

internet →

language →

linux →

logic →

method →

news →

policy →

purpose →

religion →

science →

software →

truth →

unix →

wiki →

ARTICLE TYPES

essay →

feed →

help →

system →

wiki →

ARTICLE ORIGINS

critical →

forked →

imported →

original →

Lagrangian mechanics

[ temporary import ]

**please note:**

- the content below is remote from Wikipedia

- it has been imported raw for GetWiki

**Lagrangian mechanics**is a reformulation of classical mechanics, introduced by the Italian-French mathematician and astronomer Joseph-Louis Lagrange in 1788.In Lagrangian mechanics, the trajectory of a system of particles is derived by solving the Lagrange equations in one of two forms: either the

*Lagrange equations of the first kind*,{{harvnb|Dvorak|Freistetter|2005|page=24}} which treat constraints explicitly as extra equations, often using Lagrange multipliers;{{harvnb|Haken|page=61|2006|edition=3rd}}{{harvnb|Lanczos|page=43 |1986}} or the

*Lagrange equations of the second kind*, which incorporate the constraints directly by judicious choice of generalized coordinates.{{harvnb|Menzel |Zatzkis |1960|edition=2nd|page=160}} In each case, a mathematical function called the

**Lagrangian**is a function of the generalized coordinates, their time derivatives, and time, and contains the information about the dynamics of the system.No new physics are necessarily introduced in applying Lagrangian mechanics compared to Newtonian mechanics. It is, however, more mathematically sophisticated and systematic. Newton's laws can include non-conservative forces like friction; however, they must include constraint forces explicitly and are best suited to Cartesian coordinates. Lagrangian mechanics is ideal for systems with conservative forces and for bypassing constraint forces in any coordinate system. Dissipative and driven forces can be accounted for by splitting the external forces into a sum of potential and non-potential forces, leading to a set of modified Eulerâ€“Lagrange (EL) equations.{{harvnb|Jose|Saletan|page=129}} Generalized coordinates can be chosen for convenience, to exploit symmetries in the system or the geometry of the constraints, which may simplify solving for the motion of the system. Lagrangian mechanics also reveals conserved quantities and their symmetries in a direct way, as a special case of Noether's theorem.Lagrangian mechanics is important not just for its broad applications, but also for its role in advancing deep understanding of physics. Although Lagrange only sought to describe classical mechanics in his treatise

*MÃ©canique analytique*,{{harvnb|Lagrange|1811}}{{harvnb|Lagrange|1815}} William Rowan Hamilton later developed

*Hamilton's principle*that can be used to derive the Lagrange equation and was later recognized to be applicable to much of fundamental theoretical physics as well, particularly quantum mechanics and the theory of relativity. It can also be applied to other systems

*by analogy*, for instance to coupled electric circuits with inductances and capacitances.{{harvnb|Goldtein|1980}}Lagrangian mechanics is widely used to solve mechanical problems in physics and when Newton's formulation of classical mechanics is not convenient. Lagrangian mechanics applies to the dynamics of particles, while fields are described using a Lagrangian density. Lagrange's equations are also used in optimization problems of dynamic systems. In mechanics, Lagrange's equations of the second kind are used much more than those of the first kind.

## Introduction

(File:Bead on wire constraint.svg|thumb|200px|Bead constrained to move on a frictionless wire. The wire exerts a reaction force**C**on the bead to keep it on the wire. The non-constraint force

**N**in this case is gravity. Notice the initial position of the wire can lead to different motions.)(File:Pendulum constraint.svg|150px|thumb|Simple pendulum. Since the rod is rigid, the position of the bob is constrained according to the equation

*f*(

*x*,

*y*) = 0, the constraint force

**C**is the tension in the rod. Again the non-constraint force

**N**in this case is gravity.)Suppose we have a bead sliding around on a wire, or a swinging simple pendulum, etc. If one tracks each of the massive objects (bead, pendulum bob, etc.) as a particle, calculation of the motion of the particle using Newtonian mechanics would require solving for the time-varying constraint force required to keep the particle in the constrained motion (reaction force exerted by the wire on the bead, or tension in the pendulum rod). For the same problem using Lagrangian mechanics, one looks at the path the particle can take and chooses a convenient set of

*independent*generalized coordinates that completely characterize the possible motion of the particle. This choice eliminates the need for the constraint force to enter into the resultant system of equations. There are fewer equations since one is not directly calculating the influence of the constraint on the particle at a given moment.For a wide variety of physical systems, if the size and shape of a massive object are negligible, it is a useful simplification to treat it as a point particle. For a system of

*N*point particles with masses

*m*1,

*m*2, ...,

*mN*, each particle has a position vector, denoted

**r**1,

**r**2, ...,

**r**

*N*. Cartesian coordinates are often sufficient, so

**r**1 = (

*x*1,

*y*1,

*z*1),

**r**2 = (

*x*2,

*y*2,

*z*2) and so on. In three dimensional space, each position vector requires three coordinates to uniquely define the location of a point, so there are 3

*N*coordinates to uniquely define the configuration of the system. These are all specific points in space to locate the particles; a general point in space is written

**r**= (

*x*,

*y*,

*z*). The velocity of each particle is how fast the particle moves along its path of motion, and is the time derivative of its position, thusmathbf{v}_1 = frac{dmathbf{r}_1}{dt}, mathbf{v}_2 = frac{dmathbf{r}_2}{dt},ldots,mathbf{v}_N = frac{dmathbf{r}_N}{dt} In Newtonian mechanics, the equations of motion are given by Newton's laws. The second law "net force equals mass times acceleration",sum mathbf{F} = mfrac{d^2mathbf{r}}{dt^2}applies to each particle. For an

*N*particle system in 3 dimensions, there are 3

*N*second order ordinary differential equations in the positions of the particles to solve for.Instead of forces, Lagrangian mechanics uses the energies in the system. The central quantity of Lagrangian mechanics is the

**Lagrangian**, a function which summarizes the dynamics of the entire system. Overall, the Lagrangian has units of energy, but no single expression for all physical systems. Any function which generates the correct equations of motion, in agreement with physical laws, can be taken as a Lagrangian. It is nevertheless possible to construct general expressions for large classes of applications. The

*non-relativistic*Lagrangian for a system of particles can be defined byTorby1984, p.270

L = T - V

where
T = frac {1}{2} sum_{k=1}^N m_k v^2_k

is the total kinetic energy of the system, equalling the sum Î£ of the kinetic energies of the particles,{{harvnb|Torby|1984|page=269}} and *V*is the potential energy of the system.Kinetic energy is the energy of the system's motion, and

*vk*2 =

**v**

*k**Â·**v**k*is the magnitude squared of velocity, equivalent to the dot product of the velocity with itself. The kinetic energy is a function only of the velocities

**v**

*k**, not the positions**r**k*nor time

*t*, so

*T*=

*T*(

**v**1,

**v**2, ...).The potential energy of the system reflects the energy of interaction between the particles, i.e. how much energy any one particle will have due to all the others and other external influences. For conservative forces (e.g. Newtonian gravity), it is a function of the position vectors of the particles only, so

*V*=

*V*(

**r**1,

**r**2, ...). For those non-conservative forces which can be derived from an appropriate potential (e.g. electromagnetic potential), the velocities will appear also,

*V*=

*V*(

**r**1,

**r**2, ...,

**v**1,

**v**2, ...). If there is some external field or external driving force changing with time, the potential will change with time, so most generally

*V*=

*V*(

**r**1,

**r**2, ...,

**v**1,

**v**2, ...,

*t*).The above form of

*L*does not hold in relativistic Lagrangian mechanics, and must be replaced by a function consistent with special or general relativity. Also, for dissipative forces another function must be introduced alongside

*L*.One or more of the particles may each be subject to one or more holonomic constraints; such a constraint is described by an equation of the form

*f*(

**r**,

*t*) = 0. If the number of constraints in the system is

*C*, then each constraint has an equation,

*f*1(

**r**,

*t*) = 0,

*f*2(

**r**,

*t*) = 0, ...

*fC*(

**r**,

*t*) = 0, each of which could apply to any of the particles. If particle

*k*is subject to constraint

*i*, then

*fi*(

**r**

*k*,

*t*) = 0. At any instant of time, the coordinates of a constrained particle are linked together and not independent. The constraint equations determine the allowed paths the particles can move along, but not where they are or how fast they go at every instant of time. Nonholonomic constraints depend on the particle velocities, accelerations, or higher derivatives of position. Lagrangian mechanics

*can only be applied to systems whose constraints, if any, are all holonomic*. Three examples of nonholonomic constraints are:{{harvnb|Hand|Finch|2008|page=36â€“40}} when the constraint equations are nonintegrable, when the constraints have inequalities, or with complicated non-conservative forces like friction. Nonholonomic constraints require special treatment, and one may have to revert to Newtonian mechanics, or use other methods.If

*T*or

*V*or both depend explicitly on time due to time-varying constraints or external influences, the Lagrangian

*L*(

**r**1,

**r**2, ...

**v**1,

**v**2, ...

*t*) is

*explicitly time-dependent*. If neither the potential nor the kinetic energy depend on time, then the Lagrangian

*L*(

**r**1,

**r**2, ...

**v**1,

**v**2, ...) is

*explicitly independent of time*. In either case, the Lagrangian will always have implicit time-dependence through the generalized coordinates.With these definitions,

**Lagrange's equations of the first kind**are{{harvnb|Hand|Finch|2008|page=60â€“61}}{{Equation box 1|indent =:|title=

**Lagrange's equations**

*(First kind)*|equation = frac{partial L}{partial mathbf{r}_k} - frac{mathrm{d}}{mathrm{d}t}frac{partial L}{partial dot{mathbf{r}}_k} + sum_{i=1}^C lambda_ifrac{partial f_i}{partial mathbf{r}_k }=0 |cellpadding= 6|border |border colour = #0073CF|background colour=#F5FFFA}}where

*k*= 1, 2, ...,

*N*labels the particles, there is a Lagrange multiplier

*Î»i*for each constraint equation

*fi*, and

frac{partial}{partial mathbf{r}_k} equiv left(frac{partial}{partial x_k},frac{partial}{partial y_k},frac{partial}{partial z_k}right),,quad frac{partial}{partial dot{mathbf{r}}_k} equiv left(frac{partial}{partial dot{x}_k},frac{partial}{partial dot{y}_k},frac{partial}{partial dot{z}_k}right)

are each shorthands for a vector of partial derivatives {{math|âˆ‚/âˆ‚}} with respect to the indicated variables (not a derivative with respect to the entire vector).Sometimes in this context the variational derivative denoted and defined as
frac{delta}{delta mathbf{r}_k} equiv frac{partial}{partial mathbf{r}_k} - frac{mathrm{d}}{mathrm{d}t}frac{partial}{partial dot{mathbf{r}}_k}

is used. Throughout this article only partial and total derivatives are used. Each overdot is a shorthand for a time derivative. This procedure does increase the number of equations to solve compared to Newton's laws, from 3*N*to 3

*N*+

*C*, because there are 3

*N*coupled second order differential equations in the position coordinates and multipliers, plus

*C*constraint equations. However, when solved alongside the position coordinates of the particles, the multipliers can yield information about the constraint forces. The coordinates do not need to be eliminated by solving the constraint equations.In the Lagrangian, the position coordinates and velocity components are all independent variables, and derivatives of the Lagrangian are taken with respect to these separately according to the usual differentiation rules (e.g. the derivative of

*L*with respect to the

*z*-velocity component of particle 2,

*v*

*z*2 = d

*z*2/d

*t*, is just that; no awkward chain rules or total derivatives need to be used to relate the velocity component to the corresponding coordinate

*z*2).In each constraint equation, one coordinate is redundant because it is determined from the other two. The number of

*independent*coordinates is therefore

*n*= 3

*N*âˆ’

*C*. We can transform each position vector to a common set of

*n*generalized coordinates, conveniently written as an

*n*-tuple

**q**= (

*q*1,

*q*2, ...

*qn*), by expressing each position vector, and hence the position coordinates, as functions of the generalized coordinates and time,

mathbf{r}_k = mathbf{r}_k(mathbf{q}, t) = (x_k(mathbf{q}, t), y_k(mathbf{q}, t), z_k(mathbf{q}, t), t),.

The vector **q**is a point in the configuration space of the system. The time derivatives of the generalized coordinates are called the generalized velocities, and for each particle the transformation of its velocity vector, the total derivative of its position with respect to time, is

dot{q}_j = frac{mathrm{d}q_j}{mathrm{d}t} ,, quad mathbf{v}_k = sum_{j=1}^n frac{partial mathbf{r}_k}{partial q_j}dot{q}_j +frac{partial mathbf{r}_k}{partial t},.

Given this **v**

*k*, the kinetic energy

*in generalized coordinates*depends on the generalized velocities, generalized coordinates, and time if the position vectors depend explicitly on time due to time-varying constraints, so

*T*=

*T*(

**q**, d

**q**/d

*t*,

*t*).With these definitions we have the

**Eulerâ€“Lagrange equations**, or

**Lagrange's equations of the second kind**{{harvnb|Hand|Finch|2008|page=19}}{{harvnb|Penrose|2007|page=}}{{Equation box 1|indent =:|title=

**Lagrange's equations**

*(Second kind)*|equation = frac{mathrm{d}}{mathrm{d}t} left ( frac {partial L}{partial dot{q}_j} right ) = frac {partial L}{partial q_j} |cellpadding|border |border colour = #0073CF|background colour=#F5FFFA}}are mathematical results from the calculus of variations, which can also be used in mechanics. Substituting in the Lagrangian

*L*(

**q**, d

**q**/d

*t*,

*t*), gives the equations of motion of the system. The number of equations has decreased compared to Newtonian mechanics, from 3

*N*to

*n*= 3

*N*âˆ’

*C*coupled second order differential equations in the generalized coordinates. These equations do not include constraint forces at all, only non-constraint forces need to be accounted for.Although the equations of motion include partial derivatives, the results of the partial derivatives are still ordinary differential equations in the position coordinates of the particles. The total time derivative denoted d/d

*t*often involves implicit differentiation. Both equations are linear in the Lagrangian, but will generally be nonlinear coupled equations in the coordinates.

## From Newtonian to Lagrangian mechanics

### Newton's laws

File:GodfreyKneller-IsaacNewton-1689.jpg|thumb|150px|Isaac NewtonIsaac NewtonFor simplicity, Newton's laws can be illustrated for one particle without much loss of generality (for a system of*N*particles, all of these equations apply to each particle in the system). The equation of motion for a particle of mass

*m*is Newton's second law of 1687, in modern vector notation

mathbf{F} = m mathbf{a} ,,

where **a**is its acceleration and

**F**the resultant force acting

*on*it. In three spatial dimensions, this is a system of three coupled second order ordinary differential equations to solve, since there are three components in this vector equation. The solutions are the position vectors

**r**of the particles at time

*t*, subject to the initial conditions of

**r**and

**v**when

*t*= 0.Newton's laws are easy to use in Cartesian coordinates, but Cartesian coordinates are not always convenient, and for other coordinate systems the equations of motion can become complicated. In a set of curvilinear coordinates

**Î¾**= (

*Î¾*1,

*Î¾*2,

*Î¾*3), the law in tensor index notation is the

*"Lagrangian form"*{{harvnb|Schuam|page=156|1988}}{{harvnb|Synge|Schild|page=150â€“152|1949}}

F^a = m left( frac{mathrm{d}^2 xi^a}{mathrm{d}t^2} + Gamma^a {}_{bc} frac{mathrm{d}xi^b}{mathrm{d}t}frac{mathrm{d}xi^c}{mathrm{d}t} right) = g^{ak} left(frac{mathrm{d}}{mathrm{d}t} frac{partial T}{partial dot{xi}^k} - frac{partial T}{partial xi^k}right) ,, quad dot{xi}^a equiv frac{mathrm{d} xi^a }{mathrm{d}t} ,,

where *Fa*is the

*a*th contravariant components of the resultant force acting on the particle, Î“

*abc*are the Christoffel symbols of the second kind,

T = frac{1}{2} m g_{bc} frac{mathrm{d} xi^b}{mathrm{d}t} frac{mathrm{d} xi^c}{mathrm{d}t} ,,

is the kinetic energy of the particle, and *gbc*the covariant components of the

*metric tensor*of the curvilinear coordinate system. All the indices

*a*,

*b*,

*c*, each take the values 1, 2, 3. Curvilinear coordinates are not the same as generalized coordinates.It may seem like an overcomplication to cast Newton's law in this form, but there are advantages. The acceleration components in terms of the Christoffel symbols can be avoided by evaluating derivatives of the kinetic energy instead. If there is no resultant force acting on the particle,

**F**=

**0**, it does not accelerate, but moves with constant velocity in a straight line. Mathematically, the solutions of the differential equation are

*geodesics*, the curves of extremal length between two points in space (these may end up being minimal so the shortest paths, but that is not necessary). In flat 3d real space the geodesics are simply straight lines. So for a free particle, Newton's second law coincides with the geodesic equation, and states free particles follow geodesics, the extremal trajectories it can move along. If the particle is subject to forces,

**F**â‰

**0**, the particle accelerates due to forces acting on it, and deviates away from the geodesics it would follow if free. With appropriate extensions of the quantities given here in flat 3d space to 4d curved spacetime, the above form of Newton's law also carries over to Einstein's general relativity, in which case free particles follow geodesics in curved spacetime that are no longer "straight lines" in the ordinary sense.{{harvnb|Foster|Nightingale|1995|page=89}}However, we still need to know the total resultant force

**F**acting on the particle, which in turn requires the resultant non-constraint force

**N**plus the resultant constraint force

**C**,

mathbf{F} = mathbf{C} + mathbf{N} ,.

The constraint forces can be complicated, since they will generally depend on time. Also, if there are constraints, the curvilinear coordinates are not independent but related by one or more constraint equations.The constraint forces can either be eliminated from the equations of motion so only the non-constraint forces remain, or included by including the constraint equations in the equations of motion.### D'Alembert's principle

File:Alembert.jpg|thumb|150px|Jean d'AlembertJean d'Alembert{{multiple image|align = vertical|width = 200|image1 = Constraint force virtual displacement 1 dof.svg|caption1 = One degree of freedom.|image2 = Constraint force virtual displacement 2 dof.svg |caption2 = Two degrees of freedom.|footer = Constraint force**C**and virtual displacement

*Î´*

**r**for a particle of mass

*m*confined to a curve. The resultant non-constraint force is

**N**.}}A fundamental result in analytical mechanics is D'Alembert's principle, introduced in 1708 by Jacques Bernoulli to understand static equilibrium, and developed by D'Alembert in 1743 to solve dynamical problems.{{harvnb|Hand|Finch|2008|page=4}} The principle asserts for

*N*particles the virtual work, i.e. the work along a virtual displacement, Î´

**r**

*k*, is zero

sum_{k=1}^N ( mathbf {N}_k + mathbf {C}_k - m_k mathbf{a}_k )cdot delta mathbf{r}_k = 0,.

The *virtual displacements*, Î´

**r**

*k*, are by definition infinitesimal changes in the configuration of the system consistent with the constraint forces acting on the system

*at an instant of time*,{{harvnb|Goldstein|1980|page=16â€“18}} i.e. in such a way that the constraint forces maintain the constrained motion. They are not the same as the actual displacements in the system, which are caused by the resultant constraint and non-constraint forces acting on the particle to accelerate and move it.Here the virtual displacements are assumed reversible, it is possible for some systems to have non-reversible virtual displacements that violate this principle, see Udwadiaâ€“Kalaba equation. Virtual work is the work done along a virtual displacement for any force (constraint or non-constraint).Since the constraint forces act perpendicular to the motion of each particle in the system to maintain the constraints, the total virtual work by the constraint forces acting on the system is zero;{{harvnb|Hand|2008|page=15}}In other words

mathbf{C}_kcdotdeltamathbf{r}_k = 0

for particle *k*subject to a constraint force, however

C_{k,x} delta x_k neq 0,,quad C_{k,y} delta y_k neq 0,,quad C_{k,z} delta z_k neq 0

because of the constraint equations on the **r**

*k*coordinates.

sum_{k=1}^N mathbf {C}_k cdot delta mathbf{r}_k = 0,,

so that
sum_{k=1}^N (mathbf {N}_k - m_k mathbf{a}_k ) cdot delta mathbf{r}_k = 0,.

Thus D'Alembert's principle allows us to concentrate on only the applied non-constraint forces, and exclude the constraint forces in the equations of motion.{{harvnb|Hand|Finch|2008|page=15}}{{harvnb|Fetter |Walecka|1980|page=53}} The form shown is also independent of the choice of coordinates. However, it cannot be readily used to set up the equations of motion in an arbitrary coordinate system since the displacements Î´**r**

*k*might be connected by a constraint equation, which prevents us from setting the

*N*individual summands to 0. We will therefore seek a system of mutually independent coordinates for which the total sum will be 0 if and only if the individual summands are 0. Setting each of the summands to 0 will eventually give us our separated equations of motion.

### Equations of motion from D'Alembert's principle

If there are constraints on particle*k*, then since the coordinates of the position

**r**

**r***k**= (*xk*,*yk*,*zk*) are linked together by a constraint equation, so are those of the virtual displacements*Î´**r***k**= (*Î´xk*,*Î´yk*,*Î´zk*). Since the generalized coordinates are independent, we can avoid the complications with the*Î´*k*by converting to virtual displacements in the generalized coordinates. These are related in the same form as a total differential,{{harvnb|Torby|1984|page=264}}

delta mathbf{r}_k = sum_{j=1}^n frac {partial mathbf{r}_k} {partial q_j} delta q_j ,.

There is no partial time derivative with respect to time multiplied by a time increment, since this is a virtual displacement, one along the constraints in an *instant*of time.The first term in D'Alembert's principle above is the virtual work done by the non-constraint forces

**N**

**r***k**along the virtual displacements*Î´*k*, and can without loss of generality be converted into the generalized analogues by the definition of generalized forces

Q_j = sum_{k=1}^N mathbf {N}_k cdot frac {partial mathbf{r}_k} {partial q_j} ,,

so that
sum_{k=1}^N mathbf{N}_k cdot delta mathbf{r}_k = sum_{k=1}^N mathbf {N}_k cdot sum_{j=1}^n frac {partial mathbf{r}_k} {partial q_j} delta q_j = sum_{j=1}^n Q_j delta q_j ,.

sum_{k=1}^N m_k mathbf{a}_k cdot frac {partial mathbf{r}_k}{partial q_j} = frac{mathrm{d}}{mathrm{d}t}frac{partial T}{partial dot{q}_j} - frac{partial T}{partial q_j} ,.

Now D'Alembert's principle is in the generalized coordinates as required,
sum_{j=1}^n left[ Q_j - left(frac{mathrm{d}}{mathrm{d}t}frac{partial T}{partial dot{q}_j} - frac{partial T}{partial q_j} right) right] delta q_j = 0 ,,

and since these virtual displacements *Î´qj*are independent and nonzero, the coefficients can be equated to zero, resulting in

**Lagrange's equations**{{harvnb|Kibble |Berkshire|edition=5th|2004|page=234}}{{harvnb|Fetter |Walecka|1980|page=56}} or the

**generalized equations of motion**,{{harvnb|Hand|Finch|2008|page=17}}

Q_j = frac{mathrm{d}}{mathrm{d}t}frac{partial T}{partial dot{q}_j} - frac{partial T}{partial q_j}

These equations are equivalent to Newton's laws *for the non-constraint forces*. The generalized forces in this equation are derived from the non-constraint forces only â€“ the constraint forces have been excluded from D'Alembert's principle and do not need to be found. The generalized forces may be non-conservative, provided they satisfy D'Alembert's principle.{{harvnb|Hand|Finch|2008|page=15â€“17}}

### Eulerâ€“Lagrange equations and Hamilton's principle

File:Least action principle.svg|250px|thumb|As the system evolves,**q**traces a path through configuration space (only some are shown). The path taken by the system (red) has a stationary action (Î´

*S*= 0) under small changes in the configuration of the system (Î´

**q**).BOOK, R. Penrose, The Road to RealityThe Road to RealityFor a non-conservative force which depends on velocity, it

*may*be possible to find a potential energy function

*V*that depends on positions and velocities. If the generalized forces

*Qi*can be derived from a potential

*V*such that{{harvnb|Goldstien|1980|page=23}}{{harvnb|Kibble|Berkshire|edition=5th|2004|page=234â€“235}}

Q_j = frac{mathrm{d}}{mathrm{d}t}frac{partial V}{partial dot{q}_j} - frac{partial V}{partial q_j} ,,

equating to Lagrange's equations and defining the Lagrangian as *L*=

*T*âˆ’

*V*obtains

**Lagrange's equations of the second kind**or the

**Eulerâ€“Lagrange equations**of motion

frac{partial L}{partial q_j} - frac{mathrm{d}}{mathrm{d}t}frac{partial L}{partial dot{q}_j} = 0 ,.

However, the Eulerâ€“Lagrange equations can only account for non-conservative forces *if*a potential can be found as shown. This may not always be possible for non-conservative forces, and Lagrange's equations do not involve any potential, only generalized forces; therefore they are more general than the Eulerâ€“Lagrange equations.The Eulerâ€“Lagrange equations also follow from the calculus of variations. The

*variation*of the Lagrangian is

delta L = sum_{j=1}^n left(frac{partial L}{partial q_j} delta q_j + frac{partial L}{partial dot{q}_j} delta dot{q}_j right) ,,quad delta dot{q}_j equiv deltafrac{mathrm{d}q_j}{mathrm{d}t} equiv frac{mathrm{d}(delta q_j)}{mathrm{d}t} ,,

which has a similar form to the total differential of *L*, but the virtual displacements and their time derivatives replace differentials, and there is no time increment in accordance with the definition of the virtual displacements. An integration by parts with respect to time can transfer the time derivative of

*Î´qj*to the âˆ‚

*L*/âˆ‚(d

*qj*/d

*t*), in the process exchanging d(

*Î´qj*)/d

*t*for

*Î´qj*, allowing the independent virtual displacements to be factorized from the derivatives of the Lagrangian,

int_{t_1}^{t_2} delta L , mathrm{d}t =int_{t_1}^{t_2} sum_{j=1}^n left(frac{partial L}{partial q_j}delta q_j +frac{mathrm{d}}{mathrm{d}t} left(frac{partial L}{partial dot{q}_j}delta q_jright) - frac{mathrm{d}}{mathrm{d}t}frac{partial L}{partial dot{q}_j}delta q_j right) , mathrm{d}t ,

# sum_{j1}^nleft[frac{partial L}{partial dot{q}_j}delta q_jright]_{t_1}^{t_2} + int_{t_1}^{t_2} sum_{j1}^n left(frac{partial L}{partial q_j} - frac{mathrm{d}}{mathrm{d}t}frac{partial L}{partial dot{q}_j} right)delta q_j , mathrm{d}t ,.

Now, if the condition*Î´qj*(

*t*1) =

*Î´qj*(

*t*2) = 0 holds for all

*j*, the terms not integrated are zero. If in addition the entire time integral of

*Î´L*is zero, then because the

*Î´qj*are independent, and the only way for a definite integral to be zero is if the integrand equals zero, each of the coefficients of

*Î´qj*must also be zero. Then we obtain the equations of motion. This can be summarized by

**Hamilton's principle**;

int_{t_1}^{t_2}delta L , mathrm{d}t = 0 ,.

The time integral of the Lagrangian is another quantity called the action, defined as{{harvnb|Hand|Finch|2008|page=51}}
S = int_{t_1}^{t_2} L,mathrm{d}t,,

which is a *functional*; it takes in the Lagrangian function for all times between

*t*1 and

*t*2 and returns a scalar value. Its dimensions are the same as [ angular momentum ], [energy]Â·[time], or [length]Â·[momentum]. With this definition Hamilton's principle is

delta S = 0,.

Thus, instead of thinking about particles accelerating in response to applied forces, one might think of them picking out the path with a stationary action, with the end points of the path in configuration space held fixed at the initial and final times. Hamilton's principle is sometimes referred to as the *principle of least action*, however the action functional need only be

*stationary*, not necessarily a maximum or a minimum value. Any variation of the functional gives an increase in the functional integral of the action.Historically, the idea of finding the shortest path a particle can follow subject to a force motivated the first applications of the calculus of variations to mechanical problems, such as the Brachistochrone problem solved by Jean Bernoulli in 1696, as well as Leibniz, Daniel Bernoulli, L'HÃ´pital around the same time, and Newton the following year.{{harvnb|Hand|Finch|2008|page=44â€“45}} Newton himself was thinking along the lines of the variational calculus, but did not publish. These ideas in turn lead to the variational principles of mechanics, of Fermat, Maupertuis, Euler, Hamilton, and others.Hamilton's principle can be applied to nonholonomic constraints if the constraint equations can be put into a certain form, a linear combination of first order differentials in the coordinates. The resulting constraint equation can be rearranged into first order differential equation.{{harvnb|Goldstein|1980}} This will not be given here.

### Lagrange multipliers and constraints

The Lagrangian*L*can be varied in the Cartesian

**r**

*k*coordinates, for

*N*particles,

int_{t_1}^{t_2} sum_{k=1}^N left(frac{partial L}{partial mathbf{r}_k} - frac{mathrm{d}}{mathrm{d}t}frac{partial L}{partial dot{mathbf{r}}_k} right)cdotdelta mathbf{r}_k , mathrm{d}t = 0 ,.

Hamilton's principle is still valid even if the coordinates *L*is expressed in are not independent, here

**r**

**r***k**, but the constraints are still assumed to be holonomic.{{harvnb|Fetter|Walecka|pp=68â€“70}} As always the end points are fixed*Î´**r***k**(*t*1) =*Î´*k**(*t*2) =**0***for all****k***. What cannot be done is to simply equate the coefficients of Î´**r**k*to zero because the Î´

**r**

*k**are not independent. Instead, the method of Lagrange multipliers can be used to include the constraints. Multiplying each constraint equation*fi*(**r**k*,

*t*) = 0 by a Lagrange multiplier

*Î»i*for

*i*= 1, 2, ...,

*C*, and adding the results to the original Lagrangian, gives the new Lagrangian

L' = L(mathbf{r}_1,mathbf{r}_2,ldots,dot{mathbf{r}}_1,dot{mathbf{r}}_2,ldots,t) + sum_{i=1}^C lambda_i(t) f_i(mathbf{r}_k,t) ,.

The Lagrange multipliers are arbitrary functions of time *t*, but not functions of the coordinates

**r**

*k*, so the multipliers are on equal footing with the position coordinates. Varying this new Lagrangian and integrating with respect to time gives

int_{t_1}^{t_2} delta L' mathrm{d}t = int_{t_1}^{t_2} sum_{k=1}^N left(frac{partial L}{partial mathbf{r}_k} - frac{mathrm{d}}{mathrm{d}t}frac{partial L}{partial dot{mathbf{r}}_k} + sum_{i=1}^C lambda_i frac{partial f_i }{partial mathbf{r}_k}right)cdotdelta mathbf{r}_k , mathrm{d}t = 0 ,.

The introduced multipliers can be found so that the coefficients of *Î´*are zero, even though the

**k***r***r**

*k*are not independent. The equations of motion follow. From the preceding analysis, obtaining the solution to this integral is equivalent to the statement

frac{partial L'}{partial mathbf{r}_k} - frac{mathrm{d}}{mathrm{d}t}frac{partial L'}{partial dot{mathbf{r}}_k} = 0 quad Rightarrow quad frac{partial L}{partial mathbf{r}_k} - frac{mathrm{d}}{mathrm{d}t}frac{partial L}{partial dot{mathbf{r}}_k} + sum_{i=1}^C lambda_i frac{partial f_i }{partial mathbf{r}_k} = 0 ,,

which are **Lagrange's equations of the first kind**. Also, the

*Î»i*Euler-Lagrange equations for the new Lagrangian return the constraint equations

frac{partial L'}{partial lambda_i} - frac{mathrm{d}}{mathrm{d}t}frac{partial L'}{partial dot{lambda}_i} = 0 quad Rightarrow quad f_i(mathbf{r}_k,t) = 0 ,.

For the case of a conservative force given by the gradient of some potential energy *V*, a function of the

**r**k coordinates only, substituting the Lagrangian

*L*=

*T*âˆ’

*V*gives

underbrace{ frac{partial T}{partial mathbf{r}_k} - frac{mathrm{d}}{mathrm{d}t}frac{partial T}{partial dot{mathbf{r}}_k} }_{-mathbf{F}_k} + underbrace{ - frac{partial V}{partial mathbf{r}_k}}_{mathbf{N}_k} + sum_{i=1}^C lambda_i frac{partial f_i}{partial mathbf{r}_k} = 0 ,,

and identifying the derivatives of kinetic energy as the (negative of the) resultant force, and the derivatives of the potential equaling the non-constraint force, it follows the constraint forces are
mathbf{C}_k = sum_{i=1}^C lambda_i frac{partial f_i}{partial mathbf{r}_k} ,,

thus giving the constraint forces explicitly in terms of the constraint equations and the Lagrange multipliers.## Properties of the Eulerâ€“Lagrange equation

In some cases, the Lagrangian has properties which can provide information about the system without solving the equations of motion. These follow from Lagrange's equations of the second kind.### Non-uniqueness

The Lagrangian of a given system is not unique. A Lagrangian*L*can be multiplied by a nonzero constant

*a*, an arbitrary constant

*b*can be added, and the new Lagrangian

*aL*+

*b*will describe exactly the same motion as

*L*. A less obvious result is that two Lagrangians describing the same system can differ by the total derivative (not partial) of some function

*f*(

**q**,

*t*) with respect to time;{{harvnb|Landau|Lifshitz|edition=3rd|1976|page=4}}

L' = L + frac{mathrm{d}f(mathbf{q},t)}{mathrm{d}t},.

Each Lagrangian will obtain exactly the same equations of motion.{{harvnb|Goldstien|Poole|Safko|2002|edition=3rd|page=21}}{{harvnb|Landau|Lifshitz|1976|page=4}}### Invariance under point transformations

Given a set of generalized coordinates**q**, if we change these variables to a new set of generalized coordinates

**s**according to a point transformation

**q**=

**q**(

**s**,

*t*), the new Lagrangian

*L*′ is a function of the new coordinates

L(mathbf{q}(mathbf{s},t), dot{mathbf{q}}(mathbf{s},dot{mathbf{s}},t), t ) = L'(mathbf{s}, dot{mathbf{s}},t) ,,

and by the chain rule for partial differentiation, Lagrange's equations are invariant under this transformation;{{harvnb|Goldstein|1980|page=21}}
frac{mathrm{d}}{mathrm{d}t}frac{partial L'}{partial dot{s}_i} = frac{partial L'}{partial s_i} ,.

This may simplify the equations of motion.### Cyclic coordinates and conserved momenta

An important property of the Lagrangian is that conserved quantities can easily be read off from it. The*generalized momentum*"canonically conjugate to" the coordinate

*qi*is defined by

p_i =frac{partial L}{partialdot q_i}.

If the Lagrangian *L*does

*not*depend on some coordinate

*qi*, it follows immediately from the Eulerâ€“Lagrange equations that

dot{p}_i = frac{mathrm{d}}{mathrm{d}t}frac{partial L}{partialdot q_i} = frac{partial L}{partial q_i}=0,.

and integrating shows the corresponding generalized momentum equals a constant, a conserved quantity. This is a special case of Noether's theorem. Such coordinates are called "cyclic" or "ignorable".For example, a system may have a Lagrangian
L(r,theta,dot{s},dot{z},dot{r},dot{theta},dot{phi},t),,

where *r*and

*z*are lengths along straight lines,

*s*is an arc length along some curve, and

*Î¸*and

*Ï†*are angles. Notice

*z*,

*s*, and

*Ï†*are all absent in the Lagrangian even though their velocities are not. Then the momenta

p_z =frac{partial L}{partialdot z},,quad p_s =frac{partial L}{partial dot s},,quad p_phi =frac{partial L}{partial dot phi},,

are all conserved quantities. The units and nature of each generalized momentum will depend on the corresponding coordinate; in this case *pz*is a translational momentum in the

*z*direction,

*ps*is also a translational momentum along the curve

*s*is measured, and

*pÏ†*is an angular momentum in the plane the angle

*Ï†*is measured in. However complicated the motion of the system is, all the coordinates and velocities will vary in such a way that these momenta are conserved.

### Energy conservation

Taking the total derivative of the Lagrangian*L*=

*T*âˆ’

*V*with respect to time leads to the general result

- frac{partial L}{partial t} = frac{mathrm{d}}{mathrm{d}t}left(sum_{i=1}^n dot{q}_ifrac{partial L}{partial dot{q}_i} - Lright),.

*L*/âˆ‚

*t*{{=}} 0}}, so the quantity under the total time derivative in brackets

E = sum_{i=1}^n dot{q}_ifrac{partial L}{partial dot{q}_i} - L

must be a constant for all times during the motion of the system, and it also follows the kinetic energy is a homogenous function of degree 2 in the generalized velocities. If in addition the potential *V*is only a function of coordinates and independent of velocities, it follows by direct calculation, or use of Euler's theorem for homogenous functions, that

sum_{i=1}^n dot{q}_ifrac{partial L}{partial dot{q}_i} = sum_{i=1}^n dot{q}_ifrac{partial T}{partial dot{q}_i} = 2T ,.

Under all these circumstances,{{harvnb|Landau|Lifshitz|1976|page=14}} the constant
E = T + V

is the *total conserved energy*of the system. The kinetic and potential energies still change as the system evolves, but the motion of the system will be such that their sum, the total energy, is constant. This is a valuable simplification, since the energy

*E*is a constant of integration that counts as an arbitrary constant for the problem, and it may be possible to integrate the velocities from this energy relation to solve for the coordinates. In the case the velocity or kinetic energy or both depends on time, then the energy is

*not*conserved.

### Mechanical similarity

If the potential energy is a homogeneous function of the coordinates and independent of time,{{harvnb|Landau|Lifshitz|1976|page=22}} and all position vectors are scaled by the same nonzero constant*Î±*,

**r**

**r***k**′ =*Î±*k*, so that

V(alphamathbf{r}_1,alphamathbf{r}_2,ldots, alphamathbf{r}_N)=alpha^N V(mathbf{r}_1,mathbf{r}_2,ldots, mathbf{r}_N)

and time is scaled by a factor *Î²*,

*t*′ =

*Î²t*, then the velocities

**v**

*k*are scaled by a factor of

*Î±*/

*Î²*and the kinetic energy

*T*by (

*Î±*/

*Î²*)2. The entire Lagrangian has been scaled by the same factor if

frac{alpha^2}{beta^2}=alpha^N quadRightarrowquad beta = alpha^{1-N/2},.

Since the lengths and times have been scaled, the trajectories of the particles in the system follow geometrically similar paths differing in size. The length *l*traversed in time

*t*in the original trajectory corresponds to a new length

*l′*traversed in time

*t′*in the new trajectory, given by the ratios

frac{t'}= left(frac{l'}{l}right)^{1-N/2},.

### Interacting particles

For a given system, if two subsystems*A*and

*B*are non-interacting, the Lagrangian

*L*of the overall system is the sum of the Lagrangians

*LA*and

*LB*for the subsystems:

L = L_A + L_B ,.

If they do interact this is not possible. In some situations, it may be possible to separate the Lagrangian of the system *L*into the sum of non-interacting Lagrangians, plus another Lagrangian

*LAB*containing information about the interaction,

L = L_A + L_B + L_{AB},.

This may be physically motivated by taking the non-interacting Lagrangians to be kinetic energies only, while the interaction Lagrangian is the system's total potential energy. Also, in the limiting case of negligible interaction, *LAB*tends to zero reducing to the non-interacting case above.The extension to more than two non-interacting subsystems is straightforward â€“ the overall Lagrangian is the sum of the separate Lagrangians for each subsystem. If there are interactions, then interaction Lagrangians may be added.

## Examples

The following examples apply Lagrange's equations of the second kind to mechanical problems.### Conservative force

A particle of mass*m*moves under the influence of a conservative force derived from the gradient âˆ‡ of a scalar potential,

mathbf{F} = -nabla V(mathbf{r}),.

If there are more particles, in accordance with the above results, the total kinetic energy is a sum over all the particle kinetic energies, and the potential is a function of all the coordinates.#### Cartesian coordinates

The Lagrangian of the particle can be written
L(x,y,z, dot{x}, dot{y},dot{z}) = frac{1}{2} m (dot{x}^2 + dot{y}^2 + dot{z}^2) - V(x,y,z),.

The equations of motion for the particle are found by applying the Eulerâ€“Lagrange equation, for the *x*coordinate

frac{mathrm{d}}{mathrm{d}t} left( frac{partial L}{partial dot{x}} right) = frac{partial L}{partial x} ,,

with derivatives
frac{partial L}{partial x} = - frac{partial V}{partial x},,quad frac{partial L}{partial dot{x}} = m dot{x},,quad frac{mathrm{d}}{mathrm{d}t} left( frac{partial L}{partial dot{x}} right) = m ddot{x},,

hence
m ddot{x} = - frac{partial V}{partial x},,

and similarly for the *y*and

*z*coordinates. Collecting the equations in vector form we find

mddot{mathbf{r}}=-nabla V

which is Newton's second law of motion for a particle subject to a conservative force.#### Polar coordinates in 2d and 3d

The Lagrangian for the above problem in spherical coordinates, with a central potential, is
L = frac{m}{2}(dot{r}^2+r^2dot{theta}^2 +r^2sin^2theta , dot{varphi}^2)-V(r),,

so the Eulerâ€“Lagrange equations are
mddot{r}-mr(dot{theta}^2+sin^2theta , dot{varphi}^2)+frac{partial V}{partial r} =0,,
frac{mathrm{d}}{mathrm{d}t}(mr^2dot{theta}) -mr^2sinthetacostheta , dot{varphi}^2=0,,
frac{mathrm{d}}{mathrm{d}t}(mr^2sin^2theta , dot{varphi})=0,.

The *Ï†*coordinate is cyclic since it does not appear in the Lagrangian, so the conserved momentum in the system is the angular momentum

p_varphi = frac{partial L}{partial dot{varphi}} = mr^2sin^2theta dot{varphi},,

in which *r*,

*Î¸*and

*dÏ†/dt*can all vary with time, but only in such a way that

*pÏ†*is constant.

### Pendulum on a movable support

(File:pendulumWithMovableSupport.svg|thumb|right|250px|Sketch of the situation with definition of the coordinates (click to enlarge))Consider a pendulum of mass*m*and length

*â„“*, which is attached to a support with mass

*M*, which can move along a line in the

*x*-direction. Let

*x*be the coordinate along the line of the support, and let us denote the position of the pendulum by the angle

*Î¸*from the vertical. The coordinates and velocity components of the pendulum bob are

begin{array}{rll}

& x_mathrm{pend} = x + ell sin theta & quad Rightarrow quad dot{x}_mathrm{pend} = dot{x} + ell dot{theta} cos theta & y_mathrm{pend} = - ell costheta & quad Rightarrow quad dot{y}_mathrm{pend} = ell dot{theta} sin theta end{array}The generalized coordinates can be taken to be *x*and

*Î¸*. The kinetic energy of the system is then

T = frac{1}{2} M dot{x}^2 + frac{1}{2} m left( dot{x}_mathrm{pend}^2 + dot{y}_mathrm{pend}^2 right)

and the potential energy is
V = m g y_mathrm{pend}

giving the Lagrangian
*x*is absent from the Lagrangian, it is a cyclic coordinate. The conserved momentum is

p_x = frac{partial L }{partial dot{x}} = (M + m) dot x + m ell dottheta costheta ,.

and the Lagrange equation for the support coordinate *x*is

(M + m) ddot x + m ell ddotthetacostheta-m ell dottheta ^2 sintheta = 0

The Lagrange equation for the angle *Î¸*is

frac{mathrm{d}}{mathrm{d}t}left[ m( dot x ell costheta + ell^2 dottheta ) right] + m ell (dot x dot theta + g) sintheta = 0;

and simplifying
ddottheta + frac{ddot x}{ell} costheta + frac{g}{ell} sintheta = 0.

These equations may look quite complicated, but finding them with Newton's laws would have required carefully identifying all forces, which would have been much more laborious and prone to errors. By considering limit cases, the correctness of this system can be verified: For example, ddot x to 0 should give the equations of motion for a simple pendulum that is at rest in some inertial frame, while ddottheta to 0 should give the equations for a pendulum in a constantly accelerating system, etc. Furthermore, it is trivial to obtain the results numerically, given suitable starting conditions and a chosen time step, by stepping through the results iteratively.### Two-body central force problem

Two bodies of masses*m*1 and

*m*2 with position vectors

**r**1 and

**r**2 are in orbit about each other due to an attractive central potential

*V*. We may write down the Lagrangian in terms of the position coordinates as they are, but it is an established procedure to convert the two-body problem into a one-body problem as follows. Introduce the Jacobi coordinates; the separation of the bodies

**r**=

**r**2 âˆ’

**r**1 and the location of the center of mass

**R**= (

*m*1

**r**1 +

*m*2

**r**2)/(

*m*1 +

*m*2). The Lagrangian is then{{harvnb|Taylor|2005|page=297}}{{harvnb|Padmanabhan|2000|edition=3rd|page=48 }}The Lagrangian also can be written explicitly for a rotating frame. See Padmanabhan, 2000.

*M*=

*m*1 +

*m*2 is the total mass,

*Î¼*=

*m*1

*m*2/(

*m*1 +

*m*2) is the reduced mass, and

*V*the potential of the radial force, which depends only on the magnitude of the separation |

**r**| = |

**r**2 âˆ’

**r**1|. The Lagrangian splits into a

*center-of-mass*term

*L*cm and a

*relative motion*term

*L*rel.The Eulerâ€“Lagrange equation for

**R**is simply

Mddot{mathbf{R}} = 0 ,,

which states the center of mass moves in a straight line at constant velocity.Since the relative motion only depends on the magnitude of the separation, it is ideal to use polar coordinates (*r*,

*Î¸*) and take

*r*= |

**r**|,

L_text{rel}=frac{1}{2} mu (dot{r}^2 +r^2 dot{theta}^2 ) - V(r) ,,

so *Î¸*is a cyclic coordinate with the corresponding conserved (angular) momentum

p_theta = frac {partial L_text{rel}}{partial dot theta} = mu r^2 dot theta = ell ,.

The radial coordinate *r*and angular velocity d

*Î¸*/d

*t*can vary with time, but only in such a way that

*â„“*is constant. The Lagrange equation for

*r*is

mu r dot theta ^2 -frac {dV}{dr} = mu ddot{r} ,.

This equation is identical to the radial equation obtained using Newton's laws in a *co-rotating*reference frame, that is, a frame rotating with the reduced mass so it appears stationary. Eliminating the angular velocity d

*Î¸*/d

*t*from this radial equation,{{harvnb|Hand|Finch|1998|pages=140â€“141 }}

mu ddot r = -frac{mathrm{d}V}{mathrm{d}r} + frac{ell^2}{mu r^3} ,.

which is the equation of motion for a one-dimensional problem in which a particle of mass *Î¼*is subjected to the inward central force âˆ’ d

*V*/d

*r*and a second outward force, called in this context the centrifugal force

F_{mathrm{cf}} = mu r dot theta ^2 = frac {ell^2}{mu r^3} ,.

Of course, if one remains entirely within the one-dimensional formulation, *â„“*enters only as some imposed parameter of the external outward force, and its interpretation as angular momentum depends upon the more general two-dimensional problem from which the one-dimensional problem originated.If one arrives at this equation using Newtonian mechanics in a co-rotating frame, the interpretation is evident as the centrifugal force in that frame due to the rotation of the frame itself. If one arrives at this equation directly by using the generalized coordinates (

*r*,

*Î¸*) and simply following the Lagrangian formulation without thinking about frames at all, the interpretation is that the centrifugal force is an outgrowth of

*using polar coordinates*. As Hildebrand says:{{harvnb|Hildebrand|1992 |page=156}}"Since such quantities are not true physical forces, they are often called

*inertia forces*. Their presence or absence depends, not upon the particular problem at hand, but

*upon the coordinate system chosen*." In particular, if Cartesian coordinates are chosen, the centrifugal force disappears, and the formulation involves only the central force itself, which provides the centripetal force for a curved motion.This viewpoint, that fictitious forces originate in the choice of coordinates, often is expressed by users of the Lagrangian method. This view arises naturally in the Lagrangian approach, because the frame of reference is (possibly unconsciously) selected by the choice of coordinates. For example, see{{harvnb|Zak|Zbilut|Meyers|1997|pages=202}} for a comparison of Lagrangians in an inertial and in a noninertial frame of reference. See also the discussion of "total" and "updated" Lagrangian formulations in.{{harvnb|Shabana|2008|pages=118â€“119}} Unfortunately, this usage of "inertial force" conflicts with the Newtonian idea of an inertial force. In the Newtonian view, an inertial force originates in the acceleration of the frame of observation (the fact that it is not an inertial frame of reference), not in the choice of coordinate system. To keep matters clear, it is safest to refer to the Lagrangian inertial forces as

*generalized*inertial forces, to distinguish them from the Newtonian vector inertial forces. That is, one should avoid following Hildebrand when he says (p. 155) "we deal

*always*with

*generalized*forces, velocities accelerations, and momenta. For brevity, the adjective "generalized" will be omitted frequently."It is known that the Lagrangian of a system is not unique. Within the Lagrangian formalism the Newtonian fictitious forces can be identified by the existence of alternative Lagrangians in which the fictitious forces disappear, sometimes found by exploiting the symmetry of the system.{{harvnb|Gannon|2006 |page=267}}

### Electromagnetism

A test particle is a particle whose mass and charge are assumed to be so small that its effect on external system is insignificant. It is often a hypothetical simplified point particle with no properties other than mass and charge. Real particles like electrons and up quarks are more complex and have additional terms in their Lagrangians.The Lagrangian for a charged particle with electrical charge*q*, interacting with an electromagnetic field, is the prototypical example of a velocity-dependent potential. The electric scalar potential

*Ï•*=

*Ï•*(

**r**,

*t*) and magnetic vector potential

**A**=

**A**(

**r**,

*t*) are defined from the electric field

**E**=

**E**(

**r**,

*t*) and magnetic field

**B**=

**B**(

**r**,

*t*) as follows;

mathbf{E} = - nablaphi - frac{partial mathbf{A}}{partial t} ,, quad mathbf{B} = nabla times mathbf{A} ,.

The Lagrangian of a massive charged test particle in an electromagnetic field is
L = frac{m}{2} dot{mathbf{r}}^2 - q phi + q dot{mathbf{r}} cdot mathbf{A} ,,

which produces the Lorentz force law
m ddot{mathbf{r}} = q mathbf{E} + q dot{mathbf{r}} times mathbf{B} ,.

An interesting detail in this example is the generalized momentum conjugate to **r**is the ordinary momentum plus a contribution from the

**A**field,

mathbf{p} = frac{partial L}{partial dot{mathbf{r}}} = m dot{mathbf{r}} + q mathbf{A} ,.

If **r**is cyclic, which happens if the

*Ï•*and

**A**fields are uniform (independent of position), then this expression for

**p**given here is the conserved momentum, while the usual quantity

*m*

**v**is not. This relation is also used in the minimal coupling prescription in quantum mechanics and quantum field theory.

## Extensions to include non-conservative forces

Dissipation (i.e. non-conservative systems) can also be treated with an effective Lagrangian formulated by a certain doubling of the degrees of freedom.{{harvnb|Kosyakov|2007}}{{harvnb|Galley|2013}}{{harvnb|Hadar|Shahar|Kol|2014}}{{harvnb|Birnholtz|Hadar|Kol|2013}}In a more general formulation, the forces could be both conservative and viscous. If an appropriate transformation can be found from the**F**i, Rayleigh suggests using a dissipation function,

*D*, of the following form:{{harvnb|Torby|1984|page=271}}

D = frac {1}{2} sum_{j=1}^m sum_{k=1}^m C_{j k} dot{q}_j dot{q}_k ,.

where *Cjk*are constants that are related to the damping coefficients in the physical system, though not necessarily equal to them. If

*D*is defined this way, then

Q_j = - frac {partial V}{partial q_j} - frac {partial D}{partial dot{q}_j}

and
frac{mathrm{d}}{mathrm{d}t} left ( frac {partial L}{partial dot{q}_j} right ) - frac {partial L}{partial q_j} + frac {partial D}{partial dot{q}_j} = 0,.

## Other contexts and formulations

The ideas in Lagrangian mechanics have numerous applications in other areas of physics, and can adopt generalized results from the calculus of variations.### Alternative formulations of classical mechanics

A closely related formulation of classical mechanics is Hamiltonian mechanics. The Hamiltonian is defined by
H = sum_{i=1}^n dot{q}_ifrac{partial L}{partial dot{q}_i} - L ,.

and can be obtained by performing a Legendre transformation on the Lagrangian, which introduces new variables canonically conjugate to the original variables. For example, given a set of generalized coordinates, the variables canonically conjugate are the generalized momenta. This doubles the number of variables, but makes differential equations first order. The Hamiltonian is a particularly ubiquitous quantity in quantum mechanics (see Hamiltonian (quantum mechanics)).Routhian mechanics is a hybrid formulation of Lagrangian and Hamiltonian mechanics, which is not often used in practice but an efficient formulation for cyclic coordinates.### Momentum space formulation

The Eulerâ€“Lagrange equations can also be formulated in terms of the generalized momenta rather than generalized coordinates. Performing a Legendre transformation on the generalized coordinate Lagrangian*L*(

**q**, d

**q**/d

*t*,

*t*) obtains the generalized momenta Lagrangian

*L*′(

**p**, d

**p**/d

*t*,

*t*) in terms of the original Lagrangian, as well the EL equations in terms of the generalized momenta. Both Lagrangians contain the same information, and either can be used to solve for the motion of the system. In practice generalized coordinates are more convenient to use and interpret than generalized momenta.

### Higher derivatives of generalized coordinates

There is no reason to restrict the derivatives of generalized coordinates to first order only. It is possible to derive modified EL equations for a Lagrangian containing higher order derivatives, see Eulerâ€“Lagrange equation for details.### Optics

Lagrangian mechanics can be applied to geometrical optics, by applying variational principles to rays of light in a medium, and solving the EL equations gives the equations of the paths the light rays follow.### Relativistic formulation

Lagrangian mechanics can be formulated in special relativity and general relativity. Some features of Lagrangian mechanics are retained in the relativistic theories but difficulties quickly appear in other respects. In particular, the EL equations take the same form, and the connection between cyclic coordinates and conserved momenta still applies, however the Lagrangian must be modified and is not simply the kinetic minus the potential energy of a particle. Also, it is not straightforward to handle multiparticle systems in a manifestly covariant way, it may be possible if a particular frame of reference is singled out.### Quantum mechanics

In quantum mechanics, action and quantum-mechanical phase are related via Planck's constant, and the principle of stationary action can be understood in terms of constructive interference of wave functions.In 1948, Feynman discovered the path integral formulation extending the principle of least action to quantum mechanics for electrons and photons. In this formulation, particles travel every possible path between the initial and final states; the probability of a specific final state is obtained by summing over all possible trajectories leading to it. In the classical regime, the path integral formulation cleanly reproduces Hamilton's principle, and Fermat's principle in optics.### Classical field theory

In Lagrangian mechanics, the generalized coordinates form a discrete set of variables that define the configuration of a system. In classical field theory, the physical system is not a set of discrete particles, but rather a continuous field*Ï•*(

**r**,

*t*) defined over a region of 3d space. Associated with the field is a Lagrangian density

mathcal{L}(phi, nabla phi, partialphi/partial t , mathbf{r},t)

defined in terms of the field and its space and time derivatives at a location **r**and time

*t*. Analogous to the particle case, for non-relativistic applications the Lagrangian density is also the kinetic energy density of the field, minus its potential energy density (this is not true in general, and the Lagrangian density has to be "reverse engineered"). The Lagrangian is then the volume integral of the Lagrangian density over 3d space

L(t) = int mathcal{L} , mathrm{d}^3 mathbf{r}

where d3**r**is a 3d differential volume element. The Lagrangian is a function of time since the Lagrangian density has implicit space dependence via the fields, and may have explicit spatial dependence, but these are removed in the integral, leaving only time in as the variable for the Lagrangian.

### Noether's theorem

The action principle, and the Lagrangian formalism, are tied closely to Noether's theorem, which connects physical conserved quantities to continuous symmetries of a physical system.If the Lagrangian is invariant under a symmetry, then the resulting equations of motion are also invariant under that symmetry. This characteristic is very helpful in showing that theories are consistent with either special relativity or general relativity.## See also

{{div col|small=yes|colwidth=20em}}- Fundamental lemma of the calculus of variations
- Canonical coordinates
- Functional derivative
- Generalized coordinates
- Hamiltonian mechanics
- Hamiltonian optics
- Lagrangian and Eulerian specification of the flow field
- Lagrangian point
- Lagrangian system
- Non-autonomous mechanics
- Restricted three-body problem
- Plateau's problem
- Inverse problem for Lagrangian mechanics, the general topic of finding a Lagrangian for a system given the equations of motion.

## Footnotes

{{reflist|group=nb}}## Notes

{{reflist|30em}}## References

- BOOK, MÃ©canique analytique, 1811, 1, J. L., Lagrange,weblink
- BOOK, MÃ©canique analytique, 1815, 2, J. L., Lagrange,weblink
- BOOK, The Road to Reality, Penrose, Roger, Vintage books, 2007, 0-679-77631-1,
- BOOK, Mechanics, 3rd, 134, Landau, L. D., Lifshitz, E. M., L. D. Landau, E. M. Lifshitz, Butterworth Heinemann, 9780750628969,
- BOOK, Lev Davidovich Landau, Evgeny Mikhailovich Lifshitz, Landau, Lifshitz, Lev, Evgeny, The Classical Theory of Fields, 1975, Elsevier Ltd., 978-0-7506-2768-9,
- BOOK, Analytical Mechanics, 2nd, 23, Hand, L. N., Finch, J. D., Cambridge University Press, 9780521575720,
- BOOK, Analytical mechanics, Louis N. Hand, Janet D. Finch,weblink 140â€“141, 0-521-57572-9, 1998, Cambridge University Press,
- BOOK, Classical Dynamics: A Contemporary Approach, 1998, E. J., Saletan, JosÃ©, J. V.,weblink Cambridge University Press,
- BOOK, Kibble, T. W. B., Berkshire, F. H., Classical Mechanics, 5th, 2004, 9781860944352, Imperial College Press, 236,
- BOOK, Goldstein, Herbert, Herbert Goldstein, Classical Mechanics, 2nd, 1980, 0201029189, Addison Wesley, San Francisco, CA, 352â€“353,
- BOOK, Goldstein, Herbert, Herbert Goldstein, Poole, Charles P., Jr., Safko, John L., Classical Mechanics, 3rd, 2002,weblink 0-201-65702-3, Addison Wesley, San Francisco, CA, 347â€“349,
- BOOK, The variational principles of mechanics, Lanczos, Cornelius, 43, II Â§5 Auxiliary conditions: the Lagrangian Î»-method, 0-486-65067-7, Courier Dover, 1986, Reprint of University of Toronto 1970 4th,weblink
- BOOK, Fetter, A. L., Walecka, J. D., Theoretical Mechanics of Particles and Continua, 1980, 978-0-486-43261-8, Dover, 53â€“57,weblink
*The Principle of Least Action*, R. Feynman- BOOK, Chaos and stability in planetary systems, Dvorak, R., Florian, Freistetter, Â§ 3.2 Lagrange equations of the first kind,weblink 24, 3-540-28208-4, 2005, BirkhÃ¤user,
- BOOK, Information and self-organization, Haken, H,weblink 61, 3-540-33021-6, 2006, 3rd, Springer,
- BOOK, Fundamental formulas of physics, DH Menzel, Henry Zatzkis, Â§1.4 Lagrange equations of the second kind,weblink 160, 0-486-60595-7, Courier Dover, 1960, 1, 2nd,
- BOOK, Methods of applied mathematics, Francis Begnaud Hildebrand,weblink 156, 0-486-67002-3, Reprint of Prentice-Hall 1965 2nd, 1992, Courier Dover,
- BOOK, From instability to intelligence, 202, Michail Zak, Joseph P. Zbilut, Ronald E. Meyers,weblink 3-540-63055-4, 1997, Springer,
- BOOK, Computational continuum mechanics, Ahmed A. Shabana,weblink 118â€“119, 0-521-88569-8, 2008, Cambridge University Press,
- BOOK, 297, Classical mechanics,weblink John Robert Taylor, 1-891389-22-X, University Science Books, 2005,
- BOOK, Theoretical Astrophysics: Astrophysical processes, Â§2.3.2 Motion in a rotating frame, 48,weblink Thanu, Padmanabhan, 0-521-56632-0, 3rd, Cambridge University Press, 2000,
- BOOK, Doughty, Noel A., Lagrangian Interaction, 1990, Addison-Wesley Publishers Ltd., 0-201-41625-5,
- BOOK, B. P., Kosyakov, Introduction to the classical theory of particles and fields, Berlin, Germany, Springer, 2007, 10.1007/978-3-540-40934-2,
- JOURNAL, 10.1103/PhysRevLett.110.174301, 23679733, Classical Mechanics of Nonconservative Systems, Physical Review Letters, 110, 17, 174301, 2013, Galley, Chad R., 2013PhRvL.110q4301G, 1210.2745,
- JOURNAL, 1402.2610, Birnholtz, Ofek, Radiation reaction at the level of the action, International Journal of Modern Physics A, 29, 24, 1450132, Hadar, Shahar, Kol, Barak, 2014, 10.1142/S0217751X14501322, 2014IJMPA..2950132B,
- JOURNAL, 10.1103/PhysRevD.88.104037, Theory of post-Newtonian radiation and reaction, Physical Review D, 88, 10, 104037, 2013, Birnholtz, Ofek, Hadar, Shahar, Kol, Barak, 2013PhRvD..88j4037B, 1305.6930,
- BOOK, 978-1-4614-3929-5,weblink Engineering Dynamics: From the Lagrangian to Simulation, Roger F Gans, New York, Springer, 2013,
- BOOK, Moonshine beyond the monster: the bridge connecting algebra, modular forms and physics, Terry Gannon,weblink 267, 0-521-83531-3, 2006, Cambridge University Press,
- BOOK, Torby, Bruce, Advanced Dynamics for Engineers, HRW Series in Mechanical Engineering, 1984, CBS College Publishing, United States of America, 0-03-063366-4, Energy Methods,
- BOOK, Foster, J, Nightingale, J.D., 2nd, A Short Course in General Relativity, 1995, Springer, 0-03-063366-4,
- BOOK

, M. P. Hobson, G. P. Efstathiou, A. N. Lasenby, General Relativity: An Introduction for Physicists

, 79â€“80

, 9780521829519

, 2006

, Cambridge University Press

,weblink

, 79â€“80

, 9780521829519

, 2006

, Cambridge University Press

,weblink

## Further reading

- Gupta, Kiran Chandra,
*Classical mechanics of particles and rigid bodies*(Wiley, 1988). - BOOK, Cassel, Kevin, Variational methods with applications in science and engineering, Cambridge University Press, Cambridge, 2013, 978-1-107-02258-4, harv,
- Goldstein, Herbert, et al.
*Classical Mechanics*. 3rd ed., Pearson, 2002.

## External links

- WEB, David Tong, Cambridge Lecture Notes on Classical Dynamics, DAMTP,weblink {{sfnref, DAMTP, | access-date=2017-06-08}}
- Principle of least action interactive Excellent interactive explanation/webpage
- Joseph Louis de Lagrange - Å’uvres complÃ¨tes (Gallica-Math)
- Constrained motion and generalized coordinates, page 4

**- content above as imported from Wikipedia**

- "

- time: 7:07am EDT - Thu, Sep 19 2019

- "

__Lagrangian mechanics__" does not exist on GetWiki (yet)- time: 7:07am EDT - Thu, Sep 19 2019

[ this remote article is provided by Wikipedia ]

LATEST EDITS [ see all ]

GETWIKI 09 JUL 2019

GETWIKI 09 MAY 2016

GETWIKI 18 OCT 2015

GETWIKI 20 AUG 2014

GETWIKI 19 AUG 2014

© 2019 M.R.M. PARROTT | ALL RIGHTS RESERVED