\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee2.tikz}
\begin{document}
\begin{circuitikz}
% ---------- (b) R_out ----------
\node at (-1.6,4.6) {(b)};
\draw (1.5,0.8) node[nmos](m2){} (m2.east) node[right]{$M_2$};
\draw (m2.G) -- ++(-0.5,0) coordinate(g2) -- (g2 |- 0,0.1) node[ground]{};
\draw (m2.S) node[ground]{};
\draw (m2.D) -- ++(0,0.6) node[nmos, anchor=S](m1){} (m1.east) node[right]{$M_1$};
\draw (m1.G) -- ++(-0.5,0) coordinate(g1) -- (g1 |- 0,1.9) node[ground]{};
\draw (m1.D) -- ++(0,0.8) coordinate(d); \coordinate (r) at ($(d)+(1.9,0)$);
\draw (d) -- ++(0.9,0) to[short, i<=$I_x$] (r);
\draw (r) to[american voltage source, l=$V_x$] (r |- 0,1.6) -- ++(0,-0.2) node[ground]{};
\draw[->, gaaccent] (2.7,1.2) node[note, below]{$R_\mathrm{out}$} |- ($(m1.D)+(0.1,0.35)$);
% r_o2 equivalence
\draw (-1.3,1.3) to[R, l_=$r_\mathrm{o2}$] (-1.3,-0.1) node[ground]{};
\node at (-0.4,0.8) {$=$};
% separator
\draw[gagray] (4.9,-0.6) -- (4.9,4.8);
% ---------- (a) G_m ----------
\begin{scope}[xshift=6.2cm]
\node at (-0.2,4.6) {(a)};
\draw (1.8,0.8) node[nmos](n2){} (n2.east) node[right, yshift=4pt]{$M_2$};
\draw (n2.G) -- ++(-0.6,0) node[circ]{} node[left]{$V_\mathrm{in}$};
\draw (n2.S) -- ++(0,-0.2) coordinate(s) node[ground]{};
\draw (n2.D) -- ++(0,0.3) coordinate(x) node[circ]{} -- ++(0,0.3) node[nmos, anchor=S](n1){} (n1.east) node[right]{$M_1$};
\draw (x) -- ++(0.9,0) to[R, l=$r_\mathrm{o2}$] ($(s)+(0.9,0)$) -- (s);
\draw[->, gaaccent] ($(x)+(-0.2,0.5)$) -- ++(0,-0.4);
\node[note, anchor=east] at ($(x)+(-0.25,0.35)$) {$g_\mathrm{m2}V_\mathrm{in}$};
\draw (n1.G) -- ++(-1.3,0) coordinate(g1) -- (g1 |- 0,2.0) node[ground]{};
\draw (n1.D) -- ++(0,0.4) coordinate(d) -- ++(1.0,0) to[short, i<=$I_\mathrm{out}$] ++(1.0,0) coordinate(r) -- (r |- 0,2.6) node[ground]{};
\draw[<-, gaaccent] ($(s)+(1.05,0.25)$) to[bend right=20] ++(0.9,-0.4) node[note, right, align=left]{some current is\\wasted in $r_\mathrm{o2}$};
\end{scope}
\end{circuitikz}
\end{document}
