Professional Documents
Culture Documents
S. H. Lam∗
Department of Mechanical and Aerospace Engineering
Princeton University, Princeton, NJ 08544, U. S. A.
October, 2009
Abstract
Two linear algebra based strategies are presented to deal with gen-
eral classical mechanics problems with constraints. Classical concepts
such as holonomic and nonholonomic constraints, virtual displace-
ments, principle of virtual work, Hamilton’s principle and method
of Lagrange multipliers are critiqued.
1 Introduction
Let x, a N -dimensional column vector, describe the configuration of a general
classical mechanics system. For example, a n-particles system in 3 dimensions
has N = 3n. Newton’s Law of Motion for x(t) in vector form is:
ṗ = F + f , p ≡ M ẋ, (1)
where F(x, ẋ; t) is the (known) applied force, f is the (unknown) constraint
force, ṗ is momentum—all are N -dimensional column vectors—and M is a
N × N (nonsingular and symmetric) mass matrix. The operator is the
N -dimensional inner product operator.
In addition to Eq.(1), the solution x(t) is required to honor K equations
of constraint (K ≤ N ). We assume that these equations of constraint are
first order differential equation (ODE) involving ẋ, x and t:
Gk (ẋ, x, t) = 0, k = 1, 2, . . . K. (2)
∗
Professor emeritus. Email: lam@princeton.edu
1
Revised August 21, 2013 2
where the dk (x; t)’s are the given directions of the k-th contributing N -
dimensional constraint force vectors and the scalars λk ’s are the unknown
amplitudes of the k-th constraint force vectors.
Hence, a general N -dimensional mechanics problem with K constraints
has N +K scalar unknowns. They are determined by the N -dimensional vec-
tor equation Eq.(1) plus the K scalar equations Eq.(2). This completes the
mathematical formulation of general mechanics problems with constraints.
The two crucial and noteworthy assumptions of this formulation are:
• the directions dk (x, t)’s are given and are therefore known, while the
amplitudes λk ’s are unknown and are to be found.
Neither received the attention they deserve in the classical mechanics litera-
ture.
The following concepts are important to the classical approach: holo-
nomic versus nonholonomic constraints, virtual displacements, virtual work,
Hamilton’s principle, method of Lagrange multipliers, etc. [1]. Most of the
elegant classical results are known to have “restricted” validity. Are these
concepts and their restrictions necessary?
The unknowns λk ’s and the unknown x vector are now completely decoupled.
The solution x(t) can then be obtained by solving the initial-value problem of
the N ODEs provided by Eq.(5a) and Eq.(2)—provided that a solution exists.
If the λk ’s are of interest, they can be computed from Eq.(5b) afterwards.
For the monkey problem, b1 is in the azimuthal direction for any externally-
imposed constraints.
This is now a system of linear algebraic equations for the K unknown λk ’s.
The solution is:
K
∂Gk” ∂Gk” ∂Gk”
" #
k
Qkk” M−1 F +
X
λ (ẋ, x, t) = − ẋ + ,(9a)
k”=1 ∂ ẋ ∂x ∂t
#−1
∂Gk”
"
Qkk” (ẋ, x, t) ≡ M−1 dk , k”, k = 1, 2, . . . , K. (9b)
∂ ẋ
All entities on the right hand side of Eq.(9a) and Eq.(9b) are known functions
of x, ẋ and t. Thus so long as Qkk” exists, the constraint force f by virtue of
Eq.(9a) is now a known function of x, ẋ and t. Hence x(t) can now be rou-
tinely generated by solving the initial-value problem of Eq.(6) supplemented
by Eq.(9a). It is guaranteed to automatically satisfy the original K equations
of constraints in Eq.(2). The Qkk” matrix depends on both the specifics in
the equations of constraint and the dk (x, t)’s. If Qkk” does not exist, then the
problem does not have a solution.
For the monkey problem, constraints #1 and #2 are holonomic, while con-
straint #3 is nonholonomic. Problems with all holonomic constraints are
considered easier by the classical approach because all the λk ’s are decoupled
(under certain restriction). If the holonomic λk ’s are of interest, they can be
found by the method of Lagrange multipliers afterwards. The λk ’s associated
with nonholonomic constraints are not decoupled. Goldstein firmly asserts
that “. . . there is no general way of attacking nonholonomic examples . . . ”
Revised August 21, 2013 6
only the first N − J unconstrained bj ’s are needed. For the monkey prob-
lem, d1 is deduced by knowing how the monkey enforces the constraint. The
non-zero virtual work done the virtual displacements (as defined by Eq.(11))
by constraint #2 and constraint #3 can readily be computed.
When the (N −J)-th constraint is holonomic, i.e. GN −j = H N −j (x, t), the
row vector ∂H N −j /∂x is parallel to the normal vector of the H N −j (x, t) =
0 surface in N -dimensional space. The vectors ∂H N −j /∂x and dN −j are
conceptually distinct. Since H N −j (x, t) = 0 is a surface of physical constraint,
dN −j on this surface is parallel to ∂H N −j /∂x only if the surface is frictionless.
Sliding friction on this surface would rotate dN −j away from ∂H N −j /∂x.
5 Concluding remarks
Classical mechanics has a glorious history. Virtual displacement defined by
Eq.(11) is indeed the correct choice for bj for many interesting and impor-
tant problems—including the monkey problem for constraint #1. But it
is not always the correct choice even when the constraint is holonomic—as
demonstrated by constraint #2. The admonition that the virtual work of a
holonomic constraint force must be zero is a restriction too often overlooked.
For “non-vicious” nonholonomic Gk (ẋ, x, t)’s—those that depend linearly on
ẋ such as constraint #3—the derivation of “constraint equations valid for the
virtual displacements” given in Goldstein is non sequitur from the present
vantage point [1, see §2-3, p. 46;1 see also 3, Chapter 5]. The present paper
proclaims that a classical mechanics problem with constraints is not ready
for solution until how the constraints are being enforced by the actuators are
clearly described. The specification of the equations of constraint alone is
not sufficient.
The weaknesses of the classical approach are clearly demonstrated by
constraint #2 (holonomic) and constraint #3 (nonholonomic) of the monkey
problem. The main flaw is that inadequate emphasis has been given to the
fact that the dk (x, t)’s of the actuators are known and are given. The classical
approach restricts itself to the subset of problems for which the actuators’
dj (x, t)’s are not arbitrary given directions. Virtual displacements are indeed
qualified to be the special bn ’s when the dj ’s are normal to the surfaces of
the holonomic constraints. Many interesting and important problems are
in this category (e.g. rigid body dynamics). However, when the actual
dk (x, t)’s of the system are known, arbitrary and given, virtual displacement
is conceptually irrelevant even for holonomic constraints—its decoupling role
can be achieved by the special bn ’s defined by Eq.(4a) and Eq.(4b). The
classical restriction that the virtual work of the force of holonomic constraints
be zero is totally unnecessary and is easily relaxed.
The linear algebra based strategies A and B presented here are exact and
their validity has no restrictions. Both exploit, as they must and should,
the given known knowledge of the constraint directions dk (x, t)’s. Whether
the equations of constraint are holonomic or nonholonomic and whether the
virtual work of the constraint force is zero are totally irrelevant.
1
The the logic that led its eq.(2-20) to eq.(2-21) made no sense at all.
Revised August 21, 2013 9
Revision
These notes were first written in 2009. Some minor editing were done in
2013.
References
[1] Goldstein, H., Classical Mechanics, Addison-Wesley Pub. Co., 1980.
[3] Rund, H., The Hamilton-Jacobi Theory for the calculus of variations.
Van Nostrand, New York, 1966.