Let, $f:X \to Y$ be a morphism of schemes with $X$ being both reduced and irreducible.
- If the morphism $f|_{U}$ is constant, $\forall$ affine open $U \subset X$,. Show that $f(x)=f(y), \forall x,y \in X$
- Let $Y=\operatorname{Spec}(A)$ . For every affine open $U=\operatorname{Spec}(B)$ of $X$, the homomorphism $A \to B$ associated to $f|_{U} : U \to Y$ maps inside the subring $\Gamma(X,O_X)$
For Q.1, $X$ is irreducible, so $X$ is connected. So basically have to show that given fixed $x_0 \in X$, $\{x \in X:f(x)=f(x_0)\}$ is both open and closed. Now how to use the affine subsets to glue them together? And also by using the fact that $X$ doesn't have any zero divisors. I'm stuck here.
For Q.2, having no intuition regarding this one!
Thank you for help