Professional Documents
Culture Documents
Calculus of Single Variable: 1 Function
Calculus of Single Variable: 1 Function
1 Function
Definition 1.1. A function f from a set X to a set Y is a procees that associates to
each element x of X a unique element f (x) of Y . We write
f : X → Y, x 7−→ f (x).
The set X is called the domain of f and the set Y is called co-domain of f . Range of f
is defined as
{y ∈ Y : y = f (x) for some x ∈ X}.
Definition 1.2. We call a function f injective or one to one if
x1 , x2 ∈ X, x1 6= x2 ⇒ f (x1 ) 6= f (x2 ).
Equivalently
x1 , x2 ∈ X, f (x1 ) = f (x2 ) ⇒ x1 = x2 .
Definition 1.3. We call a function f surjective or onto if
∀y ∈ Y, ∃x ∈ X such that y = f (x).
In other words, a function f is onto if its range is equal to its co-domain.
Definition 1.4. A function f is called a bijective function if it is both injective and
surjective.
Exercise: Construct a function f : N → N ∪ {0} which is bijective.
Exercise: Construct a function f : N → Z which is bijective.
Exercise: Construct a function f : (0, 1) → R which is bijective.
x− 1
(Hint: f (x) = x−x22 .)
Exercise: Construct a bijective function f : [a, b] → [c, d] such that f (x) is a linear
polynomial function and that f (a) = c, f (b) = d.
1
2 N, Z and Q
1. Natural numberss: N = {1, 2, 3, · · · }.
2
• Do we need more numbers?
• Consider a square with side having length 1. If d is the length of the diagonal
then by Pythagoras theorem, we have d2 = 2. So, we are trying to get a root
of the polynomial x2 − 2.
• Rational zeros Theorem: Let a0 , a1 , · · · an are integers and r be a rational
number satisfying the polynomial equation
an xn + an−1 xn−1 + · · · + a1 x + a0 = 0
3 Real numbers
Field: Add, substract, Multiply, divide by any nonzero numbers.
Distance: d(a, b) = |b − a| where
a if a ≥ 0,
Absolute value: |a| =
−a if a < 0,
We have
3
Order property: a ≤ b if b − a is a positive real number.
• If a ≤ b and b ≤ a, then a = b.
• If a ≤ b, then a + c ≤ b + c.
Interval:
[a, b] = {x ∈ R : a ≤ x ≤ b}
(a, b) = {x ∈ R : a < x < b}
[a,b) = {x ∈ R : a ≤ x < b}
(a,b] = {x ∈ R : a < x ≤ b}
( − ∞, b] = {x ∈ R : x ≤ b}
(−∞, b) = {x ∈ R : x < b}
[b, ∞) = {x ∈ R : x ≥ b}
(b, ∞) = {x ∈ R : x > b}
Completeness Axiom:
4
Example 3.3. : Let S = [0, 1]. Then S has a largest element 1 and smallest element 0.
Example 3.4. Let S = (0, 1]. Then S has a largest element 1 but S does not have any
smallest element.
Example 3.5. Let S = { n1 : n ∈ N} = {1, 1/2, 1/3, 1/4, · · · , · · · }. Then S has a largest
element 1 but S does not have any smallest element.
1
Example 3.6. Let S = {1 − n
: n ∈ N}. Then S has a smallest element 0 but S does
not have any largest element.
Exercise: Show using induction that if S is a finite subset of R then S has a smallest
element as well as a largest element.
1. s ≤ M for all s ∈ S,
1. m ≤ s for all s ∈ S,
5
Remark 3.11. 1. Note that, unlike max S and min S, sup S and inf S need not
belong to S.
3. If X ⊂ Y ⊂ R then
inf Y ≤ inf X ≤ sup X ≤ sup Y.
Remark 3.12. The set of rationals Q does not have this property.
Corollary 3.13. Every nonempty subset S of R that is bounded below has a greatest
lower bound. In other words, inf S exists and is a real number.
Theorem 3.14. Archimedean Property: If a > 0 and b > 0, then for some positive
integer n, we have na > b.
Proof : Assume the Archimedean property fails. Then there exist a > 0 and b > 0 such
that na ≤ b. Consider the set
S = {na : n ∈ N}
Clearly b is an upper bound of S. Let s0 = sup S. Since s0 − a < s0 , there exists n0 ∈ N
such that s0 − a < n0 a. Hence
s0 < (n0 + 1)a.
Since (n0 + 1)a ∈ S, we get a contradiction.
Remark 3.15. Tale a = 1. The theorem says that given any real number b there exists
a natural number n such that n > b.
Lemma 3.17. If b − a > 1 then there exists an integer m such that a < m < b.
6
Proof : Define r = max{|a|, |b|}. By Archimedean property, there exists an integer K
such that K × 1r > 1 and hence K > r. Now we have,
−K < a < b < K.
Then the set S = {j ∈ Z : −K < j ≤ K and a < j} is finite and nonempty. Let
m = min S.
Then a < m but m − 1 ≤ a. Also, we have
m = m − 1 + 1 ≤ a + 1 < a + (b − a) = b
Proof : ( of theorem: ) We need to show that
m
a< < b ⇔ an < m < bn
n
for some integer m and n where n > 0.
Since b − a > 0, by Archimedean property, there exists n ∈ N such that n(b − a) > 1.
Since bn − an > 1, by lemma, there exists an integer m such that an < m < bn. This
proves the claim.
Definition 3.18. We call a real number irrational if it is not rational. We denote the
set of irrational by I or Qc .
Remark 3.19. Let r ∈ Q and q ∈ I. Then r + q, rs ∈ I.
Exercise: Prove that if a < b then there exists an irrational number q such that a < q < b.
7
Definition 3.21. Composition Let f : X → Y and g : Y → Z be two functions. We
define g ◦ f : X → Z as
g ◦ f (x) = g(f (x)).
Exercise: Suppose that f (x) = x2 +1 and g(x) = x20 . What are the composite functions
g ◦ f and f ◦ g?
8
4 Sequences
Definition 4.1. A (real) sequence is a function s : N → R. It is customary to write s(n)
as sn and the sequence s as (sn )∞ ∞
n=1 or {sn }n=1 or (sn )n∈N or (sn )n≥1 or (s1 , s2 , s3 , · · · · · · )
or (sn ).
1
1. sn = n
2. sn = (−1)n
3. sn = sin n1
sin n
4. sn = n
5. sn = (1 + 1/n)n
6. sn = last digit of 6n
8. sn = sin(nπ)
3n
9. sn = n!
Definition 4.2. We say that (sn )n∈N converges to a real number L if for any > 0 there
exists N ∈ N such that
|sn − L| < for all n > N.
Equivalently,
L − < sn < L + for all n > N.
If sn converges to L then we write limn→∞ sn = L, or sn → L. We call L as a (the) limit
of sequence sn .
Remark 4.3. 1. Limit of a sequence does not depend on finitely many elements of
the sequence.
2. We call (L−, L+) the neighbourhood (nbd) of L. Given any > 0, the neigh-
bourhood (nbd) of L contains all but finitely many elements of the sequence.
Note the difference between “all but finitely many“ and ”infinitely many“.
9
3. In fact, any open interval (a, b) containing L contains all but finitely many
elements of the sequence. (prove it!! by showing that any open interval (a, b)
containing L contains an nbd of L).
• If L is a number such that any open interval (a, b) containing L contains all
but finitely many elements of the sequence then limn→∞ sn = L.
Proof : Take > 0. By Archimedian property, there exists N ∈ N such that N > 1.
This implies that for all n > N ,
1
n > 1 ⇒ < ⇒ |sn − 0| < .
n
This proves the claim.
sn ∈ (L1 − , L1 + )
sn ∈ (L2 − , L2 + ).
10
1. sn = n (tends to infinity!!!)
Definition: A sequence (sn )n∈N is said to be a bounded sequence if there exists a real
number M such that
|sn | ≤ M for all n ≥ 1.
|sn | ≤ M ∀n ∈ N.
Theorem 4.7. Let (sn ) be a sequence in [a, b] (i.e. sn ∈ [a, b]) such that
lim sn = L.
n→∞
(L − , L + ) ∩ [a, b] = (L − , a) ∩ [a, b] = ∅
Hence nbd of L does not contain any element of the sequence. This contradicts the
fact that limn→∞ sn = L. Therefore we have
L ≥ a.
Remark 4.8. Note that the key step is to separate L with a and b by open intervals.
11
1. limn→∞ sn + tn = A + B,
2. limn→∞ sn − tn = A − B,
3. limn→∞ sn tn = AB,
1 1
4. limn→∞ tn
= B
provided B 6= 0.
sn A
5. limn→∞ tn
= B
provided B 6= 0.
Theorem 4.10. Suppose (sn )n∈N is monotonic. Then (sn )n∈N converges if and only if
it is bounded.
Proof : Assume that (sn )n∈N is monotonically increasing. Let L = sup{sn : n ∈ N}. To
prove the claim, it is enough to show that sn → L. Take > 0.
Claim: There exists N such that sN ∈ (L − , L + ).
Proof of claim: If not then L − would have been an upper bound of {sn : n ∈ N}.
For n > N , we have
L − < sN ≤ sn ≤ L ⇒ sn ∈ (L − , L + ).
Theorem 4.11. Sandwich Theorem: Let (rn )n∈N , (sn )n∈N and (tn )n∈N be sequences
of real numbers. Let
Then
lim sn = L.
n→∞
12
Proof : Take > 0. Since limn→∞ rn = L there exists N1 such that for n > N1 , we have
L − < rn < L + .
L − < tn < L + .
L − < rn ≤ sn ≤ tn < L + .
Alternative proof: Since nbd of L contains all but finitely many elements of (rn )
and (tn ) it will contain all but finitely many elements of the sequence (sn ) as well. This
proves that
lim sn = L.
Remark 4.12. If the condition holds for all but finitely many n then also the result
holds true (prove it!!).
cosn −1 cosn −1
Example 4.13. n
→ 0 because n
≤ n
≤ n1 , n
→ 0 and 1
n
→ 0.
Definition 4.14. 1. We say that sequence (sn ) diverges to ∞ if for all M ∈ N there
exists N such that for n > N , we have
sn > M.
We denote it by limn→∞ sn = ∞ or sn → ∞.
2. We say that sequence (sn ) diverges to −∞ if for all M ∈ N there exists N such
that for n > N , we have
sn < −M.
We denote it by limn→∞ sn = −∞ or sn → −∞.
Warning!! Apply the limit theorems carefully. First verify by yourself and then
apply.
13
Example 4.15. Take the sequences rn = n, sn = −n and tn = −n + 1. Then rn → ∞,
sn , tn → −∞ but rn + sn → 0 and rn + tn → 1.
(i) lim sn + tn = ∞.
n→∞
(ii) lim sn − tn = ∞.
n→∞
lim sn = ∞.
lim sn = −∞.
Remark 4.16. • A monotonic increasing real sequence will either converge to a real
number or diverge to ∞.
Exercise: Let (sn )n∈N and (tn )n∈N be sequences such that sn ≤ tn for all n ∈ N. Let
Then
S ≤ T.
5 Subsequence
Definition 5.1. Given a sequence (sn )∞ ∞
n=1 , consider a sequence (nk )k=1 of natural num-
bers such that
n1 < n2 < n3 < · · · · · · .
Then the sequence (snk )∞ ∞
k=1 is called a subsequence of the sequence (sn )n=1 .
Example 5.2. If (s1 , s2 , s3 , · · · ) is a sequence then (s1 , s3 , s5 · · · ) and (s6 , s16 , s26 , · · · )
are subsequences of (sn ).
14
Example 5.3. Let sn = (−1)n . Then (s2n ) = (1, 1, 1, 1, · · · ) is a subsequence of (sn ).
Definition 5.4. Let (sn ) be a sequence in R. A subsequential limit or limit point of (sn )
is any real number or symbol ∞ or −∞ that is the limit of some subsequence of (sn ).
Example 5.5. Take the sequence sn = (−1)n . Since the subsequences limk→∞ s2k = 1
and limk→∞ s2k+1 = −1, 1 and −1 are subsequential limit (limit point) of (sn ).
Example 5.6. For the sequence sn = (−1)n n, ∞ and −∞ are limit points of (sn ).
Theorem 5.7. If a sequence (sn ) converges to L, then every subsequence converges to
the the same limit L. (i.e. a convergent sequence has a unique limit point).
Proof : Take a subsequence (snk ) and let > 0. Since (sn ) converges to L, there exists
N such that for n > N , we have
|sn − L| < .
Note that nk ≥ k for all k. Hence for k > N , we have nk > N and hence
|snk − L| < .
This proves the claim.
Alternative proof: Since nbd of L contains all but finitely many elements of
(sn ), it will contain all but finitely many elements of the subsequence (snk ) as well. This
proves that
lim snk = L.
15
Clearly A1 ≥ A2 ≥ A3 ≥ · · · · · · i.e. (An )n∈N is a monotonically decreasing sequence.
Define
∞ if An = ∞ ∀n,
lim inf sn =
n→∞ limn→∞ An otherwise .
Remark 5.9. • Note that limn→∞ An can be a real number or symbol ∞ or symbol
−∞.
Similarly, define
a1 = inf{s1 , s2 , s3 , · · · · · · }
a2 = inf{s2 , s3 , s4 · · · · · · }
a3 = inf{s3 , s4 , s5 · · · · · · }
·····················
·····················
an = inf{sn , sn+1 , sn+2 , · · · · · · }
Remark 5.10. • Note that limn→∞ an can be a real number or symbol ∞ or symbol
−∞.
Example 5.11. 1. Take the sequence sn = (−1)n . In this case An = 1 and an = −1.
Hence lim sup sn = 1 and lim inf sn = −1.
2. Let sn = n1 . Then An = 1
n
and an = 0. So, lim sup sn = lim inf sn = 0.
16
Exercise: Let (sn ) be a sequence in [a, b]. Show that
Exercise: Prove that if M > lim sup sn then there exists N such that for n > N ,
sn < M.
Exercise: Prove that if m < lim inf sn then there exists N such that for n > N ,
sn > m.
Exercise: If lim sup < ∞ and lim inf < ∞ then the sequence (sn ) is bounded.
lim sn = L
Proof : Define
sn < L + .
17
Hence for all n > N ,
An ≤ L + .
Taking limit as n → ∞, we get
lim sup sn ≤ L + .
Proof: (⇐) Let > 0. There exists N0 such that for n > N0 , we have
|L − An | <
Hence
sup{sn : n > N0 } < L + ⇒ sn < L + for n > N0 .
Similarly since lim an = L, there exists N1 such that for n > N1 , we have
L − < sn < L + .
Then there exist subsequences (snj )j∈N and (snk )k∈N such that
18
Proof : Assume that sn1 , sn2 , sn3 , · · · snj−1 , have been choosen. Since
1 1
snj ∈ (anj − , anj + ).
j j
Theorem 5.15. Let (sn ) be any sequence in R, and let S denote the set of subsequential
limits of (sn ). Then one has,
(i) S is nonempty.
(ii) sup S = lim sup(sn ) and inf S = lim inf(sn ).
(iii) limn→∞ sn exists if and only if S has exactly one element, namely limn→∞ sn .
Proof : (i) follows from previous theorem. To prove (ii), consider any subsequential limit
t of a subsequence (snk ) of (sn ). We have
Since
{snk : k > N } ⊂ {sn : n > N }
for each n ∈ N, we have
lim inf sn ≤ lim inf snk = t = lim sup snk ≤ lim sup sn .
19
This inequality holds for all t in S; therefore
Proposition 5.14 shows that lim inf sn , lim sup sn ∈ S. Therefore (ii) holds. (iii) follows
from Theorem 5.12.
Proof : Let (sn )n∈N be a bounded sequence and let A = lim supn→∞ sn . Since (sn )n∈N
is bounded, we get A < ∞. By Proposition 5.14, we get a subsequence of (sn )n∈N
converging to A.
6 Cauchy sequence
Definition 6.1. A sequence (sn )∞
n=1 is called a Cauchy sequence if for every > 0 there
exists N such that
|sn − sm | < whenever n, m ≥ N.
Proof : Let (sn )n∈N be a Cauchy sequence. Choose = 1. Then there exists N such that
for m > N ,
|sN − sm | < 1.
Take M = max{|s1 |, |s2 |, · · · |sN |, |sN | + 1}. Hence
|sn | ≤ M ∀n ∈ N.
Proof : Let (sn )n∈N be a Cauchy sequence and (snk )k∈N be its subsequence such that
snk → l as k → ∞.
We will show that sn → l. Fix > 0. There exists N0 such that for n, m > N0 ,
|sn − sm | < .
2
20
Since (snk ) → l, there exists M such that for k > M ,
|snk − l| < .
2
Let N = max{N0 , nM +1 }. Then for n > N , we have
|sn − l| ≤ |sn − snM +1 | − |snM +1 − l| < + = .
2 2
Proof : Let (sn )n∈N be a sequence conveging to s. Take > 0. Since sn → s, there exists
N such that for n > N , we have
|sn − s| < .
2
Hence for n, m > N , we have
What about the converse!! For a real sequence, converse is true.
7 Series
Aim: want to make sense of infinte sum!!!!
Given a sequence (an )n∈N , we use the following notation.
q
X
an = ap + ap+1 + ap+2 + · · · + aq .
n=p
The symbol
∞
X X
an or a1 + a2 + a3 + · · · or an
n=1
21
is called an infinte series or just a series. With (an )n∈N , we associate a sequence (sn )n∈N
where n
X
sn = am = a1 + a2 + · · · + an .
m=1
P∞
These are called partial sums of the series n=1 an . If (sn )n∈N converges to s then we
say that the series converges and write
∞
X
an = s.
n=1
P∞
Similarly we can make sense of n=p an . If (sn )n∈N diverges then we say that the series
P∞
n=1 an diverges.
if n ≥ m ≥ N .
Proof : By a direct application of Theorem 6.5 (Cauchy criterion) and the fact that
|sn − sm−1 | = | nk=m ak |, the claim follows.
P
P∞
Theorem 7.3. If series n=1 an converges then an → 0.
22
Theorem 7.4. A series of nonnegative terms converges if and only if the sequence of
partial sums is bounded.
s n = a1 + a2 + a3 · · · + an
tk = a1 + 2a2 + 4a4 + · · · + 2k a2k .
For n > 2k ,
Therefore, the sequences (sn ) and (tk ) are either both bounded or both unbounded. This
proves the claim.
23
Theorem 7.7. Comparison test:
(i) If |an | ≤ cn for n > N0 , and if ∞
P P∞
n=1 cn converges, then n=1 an converges.
(ii) If an ≥ dn ≥ 0 for n > N0 , and if n=1 dn diverges, then ∞
P∞ P
n=1 an diverges.
P∞ P∞
Corollary 7.8. If n=1 |an | converges, then n=1 an converges.
Here
an+1
lim sup | | = |a|.
an
So, by Ratio test
(i) if |a| < 1, the series converges;
(ii) if |a| > 1, the series diverges.
24
Example 7.14. Consider the series
X n
.
n2 +3
Here
an+1 n+1 n2 + 3 n + 1 n2 + 3
= = .
an (n + 1)2 + 3 n n n2 + 2n + 4
Hence lim | an+1
an
| = 1. So the test gives no information. Now
n n 1
≥ = .
n2 + 3 n2 + 3n2 4n
1
P P n
Since n
diverges, by Comparison test, the series n2 +3
diverges.
Proof :
P 1
Theorem 7.16. Root test: For the series, an , let α = lim supn→∞ |an | n . Then the
P
series an
(i)converge abslolutely if α < 1,
(ii)diverges if α > 1.
Proof :
25
Both Ratio test and Root test do not give any information as
1 an+1
lim sup |an | n = lim sup | | = 1.
an
P 1
Since √ diverges, we will not be able to use comparision test. It turns out that this
n
series converges by the Alternating Series test.
Theorem 7.19. Alternating series Theorem:
If a1 ≥ a2 ≥ a3 ≥ · · · · · · ≥ 0 and lim an = 0 then the alternating series
X
(−1)n an = a1 − a2 + a3 − a4 + · · ·
converges.
Proof : We will show that for n ≥ m > N ,
Xn
(−1)k ak ≤ aN . (7.1)
m
26
7.1 Power series
Definition 7.20. Given any sequence of real numbers (an )∞
n=0 , the series
∞
X
an x n = a0 + a1 x + a2 x 2 + · · ·
n=0
1 1
β = lim sup (|an |) n and R= .
n→∞ β
Here
β=1 and R = 1.
So for |x| < 1, the series converges and for |x| > 1, the series diverge. For x = 1 or −1,
the series diverges.
27
Example 7.25. Consider
∞
X 1 n
x .
n=0
n
Since
|an+1 | n
lim = lim = 1,
|an | n+1
we have
β=1 and R = 1.
So for |x| < 1, the series converges and for |x| > 1, the series diverge. For x = 1, the
series diverges and for x = −1, the series converges by Alternating Series Test.
8 Continuity
Throughout this course, we will be discussing real valued functions whose domain is a
subset of R e.g. (0, 1), [0, 1], (0, 1], Q etc. We generally denote by X the domain of a
function.
sn ∈ X ∀n, sn 6= p and sn → p.
Exercise: Show that p a limit point of X if and only if every open interval containing
p intersects X at some point other than p.
Exercise: Show that 1 is a limit point of (0, 1).
Exercise: Let p ∈ (a, b). Show that p is a limit point of (a, b).
Exercise: Show that 1 is not a limit point of N.
28
Definition 8.2. Let f : X → R be a function and let p is a limit point of X. We write
Remark 8.3. The value f (p) does not play any role here. In fact, f may not be defined
at p.
lim f (x) = q
x→p
if and only if
lim f (pn ) = q.
n→∞
pn 6= p and lim pn = p.
n→∞
Theorem 8.6. Let limx→p f (x) = A and limx→p g(x) = B. Then one has
1. limx→p (f + g)(x) = A + B,
2. limx→p (f − g)(x) = A − B,
4. limx→p fg (x) = A
B
, provided B 6= 0.
29
Remark 8.8. Here f must be defined at x0 . If x0 is a limit point of X then f is
continuous at x0 if and only if
lim xn = x0 .
n→∞
Theorem 8.12. Let f be a continuous real-valued function on a closed interval [a, b].
Then f is a bounded function. Moreover, f attains its maximum and minimum values
on [a, b]; that is, there exist x0 , y0 ∈ [a, b] such that f (x0 ) ≤ f (x) ≤ f (y0 ) for all x ∈ [a, b]
.
Proof : Assume that f is not bounded above. Then to each n ∈ N there corresponds an
xn ∈ [a, b] such that
f (xn ) > n.
30
By the Bolzano-Weierstrass theorem, (xn ) has a subsequence (xnk ) that converges to
some real number x0 . The number x0 also must belong to the closed interval [a, b]. Since
f is continuous at x0 , we have
which is a contradiction. It follows that f is bounded above. Apply the same argument
to −f to show that f is bounded below. Hence f is a bounded function.
Let M = sup{f (x) : x ∈ [a, b]}. As we showed M < ∞. For each n ∈ N there exists
yn ∈ [a, b] such that
1
M − < f (yn ) ≤ M.
n
By Bolzano-Weierstrass theorem, (yn ) has a subsequence (ynk ) that converges to a point
y0 ∈ [a, b]. We have
f (ynk ) → M
Since f is continuous, we get
This proves that f attains its maximum. To prove the remaining part, use same argument
to −f .
Proof : Assume that f (a) < y < f (b); the other case is similar. Let
31
Proof : Since sn ∈ S, f (sn ) < y. Taking limit, we get the claim.
For each n ∈ N, define tn = min{x0 + n1 , b}. Since tn ∈
/ S, we have f (tn ) ≥ y. Moreover,
since
1
x0 ≤ tn ≤ x0 +
n
we have
lim tn = x0 .
n→∞
As f is continuous, we get
f (x0 ) = lim f (tn ) ≥ y.
n→∞
Theorem 8.16. If f is continuous on a closed interval [a, b], then f is uniformly con-
tinuous on [a, b].
Proof : Assume that f is not uniformly continuous on [a, b]. Then for each δ > 0 there
exist x, y ∈ [a, b] such that |x − y| < δ and |f (x) − f (y)| ≥ . Then for each n ∈ N
there exist xn , yn in [a, b] such that |x − y| < n1 and |f (x) − f (y)| ≥ . By the Bolzano-
Weierstrass theorem, a subsequence (xnk ) of (xn ) converges. Moreover, if x0 = lim xnk ,
then x0 ∈ [a, b].
Claim: lim ynk = x0 . Proof : Given ε > 0, there exists K1 such that for k > K1 , we
have
ε
|xnk − x0 | <
2
32
1
Choose K2 ∈ N such that K2
< 2ε . Define K = max{K1 , K2 }. Then for k > K, we have
1 ε ε ε
|ynk − x0 | ≤ |ynk − xnk | + |xnk − x0 | < + < + < ε.
k 2 2 2
Since f is continuous at x0 , we have
Hence
lim f (xnk − f (ynk ) = 0.
Since |f (xnk − f (ynk )| ≥ for all k, we get a contradiction.
33
9 Differentiation
Let f : (a, b) → R be a function and let c ∈ (a, b). We say that f is differentiable at c,
or that f has a derivative at p, if the limit
f (x) − f (c)
lim
x→c x−c
exists and is finite. We will write f 0 (c) for the derivative of f at c.
f (x) − f (c)
f 0 (c) = lim
x→c x−c
whenever this limit exists and is finite.
34
Show that f is differentiable at 0 and find f 0 (0).
Ecercise: Let f : (−1, 1) → R be function given by
x sin 1 if x 6= 0,
x
f (x) =
0 if x = 0.
Theorem 9.3. Let f and g be functions that are differentiable at the point a. Each of
the functions cf , (c ∈ R), f + g and f g is also differentiable at a. If g(a) 6= 0 then f /g
is differentiable at a. The formulas are
(i) (cf )0 (a) = cf 0 (a);
(ii) (f + g)0 (a) = f 0 (a) + g 0 (a);
(iii) (f g)0 (a) = f (a)g 0 (a) + f 0 (a)g(a); (product rule)
g(a)f 0 (a)−f (a)g 0 (a)
(iv) (f /g)0 (a) = g 2 (a)
if g(a) 6= 0 (quotient rule).
Proof :
Proof : Assume f is defined on (a, b) and x0 ∈ (a, b). Suppose f attains its maximum at
x0 .
Step I: Choose a sequence (sn ) in (a, b) such that
s n ≥ x0 and sn → x0 .
35
(one possible choice is; sn = min{x0 + n1 , b})
We have
f (x) − f (x0 ) f (sn ) − f (x0 )
f 0 (x0 ) = lim = lim ≤ 0.
x→x0 x − x0 n→∞ s n − x0
Step II: Choose a sequence (tn ) in (a, b) such that
tn ≤ x0 and tn → x0 .
Proof : Since f is continuous on [a, b], there exists x0 and y0 in [a, b] such that
If x0 and y0 are endpoints of [a, b] then f is a constant function and hence f 0 (x) = 0 for
all x ∈ (a, b). Otherwise, f assumes either a maximum or a minimum at c in (a, b) and
by previous theorem f 0 (c) = 0.
Theorem 9.7. Mean value Theorem: Let f be a continuous function on [a, b] that
is differentiable on (a, b). There exists c in (a, b) such that
f (b) − f (a)
f 0 (c) = .
b−a
(Slanted version of Rolle’s Theorem).
f (b) − f (a)
L(x) = (x − a) + f (a) − f (x).
b−a
Then
L(a) = L(b) = 0
36
and
f (b) − f (a)
L0 (x) = − f 0 (x)
b−a
for x ∈ (a, b). Applying Rolle’s Theorem, there exists c ∈ (a, b) such that
f 0 (c) = 0.
Corollary 9.8. Let f be a differentiable function on (a, b) such that f 0 (x) = 0 for
x ∈ (a, b). Then f is a constant function on (a, b).
Proof : If f is not a constant function on (a, b) then there exists x1 < x2 in (a, b) such
that f (x1 ) 6= f (x2 . By the Mean Value Theorem, there exists c ∈ (x1 , x2 ) such that
f (x2 ) − f (x1 )
f 0 (c) = 6= 0,
x2 − x1
and we get a contradiction.
strictly decreasing on I if
increasing on I if
x1 , x2 ∈ I, x1 < x2 ⇒ f (x1 ) ≤ f (x2 ),
decreasing on I if
x1 , x2 ∈ I, x1 < x2 ⇒ f (x1 ) ≥ f (x2 ).
37
Proof : Take x1 , x2 ∈ (a, b) such that x1 < x2 . By Mean value Theorem, for some
c ∈ (a, b), we have
f (x2 ) − f (x1 )
= f 0 (c) > 0.
x2 − x1
Hence
f (x2 ) < f (x1 ).
The remaining cases follow by similar argument. (do it!!).
is called the Taylor series for f about a. The remainder Rn (x, a) is defined by
n−1 (k)
X f (a)
Rn (x) = f (x) − (x − a)k .
k=0
k!
For any x,
∞
X f (k) (a)
f (x) = (x − a)k if and ony if lim Rn (x, a) = 0.
k=0
k! n→∞
Here we will only discuss Taylor series around 0. We will denote the remainder Rn (x, 0)
by Rn (x). Example: Define f : R → R given by
e− x1 if x > 0,
f (x) =
0 if x ≤ 0,
Show that f (n) (x) = 0 for all n ∈ N. So, f does not agree with its Taylor series around
0; in other words,
∞
X f (k) (a)
f (x) 6= (x − a)k .
k=0
k!
Aim: Our aim is to find some conditions under which f can be given by its Taylor series
or equivalently remainder Rn (x) goes to zero as n tends to ∞.
38
Theorem 9.12. Taylor’s Theorem:
Let f be defined on (a, b) where a < 0 < b, and suppose the nth derivative f (n) exists on
(a, b). Then for each nonzero x in (a, b) there is y between 0 and x such that
f (n) (y) n
Rn (x) = x
n!
Remark 9.13. 1. For n = 1, Taylor’s Theorem is nothing but Mean Value Theorem.
2. The condition a < 0 < b is because we are taking the Taylor series of f around 0.
Corollary 9.14. Let f be defined on (a, b) where a < 0 < b. If all the derivatives f (n)
exist on (a, b) and are bounded by a single constant C, then
Observe that
g(0) = 0 and g (k) (0) = 0 for k < n.
By the choice of M , we get
g(x) = 0.
By Rolle’s Theorem, there exists x1 ∈ (0, x) such that
g 0 (x1 ) = 0.
39
00
Again, since g (0) = 0, by Rolle’s Theorem, there exists x2 ∈ (0, x1 ) ⊂ (0, x) such that
00
g (x2 ) = 0.
g (n) (xn ) = 0.
Also, we have
g (n) (t) = M − f (n) (t).
This proves that f (n) (xn ) = M .
10 Integration
If f be a bounded function on a closed interval [a, b]. For S ⊂ [a, b], define
Claim:
m(f, [a, b])(b − a) ≤ L(f, P ) ≤ U (f, P ) ≤ M (f, [a, b])(b − a).
Proof : The middle inequality is obvious. The proofs of the first and third inequalities
are similar, so we will prove
40
Since m(f, [a, b]) ≤ m(f, [tk−1 , tk ] for all k, we have
n
X
L(f, P ) = m(f, [tk−1 , tk ](tk − tk−1 )
k=1
n
X
≤ L(f, P ) = m(f, [a, b])(tk − tk−1 )
k=1
Xn
= m(f, [a, b]) (tk − tk−1 )
k=1
= m(f, [a, b])(b − a).
The upper Darboux integral U (f ) of f over [a, b] is defined by
Exercise: Consider the partition P = {−1, 0, 1} of [−1, 1]. Find L(f, P ) and U (f, P )
of the following function:
• f (x) = x
• f (x) = |x|
• f (x) = x2
41
is integrable and Z b
f = 0.
a
Exercise: Show that the function f : [0, 1] → R given by
0 if x ∈ Q,
f (x) =
1 if x ∈ / Q,
is not integrable.
Exercise: Consider
n
X
L(f, P ) = m(f, [tk−1 , tk ](tk − tk−1 ).
k=1
Lemma 10.2. Let f be a bounded function on [a, b]. If P and Q are partitions of [a, b]
and P ⊂ Q, then
L(f, P ) ≤ L(f, Q) ≤ U (f, Q) ≤ U (f, P ).
Proof : The middle inequality is obvious. The proofs of the first and third inequalities
are similar, so we will prove
L(f, P ) ≤ L(f, Q).
Assume that Q has only one more point, say u, than P . General case follows by induction.
If
P = {a = t0 < t1 < · · · < tn = b}.
then
Q = {a = t0 < t1 < · · · < tk−1 < u < tk · · · < tn = b}.
for some k ∈ {1, 2, · · · , n}. The lower Darboux sums for P and Q are the same except
for the terms involving tk−1 or tk . In fact, their difference is
L(f, Q) − L(f, P )
= m(f, [tk−1 , u])(u − tk−1 ) + m(f, [u, tk ]).(tk − u) − m(f, [tk−1 , tk ]).(tk − tk−1 ).
To prove the claim, it suffices to show that this quantity is nonnegative. We have
42
as m(f, [u, tk ]), m(f, [tk−1 , u]) ≥ m(f, [tk−1 , tk ]).
Lemma 10.3. If f is a bounded function on [a, b], and if P and Q are partitions of [a, b],
then L(f, P ) ≤ U (f, Q).
Proof : Fix a partition P of [a, b]. Lemma 10.3 shows that L(f, P ) is a lowe bound for
the set
{U (f, Q) : Q is a partition of [a, b]}.
Therefore L(f, P ) must be less than or equal to the greatest lower bound [infimum!] of
this set. That is,
L(f, P ) ≤ U (f ).
This fact shows that U (f ) is an upper bound for the set
Hence
L(f ) ≤ U (f ).
Theorem 10.5. A bounded function f on [a, b] is integrable if and only if for each > 0
there exists a partition P of [a, b] such that
Proof : Suppose first that f is integrable and consider > 0. There exist partitions P1
and P2 of [a, b] such that
L(f, P1 ) > L(f ) − and U (f, P2 ) < U (f ) + .
2 2
43
For P = P1 ∪ P2 , we apply Lemma 10.3 to get
Conversely, suppose that for each > 0, there exists a partition P of [a, b] such that
Then we have
Theorem 10.6. A bounded function f on [a, b] is integrable if and only if for each > 0
there exists δ > 0 such that
Proof : The backward implication follows from Theorem 10.5. Tp prove the other part,
suppose that f is integrable on [a, b]. Fix > 0. Choose a partition
such that
U (f, P0 ) − L(f, P0 ) < .
2
44
Let
B = sup |f (x)|.
x∈[a,b]
Take δ = 8mB
; m is the number of intervals comprising P0 . Now consider any partition
with mesh(P ) < δ. Let Q = P ∪ P0 . If Q has one more element, say u than P , then it
follows from the calculations done in Lemma 10.2 that
L(f, Q) − L(f, P )
≤ m(f, [tk−1 , u])(u − tk−1 ) + m(f, [u, tk ]).(tk − u) − m(f, [tk−1 , tk ]).(tk − tk−1 )
≤ B meshP − (−B) meshP = 2B meshP
Using induction, one can show that if Q has r more element than P , then
So we have
45
10.1 Riemann Integration
Let f be a bounded function on a closed interval [a, b] and P be a partition of [a, b] of
the form
P = {a = t0 < t1 < ... < tn = b}.
A Riemann sum of f associated with P is a sum of the form
n
X
f (xk )(tk − tk−1 ).
k=1
|S − I| <
for every Riemann sum S of f associated with a partition P having mesh(P ) < δ. The
number I is the Riemann integral of f on [a, b].
The following theorem says that the two notions of integrability are equivalent and
their values are also same.
Proof : Suppose first that f is integrable on [a, b]. Let > 0. By Theorem 10.6, choose
δ > 0 such that
L(P, f ) ≤ S ≤ U (P, f ).
46
Moreover, by our choice of δ, we have
Z b
U (P, f ) < L(P, f ) + ≤ L(f ) + = f +
a
Z b
L(P, f ) > U (P, f ) − ≥ U (f ) − = f − .
a
Hence Z b Z b
f −≤S ≤ f + .
a a
This proves the first part of the claim.
Now suppose that f is Riemann integrable and let r be its value. Consider > 0. Select
any partition
P0 = {a = t0 < t1 < · · · < tn = b}.
with mesh(P ) < δ and for each k = 1, 2, · · · , n select xk ∈ [tk−1 , tk ] so that
Also we have
S − r < .
Hence
L(f ) ≥ L(f, P ) ≥ S − (b − a) ≥ r − − (b − a).
Since is arbitrary, we have
L(f ) ≥ r.
A similar argument shows that
U (f ) ≤ r.
Since L(f ) ≤ U (f ), we have
Z b
L(f ) = U (f ) = f = r.
a
Exercise: Let f be a bounded function on [a, b] i.e. there exists B > 0 such that
|f (x)| ≤ B for all x ∈ [a, b].
47
1. Show that
U (f 2 , P ) − L(f 2 , P ) ≤ 2B[U (f, P ) − L(f, P )]
for all partitions P of [a, b].
2. Show that if f is integrable on [a, b], then f 2 also is integrable on [a, b].
10.2 Properties:
Theorem 10.9. Every monotonic function f on [a, b] is integrable.
Proof : Assume f is monotonically increasing; the other case will follow by similar argu-
ment. Since
f (a) ≤ f (x) ≤ f (b) for all x ∈ [a, b],
it follows that f is a bounded function. bounded on [a, b]. Let > 0 and
P = {a = t0 , t1 , · · · tn = b}
be a partition of [a, b] with mess less than f (b)−f (a)
. Then
n
X
U (f, P ) − L(f, P ) = (M (f, [tk − tk−1 ]) − m(f, [tk − tk−1 ]))(tk − tk−1 )
k=1
n
X
= (f (tk ) − f (tk−1 ))(tk − tk−1 )
k=1
Since mesh(P ) < f (b)−f (a)
, we have
n
X
U (f, P ) − L(f, P ) < (f (tk ) − f (tk−1 ))
k=1
f (b) − f (a)
= (f (b) − f (a)) = .
f (b) − f (a)
48
Proof : Fix > 0. Since f is uniformly continuous on [a, b], there exists δ > 0 such that
x, y ∈ [a, b] and |x − y| < δ ⇒ |f (x) − f (y)| <
b−a
Consider any partition
P = {a = t0 , t1 , · · · tn = b}
with mess less than δ. Since f assumes its maximum and minimum on each interval
[tk−1 , tk ], it follows that
M (f, [tk − tk−1 ]) − m(f, [tk − tk−1 ]) < .
b−a
Therefore we have
n
X
U (f, P ) − L(f, P ) < (tk − tk−1 )(tk − tk−1 ) = .
k=1
b−a
49
Theorem 10.14. Let f be a function defined on [a, b]. If a < c < b and f is integrable
on [a, c] and on [c, b], then f is integrable on [a, b] and
Z b Z c Z b
f= f+ f.
a a c
Proof :
Exercise: If f is a continuous function on [a, b], then for at least one x in [a, b] we have
Z b
1
f (x0 ) = f.
b−a a
It is called Intermediate Value Theorem for Integrals.
Theorem 10.15. Fundamental Theorem of Calculus I:
If g is a continuous function on [a, b] that is differentiable on (a, b), and if g 0 is integrable
on [a, b], then
Z b
g 0 = g(b) − g(a).
a
Proof : Let > O. By Theorem 10.5, there exists a partition P
P = {a = t0 , t1 , · · · · · · , tn−1 , tn = b}
50
xn+1
Example 10.16. If g(x) = n+1
then g 0 (x) = xn . So we have
Z 1
1
xn dx = g(1) − g(0) = .
0 n+1
Theorem 10.17. [Integration by parts]:
If u and v are continuous functions on [a, b] that are differentiable on (a, b), and if u0
and v 0 are integrable on [a, b], then
Z b Z b
0
uv+ v 0 u = u(b)v(b) − u(a)v(a)
a a
Proof : Choose M such that |f (x)| ≤ M for all x ∈ [a, b]. Fix > 0. For x, y ∈ [a, b]
such that |x − y| < B and y > x, we have
Z y Z y Z y
|F (y) − F (x)| ≤ f (t)dt ≤ |f (t)|dt ≤ Bdt ≤ B(y − x) < .
x x x
51
Therefore we have
F (x) − F (c) 1 Z x 1
Z x
− f (c) = (f (t) − f (c))dt ≤ |f (t) − f (c)|dt.
x−c x−c c |x − c| c
for a, b ∈ J.
Proof : The continuity of f ◦ u follows from the fact that composition of two continuous
functions are continuous. Fix c ∈ I and let
Z u(x)
F (u(x)) = f (t)dt.
c
0
Then F (u(x)) = f (u(x)) for all x ∈ J. Let g = F ◦ u. By chain rule, we have
Hence we get
Z b Z b
0
(f ◦ u)(x)u (x)dx = g 0 (x)dx = g(b) − g(a) = F (u(b)) − F (u(a))
a
Za u(b) Z u(a)
= f (t)dt − f (t)dt
c c
Z u(b)
= f (t)dt.
u(a)
52
11 Improper Integration
References
[1] Joseph C. Várilly. Dirac Operators and Spectral Geometry. http://toknotes.
mimuw.edu.pl/sem3/files/Varilly_dosg.pdf.
53