If S is stress and Y is Young’s modulus of material of a wire, the energy stored in the wire per unit volume is
Energy stored per unit volume U=12stress× strain =12stress× strainy =12S× Sy =S22y