\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee1.tikz}
\begin{document}
\begin{tikzpicture}
% V_in = sin(2 pi t), V_D,on = 0.15, tau = 2: on from t = 0.024 to the peak (0.25), decay to t2 = 1.123, on to 1.25, decay
\begin{axis}[sketch, width=9cm, height=5cm, xmin=0, xmax=1.95, ymin=-1.2, ymax=1.3, xlabel={$t$}]
  \addplot[black, line width=0.8pt, domain=0:1.8, samples=250] {sin(deg(2*pi*x))};
  \addplot[line width=1.4pt, domain=0:1.8, samples=500] {x<0.024 ? 0 : (x<0.25 ? sin(deg(2*pi*x))-0.15 : (x<1.1232 ? 0.85*exp(-(x-0.25)/2) : (x<1.25 ? sin(deg(2*pi*x))-0.15 : 0.85*exp(-(x-1.25)/2))))};
  \draw[dim, dashed] (axis cs:0.25,0) -- (axis cs:0.25,1);
  \draw[dim, dashed] (axis cs:1.25,0) -- (axis cs:1.25,1);
  \node[font=\small, above] at (axis cs:0.25,1) {Peak};
  \node[font=\small, above] at (axis cs:1.25,1) {Peak};
  \node[font=\small, anchor=west] at (axis cs:0.47,0.35) {$V_\mathrm{in}$};
  \node[font=\small] at (axis cs:0.2,0.15) {$V_\mathrm{out}$};
  \node[note] at (axis cs:0.75,0.92) {Ripple};
  \draw[note, <-] (axis cs:0.27,-0.05) -- (axis cs:0.4,-0.7) node[below, align=center]{$D_1$ turns off\\after the peak};
  \draw[note, <-] (axis cs:1.1232,-0.05) -- (axis cs:1.1232,-0.7) node[below, align=center]{$D_1$ turns on\\again};
\end{axis}
\end{tikzpicture}
\end{document}
