Let $f(x)$ be a $C^2$ function on $[0,1]$, split uniformly into intervals of length $h=1 / n$. Let $p$ be the piecewise linear polynomial interpolating $f$ on each interval.
I am trying to prove the following $L^2$ error estimate:
$\sqrt{\int_0^1|f(x)-p(x)|^2 d x} \leq h^2 \sqrt{\int_0^1\left|f^{\prime \prime}(x)\right|^2 d x}$
My attempt at the proof is to first show that the Taylor expansion of $f(x)$ for $x$ close to zero can be written as $$ f(x)=f(0)+f^{\prime}(0) x+\int_0^x f^{\prime \prime}(s)(x-s) d s $$
and then show $$p(x)=f(0)+f^{\prime}(\alpha) x, \alpha \in[0, h]$$
I would use these to results to show $$|f(x)-p(x)| \leq \sqrt{3 h} x\left(\int_0^h\left|f^{\prime \prime}(s)\right|^2 d s\right)^{1 / 2}$$,
and finally show
$$\|f-p\|_{L^2([0,1])} \leq h^2\left\|f^{\prime \prime}\right\|_{L^2([0,1])}$$
Can someone help me with this proof?