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.