5

Let $R$ be a commutative ring and consider the ring of polynomials $R[x]$. Let $D:R[x]\to R[x]$ be the formal derivative. For any element $a\in R$ we also have an evaluation homomorphism $\varphi_a:R[x]\to R$ defined by $\varphi_a f=$ "$f(a)$".

Suppose we have polynomials $f(x),g(x)\in R[x]$ satisfying $\varphi_a f=\varphi_a g$ for all $a\in R$. In this case do we also have $$\varphi_a Df=\varphi_a Dg \quad \text{for all $a\in R$}?$$

I am looking for a discussion at the undergraduate level. It is difficult to find material on formal differentiation in undergraduate textbooks; my web searches only turn up advanced treatments in terms of K"ahler differentials.

Edit: A commenter points out that this is false for finite fields. So let's assume that $R$ is a field of characteristic zero (or maybe just an infinite domain).

Another Edit: Here is a proof when $R$ is an infinite domain. Let $f(x)=\sum_k a_kx^k$ and $g(x)=\sum_k b_kx^k$. If $\varphi_a f=\varphi_a g$ for all $a$ then since $\varphi_a$ is a homomorphism we have $\varphi_a(f-g)=0$, which says that $f(x)-g(x)$ has infinitely many roots. By Descartes' factor theorem this implies that $f(x)-g(x)$ is identically the zero polynomial, hence $a_k=b_k$ for all $k\in\mathbb{Z}_\geq 0$. But then $ka_k=kb_k$ for all $k\in\mathbb{Z}_{\geq 0}$, which implies that $Df$ and $Dg$ have the same coefficients as well. I was hoping to avoid Descartes' factor theorem and instead formalize the proof from calculus that polynomials defining the same function must have the same coefficients, i.e., substitute $x=0$ into the repeated derivatives.

  • "which says that $f(x)−g(x)$ has infinitely many roots. By Descartes' factor theorem this implies that $f(x)−g(x)$ is identically the zero polynomial" If a polynomial has infinitely many roots, why does this imply that it is the zero polynomial, and why does the factor theorem imply this? – Sextus Empiricus Jan 20 '23 at 08:44
  • 2
    @SextusEmpiricus Polynomials are by definition of finite degree. Decartes factor theorem sais that a non-zero polynomial over an integral domain can only have finitely many roots. Infinite domain means that $R$ is a ring which is integral (i.e. $ab=0$ implies $a=0$ or $b=0$), and that it has infinitely many elements. – imtrying46 Jan 20 '23 at 12:31
  • @SextusEmpiricus I think this only works when we consider polynomials over $\mathbb{R}$. Here we are concerned with polynomials with coefficients in any integral domain. For example, how would you formulate your proof if $R$ is any field? Or if $R=\mathbb{R}[x]$? – imtrying46 Jan 20 '23 at 13:56
  • 1
    @SextusEmpiricus Well from your suggested proof (which seems to use the fact that if $f:\mathbb{R}\to\mathbb{R}$ is differentiable and $f(a)=f(b)$ then there exists $c$ between $a$ and $b$ such that $f'(c)=0$), I'm assuming that your definition of derivative of a polynomial is using calculus, i.e. that you define $p'(x):=\lim_{h\to 0}\frac{p(x+h)-p(x)}{h}$. Algebraically this often doesn't make sense. What is the definition of a limit in $\mathbb{F}_p$? That is why algebraically, one just $defines$ the derivative of $x^n$ to be $nx^{n-1}$. – imtrying46 Jan 20 '23 at 14:57
  • I guess you are right that this road might be difficult. – Sextus Empiricus Jan 20 '23 at 15:00

2 Answers2

9

No this is not the case. Take $R=\mathbb{F}_2$ the field with $2$ elements. Let $f=1+x$ and $g=1+x^2$. Then $\varphi_0 f=1=\varphi_0 g$ and $\varphi_1 f=0=\varphi_1 g$. On the other hand, we have $Df=1$ and $Dg=0$, so $\varphi_a Df\neq \varphi_a Dg$ for all $a\in R$.

imtrying46
  • 2,587
  • 1
    Nice. Another example for any finite field $F$ of prime characteristic $p$ with cardinality $p^{n}$ is $f(X) = X^{p^{n}} - X, g(X) = 0$. Since $F^{\times}$ is cyclic of order $p^{n}-1$, every element of $F$ is a root of $f$, so $f$ and $g$ agree at every $a \in F$. But $Df = -1$, whereas $Dg = 0$. (I suppose your example is a translation of this one with $F = \mathbb{F}_{2}, p =2$, because $g - f = X^{2}-X$ in your case.) – Alex Wertheim Jan 20 '23 at 06:32
3

So let's think carefully about what happens in ordinary calculus. Over the real numbers, if $f(a) = g(a)$ for all $a \in \mathbb{R}$ then

$$f'(a) = \lim_{h \to 0} \frac{f(a + h) - f(a)}{h} = \lim_{h \to 0} \frac{g(a + h) - g(a)}{h} = g'(a).$$

In other words, what makes the argument over $\mathbb{R}$ work is that the values of the derivative $f'(a)$ are defined directly in terms of the values of $f(a)$. Is there any hope that we can salvage this argument in general?

The above definition does have an analogue for the formal derivative: if $f(x) \in R[x]$ then the formal derivative, which I will continue to denote by $f'(x)$, can be defined via

$$f(x + \varepsilon) = f(x) + \varepsilon f'(x)$$

where this computation takes place in $R[x, \varepsilon]/\varepsilon^2$. However, the above argument does not generalize, because the assumption that $f(a) = g(a)$ for all $a \in R$ does not automatically imply that $f(a + \varepsilon) = g(a + \varepsilon)$ for $a + \varepsilon \in R[\varepsilon]/\varepsilon^2$, which is a larger and different ring. It can be salvaged by making a stronger assumption about the two polynomials, namely that $f(a) = g(a)$ for all elements $a$ in every commutative $R$-algebra $S$; but of course this assumption straightforwardly implies that $f = g$ identically, by taking $S = R[x], a = x$.

So, I don't know how to avoid the factor theorem here without making a stronger assumption about the polynomials. The general lesson of working over more general base rings, especially finite fields, is that polynomials over $R$ are not always determined by their values on $R$ unless you allow inputs in extensions of $R$.

Qiaochu Yuan
  • 419,620