I am confused about the union of two varieties. I get two options: $$ \mathbb{V}(I)\cup\mathbb{V}(J)=\mathbb{V}(IJ) $$
and $$ \mathbb{V}(I)\cup\mathbb{V}(J)=\mathbb{V}(I\cap J) $$
I can prove the first one is right. But I also find the second on in the note. I don't think we always have $IJ=I\cap J$. So could anyone confirm which is correct? And provide an example to illustrate the incorrectness of the other?
You always have $IJ \subset I \cap J$ by definition of $IJ$. You do not need $IJ = I \cap J$ for $V(IJ) = V(I \cap J)$ though.
To see that $IJ \neq I \cap J$ for some $I, J$ take $I = J = <x>$. Then $I \cap J = <x>$ but $IJ = <x^2>$.
Some more stuff to read: The first equation is shown in Theorem 7 and the second in Theorem 15 in Chapter 4.3 (page 185 and 190) of the classic book "Ideals, Varieties and Algorithms".