Question

) Let K be a compact set of R and p e R \ K. Prove that there exist points a, b e K suchthat |a-p|=\inf \{|x-p|: x \in K\}

\quad \text { and } \quad|b-p|=\sup \{|x-p|: x \in K\}

Fig: 1

Fig: 2