Answer:d
Explanation:
Spring is compressed to a distance of x from its equilibrium position
Work done by block on the spring is equal to change in elastic potential energy
i.e. Work done by block [tex]W=\frac{1}{2}kx^2[/tex]
therefore spring will also done an equal opposite amount of work on the block in the absence of external force
Thus work done by spring on the block [tex]W=-\frac{1}{2}kx^2[/tex]
Thus option d is correct