
The Standard Axioms and Three Topological Properties  87
tion defined on a compact set, then its range is a compact subset 
of the real numbers, and every compact subset of the real numbers 
contains a largest element and a smallest element. In other words, 
if f is (1) continuous, (2) real-valued, and (3) has a compact domain, 
then f attains a maximum and a minimum value. Geometric details 
about the size, the shape, or even the dimension of the domain are 
unimportant. All that matters is the topological “structure” of the 
domain—that is, whether or not it is compact. The following are 
examples of functions defined on compact domains:
Example 5.7. Let the domain be the interval {x: 0 ≤ x ≤ 1}, and 
let f(x) = x
2
. (The graph of f is part of a parabola.) Because the 
domain is compact and f is continuous, it is guaranteed to have 
a maximum and a minimum.
Example 5.8. Let the domain be the square {(x, y): 0 ≤ x ≤ 1, 0 
≤ y ≤ 1}, and f(x, y) = x
2
 + 2y
2
. This equation can be interpreted 
as a surface over the square. The function f gives the height of 
the surface over the square domain at each point of the domain. 
Because the domain is compact, f is guaranteed to have a maxi-
mum and minimum height.
Example 5.9. Let the domain be the cube with edges of length 
one unit, with sides parallel to the coordinate planes, with one 
corner at the origin, and lying in the first octant. In symbols, the 
domain is {(x, y, z): 0 ≤ x ≤ 1, 0 ≤ y ≤ 1, and 0 ≤ z ≤ 1}, and let 
f(x,  y,  z)  =  x
2
  +  2y
2
  +  3z
2
.  In  this  case,  the  coordinates 
(x,  y,  z  f(x,  y,  z))  can  be  interpreted  as  the  coordinates  of  a 
“hypersurface,” or four-dimensional surface, over the unit cube. 
(Admittedly, this is hard to visualize.) Alternatively, f could be 
interpreted as a function that represents the temperature at each 
point of the cube, or it could be interpreted as the density of 
the cube. However we interpret f, we can be sure that it has a 
maximum and a minimum value because its domain is compact.
But how do we know that a domain is compact? The definition 
of compactness suggests only that we check all open covers of the