65/101
\begin{frame}
  \frametitle{Piecewise Defined Functions: Example}

  \begin{center}
  \scalebox{.7}{
  \begin{tikzpicture}[default]
    \diagram{-1}{5}{-1}{3}{1}
    \diagramannotatez
    \diagramannotatex{1,2,3,4}
    \diagramannotatey{1,2}
    \draw[cblue,ultra thick] plot[domain=0:1,samples=10] (\x,{1-\x});
    \draw[cblue,ultra thick] plot[domain=1:3,samples=10] (\x,{\x-1});
    \draw[cblue,ultra thick] plot[domain=3:5,samples=10] (\x,{2});
  \end{tikzpicture}
  }
  \end{center}

  \begin{exampleblock}{}
    Find a formula for the function $f$ with the graph above.
    \begin{talign}
      f(x) = 
      \begin{cases}
        \mpause[1]{1-x} &\mpause[1]{\text{if $0 \le x \le 1$}}\\
        \mpause[2]{x-1} &\mpause[2]{\text{if $1 < x \le 3$}}\\
        \mpause[3]{2} &\mpause[3]{\text{if $x > 3$}}
      \end{cases}
    \end{talign}
  \end{exampleblock}
\end{frame}