I'm reading Chapter V.2 of Hartshorne, which includes the following claim, where $\pi: X \rightarrow C$ is a ruled surface:
Note that any two fibres of $\pi$ are algebraically equivalent divisors on $X$, since they are all parametrized by the curve $C$.
While this statement is intuitively clear, I cannot work out precisely what the divisor $D$ on $X \times C$ with $D_t = \pi^{-1}(t)$ for $t \in C$ closed should be. It seems like it should be described as the locus $\{(x, c) \in X \times C \mid \pi(x) = c \}$ or something similar, but I can't see exactly what the local defining equations should be to realize this as a Cartier divisor.
I think if you take the image $f(X)$ where $f: X \rightarrow X \times C$ is $\text{id} \times \pi$, you should get the right divisor, but I'm having trouble rigorously showing that this is in fact a Cartier divisor.
I'd be interested too in exactly what conditions we need on $X$ and on $C$ - Hartshorne tends to assume everything is non-singular and proper over an algebraically closed field, but perhaps not all of these are necessary?
Is it easy to write down local equations defining $X$ as a divisor in $X \times C$? At a point of $C$, you can take $t$ to be a uniformizing parameter of $\mathcal{O}{C,c}$ and then the ideal should be generated by $\pi^#(t) \otimes 1 - 1 \otimes t \in \mathcal{O}_X \otimes \mathcal{O}{C,c}$, but I don't know how to do this on an open set.
– Dorebell Jun 24 '15 at 00:57