7

This homework problem has just cost me 3 hours... But I still have no clue what it can be...

Let $A, B \subseteq \mathbb{R}$. Find a continuous function $f:A\cup B \to \mathbb{R}$ where $f$ is uniformly continuous on $A$ and on $B$, but $f$ is not uniformly continuous on $A\cup B$.

J. W. Perry
  • 5,447
  • 3
  • 22
  • 28
Qingtian
  • 833
  • 2
  • 9
  • 12
  • 1
    The wording "Let $A,B\subseteq\mathbb R$" seems to imply that we're supposed to do this for arbitrarily given sets $A$ and $B$. I'm sure that wasn't intended; we get to pick the sets as well as the function. Badly worded problem. – bof Oct 31 '13 at 06:50
  • The question is wrong if $A,B$ are compact subset of $\mathbb{R}$ – Myshkin Oct 31 '13 at 05:51
  • There is no restriction on what $A$ and $B$ could be as long as they are subsets of the reals. – Qingtian Oct 31 '13 at 05:55

3 Answers3

3

Hint: take $A=\mathbb N$ and $B=\{n+\frac{1}{n}\left|\right.n\in\mathbb N,n\geq 2\}$.

detnvvp
  • 8,237
1

$$f(x)=\cos x^2, A=f^{-1}(1),B=f^{-1}(-1)$$

bof
  • 6,156
1

Hint : union of two discrete sets need not be discrete

GA316
  • 4,324
  • 27
  • 50