Conservation of energy

The total energy of a system changes only by the work done on it from outside, so in a system with no friction or outside work, kinetic plus potential energy stays the same.

From AP Physics 1.