Part 2.1 Continuous Functions and Their Properties 2.1.1 Definition
Part 2.1 Continuous Functions and Their Properties 2.1.1 Definition
Part 2.1 Continuous Functions and Their Properties 2.1.1 Definition
that is
∀ε > 0, ∃δ > 0, ∀x, |x − a| < δ ⇒ |f (x) − f (a)| < ε. (1)
Note
• In the definition of limx→a f (x) we have the assumption that
0 < |x − a| < δ
whereas in (1) we only have
|x − a| < δ.
This is because in the definition of continuity we are assuming that
f (a) exists and, if x = a, then |f (x) − f (a)| < ε is simply 0 < ε which
is trivially true. Thus there is no need to exclude the possibility that
x = a, and so we drop the requirement that 0 < |x − a| .
• f is defined on some neighbourhood of a, including a,
• From a result in section 1.2.2, f is continuous at a iff
lim f (x) = f (a) = lim f (x) .
x→a+ x→a−
Example 2.1.3 By the quotient rule for limits if r (x) = p (x) /q (x) is a
rational function, i.e. a quotient of polynomials, then
limx→a p (x) p (a)
lim r (x) = = = r (a)
x→a limx→a q (x) q (a)
for all a ∈ R for which q (a) 6= 0, i.e. for which r (a) is defined. Thus rational
functions are continuous where they are defined.
1
As a particular example we have (x2 − 1) / (x − 1) is continuous for all
x 6= 1.
is continuous at x = 1.
is not continuous at x = 0.
2
Example 2.1.7 Define f : R → R, by
1 if x is rational
f (x) =
0 is x is irrational.
Prove that f is nowhere continuous.
Solution Let a ∈ Q be given Assume f is continuous at a.
Choose ε = 1/2 in the definition of continuity to find δ > 0 such that
|x − a| < δ implies |f (x) − f (a)| < 1/2. But a ∈ Q implies f (a) = 1 while
in any interval, such as (a, a + δ) we can find an irrational x0 . Thus
1/2 > |f (x0 ) − f (a)| = |0 − 1| = 1.
Contradiction, so our assumption is false. Thus f is not continuous at a and
thus not continuous on Q.
I leave it to the student to write out the proof for a ∈
/ Q.
Then conclude that f is not continuous on R.
or ( c I)
( )
c I
Proof Virtually identical to that of the Lemma in section 1.3 and it starts
by choosing ε = |f (c)| /2 > 0 in the definition of limx→c f (x) = f (c) to find
δ > 0 such that if |x − c| < δ then |f (x) − f (c)| < |f (c)| /2. I leave the
completion to the Student.
3
Given functions continuous at c ∈ R we know, in particular, that the
limits of the functions exist at c. This means that we can simply apply the
limit rules of section 1.3. In this way we get
Proof Not given in this course but virtually identical to that of the similar
Theorem in section 1.3.
and
lim cos θ = 1 = cos 0,
θ→0
4
Example 2.1.10 Assume the addition formula for sine, namely
sin(α + β) = sin α cos β + sin β cos α.
Prove that sin θ is continuous on R.
Solution in lectures.
Solution in lectures.
5
Note If we assume further that g is continuous at a then limx→a g (x) = g (a)
and so (2) can be written as limx→a f (g (x)) = f (g (a)), i.e. limx→a f ◦g (x) =
f ◦ g (a). Hence
6
Appendix
is not continuous at x = 0.
Solution Assume that g is continuous at x = 0. Then
π
lim sin = g (0) = 0.
x→0 x
In particular this means the limit exists. Yet from Part 1 we know
that limx→0 sin (π/x) does not exist. This contradiction means our
assumption is false and so f is not continuous at 0.
Note that there is no value for g (0) that would make the function
continuous at x = 0.
3. Example 2.1.16 Show that in any interval (a, b) we can find a rational
number and we can find an irrational number.
Solution Let ` = b − a be the length of the interval. Choose n ∈ N so
large that 2−n < `. Assume for the sake of a contradiction that for no
m ∈ N do we have m/2n ∈ (a, b). This means there exists p ∈ N for
which
p p+1
n
≤a<b≤ n .
2 2
Then
p+1 p 1
` = b − a ≤ n − n = n < `.
2 2 2
This is our contraction, and so our assumption is false, i.e. the rational
number r = m/2n lies in (a, b) for some m ∈ N.
7
√ √
To find an irrational number do the above for the interval a/ 2, b/ 2
√
to find a rational r0 in this interval. You can then check that r0 2 is
an irrational number lying in (a, b) .
4. Example 2.1.17 If
1 if x is rational
f (x) =
0 is x is irrational.
and a ∈
/ Q show that f is not continuous at a.
Solution Assume f is continuous at a. Choose ε = 1/2 in the def-
inition of continuity to find δ > 0 such that |x − a| < δ implies
|f (x) − f (a)| < 1/2. But a ∈ / Q implies f (a) = 0 while in any in-
terval, such as (a, a + δ) we can find a rational x0 for which f (x0 ) = 1.
Thus
1/2 > |f (x0 ) − f (a)| = |1 − 0| = 1.
Contradiction, so our assumption is false. Thus f is not continuous at
a.
8
Thus we have derived the sum rule for continuous functions. I leave it
to students to derive the other two rules for continuous functions.