Solutions PMT 2
Solutions PMT 2
Solutions PMT 2
1. Let f : R → R be defined by (
1 − x, x ∈ Q
f (x) =
0, x ∈ R \ Q.
Find all the points (if there are any) at which f is continuous. Justify your answer.
Solution: If p 6= 1 is a rational number, then f (p) 6= 0. But since irrationals are dense,
there is a sequence xn → p such that f (xn ) = 0. So f is not continuous at p. On the other
hand if p is an irrational number, then f (p) = 0. Again by denseness, there is a sequence
of rationals xn → p. But then
since p is irrational and as such cannot equal one. This shows that f is dis-continuous at
all irrationals. We finally claim that f is continuous at p = 1. Note that f (1) = 0. To
prove continuity, given ε > 0 we let δ = ε. If |x − 1| < δ, and x is rational, then
On the other hand, for any irrational number x, |f (x) − f (1)| = 0 < ε. So for any real
number x such that |x − 1| < δ, we see that |f (x) − f (1)| < ε.
2. Suppose f : R → R satisfies
|f (x) − f (y)| < (x − y)2 .
Show that f is a constant. Hint. Is f differentiable?
1
3. Evaluate the following limits
√
1. limx→0+ x x.
√
x, √
Solution: Let y = x then ln y = x ln x. But
√ ln x 1/x √
lim x ln x = lim = −2 lim = −2 lim x = 0.
x→0+ x→0+ x−1/2 x→0+ x−3/2 →0+
Here we used L’hospitals rule for the second equality. So we see that ln y → 0 as
x → 0+ , which implies that y → 1, and so the limit that we seek is 1.
x2 +x
2. limx→0− |x| .
Solution:
x2 + x h2 + h
lim = lim = − lim (h + 1) = −1.
x→0− |x| h→0+ −h h→0+
4. Let f ∈ C 1 [0, 1] such that f (0) = f (1) = 0. Show that there exists t0 ∈ [0, 1] such that
f (t0 ) + f 0 (t0 ) = 0.
Solution: If h(x) = f (x)ex , then h(0 = h(1) = 0. By the mean value theorem, there exists
t0 ∈ [0, 1] such that
h0 (t0 ) = f 0 (t0 )et0 + f (t0 )et0 = 0.
Since et0 6= 0, this shows that
f 0 (t0 ) + f (t0 ) = 0.
5. Let f : R → R be uniformly continuous. Show that there exists A, B ∈ (0, ∞) such that
Solution: For easier notation, let us first consider the function g(x) = f (x) − f (0). Then
g(0) = 0 and g is also uniformly continuous. By uniform continuity, there exists δ > 0 such
that
|y − x| < 2δ =⇒ |g(y) − g(x)| < 1.
Claim. For any real numbers a and b and non negative n such that |b − a| = nδ, we have
|f (b) − f (a)| ≤ n.
2
Proof. Without loss of generality, we can assume a < b and so b = a + nδ. for some
positive integer n. If n = 0, there is nothing to prove, so we can assume n > 0. Then
To see the inequality in the third line, apply the above consequence of uniform continuity
to x = b − kδ, y = b − (k − 1)δ (so that |x − y| = δ < 2δ).
Continuing with the problem, let x be an real number. Then there is an integer m (positive
or negative) such that mδ ≤ x < (m + 1)δ. In particular, since |x − mδ| =< δ,
On the other hand, since mδ ≤ x < (m + 1)δ, it is easy to see that |m| < δ −1 |x| + 1. Using
this and triangle inequality, we see that
Solution: Let Z x
F (x) = f (t) dt.
0
Since f is continuous, by the fundamental theorem of calculus, F is differentiable and
3
F 0 (x) = f (x). Then
h
F (h) − F (−h)
Z
1
lim f (t) dt = lim
h→0 2h −h h→0 2h
1 h F (h) − F (0) F (−h) − F (0) i
= lim + lim
2 h→0 h h→0 −h
F 0 (0) + F 0 (0)
= = F 0 (0) = f (0).
2
(b) Suppose instead that f does not have a discontinuity of the second kind at t = 0, show
that
1 h
Z
lim f (t) dt = f (0+).
h→0+ h 0
Solution: Clearly fn → f pointwise on [0, 2], where f (t) = 1 for all t ∈ [0, 2].
u.c
Claim. fn −−→ f .
4
Proof.
√
t2 + n
fn (t) − f (t) = √ −1
t+n
√ √
| t2 + n − t + n|
= √
t+n
|t2 − t|
= √ √ √ (rationalizing)
( t + n)( t2 + n + t + n)
|t2 | + |t|
≤ (since t, t2 ≥ 0)
2n
7
≤ (since t ≤ 2, t2 ≤ 4)
n
So if Mn = supt∈[0,2] |fn (t) − f (t)|, then
7 n→∞
Mn ≤ −−−→ 0,
n
u.c
and so fn −−→ f uniformly.
(b) Calculate
Z 2
lim fn (t) dt,
n→∞ 0
5
Solution: By the mean value theorem, for any s, t ∈ (a, b), there exists a c between s
and t such that f (s) − f (t) = f 0 (c)(s − t). Taking absolute values, since |f 0 (c)| ≤ M ,