Does the P.E. of a spring decreases/increases when it is compressed or stretched ? Why?

workenergypower
cbse

#1

P.E. of a spring increases in both a cases. This is because work is done by us in compression as well as in stretching the spring.