By adding the object’s kinetic energy and potential energy.