The generalized coordinates used for this system are the radial distance ($\boldsymbol{r}$) and the angle ($\boldsymbol{\varphi}$).

Here is an explanation of what generalized coordinates are and why $r$ and $\varphi$ are chosen for this specific problem:

What are Generalized Coordinates?

Generalized coordinates ($\boldsymbol{q_i}$) are the minimum set of independent variables required to completely specify the position (or configuration) of a mechanical system at any instant in time.

Why $r$ and $\varphi$?

The system consists of two masses ($m_1$ and $m_2$) connected by a string passing through a hole, which imposes a constraint: the total length of the string ($L$) is fixed.

  1. Radial Distance ($\boldsymbol{r}$):
  2. Angle ($\boldsymbol{\varphi}$):

Since the state of both masses at any time is fully determined by knowing just $r$ and $\varphi$, the system has two degrees of freedom, and $r$ and $\varphi$ are the appropriate generalized coordinates. Using them allows the system's kinetic energy to be written concisely in terms of their velocities ($\dot{r}$ and $\dot{\varphi}$), as shown in the previous steps.

Brief audio

What are the generalized coordinates used for this system-L.mp4