Suppose f:[a,b]→R is a function such that for every c∈[a,b] there is a Kc>0 and an ϵc>0 for which f(x)−f(y)≤Kcx−y for all x and y in (c−ϵc,c+ϵc)∩[a,b]. In other words, f is ``locally Lipschitz.''
a) Prove that there exists a single K>0 such that f(x)−f(y)≤Kx−y for all x,y in [a,b].
b) Find a counterexample to the above if the interval is open, that is, find an f:(a,b)→R that is locally Lipschitz, but not Lipschitz.