(a) Elastic potential energy per unit volume is given as
$U = \frac{1}{2} \times stress \times strain$
From definition of Young’s modulus of wire
$Y = \frac{stress}{strain}$
⟹ $stress = Y\ \times strain$
Given, $strain = X$
Therefore, $U = \frac{1}{2} \times YX^{2}$
⟹ $U = 0.5\ YX^{2}$