(a) Show that if f is continuous on the closed interval [a, b], then there is a function g which is continuous on R, and which satisfies g(x) = f(x) for all x in [a, b].
(b) Give an example to show that the previous assertion is false if [a, b] is replaced by the open interval (a, b).