We argue by induction on n∈N.
For n=1, a closed box in R is exactly a closed interval [a1,b1], which is compact by Closed Interval [a,b] is Compact in R.
Assume now that the theorem is known in dimension n−1, and let
B={x=(x1,…,xn)∈Rn:ai≤xi≤bi for every i∈{1,…,n}}
be a closed box in Rn. Write
I=[a1,b1]⊆R,C={y=(y2,…,yn)∈Rn−1:ai≤yi≤bi for i∈{2,…,n}}.
By the induction hypothesis, C is compact in Rn−1, and by Closed Interval [a,b] is Compact in R the interval I is compact in R. Hence, by Product of Two Compact Spaces is Compact, the product space I×C is compact when equipped with the product topology.
Define a map
f:I×C→Rn,f(t,(y2,…,yn))=(t,y2,…,yn).
Its image is exactly B.
We show that f is continuous. Let U⊆Rn be open in the Euclidean sense, and let (t,y)∈f−1(U). Then f(t,y)∈U. By Euclidean Open Box Criterion in Rn, there exists δ>0 such that every point z=(z1,…,zn)∈Rn satisfying
zi−δ<f(t,y)i<zi+δ
for every i∈{1,…,n} lies in U.
Set
J=I∩(t−δ,t+δ)
and
V=C∩{w=(w2,…,wn)∈Rn−1:yi−δ<wi<yi+δ for every i∈{2,…,n}}.
The set (t−δ,t+δ) is open in R, so J is open in I by the subspace topology. By the induction hypothesis together with Euclidean Open Box Criterion in Rn, the set in braces is open in Rn−1, so V is open in C by the subspace topology. Thus J×V is open in the product topology on I×C and contains (t,y).
If (s,w)∈J×V, then each coordinate of f(s,w) differs from the corresponding coordinate of f(t,y) by less than δ, so by the choice of δ one has f(s,w)∈U. Therefore
J×V⊆f−1(U),
which proves that f−1(U) is open. Hence f is continuous.
Since I×C is compact and f is continuous, Continuous Image of a Compact Space is Compact implies that its image B is compact in Rn. This completes the induction.