Problem: Let $f,g\colon \mathbb{R} \to \mathbb{R}$ be functions such that $f$ is differentiable and for every $x,h \in \mathbb{R}$ one has $f(x+h)-f(x-h)=2hg(x)$. Prove that $f$ is a polynomial of degree at most $2$.
My Attempt: As $f(x)$ is differentiable with respect to $x$ and $2hg(x)=f(x+h)-f(x-h)$, we know that $g(x)$ is differentiable with respect to $x$. Moreover, we have $$ \begin{split} 2hg(x) &= f(x+h)-f(x-h) \\ 2hg(x) &= f(x+h)-f(x)+f(x)-f(x-h) \\ 2g(x) &= \frac{f(x+h)-f(x)}{h} - \frac{f(x-h)-f(x)}{h} \end{split} $$ so that as $h \to 0$ $$ 2g(x) =\lim_{h \to 0} \frac{f(x+h)-f(x)}{h} - \frac{f(x-h)-f(x)}{h} = f'(x)-(-f'(x))=2f'(x) $$ This shows that $g(x)=f'(x)$. As $g(x)$ is differentiable, this shows that $f(x)$ is twice differentiable and that $g'(x)=f''(x)$. All that remains is to show that $f''(x)=g'(x)$ is constant.
However, I've tried many things and have yet to see why $g'(x)$ is constant. Any thoughts on how to do this?