Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Deriving Newton’s Second Law in Plane Polar Coordinates

To get started with Lagrangian mechanics, we will start by deriving Newton’s second law in plane polar coordinates. This is not a necessary step for anything we will do in Lagrangian mechanics, but it is a good way to get comfortable with the coordinate system. And it will also help us see how we can think about forces in a coordinate system that is not Cartesian because Lagrangian mechanics can be used with generalized coordinates.

We start by sketching the location of a particle in plane polar coordinates, as shown below:

Position vector in polar coordinates

The red arrow represents the position vector r⃗\vec{r}, which is a length rr from the origin at an angle ϕ\phi from the xx-axis. At the tip of the vector we have drawn the Cartesian unit vectors x^\hat{x} and y^\hat{y} in blue, and the polar unit vectors r^\hat{r} and ϕ^\hat{\phi} in green. Notice that the polar unit vectors are rotated by an angle ϕ\phi from the Cartesian unit vectors. We can simply write the position vector in terms of these unit vectors as:

r⃗=rr^  where  r=∣r⃗∣.\vec{r} = r \hat{r} \;\text{where}\; r = |\vec{r}|.

We start by taking the derivative of the position vector r⃗\vec{r} with respect to time tt to find the velocity v⃗\vec{v}. Using the product and chain rules, we have:

dr⃗dt=ddt(rr^)=r˙r^+rdr^dt.\dfrac{d\vec{r}}{dt} = \frac{d}{dt}(r \hat{r}) = \dot{r} \hat{r} + r \frac{d\hat{r}}{dt}.

What is dr^dt\frac{d\hat{r}}{dt}?

We note that the green unit vectors for r^\hat{r} and ϕ^\hat{\phi} are not constant, they change direction as the particle moves. We can write them in terms of the Cartesian unit vectors, which do not change with time, as follows:

r^=cos⁡(ϕ)x^+sin⁡(ϕ)y^,        ϕ^=−sin⁡(ϕ)x^+cos⁡(ϕ)y^.\hat{r} = \cos(\phi) \hat{x} + \sin(\phi) \hat{y}, \;\;\;\; \hat{\phi} = -\sin(\phi) \hat{x} + \cos(\phi) \hat{y}.

Now, we differentiate r^\hat{r} with respect to time tt using the chain rule:

dr^dt=ddt(cos⁡(ϕ)x^+sin⁡(ϕ)y^)=−sin⁡(ϕ)ϕ˙x^+cos⁡(ϕ)ϕ˙y^=ϕ˙ϕ^\frac{d\hat{r}}{dt} = \frac{d}{dt}(\cos(\phi) \hat{x} + \sin(\phi) \hat{y}) = -\sin(\phi) \dot{\phi} \hat{x} + \cos(\phi) \dot{\phi} \hat{y} = \dot{\phi} \hat{\phi}

So our expression for the velocity becomes:

v⃗=r˙r^+rϕ˙ϕ^.\vec{v} = \dot{r} \hat{r} + r \dot{\phi} \hat{\phi}.

We differentiate again to find the acceleration a⃗=dv⃗dt\vec{a} = \frac{d\vec{v}}{dt}:

dv⃗dt=ddt(r˙r^+rϕ˙ϕ^)=r¨r^+r˙dr^dt+r˙ϕ˙ϕ^+rϕ¨ϕ^+rϕ˙dϕ^dt\frac{d\vec{v}}{dt} = \frac{d}{dt}(\dot{r} \hat{r} + r \dot{\phi} \hat{\phi}) = \ddot{r} \hat{r} + \dot{r} \frac{d\hat{r}}{dt} + \dot{r} \dot{\phi} \hat{\phi} + r \ddot{\phi} \hat{\phi} + r \dot{\phi} \frac{d\hat{\phi}}{dt}

Recall from above that dr^dt=ϕ˙ϕ^\frac{d\hat{r}}{dt} = \dot{\phi} \hat{\phi}. Now, let’s find dϕ^dt\frac{d\hat{\phi}}{dt}:

dϕ^dt=ddt(−sin⁡(ϕ)x^+cos⁡(ϕ)y^)=−cos⁡(ϕ)ϕ˙x^−sin⁡(ϕ)ϕ˙y^=−ϕ˙r^\frac{d\hat{\phi}}{dt} = \frac{d}{dt}(-\sin(\phi) \hat{x} + \cos(\phi) \hat{y}) = -\cos(\phi) \dot{\phi} \hat{x} - \sin(\phi) \dot{\phi} \hat{y} = -\dot{\phi} \hat{r}

Substituting these results, the acceleration becomes:

Using Newton’s second law, a⃗=F⃗/m\vec{a} = \vec{F}/m, we have:

F⃗net=m[(r¨−rϕ˙2)r^+(2r˙ϕ˙+rϕ¨)ϕ^]\vec{F}_{net} = m\left[(\ddot{r} - r \dot{\phi}^2) \hat{r} + (2 \dot{r} \dot{\phi} + r \ddot{\phi}) \hat{\phi}\right]

So the radial and angular components of the net force are:

F⃗r=m(r¨−rϕ˙2)r^\vec{F}_{r} = m(\ddot{r} - r \dot{\phi}^2) \hat{r}
F⃗ϕ=m(2r˙ϕ˙+rϕ¨)ϕ^\vec{F}_{\phi} = m(2 \dot{r} \dot{\phi} + r \ddot{\phi}) \hat{\phi}

This gives us the net force in terms of the radial and angular components in polar coordinates.

Skateboard Example

Let’s see the utility of using polar coordinates by applying it to a skateboarder moving on a circular track. In this case, the skateboarder is constrained to move along a circular path of radius rr. Consider a skateboarder moving on that circular track as shown below:

Skateboarder on a circular track

At this point in the track, we can draw the free body diagram of the skateboarder. The forces acting on the skateboarder are the Earth’s gravitational force and the normal force of the ramp.

Free body diagram of skateboarder

We can use Newton’s law in polar coordinates to analyze the forces acting on the skateboarder. This is because the normal force is always perpendicular to the surface of the ramp and will only have a radial component in polar coordinates. Thus we need only decompose the gravitational force into its radial and angular components.

The sum of all forces in the radial direction are given by:

∑Fr=mar=−Framp+mgcos⁡(ϕ)=m(r¨−rϕ˙2)\sum F_r = ma_r = -F_{ramp} + mg \cos(\phi) = m\left(\ddot{r} - r \dot{\phi}^2\right)

We note that r=Rr=R, that is the radius is fixed, so

r¨=0.\ddot{r} = 0.

Therefore, we can simplify the equation to:

−Framp+mgcos⁡(ϕ)=−mRϕ˙2.-F_{ramp} + mg \cos(\phi) = -mR \dot{\phi}^2.

In the tangential direction, we have:

∑Fϕ=maϕ=−mgsin⁡(ϕ)=m(2r˙ϕ˙+rϕ¨)\sum F_{\phi} = ma_{\phi} = -mg \sin(\phi) = m\left(2 \dot{r} \dot{\phi} + r \ddot{\phi}\right)

Because r=Rr=R is constant, we have r˙=0\dot{r} = 0. Thus, the equation simplifies to:

−mgsin⁡(ϕ)=mRϕ¨-mg \sin(\phi) = mR \ddot{\phi}

Or, we can express this as:

ϕ¨=−gRsin⁡(ϕ).\ddot{\phi} = -\frac{g}{R} \sin(\phi).

The Normal Force as a Function of Time

We can solve this equation using numerical methods to find ϕ(t)\phi(t), the angular position of the skateboarder as a function of time. This can be used to then find the normal force as a function of time by substituting ϕ(t)\phi(t) back into the radial equation we derived above:

Framp=mgcos⁡(ϕ(t))+mRϕ˙2(t).F_{ramp} = mg \cos(\phi(t)) + mR \dot{\phi}^2(t).

Note that this force is a force of constraint because it is not an external force acting on the skateboarder but rather a force that arises from the constraint of the circular track. These forces are important in mechanics and can be analyzed using Lagrangian mechanics as well. They are not typically conservative forces and do not have a potential energy associated with them.

Let’s solve ϕ¨=−gRsin⁡(ϕ)\ddot{\phi} = -\frac{g}{R}\sin(\phi) numerically, starting the skateboarder at ϕ0=1.2\phi_0 = 1.2 rad with ϕ˙0=0\dot\phi_0=0, and use the result to plot ϕ(t)\phi(t) alongside the resulting normal force Framp(t)F_{ramp}(t).

Source
<Figure size 800x600 with 2 Axes>

Notice that the normal force oscillates and dips lowest near the top of each swing (where ϕ\phi is largest and ϕ˙\dot\phi is smallest), exactly as we’d expect from the radial equation above.

Simple Harmonic Motion

If we consider small angles, i.e., sin⁡(ϕ)≈ϕ\sin(\phi) \approx \phi, then the equation of motion for ϕ¨\ddot{\phi} becomes:

ϕ¨≈−gRϕ.\ddot{\phi} \approx -\frac{g}{R} \phi.

This is simple harmonic motion (SHM) with angular frequency ω=gR\omega = \sqrt{\frac{g}{R}}. Thus, for small angles, the motion of the skateboarder on the circular track will exhibit SHM. The solution to this equation will be:

ϕ(t)=Acos⁡(ωt)+Bsin⁡(ωt),\phi(t) = A \cos(\omega t) + B \sin(\omega t),

where AA and BB are constants determined by the initial conditions of the problem.

Newton’s Laws and Equations of Motion

So far you have studied the work of physics from the perspective of Newtonian Mechanics, which is based on forces and their effects on motion. The idea behind using Newton’s Laws is that:

  1. We can identify all the interactions with a body (i.e., all the forces and torques acting on it).

  2. We can write models of those interactions as mathematical expressions (i.e., force laws like F⃗=−kx⃗\vec{F} = -k \vec{x} for a spring or bv2b v^2 for drag).

  3. We can vectorially sum all the individual interactions to find the net result (i.e., ∑F⃗i=F⃗net\sum \vec{F}_i = \vec{F}_{net}).

  4. We can then use Newton’s second law to find the acceleration of the body, a⃗=F⃗netm\vec{a} = \frac{\vec{F}_{net}}{m}.

This process has produced our equations of motion for a system. Which we then investigated in detail throughout the course.

Lagrangian Mechanics

The Lagrangian Formulation is rooted in classical optimization, but it is equivalent to Newton’s work. However, it uses energy (a scalar) to do so. This means we can exploit coordinate transformations that do not change the scalar value of the energy.

Epistemologically, Lagrange’s approach is an exploration of phase space to determine paths the dynamical system can take. You can think of this as one level of abstraction above plotting the known phase space, because we don’t yet have the equations of motion.

Let’s try an example we have seen before, the spring-mass system.

Example: Spring-Mass System

As you will learn, to get the EOM for a non-dissipative system, we form a function called the Lagrangian:

The Lagrangian is defined as:

L=T−V\mathcal{L} = T - V

Where:

For a 1D spring-mass system, we have:

T=12mx˙2V=12kx2T = \frac{1}{2} m \dot{x}^2 \quad V = \frac{1}{2} k x^2

Now we follow the optimization routine, which is applying the Euler-Lagrange equations to the Lagrangian. The Euler-Lagrange equation for L(x,x˙,t)\mathcal{L}(x,\dot{x},t) is given by:

ddt(∂L∂x˙)−∂L∂x=0.\frac{d}{dt} \left( \frac{\partial \mathcal{L}}{\partial \dot{x}} \right) - \frac{\partial \mathcal{L}}{\partial x} = 0.

Our Lagrangian for the spring-mass system is:

L(x,x˙)=T−V=12mx˙2−12kx2\mathcal{L}(x, \dot{x}) = T - V = \frac{1}{2} m \dot{x}^2 - \frac{1}{2} k x^2

Now we can compute the necessary derivatives:

∂L∂x˙=mx˙\frac{\partial \mathcal{L}}{\partial \dot{x}} = m \dot{x}
∂L∂x=−kx\frac{\partial \mathcal{L}}{\partial x} = -k x

Now we can substitute these into the Euler-Lagrange equation:

ddt(mx˙)−(−kx)=0\frac{d}{dt} \left( m \dot{x} \right) - (-k x) = 0
mx¨+kx=0m\ddot{x} + kx = 0

This is the same equation of motion we derived using Newton’s laws for the spring-mass system.

x¨=−kmx\ddot{x} = -\frac{k}{m} x

This shows that Lagrangian mechanics can reproduce the same equations of motion as Newtonian mechanics, but it does so by focusing on the energy of the system rather than forces directly.

Why does this work?

Lagrangian mechanics works because it is based on the principle of least action (or stationary action). This principle states that the actual path taken by a system between two points in phase space is the one that minimizes (or makes stationary) the action, which is the integral of the Lagrangian over time.

This is not magic, it’s an application of the calculus of variations. The action is a functional, and the Euler-Lagrange equations provide a way to find the stationary points of that functional. By applying these equations to the Lagrangian, we can derive the equations of motion for a system.

We can think of this as a system that evolves in time, but does so in a way that is optimal in some sense. The approach allows us to find the path the system will take by exploiting Hamilton’s principle: The path taken by a dynamical system between two points in phase space is the one that minimizes the time integral of the Lagrangian.

Mathematically,

δ∫t1t2L(x(t),x˙(t),t)dt=0\delta \int_{t_1}^{t_2} \mathcal{L}(x(t), \dot{x}(t), t) dt = 0

Where δ\delta indicates that we are looking for a stationary point of the action integral. This is precisely the formulation of the calculus of variations, which allows us to find the path that minimizes (or makes stationary) the action integral.

So, we know that the equation that will produce the L\mathcal{L} that minimizes the action integral is given by the Euler-Lagrange equations.

ddt(∂L∂x˙)−∂L∂x=0\frac{d}{dt} \left( \frac{\partial \mathcal{L}}{\partial \dot{x}} \right) - \frac{\partial \mathcal{L}}{\partial x} = 0

In fact, this approach holds in each Cartesian coordinate, so that the equations of motion can be derived in any coordinate system.

ddt(∂L∂x˙i)−∂L∂xi=0\frac{d}{dt} \left( \frac{\partial \mathcal{L}}{\partial \dot{x}_i} \right) - \frac{\partial \mathcal{L}}{\partial x_i} = 0

where xix_i can be x,y,zx, y, z if L(x,y,z,x˙,y˙,z˙,t)\mathcal{L}(x,y,z,\dot{x},\dot{y},\dot{z},t).

Generalized Coordinates

As it turns out, our approach can make use of an phase coordinate (θ,ϕ,x,y,ρ,z,…)(\theta, \phi, x, y, \rho, z, \ldots) and their first derivatives (θ˙,ϕ˙,x˙,y˙,ρ˙,z˙,…)(\dot{\theta}, \dot{\phi}, \dot{x}, \dot{y}, \dot{\rho}, \dot{z}, \ldots). In fact, we can do so for any set of generalized coordinates that describe the configuration of a system. Generalized coordinates are a set of coordinates that uniquely define the configuration of a system relative to some reference configuration. We denote them as qiq_i where ii runs from 1 to nn, and their time derivatives as q˙i\dot{q}_i.

The generalized position is given by:

q⃗=(q1,q2,…,qn)\vec{q} = (q_1, q_2, \ldots, q_n)

And the generalized velocity (or time derivative of the generalized coordinates) is given by:

q˙⃗=(q˙1,q˙2,…,q˙n)\vec{\dot{q}} = \left(\dot{q}_1, \dot{q}_2, \ldots, \dot{q}_n\right)

These NN coordinates would give rise to a set of NN equations of motion (subject to potential reductions due to constraints). The Lagrangian can be expressed in terms of these generalized coordinates and velocities:

L=L(q1,q2,…,qn,q˙1,q˙2,…,q˙n,t)\mathcal{L} = \mathcal{L}(q_1, q_2, \ldots, q_n, \dot{q}_1, \dot{q}_2, \ldots, \dot{q}_n, t)

The Euler-Lagrange equations can then be applied to each generalized coordinate qiq_i:

ddt(∂L∂q˙i)−∂L∂qi=0,i=1,2,…,n\frac{d}{dt} \left( \frac{\partial \mathcal{L}}{\partial \dot{q}_i} \right) - \frac{\partial \mathcal{L}}{\partial q_i} = 0, \quad i = 1, 2, \ldots, n

Example: Plane Pendulum

To get some intuition for how Lagrangian mechanics works, let’s consider an example we have seen before: the plane pendulum.

A pendulum bob of mass mm is attached to a fixed point by a rod of length ll. The bob swings in a vertical plane under the influence of gravity as shown below. We define U=0U=0 at the top of ceiling where the rod is attached.

Pendulum Diagram

The location of the bob is ⟨x,y⟩\langle x, y \rangle. We can use the x,yx,y coordinates to “naively” setup the Lagrangian and see what happens.

The kinetic energy TT of the pendulum bob is given by:

T(x˙,y˙)=12m(x˙2+y˙2).T(\dot{x}, \dot{y}) = \frac{1}{2} m (\dot{x}^2 + \dot{y}^2).

The potential energy VV of the pendulum bob is given by:

V(x,y)=+mgy.V(x,y) = +mgy.

Note yy is negative in the downward direction.

So we can write the Lagrangian L\mathcal{L} as:

L(x,y,x˙,y˙)=T−V=12m(x˙2+y˙2)−mgy\mathcal{L}(x, y, \dot{x}, \dot{y}) = T - V = \frac{1}{2} m (\dot{x}^2 + \dot{y}^2) - mgy

We will get two equations of motion from the Euler-Lagrange equations, one for xx and one for yy. For xx, we have:

ddt(∂L∂x˙)−∂L∂x=0\frac{d}{dt} \left( \frac{\partial \mathcal{L}}{\partial \dot{x}} \right) - \frac{\partial \mathcal{L}}{\partial x} = 0
ddt(mx˙)=0.\frac{d}{dt} \left( m \dot{x} \right) = 0.

This suggests that the momentum in the xx-direction (px=mx˙p_x= m\dot{x}) is conserved, which cannot be correct for a pendulum.

For yy, we have:

ddt(∂L∂y˙)−∂L∂y=0\frac{d}{dt} \left( \frac{\partial \mathcal{L}}{\partial \dot{y}} \right) - \frac{\partial \mathcal{L}}{\partial y} = 0
ddt(my˙)−(−mg)=0\frac{d}{dt} \left( m \dot{y} \right) - (-mg) = 0
my¨+mg=0m\ddot{y} + mg = 0
y¨=−g.\ddot{y} = -g.

There’s no tension force? That can’t be right.

We failed to include the constraint of the pendulum! The pendulum is constrained to move along a circular arc of radius ll. This means that the coordinates xx and yy are not independent, and we cannot just use x,yx,y as coordinates. This is a classic example of why we need to use generalized coordinates in Lagrangian mechanics.

The constraint for the pendulum is given by:

x2+y2=l2x^2 + y^2 = l^2

This tells us that,

x˙2+y˙2=r˙2+r2ϕ˙2=l2ϕ˙2\dot{x}^2 + \dot{y}^2 = \dot{r}^2 + r^2 \dot{\phi}^2 = l^2 \dot{\phi}^2

where r=lr=l is constant. So the constraint tells us that the motion of the pendulum is constrained to a circle of radius ll and it provides a relationship between the velocities x˙\dot{x} and y˙\dot{y}.

So as you might have guessed, we need to use a different coordinate system to describe the motion of the pendulum. We can use plane polar coordinates (r,ϕ)(r, \phi) where r=lr=l is constant and ϕ\phi is the angle from the vertical.

L(x,y,x˙,y˙)→L(r,ϕ,r˙,ϕ˙)\mathcal{L}(x, y, \dot{x}, \dot{y}) \rightarrow \mathcal{L}(r, \phi, \dot{r}, \dot{\phi})

The kinetic energy TT in polar coordinates is given by:

T=12m(x˙2+y˙2)=12ml2ϕ˙2=T(r˙,ϕ˙).T = \frac{1}{2} m \left( \dot{x}^2 + \dot{y}^2 \right) = \frac{1}{2} ml^2\dot{\phi}^2 = T(\dot{r}, \dot{\phi}).

The potential energy VV becomes:

V=mgy=−mglcos⁡(ϕ)=V(r,ϕ)V = mgy = - mg l \cos(\phi) = V(r, \phi)

Now we can write the Lagrangian L\mathcal{L} in terms of the polar coordinates:

L(r,ϕ,r˙,ϕ˙)=T−V=12ml2ϕ˙2+mglcos⁡(ϕ)\mathcal{L}(r, \phi, \dot{r}, \dot{\phi}) = T - V = \frac{1}{2} m l^2 \dot{\phi}^2 + mgl \cos(\phi)

Notice that it is actually only a function of ϕ\phi and ϕ˙\dot{\phi}, because r=lr=l is constant.

L(l,ϕ,ϕ˙)=12ml2ϕ˙2+mglcos⁡(ϕ)\mathcal{L}(l, \phi, \dot{\phi}) = \frac{1}{2} m l^2 \dot{\phi}^2 + mgl \cos(\phi)

Thus, we have a 1D equation of motion. This makes sense because the pendulum is constrained to move in a circular arc, and we can describe its motion using just one coordinate ϕ\phi.

Now we can apply the Euler-Lagrange equation to find the equation of motion for ϕ\phi:

ddt(∂L∂ϕ˙)−∂L∂ϕ=0\frac{d}{dt} \left( \frac{\partial \mathcal{L}}{\partial \dot{\phi}} \right) - \frac{\partial \mathcal{L}}{\partial \phi} = 0
mglsin⁡(ϕ)+ddt(ml2ϕ˙)=0mgl \sin(\phi) + \frac{d}{dt} (ml^2 \dot{\phi}) = 0

And thus the ϕ\phi equation of motion becomes:

ml2ϕ¨+mglsin⁡(ϕ)=0ml^2 \ddot{\phi} + mgl \sin(\phi) = 0

or,

ϕ¨=−glsin⁡(ϕ).\ddot{\phi} = - \frac{g}{l} \sin(\phi).

As we have seen, for small ϕ\phi, this reduces to simple harmonic motion:

ϕ¨≈−glϕfor small ϕ.\ddot{\phi} \approx -\frac{g}{l} \phi \quad \text{for small } \phi.

We can check how good this small-angle approximation is by numerically solving the full nonlinear equation of motion for several starting amplitudes and plotting the resulting trajectories in the phase plane, ϕ\phi vs. ϕ˙\dot\phi.

Source
<Figure size 700x600 with 1 Axes>

For small ϕ0\phi_0 (blue curve), the orbit is nearly a perfect ellipse, the signature of SHM. As ϕ0\phi_0 grows, the orbits become progressively more egg-shaped and flattened near ϕ=±π\phi = \pm\pi, showing exactly where the small-angle approximation sin⁡ϕ≈ϕ\sin\phi\approx\phi starts to break down.