A wire of length $L$ and cross-sectional area $A$ is made of a material of Young's modulus $Y$, if the wire is stretched by an amount $x$, the work done is
(a) $\frac{Y A x^{2}}{2 L}$
(b) $\frac{Y A x}{2 L^{2}}$
(c) $\frac{Y A x}{2 L}$
(d) $\frac{Y A x^{2}}{L}$