Let $g:\mathbb{R}\rightarrow\mathbb{R}$ be a function of class $C^2$. Show that $$\lim_{h\rightarrow 0}\dfrac{g(a+h)-2g(a)+g(a-h)}{h^2}=g''(a).$$
It seems like an application of mean-value theorem might help: Since $g$ is differentiable, for any $h>0$ there exists $h_1\in(0,h)$ such that $$g(a+h)-g(a)=h\cdot g'(a+h_1).$$ And then since $g'$ is differentiable, there exists $h_2\in(0,h_1)$ such that $$g'(a+h_1)-g'(a)=h_1\cdot g''(a+h_2).$$ Combining the two we have $$g(a+h)-g(a)=hg'(a)+hh_1g''(a+h_2).$$ which doesn't quite get to the desired expression.