Overall, the Lagrangian has units of energy, but no single expression for all physical systems. Any function which generates the correct equations of motion, in agreement with physical laws, can be taken as a Lagrangian. It is nevertheless possible to construct general expressions for large classes of applications. The *non-relativistic* Lagrangian for a system of particles can be defined by^{[9]}

where

is the total kinetic energy of the system, equalling the sum Σ of the kinetic energies of the particles,^{[10]} and *V* is the potential energy of the system.

Kinetic energy is the energy of the system’s motion, and *v*_{k}^{2} = **v**_{k} · **v**_{k} is the magnitude squared of velocity, equivalent to the dot product of the velocity with itself. The kinetic energy is a function only of the velocities **v**_{k}, not the positions **r**_{k} nor time *t*, so *T* = *T*(**v**_{1}, **v**_{2}, …).

The potential energy of the system reflects the energy of interaction between the particles, i.e. how much energy any one particle will have due to all the others and other external influences. For conservative forces (e.g. Newtonian gravity), it is a function of the position vectors of the particles only, so *V* = *V*(**r**_{1}, **r**_{2}, …). For those non-conservative forces which can be derived from an appropriate potential (e.g. electromagnetic potential), the velocities will appear also, *V* = *V*(**r**_{1}, **r**_{2}, …, **v**_{1}, **v**_{2}, …). If there is some external field or external driving force changing with time, the potential will change with time, so most generally *V* = *V*(**r**_{1}, **r**_{2}, …, **v**_{1}, **v**_{2}, …, *t*).

https://en.wikipedia.org/wiki/Lagrangian_mechanics