WHY this works: Start with the most wasteful description and subtract the redundancy.
Start unconstrained.N point particles in 3D need 3N Cartesian numbers to locate them all. That's the raw configuration space.
Each holonomic constraint is one equation. An equation f(…)=0 lets you solve for one variable in terms of the others — so it kills exactly one independent number.
Subtract. If there are k independent holonomic constraints:
n=3N−k
WHY 6 for a rigid body? A rigid body has infinitely many particles but the rigidity constraints (∣ri−rj∣= const) pin all but 6 numbers: 3 to say where the body is, 3 to say how it's oriented.
An independent variable that helps fully specify a system's configuration; need not be a length (can be angle, ratio, charge, etc.).
Define degrees of freedom.
The minimal number of independent generalized coordinates needed to specify configuration; for holonomic systems n=3N−k.
What is a holonomic constraint?
One expressible as an equation f(r1,…,rN,t)=0 among coordinates and time.
How many DOF does each independent holonomic constraint remove?
Exactly one.
DOF of a free rigid body?
6 (3 translation + 3 rotation).
DOF of a simple pendulum in a plane?
1 (the angle θ).
Why is θ a good coordinate for a pendulum?
Because x=ℓsinθ,y=−ℓcosθ automatically satisfies the length constraint, eliminating it.
Why does a rigid diatomic molecule have 5 DOF, not 6?
The bond-length constraint removes 1; rotation about the bond axis is invisible for point atoms, leaving 3 translation + 2 orientation angles.
Is a time-dependent (rheonomic) constraint holonomic?
Yes — it's still an equation f(r,t)=0 and removes one DOF; t is a parameter, not a coordinate.
Why is pure rolling tricky for counting DOF?
It's typically non-holonomic (a velocity constraint that can't be integrated to a position equation), so n=3N−k may not apply.
Recall Feynman: explain to a 12-year-old
Imagine a toy train on a circular track. The train is sitting in a big room, so you could describe it with how far left, how far forward, how high it is — three numbers. But that's silly! The train can only go around the loop, so really one number — "how far along the track" — tells you everything. That single number is its generalized coordinate, and "one" is its degrees of freedom. Whenever something is stuck on a path or surface, you can throw away the useless numbers and keep only the ones that actually change. Counting how many you keep = counting degrees of freedom.
Dekho, Newton ki duniya mein har particle ko locate karne ke liye uske x,y,z chahiye — yaani N particles ke liye 3N numbers. Lekin asli zindagi mein cheezein "stuck" hoti hain. Jaise pendulum ka bob — woh sirf ek arc pe ghoom sakta hai, to use describe karne ke liye sirf ek number, angle θ, kaafi hai. Yahi θ hai generalized coordinate, aur "kitne aise minimal numbers chahiye" — woh hai degrees of freedom (DOF).
Formula simple hai: n=3N−k. 3N matlab raw numbers, k matlab kitne independent holonomic constraints (woh restrictions jinhe equation f(r,t)=0 ki tarah likh sako). Har ek constraint ek number ko kha jaata hai, kyunki uss equation se aap ek variable ko baaki ke terms mein solve kar sakte ho. Pendulum: 2N=2, length constraint k=1, to n=1. Easy.
Generalized coordinate length hona zaroori nahi — angle, ratio, charge, kuch bhi chal sakta hai. Trick yeh hai ki aisi coordinate choose karo jo constraint ko automatically satisfy kar de. Pendulum mein θ choose karne se x2+y2=ℓ2 apne aap satisfy ho jaata hai — constraint gayab! Yahi smart choosing hai.
Ek warning: rolling without slipping jaise constraints non-holonomic hote hain — unhe position equation mein nahi likh sakte, sirf velocity ko restrict karte hain. Aise cases mein seedha n=3N−k mat lagao. Aur time-dependent constraint (jaise rotating wire) bhi holonomic hi hota hai — t ek parameter hai, coordinate nahi, isliye woh bhi ek DOF kam karta hai. Bas yeh basics solid ho jaaye to Lagrangian mechanics ka poora rasta khul jaata hai.