The energy contained in a wire when it extended by 0.02m by a force 500…