Immediately after the switch is closed, the current supplied by the…