(b) Energy stored in the wire $= \frac{1}{2}stress \times strain \times volume$
and ${Young}^{'}s\ modulus = \frac{Stress}{Strain}$
⟹ $strain = \frac{S}{Y}$
$\frac{Energy\ stored\ in\ \ wire}{Volume} = \frac{1}{2} \times stress \times strain$
$= \frac{1}{2}S \times \frac{S}{Y} = \frac{S^{2}}{2Y}$