A spring has a force constant of $500.0 \mathrm{N} / \mathrm{m}$. Show that the potential energy stored in the spring is as follows:
a. $0.400 \mathrm{J}$ when the spring is stretched $4.00 \mathrm{cm}$ from equilibrium
b. 0.225 J when the spring is compressed $3.00 \mathrm{cm}^{-}$ from equilibrium
c. zero when the spring is unstretched (See Sample Problem $5 \mathrm{D}$.)