Solution:
Energy of the particle will be, $\mathrm{E}=1 \mathrm{~J}$
$\mathrm{K}=0.5 \mathrm{~N} \mathrm{~m}^{-1}$
$\mathrm{K} . \mathrm{E}=\frac{1}{2} \mathrm{mv}^{2}$
Based on law of conservation of energy, we can write,
$E=V+K$
$1=\frac{1}{2} \mathrm{kx}^{2}+\frac{1}{2} \mathrm{mv}^{2}$
When it turns back, velocity becomes zero, so
$1=\frac{1}{2} \mathrm{kx}^{2}$
$\frac{1}{2} \times 0.5 x^{2}=1$
$x^{2}=4$
$x=\pm 2$
Thus, the particle turns back on reaching $\mathrm{x}=\pm 2 \mathrm{~m}$.