How would I show the following Edit
A function is called piecewise linear if it is (1)Continuous (2)Its graph consists of finitely many linear segments
Prove that a continuous function on an interval [a,b] is the uniform limit of a sequence of piece wise linear function.
$\forall \epsilon >0 \exists$ a piecewise linear function $g$ such that for a continous function $f$
$|g(x)-f(x)|<\epsilon$ $\forall x \in E$
I am not sure how I would do this problem.
Let $f:[a,b]\to\mathbb R$ be continuous. For $n\in\mathbb N$ and $h_n = (b-a) / n$ define $x_{n,k} = a + kh_n$, $0\le k \le n$, and the piecewise linear function $g_n:[a,b]\to\mathbb R$ by $$ g_n(x_{n,k}) = f(x_{n,k}). $$
Claim: $g_n \to f$ uniformly.
Hints:
Could you bound $g_n(x) - f(x)$?