and voltage are ideal and the switch S is initially closed as shown. when switch S is opened