(i) $${S_1} - open,\,\,\,\,{S_2} - closed$$
$${A_1} = 0\,A,\,\,\,\,\,\,{V_1} = \,4.5\,\,V,$$
$${V_2}\, = \,1.5\,V,\,\,\,\,{A_2}\, = \,1\,A$$
(ii) $${S_1} - Closed,\,\,\,\,{S_2} - Open$$
$${A_1} = 4\,A,\,\,\,\,\,\,{V_1} = \,6\,\,V,$$
$${V_2}\, = \,6\,V,\,\,\,\,{A_2}\, = \,0\,A$$
(i) $${S_1} - open,\,\,\,\,{S_2} - closed$$
$${A_1} = 0\,A,\,\,\,\,\,\,{V_1} = \,4.5\,\,V,$$
$${V_2}\, = \,1.5\,V,\,\,\,\,{A_2}\, = \,1\,A$$
(ii) $${S_1} - Closed,\,\,\,\,{S_2} - Open$$
$${A_1} = 4\,A,\,\,\,\,\,\,{V_1} = \,6\,\,V,$$
$${V_2}\, = \,6\,V,\,\,\,\,{A_2}\, = \,0\,A$$
The circuit shown in the figure is used to charge the capacitor C alternately from two current sources as indicated. The switches S1 and S2 are mechanically coupled and connected as follows
Assume that the capacitor has zero initial charge. Given that u(t) is a unit step function, the voltage Vc(t) across the capacitor is given by