Let 𝐴 =𝑋 ×𝑋 ∖Δ,
First let 𝑋 be Hausdorff.
and (𝑥,𝑦) ∈𝐴, so 𝑥 ≠𝑦.
Since 𝑋 is Hausdorff, there exist open neighbourhoods 𝑈 and 𝑉 of 𝑥 and 𝑦 respectively such that 𝑈 ∩𝑉 =∅,
and thus 𝑈 ×𝑉 is an open neighbourhood of (𝑥,𝑦) contained in 𝐴.
Hence every point in 𝐴 has an open neighbourhood contained in 𝐴,
therefore 𝐴 is open, whence Δ is closed.
Now let Δ be closed, i.e. 𝐴 be open.
Let 𝑥,𝑦 ∈𝑋 with 𝑥 ≠𝑦.
Then there exists an open neighbourhood 𝑈 ⊆𝐴 of (𝑥,𝑦).
Canonical projections are open, hence 𝜋1(𝑈) and 𝜋2(𝑈) are open neighbourhoods of 𝑥 and 𝑦 respectively,
which do not intersect.
Hence 𝑋 is Hausdorff.