Is there a better way to draw an arrow until it reaches the curve? I have just hard coded the numbers, but was wondering if there was a way to label the curve then draw until the curve.
\begin{figure}[h!]
\centering
\begin{tikzpicture}
\draw[thick, ->] (-0.5, 0) -- (3.5, 0) node[anchor=west] {$x$};
\draw[thick, ->] (0, -0.5) -- (0, 1) node[anchor=south] {$y$};
\fill (0, 0) circle (0.7mm) node[anchor=north east] {$O$};
\draw[thick] (0, 0) .. controls (1, 1) and (2, 1) .. (3, 0);
\draw[thick, ->] (0.5, 0) -- (0.5, 0.35);
\draw[thick, ->] (1, 0) -- (1, 0.6);
\draw[thick, ->] (1.5, 0) -- (1.5, 0.7);
\draw[thick, ->] (2, 0) -- (2, 0.6);
\draw[thick, ->] (2.5, 0) -- (2.5, 0.35);
\end{tikzpicture}
\end{figure}
produces the image


