Continuity Questions
Continuity Questions
2. Show that the function f defined by f (x) = x3x−1 is continuous on (1, ∞) by directly verifying
the -δ definition of continuity. Is this function uniformly continuous on (1, ∞)?
The solution below is wrong since I computed f (x) − f (a) incorrectly; it should be
But now the issue is that this correct expression becomes tough to bound correctly—in fact, I would
not expect that you be able to do this easily, certainly not in the time required on an exam. So,
for the sake of getting across the idea I meant the problem to emphasize, go ahead and ignore my
error and assume that
x a
f (x) − f (a) = 3 − 3
x −1 a −1
was in fact correct. Start with this and figure out how to come up with the appropriate bounds.
So in actuality, we’re not showing that f (x) = x3x−1 is continuous, but rather that whatever
function satisfies
x a
f (x) − f (a) = 3 − 3
x −1 a −1
is continuous. (I should have double-checked my work!)
Thoughts. Before giving the proof, let’s work out some details to see where the subtlety is. We
want to make
x a |x − a|
|f (x) − f (a)| = 3 − 3 =
x −1 a −1 |x − 1||a3 − 1|
3
small. Here a is the point we are checking continuity, but x varies so we need a bound on this
expression which only depends on |x − a| (which will be smaller than δ) and a. This means we need
to make the denominator smaller by making the |x3 − 1| term smaller. We have
since |1 + x + x2 | > 1 given that x ∈ (1, ∞). Hence the problem boils down to finding a positive
lower bound on |x − 1|. The point is that since the values of x we will consider should be close to
a and 1 < a, being close enough to a will guarantee that x − 1 > a−12 . Indeed, we just need x to
(a−1)
be within 2 away from a. (Draw a picture!)
Proof. Let a ∈ (1, ∞) and let > 0. Set δ = min a−1 a−1 3
2 , 2 |a − 1| > 0 and suppose that
|x − a| < δ. Then |x − a| < a−12 so
is continuous.
Yet another mistake on my part. The issue in the presented solution is when I claim that
1
(a − 1) sin 6= (a − 1)2
a−1
for a 6= 1. In fact, if you graph the function
1
g(x) = (x − 1) sin − (x − 1)2
x−1
you’ll see that there are plenty of points where this is zero, giving various values of a 6= 1 where
1
(a − 1) sin = (a − 1)2
a−1
is true. This function is continuous at all such points, but the problem is that such points cannot
be determined precisely. So, the answer should be that f is continuous at any a satisfying
1
(a − 1) sin = (a − 1)2 .
a−1
I’ll leave the incorrect solution as is since the basic idea is right, but be sure to note where my
mistake is.
√
Solution. First we claim that f is continuous at x = 1. Indeed, let > 0 and set δ = min{, }.
Suppose that |x − 1| < δ. Then if x ∈ Q we have
while if x ∈
/ Q we have
1
|f (x) − f (1)| = |x − 1| sin
≤ |x − 1| < δ ≤ .
x − 1
Thus |x − 1| < δ implies |f (x) − f (1)| < , so f is continuous at 1 as claimed.
Second we claim that f is continuous nowhere else. Indeed, if a 6= 1 and a ∈ Q, taking a
sequence yn of irrationals converging to a gives
1 1
f (yn ) = (yn − 1) sin → (a − 1) sin 6= (a − 1)2 ,
yn − 1 a−1
while if a 6= 1 and a ∈
/ Q, taking a sequence rn of rationals converging to a gives
1
f (rn ) = (rn − 1)2 → (a − 1)2 6= (a − 1) sin .
a−1
Thus either way, f is not continuous at a 6= 1.
4. Show that a function f : R → R is continuous if and only if the preimage of any open subset
of R is open. Recall that the preimage f −1 (U ) of a subset U ∈ R is the set of all x ∈ R which are
sent to something inside U :
f −1 (U ) := {x ∈ R | f (x) ∈ U } .
(This gives a characterization of continuity solely in terms of open sets. Technically this problem
is not a good problem for the purposes of reflecting exam material since I’ve said additional topics
we spoke about, such as open sets, won’t show up on exams; however, thinking about this problem
might help to better understand the true meaning behind the -δ definition of continuity.)
Proof. Suppose that f is continuous and let U ⊆ R be an open set. We want to show that f −1 (U )
is open. To this end, let a ∈ f −1 (U ), so that f (a) ∈ U . Since U is open, there exists > 0 such
that
(f (a) − , f (a) + ) ⊆ U.
Since f is continuous at a, there then exists δ > 0 such that
(a − δ, a + δ) ⊆ f −1 (U ).
5. Show that a function f is uniformly continuous on R if and only if for any sequences (xn ) and
(yn ) such that (xn − yn ) → 0, we have (f (xn ) − f (yn )) → 0 as well. (This gives a characterization
of uniform continuity in terms of sequences.)
Proof. Suppose that f is uniformly continuous on R and let (xn ) and (yn ) be sequences such that
(xn − yn ) → 0. We must show that (f (xn ) − f (yn )) → 0. Let > 0. Since f is uniformly continuous
there exists δ > 0 such that
1
|xn − yn | < and |f (xn ) − f (yn )| ≥ .
n
These number thus define sequences (xn ) and (yn ) such that (xn − yn ) converges to 0, which we
see by applying the squeeze theorem to
1
0 ≤ |xn − yn | < ,
n
but (f (xn ) − f (yn )) does not converge to 0 since it is does not converge at all given that all terms
are at least away from 0.
6. Suppose that a continuous function f : R → R is uniformly continuous on (−∞, 0] and uniformly
continuous on [0, ∞). Show that f is uniformly continuous on R.
(Here’s the subtlety. For any > 0 the fact that f is uniformly continuous on the first interval
gives an appropriate δ1 and the fact that it is uniformly continuous on the second gives an appro-
priate δ2 , so at first glance it might seem that to satisfy the requirement of uniform continuity on
all of R taking δ = min{δ1 , δ2 } would work. Certainly, if |x − y| < δ and both x, y are nonpositive,
then we can apply what we know about δ1 and if |x − y| < δ and both x, y are nonnegative, we can
apply what we know about δ2 ; but what happens if |x − y| < δ and one of x, y is negative and the
other positive? Do you see why this matters? How might the fact that f is continuous at 0 help to
overcome this?)
Proof. Let > 0. Since f is uniformly continuous on (−∞, 0] there exits δ1 > 0 such that
Finally, since f is continuous at 0 (since it is continuous on all of R) there exists δ3 > 0 such that
if |x| < δ3 , then |f (x) − f (0)| < .
2
Set δ = min{δ1 , δ2 , δ3 }, which is positive, and suppose that x, y ∈ R satisfy |x − y| < δ. If x
and y are both nonpositive, then |x − y| < δ1 implies that |f (x) − f (y)| < . If x and y are both
nonnegative, then |x − y| < δ2 implies that |f (x) − f (y)| < . Now, consider the case where one of
x and y is negative and the other positive—say that x < 0 and y > 0. Since |x − y| < δ3 , we must
have both |x| < δ3 and |y| < δ3 because otherwise the distance between x and y would be
7. Determine where the function from Quiz 5 is differentiable, which was what that quiz was
actually supposed to ask. (The TA misread the problem asked to determine where the function
was continuous instead.)
Proof. Since
f (x) − f (a)
f 0 (a) = lim > 0,
x→a x−a
there exists δ > 0 such that
f (x) − f (a)
for x ∈ (a − δ, a + δ), > 0.
x−a
Thus for x ∈ (a − δ, a + δ), f (x) − f (a) and x − a have the same sign; hence if x < a < y, x − a < 0
and y − a > 0 so
f (x) − f (a) < 0 and f (y) − f (a) > 0, giving f (x) < f (a) < f (y),
as desired.
Solution. (a) Let f (x) = ex − 2x, which is differentiable everywhere. For any x ≥ 1, by the Mean
Value Theorem there exists c between x and 1 such that
so
(ex − 2x) − (e − 2) = (ec − 2)(x − 1) ≥ 0
since x ≥ 1 and ec > 2 for c ≥ 1. Thus
ex − 2x ≥ e − 2 > 0.7,
so
√
1 1
log x − x − (log 4 − 2) = − √ (x − 4).
c 2 c
√ 1 1
Since c > 4, c2 > 2 c which implies that c − √
2 c
< 0. Since x > 4, the right side is negative, so
√
log x − x < log 4 − 2 < −0.6,
from which the desired inequality follows.
(c) This is certainly true at x = 0 since both sides are then 0. Assume that x > 0. Applying
the Mean Value Theorem to f (x) = sin2 −2x gives that there exist c such that
Since x > 0 and sin c cos c ≤ 1, the right side is ≤ 0 so sin2 x ≤ 2x = 2|x| since x > 0.
If x < 0, we instead apply the Mean Value Theorem to g(x) = sin2 x + 2x to get
for some c. Then x − 0 < 0 and 2 sin c cos c + 2 ≥ 0, so the right side is ≤ 0 and hence
since x < 0.
(d) Applying the Mean Value Theorem to f (x) = ex + sin x gives that for any x ≥ 0 there exists
c > 0 such that
ex + sin x − (1 − 0) = (ec + cos c)x.
Since c > 0, ec > 1 > cos c, so the right side is positive and hence ex + sin x > 1 as required.
Proof. Say that M > 0 is a bound on g 0 , meaning that |g 0 (x)| ≤ M for all x ∈ R. By the Mean
6 y ∈ R there exists c between x and y such that
Value Theorem, for any x =
Hence
f (x) − f (y) p
≤ M |x − y| for any x, y ∈ R.
x−y
Fixing y and taking the limit as x → y thus gives
f (x) − f (y)
lim = 0,
x→y x−y
p
since |x − y| → 0 as x → y. This implies that
f (x) − f (y)
lim = 0,
x→y x−y
so f 0 (y) exists and equals 0. Since y ∈ R was arbitrary, f 0 (y) = 0 for all y ∈ R, which implies that
f is constant as claimed.