A penalty that does not move

Compute ∫01{f′′(x)}2 dx\int_0^1\{f''(x)\}^2\,\mathrm{d}x for f(x)=4+5xf(x)=4+5x, and for f(x)=4+5x+x2f(x)=4+5x+x^2.

The first function has second derivative 00, so the integral is 00. The second has second derivative 22, so the integral on [0,1][0,1] is 44. The linear part does not contribute.