what is matematically equation of potential and kinetic energy