P(x,y,z)$P(x,y,z)$ is a polynomial function on an algebraic surface S$S$ in F_{q}^{3}$F_{q}^{3}$. Suppose that the derivative of P$P$ along any tangent vector of S$S$ is zero. Can we say that P$P$ is constant on S$S$?
Here q$q$ is a prime, and we assume the degrees of P$P$ and S$S$ are significantly smaller than q$q$.