Lagrange equations (4.8) and Hamilton
equations (4.10) are valid also for
an ensemble of material points interacting with each other
and with some external potentials. In this case

where is the potential energy of the multi-particle system, and

Observe how these two functions are defined in terms of coordinates