What is the formula for kinetic energy and potential energy? How are they related by the conservation of energy principle?