(b) Situation is shown in figure. When mass m falls vertically on spring, then spring is compressed by distance d.
[image:6_image102.jpeg]
Hence, net work done in the process is
W=Potential energy stored in the spring
+Loss of potential energy of mass
=$mg(h + d) - \frac{1}{2}kd^{2}$