\begin{circuit}2

%Capacitor
\C1 {} d
\- 3 d \P1

\atpin C1t
\- 3 u \P2
\- 6 l \P3
\- 3 d

% Otro capacitor
\C2 {} d
\vtopin P1

% Conectores
\- 4 l \P4
\cc \connection1 {$-$} c l

\atpin P3
\- 4 l \P5
\connection2 {$+$} c l

\atpin P5 \shift -1.5 -4
\put{$v(t)$}


%Cierre
\atpin P4
\htopin P1


% Corriente capacitores
\frompin C1b \shift -1.5 -2
\nl \whatI1 {$i_1(t)$} d u
\vtopin C1t
\- 1 u

\frompin C2b \shift -1.5 -2
\nl \whatI1 {$i_2(t)$} d u
\vtopin C2t
\- 1 u

% Corriente total
\frompin P3 \shift 0 1
\nl\cc \whatI1 {$i(t)$} d l
\htopin P5


% Tension capacitores

\atpin C1t \shift 0.5 0
\put{$+$}

\atpin C1b \shift 0.5 -0.5
\put{$-$}


\atpin C2t \shift 0.5 0
\put{$+$}

\atpin C2b \shift 0.5 -0.5
\put{$-$}


\end{circuit}