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 during the stretching is
A.YAx²/2L
B.YAL²/2x
C.YAx/2
D.YAL/2