Write Z={xβRn:f(x)ξ =0} and S=suppf, so that S is the closure of Z by Support of a Real-Valued Function on a Topological Space; by The Closure is the Smallest Closed Superset the set S is closed, contains Z, and is contained in every closed set that contains Z. Throughout we use that d(x,0)=β₯xβ₯ for every xβRn: indeed d(x,0)=β₯xβ0β₯ by claim 2 of Elementary Properties of the Euclidean Norm on Rn, and xβ0=x in the real vector space Rn.
Claim 1. If xβ/S then xβ/Z, because ZβS; that is, f(x)=0.
Claim 3. Let R>0 be a real number such that f(x)=0 for every x with β₯xβ₯>R, and let
BΛ={xβRn:d(x,0)β€R}
be the closed ball of centre 0 and radius R. If xβZ then f(x)ξ =0, so β₯xβ₯>R is impossible; hence d(x,0)=β₯xβ₯β€R and xβBΛ. Thus ZβBΛ. By A Closed Euclidean Ball is Convex and Compact the set BΛ is compact, and therefore closed by Compact Subset of Rn is Closed. Being a closed set containing Z, it contains S, which is claim 3.
Claim 2. Suppose first that a real number R>0 as in claim 2 exists. By claim 3 we have SβBΛ and hence S=Sβ©BΛ. Since S is closed and BΛ is compact, the intersection Sβ©BΛ is compact by Compactness of Intersections with Closed Sets and of Level Sets of Semicontinuous Functions. So S is compact and f is compactly supported.
Conversely, suppose S is compact. By Compact Subset of Rn is Bounded it is bounded, so there are a point x0ββRn and a real number R0β>0 with d(x0β,y)β€R0β for every yβS. Put
R=d(x0β,0)+R0β+1,
which is a real number with R>0. For yβS, the symmetry and the triangle inequality of the metric d give
β₯yβ₯=d(y,0)β€d(y,x0β)+d(x0β,0)=d(x0β,y)+d(x0β,0)β€R0β+d(x0β,0)<R.
Consequently no x with β₯xβ₯>R lies in S, and for every such x claim 1 gives f(x)=0. This is the stated condition, and claim 2 is proved.