\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../fm.tikz}
\begin{document}
\begin{circuitikz}[font=\small]
\draw (0,0) to[american voltage source, l=$V_\mathrm{in}$, invert] (0,2.6);
\draw (0,2.6) to[R, l=$R_1$] (1.4,2.6) to[battery1, l=$V_\mathrm{B}$] (2.6,2.6) node[circ]{} to[short, -o] (3.6,2.6);
\draw (2.6,2.6) to[empty diode, l_=$D_1$] (2.6,0);
\draw[gaaccent, ->] (0.7,1.6) arc[start angle=160, end angle=20, radius=0.5]; \node[gaaccent] at (1.2,1.2) {$I_\mathrm{D}$};
\draw (0,0) -- (3.6,0) node[ocirc]{}; \node at (3.6,2.15) {$+$}; \node at (3.85,1.3) {$V_\mathrm{out}$}; \node at (3.6,0.45) {$-$};
\begin{scope}[xshift=6.6cm, yshift=1.2cm]\axes{-1.8}{2.8}{-1.4}{1.8}{$V_\mathrm{in}$}{$V_\mathrm{out}$}\draw[cv] (-1.2,-1.6) -- (0.8,0) -- (2.6,0); \xt{0.8}{$V_\mathrm{B}$} \draw (-0.6,-1.12) -- (-0.3,-1.12) -- (-0.3,-0.88); \node[right, font=\footnotesize] at (-0.3,-1.1) {1};\end{scope}
\begin{scope}[yshift=-3.6cm]
\node[right] at (-0.6,3.3) {Diode on:};
\draw (0,0) to[american voltage source, l=$V_\mathrm{in}$, invert] (0,2.6);
\draw (0,2.6) to[R, l=$R_1$] (1.4,2.6) to[battery1, l=$V_\mathrm{B}$] (2.6,2.6) -- (2.6,2.0) node[ocirc]{} -- (2.6,1.2) node[ocirc]{} -- (2.6,0) -- (0,0);
\draw[gaaccent, ->] (0.7,1.6) arc[start angle=160, end angle=20, radius=0.5]; \node[gaaccent] at (1.2,1.2) {$I_\mathrm{D}$};
\draw (1.3,0) node[ground]{};
\node[right] at (3.4,1.8) {$I_\mathrm{D} > 0$ for $D_1 = $ on};
\node[right] at (3.4,0.9) {$I_\mathrm{D} = \dfrac{V_\mathrm{in} - V_\mathrm{B}}{R_1} = \dfrac{1}{R_1}V_\mathrm{in} - \dfrac{V_\mathrm{B}}{R_1}$};
\end{scope}
\end{circuitikz}
\end{document}
