Given:
Radius of cross-section of the wire = r
Young's modulus of the material of the wire is Y.
As per the question, when the applied magnetic field is switched off, the tension in the wire increased and so did its length.
Young's modulus,
Here,
T is the tension
A is the area of cross-section
Δl is the increse in length of the wire