edit
Sorry the post I made contained an error. I'm not quite sure how to fix it yet but basically what I think you need to do is find a function h(x) and define it in terms of some linear combination of f(x), f(0), f(1) so that it equals zero at the end points and then apply Rolle's Theorem.