The Lagrangian of a mechanical system whose forces derive from a potential energy is the function of the coordinates, the velocities, and possibly the time
kinetic minus potential energy, both expressed in the generalized coordinates. The action of a conceivable motion between fixed endpoints and is the number
is a functional: it eats a whole path and returns one number, in joule-seconds — the units of Planck’s constant.