If be a continuous on and differentiable on then prove or disprove that there is some such that

In such questions one is required to assume some function for which conditions for Rolle's or LMVT are satisfied.What I want to know is how does one find such functions