Impulse and Momentum
Before impact,
(KE)1 = 1/2 mV2
After impact
(KE)2 = 1/2 (M+m) Vf2
Hence the change in kinetic energy
Thus, there is a loss of kinetic energy. This is because the force field is not conservative.