Total mechanical energy is the sum of the kinetic and potential energy of a body or system of bodies:
$$E_m=E_k + U = const$$
where,
Emā total mechanical energy; Ekā kinetic energy; Uā potential energy.