This type of sketch plots can be done by just \draw and some use of controls. First example code (I used a grid to position the control points):
\documentclass[border=3mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[ultra thin, gray!30](0,0) grid (5,5);
\draw[thick](0,5) |- (5,0);
\draw[thick,red](0,0.5) -- (1,0.5) ..controls(1.75,0.5) and (1.25,4).. (2,4) ..controls(2.75,4) and (2.25,0.5).. (3,0.5) -- (5,0.5);
\end{tikzpicture}
\hspace{5mm}
\begin{tikzpicture}
\draw[ultra thin, gray!30](0,0) grid (5,5);
\draw[thick](0,5) |- (5,0);
\draw[thick,green](0,0.5) -- (1,0.5) ..controls(2.5,0.5) and (1.5,4).. (3,4) -- (5,4);
\end{tikzpicture}
\hspace{5mm}
\begin{tikzpicture}
\draw[ultra thin, gray!30](0,0) grid (5,5);
\draw[thick](0,5) |- (5,0);
\draw[thick,blue](0,0.5) -- (0.5,0.5)
..controls (1.5,0.5) and (1.25,4).. (1.5,4)
..controls (1.75,4) and (1.75,0.5).. (2,0.5)
..controls (2.25,0.5) and (2.25,4).. (2.5,4)
..controls (2.75,4) and (2.75,0.5).. (3,0.5)
..controls (3.25,0.5) and (3.25,4).. (3.5,4)
..controls (3.75,4) and (3.5,0.5).. (4.5,0.5) -- (5,0.5);
\end{tikzpicture}
\end{document}

The important part here is how controls work. In the example below, the curved line starts at A in the direction towards B, and ends in D in the direction from C. With such components you can make the most common base functions.
\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[ultra thin,gray!30](0,0) grid (5,5);
\draw[very thick,blue!30] (0,1) coordinate(start) --
(1,1) coordinate(A) --
(2.5,1) coordinate(B) --
(2.5,4) coordinate(C) --
(4,4) coordinate(D) --
(5,4) coordinate(end);
\foreach \Point in {start,A,B,C,D,end}{
\fill[blue] (\Point) circle(2pt);
\node[above] at (\Point) {\Point};
}
\draw[red] (start) -- (A) ..controls(B) and (C).. (D) -- (end);
\end{tikzpicture}
\end{document}
