Suppose $f(x)$ is continuous on $[0,\,1]$, differentiable in $(0,\,1)$, and $$ f(0)=f(1)=0,\qquad f(\frac{1}{2})=1. $$ Show that $\exists\;\xi\in(0,\,1)$, such that $$ f'(\xi)-3\big(f(\xi)-\xi\big)=1. $$
My idea is to get a primitive of $f'(t)-3\big(f(t)-t\big)=1$ and use Rolle theorem. But I don't know how to use $f(\frac{1}{2})=1$.