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}$