2.1.10 · D1Analytical Mechanics

Foundations — Constraints using Lagrange multipliers

2,807 words13 min readBack to topic

This is the vocabulary page for the parent topic. Read it once and every later equation reads like plain English.


0. The scene we are describing

Everything in this chapter is about one object being forced to stay somewhere: a bead threaded on a wire, a mass hanging from a rope, a ball rolling without slipping. The object wants to move freely (gravity pulls it), but something forbids certain motions. Our whole job is to describe both the freedom and the forbidding with symbols.

Figure — Constraints using Lagrange multipliers

Look at the picture: the bead is stuck on the curve. It can slide along the wire (that arrow is allowed) but it can never move off the wire (that arrow is forbidden). Keep this split — along vs off — in your head. Every symbol below is a tool for talking about one of those two directions.


1. Coordinates — the numbers that pin down where the object is

The picture: to locate the bead in the plane you could give its horizontal position and vertical position . That's two numbers, so , . Or, since it lives on a circle, you could give the radius and the angle — the polar coordinates the parent note loves. Either way, a coordinate is a dial you can turn to move the object.

Why the topic needs it: every equation in the parent note runs "for ". That is how many dials you have. You cannot even state a constraint without first having coordinates to constrain. See Generalized Coordinates and Degrees of Freedom for the full story of choosing them.

Question — What does the subscript in actually mean?
It is a name tag numbering the coordinates (); it carries no math, just bookkeeping.
Question — If is an angle in radians, what is ?
The angular speed , in radians per second.

2. The constraint function — writing the wall as an equation

The picture: for a bead on a hoop of radius , the rule is "your distance from the centre is always ." Written as a function that must vanish: If , then — allowed. If , then — forbidden. The set of allowed points () is a surface (here, the circle). Think of as a height map whose "sea level" () is exactly the wall.

Figure — Constraints using Lagrange multipliers

Why the ? Sometimes the wall itself moves in time (a hoop being lifted, a rope being reeled in). Allowing to depend on time covers those cases. If the wall is fixed, just doesn't contain — but we write in to stay general.

Question — In , what does a value physically mean?
The bead is units off the hoop — a forbidden position.
Question — What makes a constraint holonomic rather than non-holonomic?
It restricts only positions (and time), never velocities — so it can be written .

3. The partial derivative — the slope of the wall in one direction

Here is the first genuinely new tool, so we slow down and earn it.

Why we need this tool and no other: we want to know which way is "off the wall." A single ordinary derivative can't tell us that, because "off" could mean nudging , or nudging , or some mix. The partial derivative lets us test each direction separately, and then assemble the answer.

The picture: stand on the height-map surface . is the slope you feel if you step in the direction. For : Stepping in changes at rate (you climb straight out of sea level). Stepping in changes not at all — you slide along the wall. That zero is the mathematics saying "the direction is the allowed one."


4. The gradient — the arrow pointing straight off the wall

The picture: on the hoop, — an arrow pointing radially outward, dead perpendicular to the circle. That is precisely the direction a normal force from a wall can push. This is the secret hinge of the whole topic.

Figure — Constraints using Lagrange multipliers
Question — Why must a frictionless constraint force point along ?
Because is perpendicular to the surface, and a smooth wall can only push perpendicular to itself.
Question — What is for , and what direction is it?
in — pointing radially outward, off the circle.

5. Virtual displacement — an imaginary "allowed" nudge

The picture: grab the bead and shift it a hair along the wire — never off it. That whisper of a move is . It is "virtual" because you don't actually let time pass; you just ask "what if I nudged it this way — is that allowed?"

Why frozen time? Real motion mixes the object moving with the wall possibly moving. To isolate the object's freedom on the wall right now, we hold still. That is why the constraint's variation drops its term:

Question — What is the difference between and ?
is a real move as time flows; is an imaginary test-nudge at frozen time that must respect the constraint.
Question — What does say geometrically?
The allowed virtual displacement is perpendicular to the gradient — it lies flat within the constraint surface.

6. Kinetic and potential energy , , and the Lagrangian

The picture: imagine the bead partway up the hoop. It has some speed (that's ) and some height (that's ). blends them into one number that, when we differentiate it just right, spits out Newton's laws — but in any coordinates, even weird ones. That machinery is the Euler-Lagrange Equations.

Why "minus"? The combination (not ) is the one whose variation gives the correct equations of motion — a deep fact from the principle of least action. For this foundations page, just accept as the recipe; the parent note uses it as a black box.

Question — Which variables does depend on, and which does depend on?
depends on velocities (and maybe positions); depends on positions .
Question — Is the Lagrangian or ?
.

7. The Euler–Lagrange operator

Why the topic needs it: for a free coordinate, setting this machine to zero is the law of motion. Under a constraint, it doesn't equal zero — it equals the leftover push, the constraint force . So the whole parent equation reads: (rate of momentum) − (applied force) = (constraint force), which is just (real forces) rewritten.

Question — What physical quantity is ?
The generalized momentum for coordinate .
Question — For a free (unconstrained) coordinate, what does the Euler–Lagrange machine equal?
Zero — that is the ordinary equation of motion.

8. The star of the show: the multiplier

Why it must exist — the tidy logic: from §5, the allowed nudge is perpendicular to . From d'Alembert, that same is perpendicular to the Euler–Lagrange bracket. Two arrows perpendicular to the same flat plane must be parallel — so the bracket for some number . That number is forced to exist; we just name it.

Question — In one sentence, what does physically represent?
The magnitude/strength of the constraint force (tension, normal force, friction).
Question — Why are we guaranteed a number exists linking the bracket to ?
Both are perpendicular to the same allowed-nudge plane, so they must be parallel — parallel vectors differ by a scalar, that scalar is .

9. Counting: , , and "balanced equations"

Why it matters: the classic panic — " seems undetermined!" — dissolves once you count. The constraint equation itself is the extra relation that pins down. Bring your bookkeeping and you never lose a variable.


Prerequisite map

Generalized coordinates q_k

Constraint function f = 0

Virtual displacement delta q

Partial derivative of f

Gradient grad f, perpendicular to wall

dAlembert virtual work equals 0

Kinetic T, Potential V

Lagrangian L = T minus V

Euler-Lagrange machine

Multiplier lambda appears

Constraint force lambda times grad f


Equipment checklist

Say the answer out loud before revealing. If any stalls, reread that section.

A generalized coordinate is
any number that specifies where the system is — a "dial" you can turn to move it.
The dot in means
the time-rate of change — the speed of that coordinate.
The constraint encodes
the rule that only positions making vanish are allowed — the wall.
"Holonomic" means the constraint depends on
positions (and time) only, never velocities.
The partial derivative answers
how much changes when you nudge only and freeze the rest.
The gradient points
perpendicular to the constraint surface — straight off the wall.
A virtual displacement is
an imaginary, tiny, constraint-respecting nudge at frozen time.
The equation says
allowed nudges lie flat within the surface (perpendicular to ).
The Lagrangian is defined as
, kinetic minus potential energy.
The Euler–Lagrange bracket physically equals
rate-of-change of momentum minus applied force.
The multiplier physically represents
the strength of the constraint force; is that force.
When physically
the wall exerts no push — the object is about to leave the surface / the string goes slack.
The equation-count that keeps determined is
EL equations constraints coordinates multipliers.