Equations of motion — from Newton to generalized coordinates
Equations of motion — from Newton to generalized coordinates
Where Cartesian stops being graceful, two words — generalized coordinates and the configuration space — open the door to analytical mechanics.
Opening
This chapter is the starting line of the whole book. We rewrite the Newtonian equation of motion the reader met as a freshman, then watch it get awkward as soon as the system carries a constraint. Resolving that awkwardness forces us to introduce two pieces of vocabulary — generalized coordinates and the configuration space — that the rest of the book will lean on constantly. By the end the reader should be able to state what “degree of freedom” really means, and should have a mental slot waiting for the “equation of motion for ” that the Lagrangian derivation of chapter 7 will eventually fill.
Main 1 — Newton in Cartesian coordinates
Let a particle of mass move through 3D Euclidean space . Write its position as and call the net force . Newton’s second law is then the famous one-liner.
A dot denotes a time derivative, so is the acceleration. For a free particle this single equation is enough: given initial position and velocity, the existence-and-uniqueness theorem for ODEs picks out one trajectory.
Now consider a different example. A bead slides along a smooth circular hoop of radius . Intuitively this system has one degree of freedom — the bead’s location is captured by a single angle . But if we insist on Cartesian coordinates we end up tracking three numbers together with the constraint , . The constraint force is something we know will cancel out at the end, yet it haunts every line of the calculation. It is not graceful.
The cure is to write the motion in from the start. But then the equation of motion is no longer of the form — the Cartesian intuition does not survive intact. We need a new language.
Main 2 — Generalized coordinates and configuration space
For a mechanical system with degrees of freedom, the generalized coordinates are independent numbers that pin down the configuration of the system (where it sits and how it is laid out). We bundle them as , with the convention that the upper index labels which coordinate, not a power.
The set of admissible is the configuration space . In general is not a flat Euclidean space but a manifold — a space that looks locally like (so we can put smooth coordinates on a neighborhood of any point) but may be curved or have holes globally. The formal definition of a manifold waits until chapter 3; for now “space on which each point has independent local coordinates ” is the right mental picture.
Concretely:
- A free particle in 3D: , , with coordinates .
- A bead on a hoop: , (the 1D circle), coordinate .
- A planar pendulum: , , coordinate the angle from vertical.
- A planar double pendulum: , (the 2-torus), coordinates the two rod angles .
The fact that the configuration space of the double pendulum is a torus rather than the plane matters. and are the same physical state — Cartesian coordinates do not know this identification, generalized coordinates do.
Main 3 — Generalized forces and the chain rule
We now write down the bridge between Cartesian and generalized coordinates. Suppose is given as a smooth function of : . The chain rule gives
(from now on a repeated upper/lower index is summed — the Einstein convention). The infinitesimal work done by an external force along the displacement is then
The defined here is the generalized force conjugate to . Its units depend on : newtons if is a length, newton-metres (i.e. a torque) if is an angle. One can read as a weighted average of the Cartesian components of , where the Jacobian entries play the role of weights.
One promise to mark the boundary of this chapter: we stop at the definition of . The actual “equation of motion for ” will fall out in a single stroke from the variation of the action in chapter 7 (Lagrange’s equations). This section is just bookkeeping for that destination.
In Python
# Explicit Euler vs. symplectic Euler on the 1D harmonic oscillator
# q'' = -omega^2 q, with omega = 1.
# Watch the energy E = (1/2)(p^2 + omega^2 q^2) over time.
import numpy as np
import matplotlib.pyplot as plt
omega = 1.0
dt = 0.05
t = np.arange(0.0, 50.0 + dt, dt)
N = len(t)
# Initial condition: q(0) = 1, p(0) = 0 => E(0) = 0.5
q_e, p_e = np.empty(N), np.empty(N) # explicit Euler
q_s, p_s = np.empty(N), np.empty(N) # symplectic Euler
q_e[0] = q_s[0] = 1.0
p_e[0] = p_s[0] = 0.0
for n in range(N - 1):
# Explicit Euler: update q and p simultaneously from old values
q_e[n+1] = q_e[n] + dt * p_e[n]
p_e[n+1] = p_e[n] - dt * omega**2 * q_e[n]
# Symplectic Euler: update p first, then use the new p to update q
p_s[n+1] = p_s[n] - dt * omega**2 * q_s[n]
q_s[n+1] = q_s[n] + dt * p_s[n+1]
E_e = 0.5 * (p_e**2 + omega**2 * q_e**2)
E_s = 0.5 * (p_s**2 + omega**2 * q_s**2)
plt.plot(t, E_e, label="explicit Euler")
plt.plot(t, E_s, label="symplectic Euler")
plt.xlabel("t"); plt.ylabel("E(t)"); plt.legend(); plt.show()
The explicit-Euler energy drifts monotonically upward; the symplectic-Euler energy oscillates with small amplitude around the true value 0.5. Same dynamics, same step size, completely different long-time behaviour — this is the first hint of why preserving the symplectic structure (chapter 10, Hamiltonian mechanics) is worth the algebraic effort.
To the next chapter
Chapter 2: Constrained motion on surfaces treats the “system with a constraint” we just sketched in words with more care. Working through the recipe for writing the motion of a particle confined to a surface in generalized coordinates lets the vocabulary of motion on a manifold settle into place naturally.