Lagrangian

L=Kโˆ’VL=Kโˆ’V where KK is the kinetic energy and VV is the potential energy.