the switch S is shifted to position 2 from position 1 at t=0