How can I draw this function in LaTeX?
Edit: i did something good but fig 1 does not work how i want
%---------------------------FIGURE 1-------------------------------------------\begin{center}
\begin{tikzpicture}
%----------------------ASSSI---------------------
\draw[thick,->] (0,0) -- (4,0) node[anchor=north west] {tempo};
\draw[thick,->] (0,0) -- (0,4) node[anchor=south east] {velocità};
%---------------------- MOTO --------------------
\draw[smooth, domain=0:4,thick]
plot (\x,{exp(-\x)}) node [right]{};
\end{tikzpicture}
\end{center}
%----------------------------- END FIGURE 1----------------------------------------------
%----------------------------- FIGURE 2--------------------------------------------------
\begin{center}
\begin{tikzpicture}
%----------------------ASSSI---------------------
\draw[thick,->] (0.33,0) -- (4.33,0) node[anchor=north west] {tempo};
\draw[thick,->] (0.33,0) -- (0.33,4) node[anchor=south east] {posizione};
%---------------------- MOTO --------------------
\draw[smooth, domain=0.335:4,thick]
plot (\x,{3-(1/(\x))}) node [right]{};
\end{tikzpicture}
\end{center}
%----------------------------END FIGURE 2----------------------------------------------