<?xml version="1.0" encoding="UTF-8"?>

<record version="1" id="1306">
 <title>Degrees of Freedom in Mechanics</title>
 <name>DegreesOfFreedomInMechanics</name>
 <created>2026-09-27 14:42:36</created>
 <modified>2026-09-27 14:42:36</modified>
 <type>Definition</type>
 <creator id="1" name="bloftin"/>
 <modifier id="1" name="bloftin"/>
 <comment>added synonym for the current series</comment>
 <author id="1" name="bloftin"/>
 <classification>
	<category scheme="pacs" code="45.20.Jj"/>
	<category scheme="pacs" code="45.20.-d"/>
	<category scheme="pacs" code="45.40.-f"/>
 </classification>
 <synonyms>
	<synonym concept="Degrees of Freedom in Mechanics" alias="degrees of freedom"/>
 </synonyms>
 <keywords>
	<term>degrees of freedom</term>
	<term>generalized coordinates</term>
	<term>constraints</term>
	<term>configuration space</term>
	<term>particle systems</term>
	<term>rigid body</term>
	<term>holonomic constraints</term>
	<term>mechanics</term>
 </keywords>
 <preamble>% this is the default PhysicsLibrary preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics).
% If you use \includegraphics{figure} with no file extension, PhysicsLibrary
% will prefer figure.png before falling back to figure.eps.
\usepackage{graphicx}
\DeclareGraphicsExtensions{.png,.jpg,.jpeg,.pdf,.eps}
% for neatly defining theorems and propositions
%\usepackage{amsthm}
% making logically defined graphics
%\usepackage{xypic}

% there are many more packages, add them here as you need them

% define commands here</preamble>
 <content>\section*{Degrees of Freedom in Mechanics}

A mechanical system may be described with many coordinates, but not all of those coordinates are necessarily independent.  The \textbf{number of degrees of freedom} is the minimum number of independent parameters required to specify the configuration of the system.

This idea becomes increasingly important as mechanics progresses.  It explains why a pendulum needs only one generalized coordinate, why a free particle in three-dimensional space needs three, why a rigid body in space needs six, and why constraints can reduce a seemingly complicated problem to a much smaller one.

The basic counting idea is

\begin{equation}
{\rm degrees\ of\ freedom}
=
{\rm independent\ coordinates\ needed\ to\ specify\ configuration}.
\end{equation}

For a system initially described by $n$ coordinates and subject to $m$ independent regular holonomic constraints, the local count is

\begin{equation}
f=n-m.
\end{equation}

This formula is powerful, but its assumptions matter.  The constraints must actually be independent, and more advanced nonholonomic or singular constraints require greater care.

\section{Coordinates are not automatically degrees of freedom}

Suppose a particle moves in the $xy$ plane.  Its position can be specified by two Cartesian coordinates,

\begin{equation}
(x,y),
\end{equation}

so an unconstrained particle in a plane has two degrees of freedom.

Now suppose the particle is restricted to a circle of fixed radius $L$:

\begin{equation}
x^2+y^2=L^2.
\end{equation}

Although two Cartesian coordinates still appear, they are not independent.  Once $x$ is chosen, $y$ is restricted by the constraint, and vice versa.  A single angular coordinate $\theta$ can describe the configuration:

\begin{equation}
x=L\cos\theta,
\end{equation}

\begin{equation}
y=L\sin\theta.
\end{equation}

The constrained particle therefore has one degree of freedom.

\begin{center}
\includegraphics{M00_07_fig01_coordinates_constraints.png}

{\small Figure 1. Coordinates and degrees of freedom are not the same thing.  A free particle in a plane needs two independent coordinates, while a particle constrained to a circle needs only one.}
\end{center}

\section{Configuration versus state}

The word \emph{configuration} refers to where the system is geometrically, not to how fast it is moving.

For a particle moving along a line, one coordinate $x$ specifies its configuration.  The system therefore has one configuration degree of freedom.

To predict future motion using Newtonian mechanics, one normally also needs the velocity $\dot x$.  Thus the instantaneous dynamical state can be represented by

\begin{equation}
(x,\dot x).
\end{equation}

That does not mean the particle suddenly has two configuration degrees of freedom.  It still has one degree of freedom; position and velocity together specify its state.

In Hamiltonian mechanics a system with $f$ configuration degrees of freedom is commonly represented in a $2f$-dimensional phase space with coordinates

\begin{equation}
(q_1,\ldots,q_f,p_1,\ldots,p_f).
\end{equation}

This distinction between configuration-space dimension $f$ and phase-space dimension $2f$ is important later in analytical mechanics.

\section{Elementary examples}

Several common systems provide useful reference points.

A particle restricted to a straight line has

\begin{equation}
f=1.
\end{equation}

A free particle in a plane has

\begin{equation}
f=2.
\end{equation}

A free particle in ordinary three-dimensional space has

\begin{equation}
f=3.
\end{equation}

Two independent free particles in three dimensions require six independent position coordinates, so

\begin{equation}
f=6.
\end{equation}

For $N$ unconstrained particles in three dimensions,

\begin{equation}
f=3N.
\end{equation}

Constraints reduce this number.

\section{Constraints reduce the number of independent coordinates}

A \textbf{constraint} restricts the configurations available to a system.  A holonomic constraint can be written as an equation involving the coordinates and possibly time:

\begin{equation}
g(q_1,q_2,\ldots,q_n,t)=0.
\end{equation}

If there are $m$ independent holonomic constraints,

\begin{equation}
g_1=0,\quad g_2=0,\quad \ldots,\quad g_m=0,
\end{equation}

then, under regular conditions, the number of independent degrees of freedom is

\begin{equation}
f=n-m.
\end{equation}

The word \emph{independent} matters.  Repeating the same physical constraint in different algebraic forms does not remove extra degrees of freedom.

\section{Worked example 1: the simple pendulum}

A point mass moving in a vertical plane has Cartesian coordinates $(x,y)$, so without constraints it would require two degrees of freedom.

For a pendulum of fixed length $L$, the mass must satisfy

\begin{equation}
x^2+y^2=L^2.
\end{equation}

There are two coordinates and one independent holonomic constraint, so

\begin{equation}
f=2-1=1.
\end{equation}

A convenient generalized coordinate is the angle $\theta$:

\begin{equation}
x=L\sin\theta,
\end{equation}

\begin{equation}
y=-L\cos\theta.
\end{equation}

Once $\theta$ is specified, both Cartesian coordinates are fixed.  The pendulum therefore has one degree of freedom.

This example captures the main advantage of generalized coordinates: instead of carrying two coordinates plus a constraint equation, one may choose a single coordinate that automatically satisfies the constraint.

\section{Configuration space}

For a system with $f$ degrees of freedom, the set of all allowed configurations forms an $f$-dimensional \textbf{configuration space}.

For a free particle in a plane, configuration space is the entire $xy$ plane.  For a particle constrained to a circle, the allowed configurations form only the circle itself, which is one-dimensional.

The system may be embedded in a higher-dimensional coordinate space while its actual configuration space has lower dimension because of constraints.

\begin{center}
\includegraphics{M00_07_fig02_configuration_space.png}

{\small Figure 2. A constraint can reduce the dimension of configuration space.  The circle is embedded in a two-dimensional plane but is itself a one-dimensional configuration space.}
\end{center}

\section{Generalized coordinates}

A set of independent variables

\begin{equation}
q_1,q_2,\ldots,q_f
\end{equation}

that uniquely specifies the configuration is called a set of \textbf{generalized coordinates}.

Generalized coordinates do not have to be Cartesian distances.  They may be angles, lengths along a curve, rotation parameters, or combinations of ordinary coordinates.

For example, a bead constrained to move on a fixed wire can often be described by a single path coordinate $s$.  A pendulum can be described by one angle $\theta$.  A planar rigid body can be described by two translation coordinates and one orientation angle.

The number of generalized coordinates required equals the number of degrees of freedom, provided the coordinates are independent and nonsingular in the region of interest.

\section{Worked example 2: three particles forming a rigid triangle in a plane}

Consider three point masses moving in a plane.  Without constraints, each mass needs two coordinates, so the three-particle system has

\begin{equation}
n=3(2)=6
\end{equation}

coordinates.

Now suppose the three pairwise distances are fixed:

\begin{equation}
|\mathbf r_1-\mathbf r_2|=L_{12},
\end{equation}

\begin{equation}
|\mathbf r_2-\mathbf r_3|=L_{23},
\end{equation}

\begin{equation}
|\mathbf r_3-\mathbf r_1|=L_{31}.
\end{equation}

For a nondegenerate triangle these are three independent geometric constraints.  Therefore

\begin{equation}
f=6-3=3.
\end{equation}

Those three degrees of freedom have a simple physical interpretation:

\begin{enumerate}
\item translation of the whole triangle in the $x$ direction,
\item translation of the whole triangle in the $y$ direction,
\item rotation of the triangle in the plane.
\end{enumerate}

Thus a rigid body moving in a plane has three degrees of freedom.

\section{Rigid bodies}

A rigid body contains an enormous number of atoms, but its internal distances are fixed to an excellent approximation.  Those rigidity constraints remove almost all of the particle coordinates.

A rigid body moving freely in three-dimensional space has six degrees of freedom:

\begin{equation}
f=6.
\end{equation}

Three specify translation of a reference point, such as the center of mass:

\begin{equation}
x,\quad y,\quad z.
\end{equation}

Three specify orientation.

Orientation may be represented in many ways: Euler angles, a direction-cosine matrix, an axis-angle description, or a quaternion.  Some of those representations use more numerical parameters than three, but extra algebraic constraints may be present.  The physical orientation still has three degrees of freedom.

A unit quaternion, for example, uses four numbers but obeys one normalization condition.  Therefore its four components do not represent four independent rotational degrees of freedom.

\begin{center}
\includegraphics{M00_07_fig03_rigid_body_dof.png}

{\small Figure 3. A free rigid body in three-dimensional space has six degrees of freedom: three translational and three rotational.}
\end{center}

\section{Worked example 3: a rigid dumbbell in three dimensions}

Two point masses in three-dimensional space have six unconstrained coordinates:

\begin{equation}
(x_1,y_1,z_1,x_2,y_2,z_2).
\end{equation}

Suppose they are connected by a massless rigid rod of fixed length $L$.  The distance constraint is

\begin{equation}
|\mathbf r_2-\mathbf r_1|^2=L^2.
\end{equation}

This is one independent constraint, so

\begin{equation}
f=6-1=5.
\end{equation}

The result also has a direct physical interpretation.  Three coordinates locate the center of mass.  Two angles specify the direction of the rod in space.  Rotation about the rod's own axis does not change the configuration of two point masses, so no sixth degree of freedom appears.

This contrasts with a general three-dimensional rigid body, whose material distribution can change orientation under rotation about any of its body axes and therefore requires three independent orientation degrees of freedom.

\section{Degrees of freedom and symmetries}

A degree of freedom describes an independent way the configuration can change.  A symmetry can make the associated coordinate dynamically simple, but symmetry does not automatically remove the degree of freedom.

For example, the azimuthal angle of a particle in a central force field remains a valid coordinate even if the Lagrangian does not depend explicitly on that angle.  The coordinate is then cyclic, and its conjugate momentum is conserved.  The degree of freedom still exists.

Thus it is useful to distinguish

\begin{equation}
{\rm absent\ degree\ of\ freedom}
\end{equation}

from

\begin{equation}
{\rm degree\ of\ freedom\ with\ a\ conserved\ momentum}.
\end{equation}

\section{When the simple counting rule needs care}

The formula

\begin{equation}
f=n-m
\end{equation}

works well for independent regular holonomic constraints.  Several situations require more careful analysis.

\subsection*{Redundant constraints}

If one constraint follows from the others, it does not reduce the dimension again.

\subsection*{Singular configurations}

At special geometric configurations, the rank of the constraint equations may change.  A counting formula valid in a regular region can then fail at the singular point.

\subsection*{Nonholonomic constraints}

Some constraints involve velocities and cannot be integrated into coordinate-only equations.  Rolling without slipping is a standard example.  Advanced mechanics distinguishes carefully between the dimension of configuration space and the instantaneous velocity directions permitted by such constraints.

For the introductory use of degrees of freedom, the safest rule is to count independent coordinates after incorporating all independent geometric constraints.

\section{Degrees of freedom in continua and fields}

A continuous string, fluid, or electromagnetic field is described by a quantity defined at every spatial point.  Such systems are often said to possess infinitely many degrees of freedom in the continuum idealization.

A vibrating string, for example, is described by a displacement field

\begin{equation}
y(x,t).
\end{equation}

Discretizing the string into $N$ movable masses produces approximately $N$ coordinates.  Taking the continuum limit sends the number of coordinates toward infinity.

This is one bridge from particle mechanics to continuum mechanics and classical field theory.

\section{Degrees of freedom and normal modes}

Near stable equilibrium, a system with $f$ mechanical degrees of freedom often has $f$ independent small-oscillation normal modes, after appropriate treatment of constraints and zero-frequency symmetries.

This connection will become important in the later small-oscillation sequence.  Degrees of freedom determine the dimension of the coordinate problem; normal modes provide a particularly useful set of coordinates for the linearized dynamics.

\section{A practical counting procedure}

For elementary mechanics problems, the following procedure is reliable.

\begin{enumerate}
\item Identify the objects whose configurations must be specified.
\item Count the coordinates before constraints are applied.
\item Write the independent geometric constraints explicitly.
\item Subtract only independent constraints.
\item Check whether a smaller set of generalized coordinates can describe the allowed configurations directly.
\item Verify that changing any one proposed generalized coordinate can change the configuration independently, at least locally.
\end{enumerate}

The process can be summarized as

\begin{equation}
{\rm coordinates}
\longrightarrow
{\rm constraints}
\longrightarrow
{\rm independent\ generalized\ coordinates}
\longrightarrow
{\rm configuration\ space}.
\end{equation}

\begin{center}
\includegraphics{M00_07_fig04_dof_counting_map.png}

{\small Figure 4. Degrees-of-freedom counting is a reduction from a possibly redundant coordinate description to the independent coordinates that span the allowed configuration space.}
\end{center}

\section{Common mistakes}

\begin{enumerate}
\item Counting every written coordinate as an independent degree of freedom.
\item Counting velocities as extra configuration degrees of freedom.
\item Subtracting constraints that are algebraically redundant.
\item Assuming a four-component quaternion means four rotational degrees of freedom.
\item Confusing a conserved coordinate momentum with removal of the coordinate itself.
\item Applying $f=n-m$ blindly to singular or nonholonomic systems without checking its assumptions.
\end{enumerate}

\section{Practice problems}

\subsection*{M00-07-P01: Particle on a line}
A particle is constrained to move along the $x$ axis.  How many configuration degrees of freedom does it have?  Give one possible generalized coordinate.

\subsection*{M00-07-P02: Particle on a sphere}
A particle moves on the surface of a sphere of fixed radius $R$.  Starting from Cartesian coordinates $(x,y,z)$, count the degrees of freedom and suggest a convenient pair of generalized coordinates.

\subsection*{M00-07-P03: Two free particles in a plane}
Two independent particles move in a plane.  How many degrees of freedom does the system have?

\subsection*{M00-07-P04: Two particles joined by a rigid rod in a plane}
Two point masses move in a plane and remain separated by a fixed distance $L$.  Count the degrees of freedom.  Interpret them physically.

\subsection*{M00-07-P05: Bead on a rotating hoop}
A bead is constrained to a circular hoop of fixed radius.  The hoop's rotation angle is prescribed externally as a known function of time.  How many mechanical configuration degrees of freedom does the bead have?

\subsection*{M00-07-P06: Planar rigid body}
Explain why a general rigid body moving in a plane has three degrees of freedom.  Name a convenient set of generalized coordinates.

\subsection*{M00-07-P07: Spatial rigid body}
A free rigid spacecraft is modeled as a rigid body in three-dimensional space.  How many degrees of freedom does its configuration have?  Explain why a four-component unit quaternion does not change that physical count.

\subsection*{M00-07-P08: Constrained particle system}
Four particles move in three dimensions.  Before constraints are applied, how many degrees of freedom are available?  If three independent holonomic constraints are imposed, what is the local degree-of-freedom count?

\section{Short answer check}

\begin{enumerate}
\item P01: one; for example $x$.
\item P02: two; for example spherical angles $\theta$ and $\phi$.
\item P03: four.
\item P04: three; two translations plus one orientation angle.
\item P05: one, because the hoop motion is prescribed rather than an independent dynamical coordinate.
\item P06: three; for example $(x_{\rm CM},y_{\rm CM},\theta)$.
\item P07: six; the quaternion has four components plus one normalization constraint, leaving three independent orientation parameters.
\item P08: twelve before constraints and nine after three independent constraints.
\end{enumerate}

\section{Where this article leads}

Degrees of freedom are the natural bridge from elementary Newtonian mechanics to analytical mechanics.  The next conceptual steps are generalized coordinates, constraints, virtual displacements, and Lagrange's equations.  Later articles will also use the same counting ideas for rigid-body dynamics, small oscillations, Hamiltonian phase space, continuum mechanics, and field theory.

\begin{thebibliography}{99}

\bibitem{Taylor2005}
J. R. Taylor,
\textit{Classical Mechanics},
University Science Books, 2005.

\bibitem{MarionThornton2004}
J. B. Marion and S. T. Thornton,
\textit{Classical Dynamics of Particles and Systems}, 5th ed.,
Brooks/Cole, 2004.

\bibitem{Goldstein2002}
H. Goldstein, C. Poole, and J. Safko,
\textit{Classical Mechanics}, 3rd ed.,
Addison-Wesley, 2002.

\bibitem{WikibooksMechanics}
Wikibooks,
\textit{Classical Mechanics}, sections on generalized coordinates and constraints, CC BY-SA.

\end{thebibliography}</content>
</record>
