what is the relation between the different types of energies during pendulum motion where friction can be ignored