Suppose $\gamma : [0,1] \to \mathbb{R}^n$ is a smooth path, such that $\gamma([0,1]) \subseteq U$, where $U$ is an open subset of $\mathbb{R}^n$. Now I would like to consider the path $\gamma_\varepsilon : [0,1] \to \mathbb{R}^n$, where $$\gamma_\varepsilon^i(t) := \gamma^i(t) + \varepsilon f(t)$$ for some $i = 1,\dots,n$, $\varepsilon > 0$ and $f \in C^\infty_c(0,1)$ and the other components stay the same. I think now, that for $\varepsilon$ sufficiently small, it should be the case that $\gamma_\varepsilon$ is contained in $U$. Is that true?
I tried to prove it, however, I did not succeed. My idea was to use something like a neighbourhood of the form $$U_\delta := \{x \in \mathbb{R}^n : \mathrm{dist}(x,\gamma[0,1]) < \delta\}$$ for some $\delta > 0$. Since we know that $\gamma[0,1]$ is compact, I guess this should be possible. I tried a proof by contradiction.
Edit. If we can show the existence of such a $U_\delta$, I think the rest is easy: For any $t \in [0,1]$ we then have $$|\gamma_\varepsilon(t) - \gamma(t)| \leq \varepsilon \|f\|_\infty$$ Hence $$\mathrm{dist}(\gamma_\varepsilon(t),\gamma[0,1]) = \inf_{s \in [0,1]}|\gamma_\varepsilon(t) - \gamma(s)| \leq |\gamma_\varepsilon(t) - \gamma(t)| \leq \varepsilon \|f\|_\infty$$ for arbitrary $t \in [0,1]$ and hence for $\varepsilon$ sufficiently small we get that $\varepsilon \|f\|_\infty < \delta$.