logo

What are Generalized Coordinates in Physics? 📂Classical Mechanics

What are Generalized Coordinates in Physics?

Definition1

The coordinates of a system of particles with nn degrees of freedom, expressed in nn variables (1) that are independent of constraints and (2) mutually independent, are called generalized coordinates.

Generalized Coordinates

In a three-dimensional space where the degrees of freedom of a particle are 33, the position of the particle can be expressed by the generalized coordinates q1,q2,q3q_{1}, q_{2}, q_{3} as follows:

x=x(q1,q2,q3)y=y(q1,q2,q3)z=z(q1,q2,q3) \begin{align*} x &= x(q_{1}, q_{2}, q_{3}) \\ y &= y(q_{1}, q_{2}, q_{3}) \\ z &= z(q_{1}, q_{2}, q_{3}) \end{align*}

If the degrees of freedom are 22 or 11, they can be expressed as follows:

x=x(q1,q2)y=y(q1,q2)z=z(q1,q2)x=x(q)y=y(q)z=z(q) \begin{align*} x &= x(q_{1}, q_{2}) \\ y &= y(q_{1}, q_{2}) \\ z &= z(q_{1}, q_{2}) \end{align*} \qquad\qquad \begin{align*} x &= x(q) \\ y &= y(q) \\ z &= z(q) \end{align*}

Circular Motion

Consider a particle performing circular motion on a unit circle in two-dimensional space. The position of the particle can be expressed in polar coordinates r=(x,y)r = (x,y). Here, since y=1x2y=\sqrt{1-x^{2}}, the degrees of freedom of this system of particles is 21=12-1=1.

x=xy=1x2    r=(x,1x2) \begin{align*} x &= x\\ y &= \sqrt{1 - x^{2}} \end{align*} \quad \implies \quad r = (x, \sqrt{1-x^{2}})

In this case, it is much more convenient to represent it by the angle θ\theta. r=(cosθ,sinθ) r = (\cos\theta, \sin\theta) Here, the constraint is x2+y2=1x^{2} + y^{2} = 1, and the generalized coordinate is θ\theta.

Double Pendulum

Consider a double pendulum with a radius of R,r(R>r)R, r (R \gt r). To represent the positions of the two pendulums in two dimensions, four coordinates (x1,y1)(x_{1}, y_{1}), (x2,y2)(x_{2}, y_{2}) are required, but the degrees of freedom are 22. If the angles that the two pendulums form with the xx axis are called θ1,θ2\theta_{1}, \theta_{2}, the positions of all particles in the system can be represented by these two variables.

x1=Rcosθ1y1=Rsinθ1x2=Rcosθ1+rcosθ2y2=Rsinθ1+rsinθ2 \begin{align*} x_{1} &= R\cos\theta_{1} \\ y_{1} &= R\sin\theta_{1} \\ x_{2} &= R\cos\theta_{1} + r\cos\theta_{2} \\ y_{2} &= R\sin\theta_{1} + r\sin\theta_{2} \end{align*}

Here, the generalized coordinates are (θ1,θ2)(\theta_{1}, \theta_{2}).

Generalized Velocity

The generalized velocity is expressed as follows according to the chain rule.

x˙=i=13xqiqi˙y˙=i=13yqiqi˙z˙=i=13zqiqi˙ \dot{x} = \sum\limits_{i=1}^{3} \dfrac{\partial x}{\partial q_{i}} \dot{q_{i}} \qquad \dot{y} = \sum\limits_{i=1}^{3} \dfrac{\partial y}{\partial q_{i}} \dot{q_{i}} \qquad \dot{z} = \sum\limits_{i=1}^{3} \dfrac{\partial z}{\partial q_{i}} \dot{q_{i}}

Energy Calculated by Generalized Coordinates

Example 1

Let’s look at a concrete example of calculating kinetic energy and potential energy using generalized coordinates. Consider a situation where an object of mass MM can move along the xx axis, and an object of mass mm is hanging and undergoing pendulum motion with a radius of rr, as shown in the figure below.

To describe this system of particles, four variables, (X,Y)(X, Y) for the position of MM and (x,y)(x, y) for the position of mm, are required. However, due to the following constraints, the degrees of freedom are 22, and the positions of all particles in the system can be expressed with only two variables. Y=0(xX)2+y2=r2 Y = 0 \\ (x - X)^{2} + y^{2} = r^{2}

Since the system of particles can be represented by the two variables XX and θ\theta, the generalized coordinates are (X,θ)(X, \theta). (X,Y)=(X,0)(x,y)=(X+rsinθ,rcosθ) \begin{align*} (X, Y) &= (X, 0) \\ (x, y) &= (X + r\sin\theta, -r\cos\theta) \end{align*}

The generalized velocity is as follows.

X˙=X˙,x˙=X˙+rθ˙cosθ,y˙=rθ˙sinθ \dot{X} = \dot{X}, \qquad \dot{x} = \dot{X} + r \dot{\theta} \cos\theta, \qquad \dot{y} = -r \dot{\theta} \sin\theta

Then, the kinetic energy TT and potential energy VV are as follows. T=12MX˙2+12m(x˙2+y˙2)=12MX˙2+12m[(X˙+rθ˙cosθ)2+(rθ˙sinθ)2]V=MgY+mgy=mgrcosθ \begin{align*} T &= \dfrac{1}{2} M \dot{X}^{2} + \dfrac{1}{2} m \left( \dot{x}^{2} + \dot{y}^{2} \right) \\ &= \dfrac{1}{2} M \dot{X}^{2} + \dfrac{1}{2} m \left[ (\dot{X} + r \dot{\theta} \cos\theta)^{2} + (-r \dot{\theta} \sin\theta)^{2} \right] \\[1em] V &= MgY + mgy \\ &= -mgr\cos\theta \end{align*}

Example 2

Consider the motion of a particle on a two-dimensional plane under a central force. If you choose polar coordinates as generalized coordinates, q1=rq_{1} = r and q2=θq_{2} = \theta, the position and velocity are as follows.

x=rcosθy=rsinθx˙=r˙cosθrθ˙sinθy˙=r˙sinθ+rθ˙cosθ \begin{align*} x &= r\cos\theta &\quad y &= r\sin\theta \\ \dot{x} &= \dot{r}\cos\theta - r\dot{\theta}\sin\theta &\quad \dot{y} &= \dot{r}\sin\theta + r\dot{\theta}\cos\theta \end{align*}

Therefore, the kinetic energy and potential energy are:

T=12m(x˙2+y˙2)=12m(r˙2+r2θ˙2)V=V(r) \begin{align*} T &= \dfrac{1}{2} m (\dot{x}^{2} + \dot{y}^{2}) = \dfrac{1}{2} m (\dot{r}^{2} + r^{2}\dot{\theta}^{2}) \\ V &= V(r) \end{align*}

The same result can be obtained using the velocity vector. The velocity in polar coordinates is as follows.

v=r˙er+rθ˙eθ \mathbf{v} = \dot{r}\mathbf{e}_{r} + r\dot{\theta}\mathbf{e}_{\theta}

Therefore, since v2=vv=r˙2+r2θ˙2|\mathbf{v}|^{2} = \mathbf{v} \cdot \mathbf{v} = \dot{r}^{2} + r^{2}\dot{\theta}^{2}, the kinetic energy is as follows.

T=12mv2=12m(r˙2+r2θ˙2) T = \dfrac{1}{2} m |\mathbf{v}|^{2} = \dfrac{1}{2} m (\dot{r}^{2} + r^{2}\dot{\theta}^{2})


  1. Grant R. Fowles and George L. Cassiday, Analytical Mechanics (7th Edition, 2005), p423-438 ↩︎