Hence Lagrangian L = K.E. - P.E.
where k= 1,2,.....,n.
Interchanging order of summation & taking advantage of symmetry
hence,
Let substituting that