As an example, consider a gun, before and after firing of the bullet. The mechanical energy of the bullet and gun, before and after firing, should be the same. This principle of conservation of energy causes the gun to recoil after firing. To figure out why, set up the conservation equation for the bullet and the gun, before and after firing.