Mathematics · lesson 3 of 3
Compactness and continuous functions
In R^n, compactness is equivalent to being closed and bounded.
Learn the ideas
Prerequisites: Real limits, closed sets and boundedness.
Euclidean criterion
In R^n, compactness is equivalent to being closed and bounded.
Extreme values
A continuous real-valued function on a nonempty compact set attains a maximum and minimum.
Uniform continuity
Continuity on a compact domain implies uniform continuity.
Domain matters
Closed-and-bounded is not a general compactness criterion in every metric or normed space.
Worked examples
Which subset of R is compact?
The interval is closed and bounded in R.
[0,1]
Give a continuous bounded function on (0,1) that does not attain its supremum.
Credit the open domain and absence of a maximizing point.
f(x)=x has supremum 1, but x=1 is not in the domain.
Check your understanding
8 questionsDecimals or fractions are accepted for numeric answers. Proofs and written responses use sample answers and require human marking. This is practice, not a protected examination.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.