4.2 Forces of Constraints and Generalized Coordinates
Suppose that a particle is free to move in all directions. Three coordinates are needed to specify its location.
Cartesian: (x,y,z)
Cylinderical: (ρ,ψ,z)
Spherical: (r,θ,ϕ)
The presence of constrains mean that some coordinates might be less than three positions. A constraint that reduces the number of position of a particle is called a holonomic constraint. The minimal set of required independent coordinates are called generalized coordinates, denoted by qk.
4.3: Hamilton’s Mechanics
The Lagrangian is defined as
L=T−U
where T is kinetic energy and U is potential energy. Having chosen a set of generalized coordinates, the Lagrangian can be written as:
L=T−U=L(t,q1,q1,⋯,q1˙,q2˙,⋯)
We define its action S[qk(t)] as the functional of the time integrand over the Lagrange L, from a starting time ta to an ending time tb.
When S is stationary, δS(the change in position) is zero, giving us
0=δ∫tatbdtL(t,qk,qk˙)
Using knowledge from the previous chapter, the Lagrange is equal to (The integral represents the area under curve, where the curve/function is defined by the integrand. In this case, the integrand is L. When S is stationary, it has reached a minimum or a maximum. As we derived in chapter, when the value of a function is extremeized, by Euler’s equation 0=∂L/∂qk−(d/dt)(∂L/∂qk˙):
0=∂qk∂L−dtd∂qk˙∂L
4.32: Newton’s Law and Hamilton Mechanics
F=ma=dtd∂qk˙∂L
Hamilton Mechanics is consistent of Newton’s law. The second term of the Lagrange equation essentially represents F=ma, while the first term sums of force components. This is illustrated by below examples 4., 4.2. and 4.3.
Example 4.1: A Simple Pendulum
An inertial observer sees that a small plumb bob of mass m is free to swing back and forth in a vertical x–z plane at the end of a string of length R. The position of the bob can be specified uniquely by its angle θ measured up from its equilibrium position at the bottom, so we choose θ as the generalized coordinate, as illustrated in Figure 4.2. Find the equation of motion and the second order differential equation.
Solution
The origin of the system is defined at the bottom. Kinetic energy is K=1/2mv2, where velocity v requires three coordinates to specify its direction. By cylindrical coordinates, we know that (x,y,z)=(r,rθ,z). Speed v is equal to:
v=x˙2+y˙2+z˙2=r2+r2θ˙2+z˙2
Kinetic energy is equal to:
K=21mv2=21m(r2+r2θ˙2+z˙2)
Given the constraint that the string length R is fixed, r˙=0 and initial speed z˙=0, the equation becomes:
K=21mv2=21m(R2θ˙2)
The simple pendulum, with θ as the generalized coordinate.
L=T−U=21m(R2θ˙2)−mgR(1−cosθ)
The Euler’s equation for L=L(t,θ,θ˙) is equal to:
0=∂θ∂L−dtd∂θ˙∂L=−mgRsinθ−dtd(21mR22θ˙θ¨)
Simplifying the expression, we get
0=θ¨+Rgsinθ
The second order differential equation shows the pendulum is in simple harmonic motion with an angular frequency of ω=g/R. Torque is equal to τ=Iω=mR2g/R=mgR.
Example 4.2: A Bead Sliding on a Vertical Helix
A bead of mass m is slipped onto a frictionless wire wound in the shape of a helix of radius R, whose symmetry axis is oriented vertically in a uniform gravitational field, as shown in Figure 4.3. As always, we assume the description is from an inertial frame’s perspective (unless explicitly stated otherwise). Using cylindrical coordinates to find equations of motion.
Example 4.3: Block on an Inclined Plane
A bead of mass m is slipped onto a frictionless wire wound in the shape of a helix of radius R, whose symmetry axis is oriented vertically in a uniform gravitational field, as shown in Figure 4.3
Solution
The Lagrange L is equal to:
L=T−U=21mv2−mgXsinα=21mX˙2−mgXsinα
Using Euler’s equation, we let L=L(t,X˙,X), giving us:
0=−mgsinα−dtd21m(2X˙)=−mgsinα−dtdmX˙
The equation is consistent with Newton’s law, where ma=−mgsinα in the horizontal (inclined) direction.
Summary for finding L and equations of motion
Use cartesian/polar/spherical/cylindrical coordinate to find positions of any arbitrary position s.
Differentiate position s to find velocity v
Find the Lagrange L=T−U
Find the expression for kinetic energy T
Find the expression for potential energy U
Use Euler’s equation to find equations of motion
4.4: Generalized Momenta and Cyclic Coordinates
In the last section, we has shown that Lagrange equation is consistent with Newton’s second law. The first term represents force components, and the second term is ma. Because F=dp/dt, the term ∂L/∂x˙ can be seen as a component of momentum. Thus, it is natural to define the generalized momenta using generalized coordinates qk
The generalized momenta is defined as:
pk≡∂qk˙∂L
By Newton’s second law, dp/dt=ma. In terms of pk, the Lagrange equation becomes:
dtdpk=∂qk∂L
Lagrange is expressed in the form of L=L(t,qk,qk˙). Sometimes, the coordinate qk is missing while qk˙ is presents. A missing coordinate is said to be a cyclic coordinate. For such coordinate, the Lagrange equation tells us that the time derivative of corresponding generalized momentum is zero, so that the particular momentum is conserved.
dtdpk=∂qk∂L=0
💡
One of the first thing to notice about a Lagrangian is whether there is a cyclic coordinate, because such coordinate leads to a conservation law that is also a first integral of motion. This means that the equation of motion is a first-order differential equation rather than the second-order differential equation for a noncyclic coordinate.
Explanation:
The explanation seems confusing. All it is trying to say is that: if there is a cyclic coordinate, there must be a conserved quantity. This is better explained by the below example. Consider the Lagrange L=L(t,qk,qk˙), where qk is missing. Using Euler’s equation, we get:
0=∂qk∂L−dtd∂qk˙∂L
Because qk is missing, the equation is independent of qk and ∂L/∂qk=0. Then,
0=dtd∂qk˙∂L
so ∂L/∂qk˙=k is a constant. Thus, ∂L/∂qk˙ is a conserved quantity.
Example: Particle on a Tabletop
Particle moving on a tabletop. There is a central for F(r)=krr^ directed towards the origin. Derive the Lagrange equation and expressions for effective potential, and time.
Solution
Lagrange and Euler’s Equations:
For a particle moving in a plane (two dimensions) and subject to a central force, it is better to use polar coordinates (r,θ) about the origin. The kinetic energy is given by:
T=21mv2=21m(r˙2+(rθ˙)2)
The Lagrange L=T−U is equal to:
L=T−U(r)=21m(r˙2+(rθ˙)2)−U(r)
The generalized coordinates are r and θ. Notice that θ is the cyclic coordinate since it is missing and only θ˙ is present. Thus, there must be a conserved quantity. Using Euler’s equation, we know that:
0=dtd∂θ˙∂L
such that ∂L/∂θ˙=k is equal to a constant. Using chain rule for multivaraible functions, the conserved is:
pθ=∂θ˙∂L=mr2θ˙
We recognize this as the angular momentum (The makes sense inutitively and theoretically. As shown in the previous section, the second term in Lagrange equation is equal to d/dt(∂L/∂θ˙)=ma and F=dp/dt, so it is natural that ∂L/∂θ˙ is some form of momentum).
The Lagrange equations are (Notice that there are two independent variables/generalized coordinates, so we use variational calculus for several variables in chapter three The Variational Principle):
∂r∂L=dtd∂r˙∂L∂θ∂L=dtd∂θ˙∂L
which becomes:
m(rθ˙2)−∂r∂U(r)=dtd(mr˙),0=dtdmr2θ˙
−∂r∂U(r)=mr¨−mrθ˙2,pθ=mr2θ˙
This is equal to:
F(r)=mar=m(r¨−rθ˙2),Fθ=m(rθ¨+2r˙θ˙)
Newton’s Law and Lagrange Equations: 2nd Order DE Derivations
Notice this is consistent with Newton’s second law, where the acceleration for an object in circular motion is equal to a=ar+aθ=(r¨−rθ˙)r^+(r+θ¨+2r˙θ˙)θ^. Because pθ=mrθ˙2 is a conserved quantity, we can solved for θ˙, giving us:
θ˙=mr2pθ
Substituting the expression for θ˙ into the Lagrange equation for −∂U(r)/∂r, we get:
−∂r∂U(r)=mr¨−mr(mr2pθ)2
where the central force F(r)=∂U(r)/∂r=−kr (This is shown in example 1.6 in chapter one Newtonian Mechanics). Then, the expression becomes:
Rearranging the second order differential equation, mr¨ is equal to:
mr¨=mr3pθ2−mω2r=F(r)
where F(r)=mr¨ is the central force directed towards the origin. Recall that effective potential Ueff is defined as (Note that effective potential is NOT same as potential energy. It is defined to simplifies two dimensional motion into one dimension. For more details, please refer to the :
Ueff=−∫F(r)dr
Integrate F(r) alone the path for r, Ueff is equal to:
Ueff=−∫(mr3pθ2−mmkr)dr=2mr2pθ2+21kr2+C
where C is a constant. Then, the second first integral of motion is given by energy conservation in this one-dimensional system.
E=K+Ueff(r)=21mr˙2+2mr2pθ2+21kr2
Note that K=T in the Lagrange equation. The kinetic energy K includes the radial component only. This is because kinetic energy in tangential component in θ^ direction is a part of the effective potential Ueff, so that the motion is simplified from two dimensional into one dimensional.
Time
Rearranging the equation for energy E, the expression becomes:
E=21mr˙2+Ueff(r)
Solving for r˙, we get:
r˙=m2E−Ueff(r)
Expressing r˙ as a differential, we get:
r˙=dtdr
Using separable integration, time t is equal to:
t=∫dt=∫m2E−Ueff(r)dr
Example 4.5: Spherical Pendulum
A ball of mass m swings on the end of an unstretchable string of length R in the presence of a uniform gravitational field g. This is often called the “spherical pendulum,” because the ball moves as though it were sliding on the frictionless surface of a spherical bowl. We aim to find its equations of motion.
Solution
Before solving the problem, we recognize the constraint that the pendulum has a fixed radius of R. Then, the ball has two degrees of freedom:
It can move horizontally around a vertical axis, corresponding to the azimuthal angle ϕ.
It can also move in the polar direction, described by the angle θ.
When finding equations of motion, we follow the below steps:
Specify the position of an arbitrary point using Cartesian/Spherical/Cylindrical coordinates.
Differentiate position s to find velocity v.
Find kinetic energy T and potential energy U to get the Lagrange L=T−U.
Apply Euler’s equation to L to find equations of motion.
First integrals of motion.
STEP 1 Find s:
Using spherical coordinates, the position of a point is specified by:
s=(r,rθ,rsinθϕ)
Given that radius r=R, the expression becomes:
s=(R,Rθ,Rsinθϕ)
STEP 2: Velocity
Differentiating s with respect to time, velocity v is equal to:
v=(0,Rθ˙,Rsinθϕ˙)
where R˙=0 since R is fixed (a constant).
STEP 3: Lagrangian
Using v, kinetic energy T is equal to:
T=21mv2=21mR2(θ˙2+sin2θϕ˙2)
Potential energy U is equal to:
U=mgRcosθ
The Lagrange L=T−U is equal to:
L=T−U=21mR2(θ˙2+sin2θϕ˙2)=mgRcosθ
STEP 4: Euler’s equation to find equations of motion
Using Euler’s equation, we get:
0=∂θ∂L−dtd∂θ˙∂L,0=∂ϕ∂L−dtd∂ϕ˙∂L
STEP 5: First Integral of motion
Because ϕ is cyclic, we know that pϕ, the angular momentum, is conserved. Note that the expression for angular momentum pϕ is a first integral of motion..
pϕ=mR2sin2θϕ˙=constant
Rearranging the Lagrange equation for θ, we get:
θ¨−sinθcosθϕ˙2+Rgsinθ=0
Solving for ϕ˙ using pϕ, the expression becomes:
θ¨−(mR2pθ)2sinθcosθ+Rgsinθ=0
The second first integral of motion is the expression for conservation of energy, where E=T+U.
4.5: Systems of Particles
The last section considers the motion for a single particle only. The section studies the motion of a system of particles
Recall that the action for the system is defined as:
According to Newton’s third law, the force exerted by m1 on m2 is equal to the magnitude of the force exerted by m2 on m1.
💡
In multi-particle systems, we consider the total kinetic energy T minus the total potential energy U. Sometimes. particles give action-reaction pairs ∂/∂x1=∂/∂x2, come out free.
Because the total momentum of the system is conserved, the change in momentum Δp=dp/dt=0, giving us:
dtd(m1x˙1+m2x˙2)=0
💡
In a multiple-particle system, the total momentum must be conserved.
The new coordinates are center of mass, giving by:
X≡m1+m2m1x1+m2x2=Mm1x1+m2x2
Central Force, Reduced Mass, Energy
Let x=x2−x1. The Lagrange of the system is:
L=21MX˙2+21μx˙2−U(x)
where μ is the reduced mass
μ≡Mm1m2
The corresponding momentum P is equal to:
P=∂X˙∂L=M=˙m1x˙1+m2x˙2
and is conserved.
Example: Pulley
A contraption of pulleys. We want to find the accelerations of all three weights. We assume that the three pulleys have negligible mass so they have negligible kinetic and potential energies.
Solution
Lagrangian
In order to write the Lagrange, we need to know the system’s kinetic and potential energies. Kinetic energy of the system is equal to:
T=21m1y˙12+21m2y˙22+21MY˙2
Length Constraint
Because there is only two degrees of freedom, we need to eliminate one variable in y˙1,y˙2 and Y˙. When solving problems involving pulley, one common technique is to use length constraint to relate length with acceleration to eliminate a variable. Because the total length of the string is fixed, we know that:
(H−y1)+2(H−Y)+(H−y2)=4H−2Y−y2−y1=constant=L
Differentiating the equation with respect to time t, the expression is equal to:
−2Y˙−y˙2−y˙1=0
giving us:
Y˙=−21(y˙1+y˙2)
Substitution
Substituting the expression for Y˙ into T, we get:
Let us return to the classic problem of a block sliding down a frictionless inclined plane, as in Example 4.2, except that we will make things a bit more interesting: now the inclined plane itself is allowed to move. Figure 4.11(a) shows the system. A block of mass mrests on an inclined plane of mass M: both the block and the inclined plane are free to move without friction. The plane’s angle is denoted by α. The problem is to find the acceleration of the block
Solution
This is a classic problem. In the approach of Newton’s law, we would draw force diagrams and use the constraint of a fixed angle to solve the system of equations to find acceleration. In Hamilton’s mechanics, we will find the Lagrange L=T−U first.
The first observation we need to make is that the plane is not fixed. As the block slides down, it exerts a force on the plane, causing the object to move leftward (the ground is frictionless or the force exerted by the block exceeds stative friction). Kinetic energy of the system the includes two components: the block and the plane.
Define the coordinate system: Another thing we need to do before solving the problem is to define the coordinate system. Let X be the horizontal distance slided by the plane, and x and y be the horizontal and vertical distances slide by block. The origin is shown in the figure.
Kinetic energy of the system is:
T=21M(X˙2+Y˙2)+21m(x˙2+y˙2)
Because Y˙ is fixed, Y˙=0. Then, T us equal to (This makes sense and can be seen esaily as the plane moves in the horizontal only. The problem uses v2=X˙2+Y˙2 to show a more comprehensive approach):
T=21MX˙2+21m(x˙2+y˙2)
Potential energy is equal to:
U=Uplane−mgy
where Uplane is the plane’s gravitational potential energy, and the quantity remains unchanged.
There are three variables X˙,x˙ and y˙ in T. Because the degree of freedom is two (The degree of freedom of two refer to X and Y. We start with four coordinates, X˙,Y˙,x˙, and y˙. After identifying two constraints: Y is fixed and x˙ and y˙ can be represented using D and α, the degree of freedom is 2), we need to replace one of the variables. Using trigonometry
x=X˙+Dcosα,y=−Dsinα
Differentiating expressions with respect to t, we get
where pk=∂L/∂q˙k. From the equation, we can see that:
∂t∂L=−dtdH
The result is interesting if L is not an explicit function of time. For example, if ∂L/∂t=0, H is equal to a constant and thus H is conserved.
💡
If L is not an explicit function of time, ∂L/∂t=0, so the Hamiltonian H is conserved, giving us a first integral of motion.
Though the Hamiltonian seems to be an abstract quantity, it is closely related to energy. Suppose that a particle is free to move in three dimensions in a potential U(x,y,z) without constraints, and that we are using Cartesian coordinates. Momentums are px=mx˙,py=my˙, and pz=mz˙. Then, ∑q˙kpk=m(x˙2+y˙2+z˙2). The Hamiltonian is equal to:
4.6.1: Interpretation of the Hamiltonian
H=q˙kpk−L=m(x˙2+y˙2+z˙2)−21m(x˙2+y˙2+z˙2)+U
This is equal to:
H=21m(x˙2+y˙2+z˙2)+U=E
where E is the total energy of the system. In this example, the Hamiltonian H represents the conserved quantity of E=T+U. However, be aware that there are cases in which H=E, although often it is equal to E. In the next section, we will explain the precise conditions for which H=E.
💡
Is H always equal to E=T+U? The answer is no, although very often it is. The precise conditions for which H=E are worked out in Section 4.7.
Example: Bead on a Rotating Parabolic Wire
Suppose we bend a wire into the shape of a vertically oriented parabola defined in cylindrical coordinates by z=αρ2 , as illustrated in Figure 4.12: here zis the vertical coordinate, and ρ is the distance of a point on the wire from the vertical axis of symmetry. Using a synchronous motor, we can force the wire to spin at constant angular velocity ω about its symmetry axis. Then we slip a bead of mass m onto the wire and we want to determine its equation of motion – assuming that it slides without friction along the wire.
Solution
Given that we are using cylindrical coordinates, we know that positions are described by:
position=s=(ρ,ρφ,z)
Differentiating each components with respect to t, v2 is equal to:
v2=ρ˙2+ρ2φ˙2+(2αρρ˙)2
Because the wire spins at a constant angular velocity ω, angle φ is equal to:
In the example from 4.6, the Hamiltonian H is conserved and E is not. The question becomes why are they different and why was H conserved while E was not?
Recall that the Hamiltonian is defined as
H=q˙kpk−L
where L is the Lagrange and is equal to L=T−U. The expression becomes:
H=q˙kpk−T+U
Let r(qk,t) be the position vector is the particle from some arbitrary origin fixed in an inertial frame, represented using generalized coordinates qk and time. The velocity of the partcile is:
v=dtr(qk,t)=∂t∂r+∂qk∂rq˙k
The kinetic energy of the particle is:
T=21mv2=21mv⋅v
The dot product of v⋅v is equal to:
v⋅v=(∂t∂r+∂ql∂rq˙l)⋅(∂t∂r+∂qm∂rq˙m)
H=E−mdtdr⋅∂t∂r=E−p⋅∂t∂r
where p is the momentum of the particle in the chosen inertial frame. From the equation, we can see that the Hamiltonian is equal to energy H=E if ∂r/∂t=0. This occurs when there are no constraints of when any constraints are fixed in place (the particle is not moving/stationary). When constraints are moving, they generally depend on time, causing H=E.
4.9 Small Oscillations about Equilibrium
In general, many if not most mechanical systems can be accorded an energy of the form
constant×q˙k2+Ueff(qk)=E
Using Taylor expansion, the effective potential is equal to:
At the equilibrium point, dUeff/dq=0, and the third term is in the form of 1/2keff(q−q0)2. We define the second derivative of the effective potential the effective spring constant.
keff=dq2dUeff2=Ueff′′
Angular frequency ω is equal to:
ω=mkeff=Ueff′′
Example:
In Example 4.4 we considered a particle moving on a frictionless tabletop subject to a central Hooke’s-law spring force. There is an equilibrium radius for given energy and angular momentum for which the particle orbits in a circle of some radius r0. We now want to find the oscillation frequency ω for the mass about the equilibrium radius if it were perturbed slightly from this circular orbit.