Let A,B be intervals. Let f:A→R and g:B→R be uniformly continuous functions such that f(x)=g(x) for x∈A∩B. Define the function h:A∪B→R by h(x):=f(x) if x∈A and h(x):=g(x) if x∈B∖A.
a) Prove that if A∩B=∅, then h is uniformly continuous.
b) Find an example where A∩B=∅ and h is not even continuous.