Formula to calculate total mechanical energy

The formula to calculate total mechanical energy is:

Total Mechanical Energy = Potential Energy + Kinetic Energy

where Potential Energy is the energy an object possesses due to its position or condition and is given by the formula:

Potential Energy = mgh

where m is the mass of the object, g is the acceleration due to gravity, and h is the height or vertical position of the object.

Kinetic Energy is the energy an object possesses due to its motion and is given by the formula:

Kinetic Energy = 1/2 mv^2

where m is the mass of the object and v is the velocity or speed of the object.