So, in one of the online lectures that I was watching, Walter Lewin did an experiment to prove the law of conservation of momentum.
There were two cars, attached to each other by a spring (The cars have equal masses) Initially, they are at rest. The spring has some pent-up potential energy. Then he burns the spring, and now the cars gain velocity in opposite directions. Since momentum has to be conserved, in the absence of any external force, the ratio of velocities of the cars should be 1. All well. The experimental data matches too.
The experiment can be found here: Lect 15 — Momentum, Conservation of Momentum, Center of Mass.
It starts from the 29th minute.
I am confused because when he applies heat to the spring to move the cars from rest, then isn't he supplying energy to the system? So, if energy is being supplied to the system, according to the work-energy theorem, net work done by the force is also increasing right? Doesn't this, therefore, imply that either force or displacement increases? So, shouldn't momentum not be conserved in this case?