Simultaneously principal open set.
For some reason, I have a hard time understanding the proof that in an intersection of two affine open subschemes, there exists an open set that is principal in both affine opens. Here is my attempt to make it slightly more clear. The precise statement that I want to prove is the following. Let $X$ be a scheme and $U=\mathrm{Spec}~A$ and $V=\mathrm{Spec}~B$ be two affine open subschemes of $X$. For all $x \in U \cap V$, there exists $W = D_U(f) = D_V(g)$, a neighborhood of $x$, such that $f \in A$, $g \in B$, and $W \subset U \cap V$. 1) We would like to reduce to a simpler case. $U \cap V$ is an open subset of $V$. Hence there exists a principal open set $D(g) \subset U \cap V$ with $g \in B$ containing $x$. Then we may identify $D(g) = \mathrm{Spec}~B_g$. Therefore, we have $x \in \mathrm{Spec}~B_g \subset \mathrm{Spec}~A$. Suppose we found an open set $W$ containing $x$ that is principal inside both $\mathrm{Spec}~B_g$ and $\mathrm{Spec}~A$, then there exists some $h/g^n \i...