When a wire is stretched, work is done against the interatomic forces. This work is stored in the form of elastic potential energy. Let Y is Young's modulus, F is force, A is area, L is length of wire and l is increase in length then Y= strain stress =l/LF/A=AlFL ⇒F=LYAL
When wire is further increased by infinitesimal length all, then work done is dW=F×dl=LYAldl W=0∫lLYAldl=LYA[2l2]0l=21YALl2 =21(yLl)(Ll)(A) =21× stress × strain × volume
So, elastic potential energy per unit volume is U=21 strees × strain