Posted: February 19, 2026 | Updated: September 11, 2026
To an algebraist the simplest geometric spaces are affine varieties, determined by their ring of functions. Unfortunately, students in algebraic geometry discover early that subvarieties are (a) interesting to study since functions and sheaves restrict to them and (b) indistinguishable by their function rings alone.
Using (b) to detect non-affineness, we can show rigorously that the quasiaffine variety A2∖{(0,0)} is not affine.
Identifying O(A2∖{(0,0)}): We have an injection k[x,y]→O(A2∖{(0,0)}) by restriction of regular functions on A2: if f,g are regular functions on A2, then f−g:A2→k is also regular and in particular continuous. If f,g are identical except possibly at (0,0), then since f−g is nonzero at (0,0) if it is nonzero in an open neighbourhood of (0,0) we see that f−g must be identically 0. Hence the restriction map is injective.
We can also determine the regular functions sheaf-theoretically by using the open cover D(x)∪D(y) for A2∖{(0,0)}. These sets contain the same points they would contain in A2, and we know that O(D(x))=k[x,y]x=k[x±1,y], O(D(y))=k[x,y±1]. A regular function on A2∖{(0,0)} is then given by a pair of f∈k[x±1,y],g∈k[x,y±1] so that f and g have the same image in O(D(xy))=k[x,y]xy=k[x±1,y±1]. The image of f is 1f and that of g is 1g, so this means that there is some h in (xy) with h(f−g)=0⟹f=g as k[x,y] is a domain. Clearly we have O(D(x))∩O(D(y))=k[x,y] (happening in the function field k(x,y)), so we see that O(A2∖{(0,0)})=k[x,y].
Now when X and Y are varieties and Y is affine there is an isomorphism Hom(X,Y)≅Hom(A(Y),O(X)). This means that for any affine Y with A(Y)≅k[x,y] one has Y≅A2, so to determine the difference between A2 and A2∖{(0,0)} using maps of rings we will need to look at maps fromA2∖{(0,0)} to A2. Alternatively we could compare their topologies, but this turns out to be surprisingly delicate: a result Wie78 of Wiegand shows that all nonempty open subsets of A2 are homemorphic in positive characteristic.
A2∖{(0,0)} is not isomorphic to A2: Since a morphism of varieties induces a map of the rings of regular functions, an isomorphism f:A2∼A2∖{(0,0)} would correspond to an automorphism of k[x,y]. Let f∗:k[x,y]→k[x,y],g↦g∘f be the associated isomorphism of rings (thinking of k[x,y] as regular functions on each space), and notice that f induces an isomorphism k≅k[x,y]/(x,y)→k[x,y]/(x∘f,y∘f). It follows that (x∘f,y∘f) is a maximal ideal, so (x∘f,y∘f)=(x−a,y−b) for some a,b∈k.
Now if f:X→Y is a morphism of varieties and g∈O(Y), then V(g) is closed in Y and V(g∘f) is closed in X, f(V(g∘f))⊆V(g) . If f is an isomorphism, then applying this reasoning in the other direction gives f(V(g∘f))=V(g). In our situation, this implies that f(V(x−a,y−b))=V(x,y)=∅, which is a contradiction as V(x−a,y−b) is a point of A2 for all a,b∈k. We see that A2∖{(0,0)} cannot be isomorphic to A2.
Note that our argument identifying the regular functions on A2∖{(0,0)} will work similarly for An∖{(0,0)} with n≥3. In the n=1 case, A1∖{0}is a variety, and in this setting we notice that A1∖{0}=D(x) with functions k[x]x.
Further reading:
BFH19 for more study of the topology of A2 via subvarieties
MSEAffineJacobian for relating this result to algebraic Hartog's theorem