(a) For real numbers a,b such that a<b, let f:[a,b]→R be a continuous function. Prove that f is bounded on [a,b], and that f attains its supremum and infimum on [a,b].
(b) For x∈R, define
g(x)={∣x∣21sin(1/sinx),0,x=nπx=nπ(n∈Z)
Find the set of points x∈R at which g(x) is continuous.
Does g attain its supremum on [0,π]?
Does g attain its supremum on [π,3π/2] ?
Justify your answers.