TITLE: Is a union of varieties singular in the intersection of its irreducible components?
QUESTION [6 upvotes]: Consider a separated, reduced scheme $X$ of finite type over some algebraically closed field $\Bbbk$. Let $X=X_1\cup\cdots X_r$  be its irreducible components, each of which is then a variety. Assume that $P\in X_i \cap X_j$  for $i\ne j$. I then wonder when $X$ is singular in $P$ - is this always the case or do I need some additional assumption? Also, can I weaken the assumptions on $X$?

REPLY [9 votes]: Your problem is local at $P$, so it suffices to study the local ring $R=\mathcal O_{X,P}$ of your scheme at $P$. The irreducible components passing through $P$ correspond to the minimal primes of $R$. If $R$ is regular it is a domain: this is not trivial and is proved for example in Matsumura's Commutative Ring theory, theorem 14.3, page 106 . So $R$ has zero as unique minimal prime ideal and your scheme is locally irreducible at $P$.
Remarks
1) If $R$ is not reduced it will definitely not be regular, so you can assume your scheme is reduced.
2) That $X$ is a $k$-scheme for some field $k$  is irrelevant.You should just assume that $X$ is locally noetherian, so that $R$ is a noetherian local ring (else the notion of regular doesn't make much sense).