4. Let a and b be real numbers with a < b. Let f be a function continuous on the closed interval [a,b] and differentiable on the open interval (a, b). If f'(x) =0 for all a < x< b, prove that f is a constant function on [a,b].