QQ: Exactly what information is contained in f*(OX)$f_*\mathscr O_X$? Look Look at the definition definition. For any UinY$U\subseteq Y$ open, f*(OX)(U) = OX(f-1(U))$f_*\mathscr O_X(U) = \mathscr O_X(f^{-1}(U))$ = regular regular functions on f-1(U) $f^{-1}(U)$. So the information in f*(OX)$f_*\mathscr O_X$ is related to to the sets in X$X$ of form f-1(U)$f^{-1}(U)$.
Cases where f*(OX)$f_*\mathscr O_X$ contains as little information about X$X$ as possible.
If X$X$ is irreducible and projective and f$f$ is constant, e.g. if Y$Y$ is affine, then the the only non empty set of form f-1(U)$f^{-1}(U)$ in X$X$ is X$X$ itself. In this case f*(OX) $f_*\mathscr O_X$ is a skyscraper sheaf with stalk k$k$ supported on the image point of f of $f$ in Y$Y$. There is very little information here about X$X$, but perhaps we do see see that f$f$ is constant and that X$X$ is connected. More More generally, if Z$Z$ is a projective projective variety, Y$Y$ is any variety, and X = ZxY$X = Z\times Y$, and f:ZxY→Y is$f:Z\times Y\to Y$ is the projection, then f-1(U) = ZxU$f^{-1}(U) = Z\times U$, so an element of f*(OX)(U)$f_*\mathscr O_X(U)$, i.e. a regular function on f-1(U)$f^{-1}(U)$, is determined by its restriction to {p}xU $\{p\}\times U$ for any p in X$p\in X$, i.e., a regular function on UinY$U$ in $Y$. Thus in this this case we have f*(OX) = OY$f_*\mathscr O_X = \mathscr O_Y$. Consequently in this case f*(OX) $f_*\mathscr O_X$ recovers Y$Y$, but contains no information at all about X$X$.
In general, if f:X→Y$f:X\to Y$ is a projective morphism with every fiber connected, and Y $Y$ is any normal variety, then f*(OX) = OY$f_*\mathscr O_X = \mathscr O_Y$, so again f*(OX) $f_*\mathscr O_X$ contains little information about X$X$. Recall that if X$X$ is a projective projective variety then every morphism out of X$X$ is a projective morphism, and more generally generally a projective morphism X→Y$X\to Y$ is one that factors via an isomorphism of X with with a closed subvariety of PnxY$\mathbb P^n\times Y$, followed by the projection PnxY→Y $\mathbb P^n\times Y\to Y$. Suppose Suppose that f:X→Y$f:X\to Y$ is any projective morphism. Then Then the fibers f-1(y)$f^{-1}(y)$ over points y in Y$y \in Y$ are all finite unions of projective varieties varieties. Therefore for any open set UinY$U\subseteq Y$ containing the point y$y$, the only only regular functions in OX(f-1(U)) = f*(OX)(U)$\mathscr O_X(f^{-1}(U)) = f_*\mathscr O_X(U)$ are constant on on every connected component of the fiber f-1(y)$f^{-1}(y)$. Thus f*(OX)$f_*\mathscr O_X$ can contain contain little information about X$X$ and f$f$, other than at most the connected components components of the fibers. We shall see below that it contains exactly this information information.
Cases where f*(OX)$f_*\mathscr O_X$ contains as much information about X$X$ as possible.
If f:X→Y$f:X\to Y$ is a map of affine varieties, then the global sections of f*(OX)$f_*\mathscr O_X$ determine X$X$ completely, since then H^0(Y,f*(OX)) = H^0(X,OX)$H^0(Y,f_*\mathscr O_X) = H^0(X,\mathscr O_X)$, and then X = specH^0(X,OX)$X = \mathrm{Spec}h^0(X,\mathscr O_X)$, is the unique affine variety with with coordinate ring H^0(X,OX)$H^0(X,\mathscr O_X)$. The generalization of this case is that of of any affine map f:X→Y$f:X\to Y$, since then X$X$ can be recovered by patching together the the analogous construction from H^0(U,f*(OX))$H^0(U,f_*\mathscr O_X)$ for affine open sets UinY $U\subseteq Y$. Thus X$X$ is completely determined by f*(OX)$f_*\mathscr O_X$ for any affine affine map f:X→Y$f:X\to Y$, and this is essentially the only case. I.e. in general f*(OX) $f_*\mathscr O_X$ is always a quasi coherent OY$\mathscr O_Y$ algebra, and if we want it it to determine a variety, as opposed to a "scheme", it is reasonable to assume for all UinY all $U\subseteq Y$ affine open, that f*(OX)(U)$f_*\mathscr O_X(U)$ is a finitely generated k algebra algebra, as well as an OY(U)$\mathscr O_Y(U)$ algebra. We may call temporarily such an OY $\mathscr O_Y$ algebra "of finite type". Thus if f:X→Y$f:X\to Y$ is any morphism such that f*(OX) $f_*\mathscr O_X$ is of finite type, then the patching construction above yields not necessarily X necessarily $X$, but a variety Z$Z$ and an affine map h:Z→Y$h:Z\to Y$ which factors via a map g:X→Z map $g:X\to Z$, where f = hog$f = h\circ g$, and where g*(OX) = OZ$g_*(\mathscr O_X) = \mathscr O_Z$. In In particular then, we have f*(OX) = (hog)(OX) = h(g*(OX))= h*(OZ)$f_*\mathscr O_X = (h\circ g)_*(\mathscr O_X) = h_*(g_*(\mathscr O_X))= h_*(\mathscr O_Z)$. So since h$h$ is affine, f*(OX) = h*(OZ)$f_*\mathscr O_X = h_*(\mathscr O_Z)$ determines not X$X$, but Z$Z$. (Kempf, section 6.5.)
Now when f:X→Y$f:X\to Y$ is any projective morphism, then f*(OX)$f_*\mathscr O_X$ is a coherent OY module $\mathscr O_Y$-module, hence we get a factorization of f$f$ as hog:X→Z→Y$h\circ g:X\to Z\to Y$, where h:Z→Y where $h:Z\to Y$ is affine, and where also h*(OZ) = f*(OX)$h_*(\mathscr O_Z) = f_*\mathscr O_X$. Then h Then $h$ is not only an affine map, but since h*(OZ)$h_*(\mathscr O_Z)$ is a coherent OY module$\mathscr O_Y$-module, h$h$ is also a finite map. Moreover g:X→Z$g:X\to Z$ is also projective and since g*(OX) = OZ $g_*(\mathscr O_X) = \mathscr O_Z$, it can be shown that the fibers of g$g$ are connected. Hence Hence an arbitrary projective map f$f$ factors through a projective map g with connected fibers fibers, followed by a finite map h$h$. Thus in this case, the algebra f*(OX) determines$f_*\mathscr O_X$ determines exactly the finite part h:Z→Y$h:Z\to Y$ of f$f$, whose points over y$y$ are precisely the the connected components of the fiber f-1(y)$f^{-1}(y)$.
One corollary of this is "Zariski's connectedness theorem". If f:X→Y$f:X\to Y$ is projective and and birational, and Y$Y$ is normal then f*(OX)= OY$f_*\mathscr O_X= \mathscr O_Y$, and all fibers of f of $f$ are connected, since in this case Z = Y$Z = Y$ in the Stein factorization described above above. If we assume in addition that f$f$ is quasi finite, i.e. has finite fibers, then f $f$ is an isomorphism. More generally, if Y$Y$ is normal and f:X→Y$f:X\to Y$ is any birational, quasi quasi - finite, morphism, then f$f$ is an embedding onto an open subset of Y$Y$ ("Zariski's 'main 'main theorem' "). More generally still, any quasi finite morphism factors through an an open embedding and a finite morphism.