\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../fm.tikz}
\begin{document}
\begin{tikzpicture}[font=\small]
\begin{scope}[x=0.5cm, y=0.5cm]
\draw[-{Stealth[length=5pt, width=4pt]}] (-3.6,0) -- (4.8,0) node[right]{$V_\mathrm{in}$};
\draw[-{Stealth[length=5pt, width=4pt]}] (0,-4.5) -- (0,4.2) node[above]{$V_\mathrm{out}$};
\draw[cv, domain=-3.4:3.5, samples=200] plot (\x,{max((\x)-2,0)});
\draw[line width=0.9pt, domain=0:9, samples=120, smooth, variable=\y] plot ({3*cos(deg(\y*2*pi/6))},{-0.6-\y});
\draw[-{Stealth[length=5pt, width=4pt]}] (0,-4.5) -- (0,-10.2) node[below]{$t$};
\draw[densely dashed] (3,0) -- (3,-0.6); \node[above, font=\footnotesize] at (3,0) {$V_0$};
\draw (2,0.12) -- (2,-0.12); \node[below right, font=\footnotesize] at (2,0) {2 V};
\end{scope}
\begin{scope}[xshift=5.2cm, x=0.5cm, y=0.5cm]
\draw[-{Stealth[length=5pt, width=4pt]}] (0,0) -- (13,0) node[right]{$t$};
\draw[-{Stealth[length=5pt, width=4pt]}] (0,-4.5) -- (0,4.2) node[above]{$V_\mathrm{out}$};
\draw[cv, domain=0:12, samples=240] plot (\x,{max((3*cos(deg(\x*2*pi/6)))-2,0)});
\draw (0.12,1) -- (-0.12,1); \node[left, font=\footnotesize] at (0,1) {$V_0-2$};

\end{scope}
\end{tikzpicture}
\end{document}
