In the figure, the switch was closed for a long time before opening at t = 0. The voltage Vx at t=0+, is
iL(0−)=2.5A
At,t=0+ ⇒ V=IR
=2.5×20=50V
∴ Vx=−50V
(Polarity of Vx is given reverse of V)