I'm working on question 7.4 of Chapter III.7 in Hartshorne's Algebraic Geometry. The question is about the cohomology class of a subvariety.
The setup is as follows: $X$ is an $n$-dimensional non-singular projective variety over an algebraically closed field $k$. $Y\subset X$ is a non-singular subvariety of codimension $p$. We have the standard map $\Omega_X\otimes \mathcal{O}_Y \rightarrow \Omega_Y$ from which we can deduce a map $\Omega_X^{n-p} \rightarrow \Omega_Y^{n-p}$, and this in turn yields a map on cohomology $H^{n-p}(X, \Omega_X^{n-p}) \rightarrow H^{n-p}(Y,\Omega_Y^{n-p})$. Now $Y$ is $(n-p)$-dimensional so $\Omega_Y^{n-p} = \omega_Y$ and we have the trace map $H^{n-p}(Y,\Omega_Y^{n-p} = \omega_Y) \rightarrow k$. Composing with this trace map we have $\varphi_Y : H^{n-p}(X,\Omega_X^{n-p})\rightarrow k$. Now, since by Serre Duality $H^p(X,\Omega_X^p) \cong H^{n-p}(X, \Omega_X^{n-p})^{\lor}$, $\varphi_Y$ corresponds to an element $\eta(Y) \in H^p(X,\Omega_X^p)$ which we call the cohomology class of $Y$.
Part (a) of the problem asks to show that if $P\in X$ is a closed point, then $t_X(\eta(P)) = 1$, where $t_X$ is the trace map on $\omega_X$. Now, in the case of a point, the map $\Omega_X^{n-p} \rightarrow \Omega_Y^{n-p}$ is simply the map $\mathcal{O}_X \cong \Omega_X^0 \rightarrow \Omega_P^0\cong k_P$ defined by $f \mapsto f(P)$ which, when composed with the trace map on $H^0(P,\omega_P)$, yields $f \mapsto t_P(f(P))$. This map should correspond to an element $\eta(P) \in H^n(X,\Omega_X^n = \omega_X)$ as indicated above.
My problem is, I don't know how to get my hands on $\eta(P)$. All I know is that it should exist. Moreover, I thought that $H^n(X, \omega_X) \rightarrow k$ is only a map of $k$-vector spaces. Wouldn't I need some morphism respecting ring structures somewhere in order to detect $1 \in k$ and be able to show that $t_X(\eta(P)) = 1$ here? Hartshorne himself says that, except in the case of curves, we can't really write down explicitly what the trace map is because we don't know. All we know is that it exists.