Hartshorne gave the exact sequences in Chapter II.8 and just say they followed from the affine case. But this view should consider the compkex glueing construction. I am disturbed completely. How should I thunk this? Thanks!



Question about the exact sequences of sheaves of relative differentials
I think the usual arguments "by gluing" can be replaced by more conceptual, global arguments. Namely, the sheaf of differentials has itsself a universal property, classifying global derivations. Actually this works for every morphism of (locally) ringed spaces. Then you can just write down the proof for rings also for ringed sapces, nothing changes at all.


In detail, if $f : X \to S$ is a morphism of ringed spaces and $M$ is a $\mathcal{O}\_X$ module, then a $\mathcal{O}\_S$-derivation $d : \mathcal{O}\_X \to M$ is a morphism of abelian sheaves on $X$ such that for all $U \subseteq S$ open and $W \subseteq f^{-1}(U)$ open, the induced map $\mathcal{O}\_X(W) \to M(W)$ is a $\mathcal{O}\_S(U)$-derivation. Here, $\mathcal{O}\_X(W)$ is considered as a $\mathcal{O}\_S(U)$-algebra via $f$. We get the set of derivations $\text{Der}\_{\mathcal{O}\_S}(\mathcal{O}\_X,M)$.


Now it is easy to see that the functor $\text{Der}\_{\mathcal{O}\_S}(\mathcal{O}\_X,-)$ is representable by an object ${\Omega}^1\_{X/S}$, by some colimit construction of the ${\Omega}^1\_{\mathcal{O}\_X(W) / \mathcal{O}\_S(U)}$. For the details, see [here](http://maddin.110mb.com/pdf/konstruktionen.pdf). There you can also find a simple argument why $\Omega^1\_{X/S}$ is quasi-coherent for a morphism of schemes $X/S$ and coincides with the usual gluing ad hoc definition.


Now let us consider for example the following exact sequence:



> 
> Let $X \to S$, $Y \to S$ be morphisms of ringed spaces and $f : Y \to X$ a morphism of ringed spaces over $S$. Then there is an exact sequence of $\mathcal{O}\_Y$-modules 
>  $f^\* \Omega^1\_{X/S} \to \Omega^1\_{Y/S} \to \Omega^1\_{Y/X} \to 0$.
> 
> 
> 


Proof: By the Yoneda-Lemma and the definition of a cokernel, it suffices to construct for ${\mathcal{O}}\_Y$-modules $N$ a natural exact sequence


$0 \to Hom(\Omega^1\_{Y/X},N) \to Hom(\Omega^1\_{Y/S},N) \to Hom(f^\* \Omega^1\_{X/S},N)$


of abelian groups. This corresponds to an exact sequence


$0 \to \text{Der}\_{\mathcal{O}\_X}(\mathcal{O}\_Y,N) \to \text{Der}\_{\mathcal{O}\_S}(\mathcal{O}\_Y,N) \to \text{Der}\_{\mathcal{O}\_S}(\mathcal{O}\_X,f\_\* N)$.


But now the left map is defined to be the obvious inclusion, and the right one is given by composing with ${\mathcal{O}}\_X \to f\_{\*} {\mathcal{O}}\_Y$. The exactness is now clear. If not, use the definition of derivations given above to reduce to the case of rings. QED


