Let $\left[ a,b\right]\rightarrow \mathbb{R}$. If $f$ is continuous on $\left[ a,b\right]$ then $f$ is uniformly continuous on $\left[ a,b\right]$.
Proof-trying. Assume $f$ on $\left[ a,b\right]$. We need to show that $f$ is uniformly continuos on $\left[ a,b\right]$, i.e., for any $\varepsilon >0$ there exist $\delta >0$ such that $\left| f\left( x\right) -f\left( c\right) \right|<\varepsilon$ whenever $x,c\in\left[ a,b\right]$. How can I show this, can you help?
A direct method of proving it is for a given $\epsilon$, note that for each $c \in [a, b]$, there is a $\delta(c)$ such that if $|y-c| \le \delta(c)$, then $|f(y) - f(c)| < \epsilon/2$.
Consider the collection of balls $B(c, \delta(c)/2)$. Since there is a ball for every $x$, this is an open cover of $[a,b]$ and therefore has a finite subcover. Let $\delta$ be the minimum of the radii of the balls in the subcover.
Suppose $x, y$ are such that $|y - x| < \delta$. $x$ must be inside one of the balls of the finite subcover. Let $c$ be the center of that ball. So $|x - c| < \delta(c)/2$ and $|y - x| < \delta \le \delta(c)/2$ by the choice of $\delta$. Therefore $|y - c| \le |y - x| + |x - c| < \delta(c)$, and since both $x$ and $y$ are within $\delta(c)$ of $c$,
$$|f(y) - f(x)| \le |f(y) - f(c)| + |f(c) - f(x)| < \frac \epsilon 2 + \frac \epsilon 2 = \epsilon$$