If the force constant of a wire is K, the work done in increasing the length of the wire by l is
Kl/2
Kl
K=Fl and W=12Fl=12Kl×l=12Kl2