(a) Energy stored in the wire $U = \frac{1}{2}Y \times (strain)^{2} \times volume$ or $U = \frac{1}{2}Y \times \left( \frac{x}{l} \right)^{2} \times Al$ or $U = \frac{1}{2}\frac{{Yx}^{2}}{l} \times$A or $U = \frac{1}{2}\frac{YA}{l}x^{2}$
Physics Educator & NEET/JEE Specialist
Ph.D. in Physics with 19+ years of teaching experience.