Answer:
Step-by-step explanation:
Work done by the spring is negative .
Work done by force F creating displacement d is given by the following expression .
Work = F x d
Both force and displacement are vector quantity .
When direction of force and direction of displacement is same , work is positive . When direction of force and direction of displacement is opposite , work is negative .
When spring is compressed , it exerts a restoring or opposing force in a direction opposite to the direction of displacement of box . Hence here force is opposite to displacement . Restoring force acts opposite to displacement . Hence work done by spring on box is negative .