I'll just throw down some definitions and then ask my question on this one.
In a conservative system, the Lagrangian, in generalised coordinates, is defined as the kinetic energy minus the potential energy.
L=L(q_i,\dot{q}_i,t) = K(q_i,\dot{q}_i,t) - P(q_i,t).
All q_i here being functions...