In Serre's Algebraic Curves and Class Fields, Ch. II, no. 12 we find defined the notion of trace of a rational differential form (a.k.a. meromorphic differential form) on an algebraic curve (in the quoted text here one finds Serre's definition of these forms). I will reproduce here the relevant excerpt (p. 22):
Now let $X$ be any curve. We choose a function $\varphi$ on $X$ which is not constant. If $X^{\prime}$ denotes the projective line $\mathbf{P}_1(k)$, we can consider $\varphi$ as a map $X \rightarrow X^{\prime}$ which is evidently surjective; it makes $X$ a "covering" of $X^{\prime}$, possibly ramified. Putting $E=k\left(X^{\prime}\right)$ and $F=k(X)$, the map $\varphi$ defines an embedding of $E$ in $F$; the field $E$ is thus identified with the field $k(\varphi)$ generated by $\varphi$. Since $X$ has dimension $1,\left[F: F^p\right]=p$; if $F^{\prime}$ denotes the largest separable extension of $E$ contained in $F$, there thus exists an integer $n \geq 0$ such that $F^{\prime}=F^{p^n}$. The extension $F / E$ is separable if and only if $n=0$, in other words if $\varphi \notin F^p$; we assume this from now on.
If $f$ is an element of $F$, its trace in $F / E$ is well defined; it is an element of $E$ which we will write $\operatorname{Tr}_{F / E}(f)$. The operation of trace can be extended to differentials in the following way:
The injection $E \rightarrow F$ defines a homomorphism from $D_k(E)$ to $D_k(F)$; as $d \varphi$ is an $E$-basis of $D_k(E)$ and $\varphi \notin F^p$, this homomorphism is injective and extends to an isomorphism of $D_k(E) \otimes_E F$ with $D_k(F)$. On the other hand, $\operatorname{Tr}_{F / E}: F \rightarrow E$ is $E$-linear; applying this homomorphism to the second term of $D_k(E) \otimes_E F$, we finally deduce an $E$-linear map $$ \operatorname{Tr}_{F / E}: D_k(F) \rightarrow D_k(E) . $$ We can make this more explicit as follows: if $\omega$ is a differential on $X$, we write $\omega=f d \varphi$ and then $$ \operatorname{Tr}_{F / E}(\omega)=\left(\operatorname{Tr}_{F / E}(f)\right) d \varphi. $$ Thus, to every differential $\omega$ on $X$ we have associated a differential $\operatorname{Tr}(\omega)$ on $X'=\mathbf{P}_1(k)$.
My questions are:
In the second sentence, what is "a function $\varphi$ on $X$ which is not constant"? Is it just an element of $F\setminus k$?
If it is really $\varphi\in F\setminus k$, how does $\varphi$ induce a map $X\to X'$? Why is it "evidently surjective"?
Why "$X$ has dimension $1$" implies $[F:F^p]=p$? I have to say: I don't know anything about the Frobenius, and a "frobenius degree" search on Google/MSE doesn't give anything.
In third paragraph, first sentence, how does one see $\varphi\not\in F^p$ implies $d\varphi\neq 0$?
I should say: Serre on his book always assumes $\overline{k}=k$ and with “variety” (in particular, “curve”) he means “variety in the sense of FAC” (locally ringed spaces over $k$ that are locally the maximal spectrum of a finitely generated reduced $k$-algebra, and that are separated).