When Mechanical Energy Is Conserved