This post was translated from Korean into English by AI.
In the previous post, we looked at the calculus of variations, the mathematical foundation needed to use Lagrangian mechanics. In this post, we will discuss generalized coordinates.
What Are Generalized Coordinates?
So how are generalized coordinates different from ordinary coordinates?
The term coordinates, as we ordinarily use it, refers to a system of numbers that indicates a position. For example, South Korea is located at approximately 127 degrees east longitude and 38 degrees north latitude. Written as a tuple, that would be (127E,38N). This is a spherical coordinate system, used to specify a point on a sphere. In engineering, Cartesian coordinate systems, which use distances from the origin along each axis, are also widely used.
In physics, however, these coordinate systems can sometimes be inconvenient—namely, when there are constraints.
Constraints
In physics, a constraint is any restriction that limits an object's motion. Here are several examples to make this easier to understand.
-
Consider a balloon floating in an infinitely vast three-dimensional space. There is nothing restricting its position, so to know its exact location, we must know all three coordinate values, . We could use a spherical coordinate system based on its distance from an observer, azimuth, and elevation, but no matter what special coordinate system we use, we must know three values to specify the balloon's position.
-
Now consider a cable car suspended in three-dimensional space. It must move along a straight cable given by and cannot leave the cable and move freely. In this case, knowing just one of is enough to determine the cable car's exact position, because once one of the three is known, the remaining values are determined from it. Here, the
cableis a constraint that restricts the cable car's motion. This example shows that when a constraint is introduced, fewer coordinates are needed to determine a position. -
Of course, not all constraints work this way. Consider a car moving on a two-dimensional plane. Given enough time, the car could reach any point on the plane, but locally, it can move only forward or backward. While the car is facing forward, it cannot move directly to the right without changing direction. (Parking would be so much easier if it could.) This, too, is a type of constraint.
-
A train provides another good example of a constraint. When a train travels across terrain with changes in elevation, we need three values—latitude, longitude, and altitude—to know its exact position. But since the train can travel only along the rails, in practice, knowing only its distance from the point of departure is enough to specify its exact position. (Assume there are no junctions or similar complications.) This is also a constraint.
Holonomic and Nonholonomic Constraints
Constraints can be divided into holonomic and nonholonomic constraints. A holonomic constraint, as in examples 2 and 4 above, is one that depends only on an object's position and time. (Neither example 2 nor example 4, however, depends on time.) In other words, a constraint is holonomic if the positional relationship among particles can be expressed as follows.
The cable car in example 2 had the following two constraints (though they were expressed as a single equation in the example).
By contrast, a nonholonomic constraint, like the one in example 3, depends not only on an object's position and time but also on other factors. In example 3, direction is part of the constraint, so it is a nonholonomic constraint.
Degrees of Freedom
The minimum number of coordinates needed to describe an object's position is called its degrees of freedom. As the examples above show, holonomic constraints reduce an object's degrees of freedom. More precisely, when a -dimensional system of particles has holonomic constraints, the system has translational degrees of freedom. In the cable car example above, there is one particle in a three-dimensional system with two constraints, so . We can therefore confirm mathematically that the system has one degree of freedom.
In the first paragraph, I said that ordinary coordinate systems can be inconvenient in physics. This is why: constraints reduce the number of degrees of freedom, allowing us to analyze a system with far fewer variables.
Generalized Coordinates
To analyze a constrained system efficiently, we collect only the variables that are absolutely necessary to describe it. This collection is called a generalized coordinate system. The most intuitive example is a double pendulum.

For the two-dimensional double pendulum shown above, four coordinate values are needed in total: the coordinates of the first pendulum and the coordinates of the second. The pendulum, however, has the following two constraints.
Thus, calculating shows that the system has two degrees of freedom and can therefore be described using only two variables. In the figure above, these variables—the generalized coordinates—are chosen as , the angles that each pendulum makes with the vertical.
Of course, a generalized coordinate system only needs two variables capable of describing the actual system, so they can be chosen however we like as long as they describe the system properly. For example, there would be no problem using the position of the first pendulum and the angle of the second pendulum, , as the generalized coordinates.
The value of the first pendulum, however, cannot be chosen as a generalized coordinate, because a position with a given value is not unique. The value can be chosen in the figure above because the pendulum is prevented from moving above the top. If the pendulum could swing to a position higher than the origin, there could be two positions with the same value, so it could not be chosen this way.
Generalized Velocities
Now that we understand generalized coordinates, let us finish by defining generalized velocity. In an ordinary coordinate system, velocity is defined as follows:
Likewise, velocity in a generalized coordinate system can be defined as follows. (In physics, a dot above a variable denotes differentiation. It is equivalent to a prime ().)
For example, in the case of a simple pendulum whose generalized coordinate is its angle with the vertical, its generalized velocity is the angular velocity of the pendulum.
If this post seems to end abruptly, that is perfectly normal. I originally intended to include the post about the Lagrangian here as well, but it became too long, so I split it off.