Intuition for uniform continuity of a function on $\mathbb{R}$ I understand the formal definition of uniform continuity of a function,
and how it is different from standard continuity.
My question is: Is there an intuitive way to classify a function
on $\mathbb{R}$ as being
uniformly continuous, just like there is for regular continuity?
I mean, that for a "nice" function $f:\mathbb{R} \to \mathbb{R}$,
it is usually easy to tell if it is continuous on an interval by
looking at or thinking of the graph of the function on the interval,
or on all of $\mathbb{R}$. Can I do the same for uniform continuity?
Can I tell that a function is uniformly continuous just by what it
looks like? Ideally, this intuition would fit with the Heine-Cantor theorem for
compact sets on $\mathbb{R}$.
 A: I like to think of the following fact: a $C^1$ function on $\mathbb{R}$ with bounded derivative is uniformly continuous.  So in order for a function not to be uniformly continuous, there have to be places where its graph is "arbitrarily steep".
Because of the theorem that any continuous function on a compact set is uniformly continuous, this can only happen if you make the function steeper and steeper as you go off to $\infty$, either unboundedly (like $x^2$) or boundedly (like $\sin(x^2)$).
Edit: As pointed out, the converse is false: a function with unbounded derivative can still be uniformly continuous.  $\sin(x^4)/(1+x^2)$ is such an example, I believe.  So this may not be great intuition after all.
A: This is slightly tricky because your intuitive picture for "continuous" probably more closely matches "uniformly continuous."  That is, if you can actually draw a graph without lifting your pencil then it's uniformly continuous.  In order to get something continuous but not uniformly continuous you have to do something that you can't actually draw like going off to infinity on an open interval or oscillating really wildly (as explained in the other two answers).
A: One possible intuition for uniform continuity is that a function shouldn't oscillate arbitrarily wildly. If the function is differentiable e.g. on an open interval, then the derivative should be bounded in absolute value. That's something that you can see by looking at the graph. For example if you consider the function $sin(1/x)$ on the open interval $(0,1)$, then just by looking at it, you will realise that it's not uniformly continuous, since it's slope becomes arbitrarily steep as you approach $0$ from the right.
The way this intuition ties in with the Heine-Cantor theorem is that on compact sets, bounded functions attain their extrema. If your function is differentiable, then this is in particular true for its derivative, so the slope of the function cannot get arbitrarily steep on a compact interval.
