A mild steel bar of uniform cross-section A and length L is subjected to an axial load W. The strain energy stored in the bar would be