Lemma 29.35.17. Let $S$ be a scheme. Let $X$, $Y$ be schemes over $S$. Let $f, g : X \to Y$ be morphisms over $S$. Let $x \in X$. Assume that

1. the structure morphism $Y \to S$ is unramified,

2. $f(x) = g(x)$ in $Y$, say $y = f(x) = g(x)$, and

3. the induced maps $f^\sharp , g^\sharp : \kappa (y) \to \kappa (x)$ are equal.

Then there exists an open neighbourhood of $x$ in $X$ on which $f$ and $g$ are equal.

Proof. Consider the morphism $(f, g) : X \to Y \times _ S Y$. By assumption (1) and Lemma 29.35.13 the inverse image of $\Delta _{Y/S}(Y)$ is open in $X$. And assumptions (2) and (3) imply that $x$ is in this open subset. $\square$

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).