The mechanical energy ( E ) of a body is given by,

E = K + V

E = 1/2 (mv^{2}) + mgh

Where,

K = Kinetic energy of a body.

V = Potential energy.

m = mass of a body.

v = velocity of that body.

g = acceleration due to gravity.

h = height of a body.