What formula would you use for law of conservation of mechanical energy?

The formula for the law of conservation of mechanical energy is:

Kinetic energy + Potential energy = Constant

Mathematically, this can be represented as:

KE + PE = Constant

where:
- KE is the kinetic energy of an object (½mv², where m is the mass of the object and v is its velocity),
- PE is the potential energy of the object (mgh, where m is the mass, g is the acceleration due to gravity, and h is the height),
- and the sum of the kinetic energy and potential energy remains constant, assuming no external forces act on the object.