See first class constraints for the prelimanaries.
Before going on to the general theory, let's look at a specific example step by step to motivate the general analysis.
Let's start with the action describing a Newtonian particle of mass m constrained to a surface of radius R within a uniform gravitational field g.
The action is given by
where the last term is the Lagrange multiplier term enforcing the constraint.
Of course, we could have just used different coordinates and written it as
instead, but let's look at the former coordinatization.
The conjugate momenta are given by
,
,
,
.
Note that we can't determine
from the momenta.
The Hamiltonian is given by
.
Note that we can't eliminate
at this stage yet. But here, we're treating
as a shorthand for a function of the symplectic space which we have yet to determine and NOT an independant variable.
We have the off shell primary constraint pλ=0.
We require that the Poisson bracket of all the constraints with the Hamiltonian vanish at the constrained subspace.
from this, we immediately get the secondary constraint r2-R2=0.
And from the secondary constraint, we get the tertiary constraint
.
And from the tertiary constraint, we get the quartanary constraint
.
And finally, from the quartanary constraint, we get
from which we deduce
.
Putting it all together,
with the constraints
pλ=0, r2-R2=0,
,
.
Since the Poisson bracket of these constraints among themselves do not vanish on the constrained subspace, we have second class constraints. Note that these constraints satisfy the regularity condition.