0% found this document useful (0 votes)
46 views12 pages

Solutions A5

This document contains 5 questions regarding the Riemann integral. Question 1 asks about bounded functions whose squares or cubes are Riemann integrable and provides counter examples. Question 2 calculates the upper and lower integrals of a function and determines integrability based on the results. Question 3 shows a function is Riemann integrable without using theorems. Question 4 shows properties of the integral when a function agrees except at isolated points. Question 5 relates the Riemann integral to a limit of Riemann sums.

Uploaded by

Gaurav Bharwan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views12 pages

Solutions A5

This document contains 5 questions regarding the Riemann integral. Question 1 asks about bounded functions whose squares or cubes are Riemann integrable and provides counter examples. Question 2 calculates the upper and lower integrals of a function and determines integrability based on the results. Question 3 shows a function is Riemann integrable without using theorems. Question 4 shows properties of the integral when a function agrees except at isolated points. Question 5 relates the Riemann integral to a limit of Riemann sums.

Uploaded by

Gaurav Bharwan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Assignment-5

(Due 07/23)

Only submit the questions in red.


1. Suppose f is a bounded real valued function on [a, b] such that f 2 ∈ R[a, b]. Does it follow that
f ∈ R[a, b]? Does the answer change if we assume f 3 ∈ R[a, b]? Either give a proof or provide a counter
example in each of the two cases.

Solution: No to the first part. Consider


(
1, x ∈ Q
f (x) =
−1, otherwise.

Then f 2 = 1 everywhere and so is integrable, but f is discontinuous everywhere and hence is non-
integrable. For the second part, the answer is yes. COnsider the continuous function ϕ(x) = x1/3 .
Then if f 3 is integrable, by the theorem on composition, ϕ ◦ f 3 = f is also integrable.
Remark. This reasoning does not work for the first part, since if you let ϕ(x) = x1/2 (which is
continuous), then ϕ ◦ f 2 = |f | and not f .

2. Let (
x2 , x ∈ Q
f (x) =
0, otherwise.
(a) Calculate the upper and lower integrals U (f ) and L(f ) for f on [0, b].

Solution: For any partition P it is clear that L(P, f ) = 0 and hence L(f ) = 0.
Claim. U (f ) = b2 /3.
Proof. Consider the function, g(x) = x2 for all x ∈ [0, b]. Since rationals are dense, for any
partition P, U (P, f ) = U (P, g). In particular, U (f ) = U (g). But g, being continuous, is clearly
integrable on [0, b] and so
Z b
b3
U (g) = x2 dx = .
0 3
Hence U (f ) = b2 /3.

(b) Is f integrable on [0, b]. Answer the question, solely based on your calculations in part(a), and not
by quoting a theorem that we might have learnt in class.

Solution: Since U (f ) 6= L(f ), f is not integrable.

3. Let f : [0, 1] → R be defined by


(
2−n , 2−n−1 < t ≤ 2−n
f (t) = .
0, t = 0.

1
Show that f ∈ R[0, 1] by showing that given any ε > 0, there exists a partition P such that

U (P, f ) − L(P, f ) < ε,

and without appealing to the theorem of Lebesgue.

Solution: Let ε > 0. Consider the interval [ε/2, 1]. Then f has only finitely many discontinuities
on this interval, and so by the proof of the Theorem on continuity and integrability discussed in
class, there is a partition P 0 of [ε/2, 1] such that
ε
U (P 0 , f ) − L(P 0 , f ) < .
2
Now let P = {0, ε/2} ∪ P 0 . Then P is a partition of the interval [0, 1]. Let M = supt∈[0,ε/2] f (t) and
m = inf t∈[0,ε/2] f (t). Clearly, M < 1 and m = 0. Then
ε
U (P, f ) − L(P, f ) = (M − m) + U (P 0 , f ) − L(P 0 , f ) < ε.
2

4. (a) Let f ∈ R[a, b] and {p1 , · · · pn } be a finite collection of points in [a, b]. Let g : [a.b] → R be a
bounded function such that
f (t) = g(t),
for all t ∈ [a, b] \ {p1 , · · · , pn }. Show that g ∈ R[a, b] and that
Z b Z b
g(t) dt = f (t) dt.
a a

Hint. Do it for one point at a time.

Solution: Let us assume that n = 1, and denote p1 = p. The general case follows by a repeated
use of the argument below. Let us also put h = f − g. Since g = f − h, it is enough to show
that h ∈ R[a, b] and that
Z b
h(t) dt = 0.
a

Note that h(t) = 0 for all t 6= p. If h(p) = 0, there is nothing to prove. So suppose h(p) 6= 0. For
simplicity, let us also assume that p ∈ (a, b). If p is one of the boundary points, the argument
is even easier. Then given ε > 0, let
p − a ε b − p
δ = min , , ,
2 4|h(p)| 2

and consider the partition,

P = {t0 = a, t1 = p − δ, t2 = p + δ, t3 = b}.

Then
U (P, h)2M2 δ, L(P, h) = 2m2 δ.
But since M2 , m2 ≤ |h(p)|,
ε
|U (P, h)|, |L(P, h)| ≤ 2|h(p)|δ < .
2

2
In particular,
U (P, h) − L(P, h) < ε.
So for any ε > 0 we have a partition for which the difference in the upper and lower sums
is smaller than ε. This shows that h is integrable. Moreover, we know that the integral
is sandwiched between the upper and the lower sums and hence it follows from the above
estimates that Z b
−ε < h(t) dt < ε.
a
But since this si true for all ε > 0, it forces the integral to be zero.

(b) Is the conclusion true, if we instead have a countable collection of points {pn }∞
n=1 ?

Solution: No. Consider f (t) = 1 on [0, 1] and


(
1, t ∈ R \ Q
g(t) =
0, t ∈ Q.

5. (a) If f ∈ R[0, 1], show that


Z 1 n
1 X k
f (t) dt = lim f .
0 n→∞ n n
k=1

Solution: Let ε > 0. We need to show the following -


Claim. There exists an integer N such that for all n > N ,
Z 1 n
1 X  k 
f (t) dt − f < ε.

n n

0 k=1

Proof. By Theorem 5.1 in the notes, since f ∈ R[0, 1], there exists a δ > 0 such that for any
partition P with |P | < δ, we have that

U (P, f ) − L(P, f ) < ε.

Now consider the partition Pn given by subdividing [0, 1] into n subintervals of equal length
1/n. That is,
1 2
Pn = {0, , , · · · , 1}.
n n
Then cleary if N is an integer such that N > 1/δ, then for any n > N we have that |Pn | < δ.
Applying the above consequence of THem 5.1, we see that

U (Pn , f ) − L(Pn , f ) < ε.

But from the definition it follows that


n
1 X k
L(Pn , f ) ≤ f ≤ U (Pn , f )
n n
k=1
Z b
L(Pn , f ) ≤ f (t) dt ≤ U (Pn , f ).
a

3
The first set of inequalities hold since on any interval Ik = [ k−1 k
n , n ] if like usual we set Mk =
supIk f (t) and mk = inf Ik f (t), then
k
mk ≤ f ≤ Mk .
n
But now since 0 ≤ U (Pn , f ) − L(Pn , f ) < ε, the claim is proved from the above two inequalities.
Again, it is good to visualize the upper and lower sums as floors of a building, and the integral
and the right side approximation sum lie between these two floors.

(b) Give an example of a bounded function f : [0, 1] → R for which the limit on the right exists, but f
is not Riemann integrable.

Solution: Consider (
0, x ∈ Q
f (x) =
1, x ∈
/ Q.
Then the sum on the right is always 0, and hence in particular the limit is also zero, while the
function is not Riemann integrable.

(c) Use part(a) to evaluate the limit


n
1 X 1
lim √ √ .
n→∞ n k k=1

Solution: We write
n n √ n
1 X 1 1X n 1 X k
√ √ = √ = f ,
n k n k n n
k=1 k=1 k=1

where we let f (x) = √1 . Then by part(a),


x

n Z 1
1 X 1 dx
lim √ √ = √ = 2.
n→∞ n k 0 x
k=1

6. (a) Let f be a continuous real valued function on [a, b]. Show that there exists a c ∈ [a, b] such that
Z b
1
f (c) = f (t) dt.
b−a a

Solution: By the fundamental theorem of calculus


Z x
F (x) = f (t) dt
a

is differentiable on [a, b] and F 0 (x) = f (x). By the mean value theorem, there exists a c ∈ [a, b]
such that
(b − a)F 0 (c) = F (b) − F (a)
whcih is what we want.

4
(b) More generally, if f is continuous on [a, b], g ∈ R[a, b] and g does not change sign (you can assume
g ≥ 0), then prove that exists a c ∈ [a, b] such that
Z b Z b
f (t)g(t) dt = f (c) g(t) dt.
a a
Rb
Hint. Let I = a
g(t) dt 6= 0 and f [a, b] = [m, M ]. The proof is easy if I = 0. If I 6= 0, show that
1 b
Z
m< f (t)g(t) dt < M,
I a
and use intermediate value theorem. There is also a much neater way to do this using change of
variable. Can you figure it out?
Rb
Solution: As in the hint, let I = a g(t) dt. Since m < f (t) < M , and g ≥ 0, we have that
mg(t) ≤ f (t) ≤ M g(t) for all t ∈ (a, b). Integrating we get
Z b
mI ≤ f (t)g(t) dt < M I.
a
Rb
If I = 0, then it follows that a
f (t)g(t) dt = 0, and there is nothing to prove. So suppose
I 6= 0. Then
Z b
1
m≤ ≤ M.
I a

Then by intermediate value theorem, since f is continuous, it follows that there is some c ∈ (a, b)
such that
1 b
Z
f (c) = f (t)g(t) dt.
I a

7. Let f : [1, ∞) → (0, ∞) be a continuous, decreasing function such that limx→∞ f (x) = 0. Denote
Xn Z n
sn = f (k), In = f (t) dt, dn = sn − In .
k=1 1

(a) Show that f (n) + In ≤ sn ≤ f (1) + In .

Solution: We can write


n−1
X Z k+1
In = f (x) dx.
k=1 k

For any x ∈ [k, k + 1],


f (k + 1) ≤ f (x) ≤ f (k).
Integrating the first inequality from k to k + 1,
Z k+1
f (k + 1) ≤ f (x) dx,
k

and so
n−1
X
In ≥ f (k + 1)
k=1
= sn − f (1),

5
or equivalently,
sn ≤ In + f (1).
This proves the right side of the inequality. For the left side, we integrate the second inequality
above, and obtain that
n−1
X
In ≤ f (k) = sn − f (n),
k=1

or equivalently
In + f (n) ≤ sn .

P∞ R∞
(b) (Integral test for convergence) Hence show that n=1 f (n) converges if and only if 1
f (x) dx
converges.
R∞
Solution: Firstly recall that 1
f (x) dx converges if and only
Z R
lim f (x) dx
R→∞ 1
RR
exists. Since f (x) ≥ 0, this limit exists if and only if 1 f (x) dx is bounded by a constant
independent of R. Or equivalently,
Z ∞
f (x) dx converges ⇐⇒ {In } is bounded.
1

Now the conclusion follows from the following chain of equivalences


X
f (n) converges ⇐⇒ {sn } converges
⇐⇒ {sn } is bounded (since f (n) ≥ 0)
⇐⇒ {In } is bounded
Z ∞
⇐⇒ f (x) dx converges .
1

(c) Use the above test, to find all possible values of p and q for which the following series converge.
P∞ 1
1. n=2 np (ln n)q

Solution: There are many cases we need to deal with. Before that we start with the
following simple observation, that for any α > 0, there exists an N > 0 (possibly depending
on α) such that
ln(n) < nα
for all n > N. This follows from the fact that limn→∞ ln(n)/nα = 0, which itself can be
proved by an application of L’Hospital. With this out of the way, we have the following
three cases.

• p > 1. In this case if q ≥ 0, then since ln(n) ≥ 1 for all n > 3,


1 1
<
np (ln(n))q np

6
for n > 3. So by comparison theorem, the series converges. If on the other hand,
q < 0, let r = −q. Then r > 0, and

1 (ln n)r
= .
np (ln n)q np

By the above observation, for any α > 0, there exists and N such that for any n > N ,
(ln n)r < nαr , and so
(ln n)r 1
< p−αr .
np n
Since p > 1, we can
P choose α > 0 small enough so that p − αr > 1. For such a choice
of α, the series nαr−p converges. But then by the comparison test, the original
series converges. To sum up, in this case, the series converges no matter what the
value of q is.
• p = 1. Here the series reduces to
X 1
.
n(ln n)q

Let f (x) = 1/x(ln x)q . Then f is a non-negative decreasingR ∞ function on [2, ∞). By
the integral test, the given series converges if and only if 2 f (x) dx converges. But
by change of variables u = ln x, we see that
Z R Z ln R
du
f (x) dx = ,
2 ln 2 uq

and so the integral, and hence the series, converges if and only if q > 1.

• p < 1. In this case if q ≤ 0, for any n > 3,


1 1
> p.
np (ln n)q n

Since n−p diverges for p < 1, by the comparison test, the given series also diverges.
P
If q > 0, then for any α > 0, there exists an N such that for any n > N , (ln n)q < nαq ,
and so
1 1
p q
> p+αq .
n (ln n) n
Since p < 1, one can choose α > 0 small enough so that p + αq < 1, and then the
series X 1
np+αq
diverges. Again by comparison test, the original series diverges. So to sum up, if
p < 1, the series diverges no matter what the value of q.

So finally the series converges if and only if

(p, q) ∈ {p > 1, q ∈ R} ∪ {p = 1, q > 1}.

P∞ 1
2. n=3 n ln n(ln ln n)p .

7
Solution: Consider the function
1
f (x) = .
x ln x(ln ln x)p

Clearly it is decreasing and positive on x ≥ 3. Also, note that if we let u = ln ln x, then


du = dx/(x ln x), and so by change of variables formula,
Z R Z ln ln R
f (x) dx = u−p du.
3 ln ln 3

Clearly the second integral has a limit as R → ∞ if p > 1, and so by the integral test, the
series converges if and only if p > 1.

8. (a) Let f : [a, b] → R be continuous function, and let p, q : [c, d] → [a, b] be continuous functions,
differentiable on the interior (c, d). Define
Z q(x)
F (x) = f (t) dt.
p(x)

Show that F is continuous on [c, d] and differentiable on (c, d), and that

F 0 (x) = f (q(x))q 0 (x) − f (p(x))p0 (x).

Hint. Write F as a composition of two functions, one of which can be differentiated using the
fundamental theorem of calculus. Then properties of F follow from corresponding properties of
compositions.

Solution: Let h(x) be an antiderivative of f . That is, h0 (x) = f (x). Then by the second
fundamental theorem of calculus,

F (x) = h(q(x)) − h(p(x)).

By chain rule,

F 0 (x) = h0 (q(x))q 0 (x) − h0 (p(x))p0 (x)


= f (q(x))q 0 (x) − f (p(x))p0 (x).

(b) Now, let F : (0, π) → R be defined by


Z 1
F (x) = ln t dt.
sin x

Calculate F 0 (π/4) and F 0 (π/2) in two ways. First, by evaluating the integral, and then differenti-
ating. And second, by using part(a) above. Your answers should of course be the same.

Solution:

• Direct calculation. By integration by parts, it is easy to see that


Z
ln t dt = t ln t − t,

8
and so
F (x) = − sin x ln(sin x) + sin x − 1.
Differentiating, we see that
F 0 (x) = − cos x ln(sin x),
and so π ln 2 π
F0 = √ , F0 = 0.
4 2 2 2

• Using part(a). By the formula in part(a), with q(x) = 1 and p(x) = sin x,

F 0 (x) = − cos x ln(sin x),

and so we have the same formula as above.

Rx
9. (a) Let f (x) = |x|, and define F (x) = −1 f (t) dt. Find a piecewise algebraic formula for F (x). Where
is F continuous? Where is it differentiable? Where does F 0 = f ?

Solution:

• x < 0. In that case |t| = −t for all t ∈ [−1, x] and so


Z x
1 x2
F (x) = − t dt = − .
−1 2 2

• x ≥ 0. In this case,
0 x
1 x2
Z Z
F (x) = − t dt + t dt = + .
−1 0 2 2
1+x|x|
So F (x) = 2 .

(b) Now repeat part(a) with (


1, x < 0
f (x) =
2, x ≥ 0.

Solution:

• x < 0. Then Z x
F (x) = dt = 1 + x.
−1

• x ≥ 0. Then Z 0 Z x
F (x) = dt + 2 dt = 1 + 2x.
−1 0

1
Rx 2
10. Calculate limx→0 x 0
et dt. Give complete justifications, quoting any theorems that might have been
used.

9
2
Solution: Since et is continuous, the function
Z x
2
F (x) = et dt
0

2
is differentiable on R, and moreover F 0 (x) = ex . In particular F 0 (0) = 1. On the other hand, by
definition,
F (x) − F (0) 1 x t2
Z
0
1 = F (0) = lim = lim e dt.
x→0 x x→0 x 0

11. Find the set of all values of p for which the following improper integrals converge.
R1
1. 0 1−sin x
xp .

Solution: Since 1 < π/2, clearly, 1−sin x decreases on [0, 1] and so 0 < 1−sin 1 < 1−sin x ≤ 1
for all x ∈ [0, 1]. So
1 − sin 1 1 − sin x 1
< ≤ p,
xp xp x
R1
and by the comparison test, the given integral converges if and only if 0 x−p dx converges,
which means if and only if p < 1.
R∞ ln(1+x)
2. 0 xp .

Solution: We need to analyze near 0 and infinity separately. That is, we write
Z ∞ Z 1 Z ∞
ln(1 + x) ln(1 + x) ln(1 + x)
p
= p
+ .
0 x 0 x 1 xp
• For the first integral, the Taylor series for

x2
ln(1 + x) = x − + ··· ,
2
indicates that ln(1 + x)/xp behaves like x−(p−1) near zero, and so should be integrable
near zero, if p − 1 < 1 or p < 2. To check this rigorously, we need the following.
Claim. There exists a δ > 0 such that for all x ∈ (0, δ),
x 3x
< ln(1 + x) < .
2 2

Proof. By L’Hospital’s rule


ln(1 + x)
lim = 1,
x→0 x
and so there exists δ > 0 such that for all x ∈ (0, δ) such that
ln(1 + x) 1
− 1 < ,

x 2

or equivalently,
1 ln(1 + x) 3
< < ,
2 x 2

10
and the claim follows.
R1 ln(1+x)
Having proved the claim, it follows by the comparison theorem, that 0 xp converges
R1
if and only if 0 x1−p converges, which happens if and only if p < 2.
• To analyze the integral at infinity, we again use the basic fact that given any α > 0, there
exists M = M (α) such that ln(1 + x) < xα for all x > M . If p > 1, let α > 0 such that
p − α > 1. Then since for all x > M (α),

ln(1 + x)
≤ xα−p ,
xp
R∞ R∞ ln(1+x)
and 1 xα−p converges, it follows by the comparison principle that 1 xp converges.
On the other hand, if p ≤ 1, then

ln(1 + x) 1
≥ p.
x x
R∞
Since 1
x−p diverges, it follows that the given integral also diverges.

Combining the two cases above, we see that the integral is convergent if and only if 1 < p < 2.

Hint. Taylor’s theorem might be useful while analyzing the integrands near x = 0.
12. (a) Show that for n = 1, 2, 3, · · · Z nπ sin x 2
dx ≥ .

x nπ

(n−1)π

Solution: Since 1/x > 1/nπ on the given region, and that sin x > 0 on [0, π] and periodic with
period 2π,
Z nπ Z nπ
sin x 1

dx ≥ | sin x|
x nπ (n−1)π

(n−1)π
Z π
1
= sin x dx
nπ 0
2
= .

R ∞ sin x
(b) Hence show that π x
dx diverges.

Solution: For any m ∈ N,


Z mπ sin x m Z nπ sin x m
X 2 X 1 m→∞
dx = dx ≥ −−−−→ ∞.

x x π n=2 n

π n=2 (n−1)π

(c) For any R > 0, show that


Z R Z R
sin x 1 cos R cos x
dx = − − + dx.
π x π R π x2

11
Solution: Integrating by parts with u = 1/x and dv = −d cos x,
Z R h cos x iR Z R Z R
sin x cos x 1 cos R cos x
dx = − + 2
dx = − − + dx.
π x x π π x π R π x2

R∞ sin x
(d) Hence, show that π x dx is a convergent integral.

Solution: By the above part,


Z R Z R
sin x 1 cos x
lim dx = − + lim dx.
R→∞ π x π R→∞ π x2

To show that the integral converges, we need to prove that the limit on the right exists and is
finite. Note that cos x 1
2 ≤ 2,

x x
R∞ R∞ R∞
and so since π x−2 converges, by the comparison test, π | cos x/x|, and hence π cos x/x
converges. This shows that the limit on the right also exists and hence the original integral is
convergent.

Remark In fact, one can show that Z ∞


sin x π
= .
0 x 2
This formula is usually one of the high points of a course in complex analysis, and is a consequence of
the so-called residue theorem (yes, a real integral evaluated using complex numbers!). But there are are
several, real-variable proofs of this, including using doubles integrals or using differentiation under the
integral sign (popularized by Feynman, as an alternative to residue calculus).

12

You might also like