the switch is closed at t = 0.