60.1: Examples
( \newcommand{\kernel}{\mathrm{null}\,}\)
As an example of the use of Lagrange's equation, consider a one-dimensional simple harmonic oscillator. We wish to find the position x of the oscillator at any time \(t\
Solution
We begin by writing the usual expression for the kinetic energy K :
K=12mv2
The potential energy U of a simple harmonic oscillator is given by
U=12kx2
The Lagrangian in this case is then
L(x,v)=K−U=12mv2−12kx2
Lagrange's equation in one dimension is
ddt(∂L∂v)−∂L∂x=0
Substituting for L from Eq. 60.1.4, we find
ddt[∂∂v(12mv2−12kx2)]−∂∂x(12mv2−12kx2)=0
Evaluating the partial derivatives, we get
ddt(mv)+kx=0
or, since v=dx/dt,
md2xdt2+kx=0
which is a second-order ordinary differential equation that one can solve for x(t). Note that the first term on the left is ma=F, so this equation is equivalent to F=−kx (Hooke's Law). The solution to the differential equation (57.10) turns out to be
x(t)=Acos(ωt+δ)
where A is the amplitude of the motion, ω=√k/m is the angular frequency of the oscillator, and δ is a phase constant that depends on where the oscillator is at t=0.
Part of the power of the Lagrangian formulation of mechanics is that one may define any coordinates that are convenient for solving the problem; those coordinates and their corresponding velocities are then used in place of x and v in Lagrange's equation.
For example, consider a simple plane pendulum of length ℓ with a bob of mass m, where the pendulum makes an angle θ with the vertical. The goal is to find the angle θ at any time t.
Solution
In this case we replace x with the angle θ, and we replace v with the pendulum's angular velocity ω. The kinetic energy K of the pendulum is the rotational kinetic energy
K=12Iω2=12mℓ2ω2,
where I is the moment of inertia of the pendulum, I=mℓ2. The potential energy of the pendulum is the gravitational potential energy
U=mgℓ(1−cosθ)
The Lagrangian in this case is then
L(θ,ω)=K−U=12mℓ2ω2−mgℓ(1−cosθ)
Lagrange's equation becomes
ddt(∂L∂ω)−∂L∂θ=0
Substituting for L,
ddt{∂∂ω[12mℓ2ω2−mgℓ(1−cosθ)]}−∂∂θ[12mℓ2ω2−mgℓ(1−cosθ)]=0
Computing the partial derivatives, we find
ddt(mℓ2ω)+mgℓsinθ=0
Since ω=dθ/dt, this gives
mℓ2d2θdt2+mgℓsinθ=0,
which is a second-order ordinary differential equation that one may solve for the motion θ(t). The first term on the left-hand side is the torque τ on the pendulum, so this equation is equivalent to τ=−mgℓsinθ.
The solution to the differential equation ( 60.1.17 ) is quite complicated, but we can simplify it if the pendulum only makes small oscillations. In that case, we can approximate sinθ≈θ, and the differential equation ( 60.1.17 becomes a simple harmonic oscillator equation with solution
θ(t)≈θ0cos(ωt+δ)
where θ0 is the (angular) amplitude of the pendulum, ω=√g/ℓ is the angular frequency, and δ is a phase constant that depends on where the pendulum is at t=0.