Recall that, as a scheme, we can write the union of the axiis as X:=Spec[k[x,y]/(xy)]. Consider the local ring
O(x,y),X, a local ring with maximal ideal (xˉ,yˉ). Consider (xˉ,yˉ)/(xˉ,yˉ)2. Note that (xˉ,y)2 is generated by x2,xy, and y2, but xy=0, so (x,y)2=(x2,y2). Then dimk(x,y)/(x2,y2)=2. Suppose dimO(x,y),X=1. We have a nontrivial prime ideal, so the
dimension must be positive; thus there must be some tower of prime ideals 0⊊P⊊Q⊊(x,y). Elements of (x,y) are of the form ax+by for a∈k[x]
and b∈k[y] (if a had any y factor it would vanish, and conversely for b). Consider an
ideal which contains ax+by for both a and b nonzero; quotienting by such an ideal would
yield xax=x−by=0 as xy=0. Thus such an ideal cannot be prime. No prime
ideal can thus contain ax+by for a,b nonzero; moreover, if an ideal contains ax and by
it must contain ax+by by closure, so each ideal must contain only multiples of x or
multiples of y. Moreover, it is clear that a,b∈k for the ideal to be prime, and so any
prime ideal in (x,y) is of the form (x) or (y). These ideals don’t contain each other,
and so we have found the dimension of O(x,y),X is 1.