Now we consider the Lagrange's equation for the system and we calculate the potential energy, the kinetical energy and the damping function by using the vector of the generalised displacements defined before.