Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Physics LibreTexts

60.1: Examples

( \newcommand{\kernel}{\mathrm{null}\,}\)

Example 60.1.1 Simple Harmonic Oscillator

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)=KU=12mv212kx2

Lagrange's equation in one dimension is

ddt(Lv)Lx=0

Substituting for L from Eq. 60.1.4, we find

ddt[v(12mv212kx2)]x(12mv212kx2)=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.

Example 60.1.2 Plane Pendulum

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=12m2ω2,

where I is the moment of inertia of the pendulum, I=m2. The potential energy of the pendulum is the gravitational potential energy

U=mg(1cosθ)

The Lagrangian in this case is then

L(θ,ω)=KU=12m2ω2mg(1cosθ)

Lagrange's equation becomes

ddt(Lω)Lθ=0

Substituting for L,

ddt{ω[12m2ω2mg(1cosθ)]}θ[12m2ω2mg(1cosθ)]=0

Computing the partial derivatives, we find

ddt(m2ω)+mgsinθ=0

Since ω=dθ/dt, this gives

m2d2θdt2+mgsinθ=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 τ=mgsinθ.

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.


60.1: Examples is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by LibreTexts.

Support Center

How can we help?