Home page for accesible maths 4 Continuity vs. discontinuity

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

4.1 Continuous functions

Definition 4.1.1 (Plain English Definition of Continuity)

Let f:RR be a function and xR. We say that f is continuous at x if f(x) is close to f(y) provided that x is (really) close to y.

Definition 4.1.2 (The so-called Sequential Definition of Continuity)

Let f:RR be a function and xR. We say that f is continuous at x if for any sequence {xn}n=1 that tends to x, limnf(xn)=f(x). In this case we say that x is a point of continuity of the function f. If f is not continuous at a certain point x we say that x is a point of discontinuity of the function f.

Remark 4.1.1

The definition above has some advantages and disadvantages as well. Theoretically, if want to prove that x is a point of continuity of f then we must prove something for ALL the sequences converging to x. This can be harsh. On the other hand, if we want to prove that x is a point of discontinuity then it is enough to find one single test sequence {xn}n=1 tending to x to prove the claim.

Definition 4.1.3

Let f:RR be a function that is continuous at any real number. Then we call the function f continuous. If f:[a,b]R is a function that is continuous for any axb, we call f a continuous function on the interval [a,b].

Example 4.1.1

The function f(x)=x (a.k.a the identity function) and the function g(x)=C (a.k.a the constant function, where the constant is any real number C) are continuous at any real number x. This immediately follows from the definition above.

Remark 4.1.2 (Our favourite functions)

The sin, cos and exp are continuous at any real number. In Calculus, you even took the derivatives of this function, you know that they are continuous. The problem is that sin is defined in a geometrical way, you do not have a rigorous analytical definition of, say, sin1/2 or eπ. However, by understanding convergence and continuity you will actually understand a completely rigorous definition of sin1/2 that does not use geometry, circles, angles, whatever (but it is still the sin1/2 you can compute with a calculator). Just for fun: sin1/2 will be defined as the limit of the following convergent sequence:

x1=1/2,x2=1/2-(1/2)36,x3=1/2-(1/2)36+(1/2)5120,
x4=1/2-(1/2)36+(1/2)5120-(1/2)75040.
Proposition 4.1.1
  1. 1.

    Let f,g be functions that are continuous at x. Then both f+g and fg are continuous at x. [Sum and Product Rules for Continuous Functions]

  2. 2.

    Let h be a positive continuous function that is continuous at x. Then 1h is also continuous at x. [Quotient Rules for Continuous Function]

  3. 3.

    Let f: be continuous at y and g: be continuous at x, such that g(x)=y. Then the composition function fg is continuous at x [Composition Rule]

Proof:  The first statement follows from the Product Rule/Sum Rule immediately. If xnx and f(xn)f(x),g(xn)g(x), then (f+g)(xn)f(x)+g(x) and (fg)(xn)f(x)g(x). Also, if yny and h(yn)h(y) for some positive function, then by the Quotient Rule, 1h(yn)1h(y). Now, let us prove the third statement. Suppose that xnx. We need to prove that (fg)(xn)(fg)(x). First by the continuity of g, g(xn)g(x)=y. Now we use the continuity of f at g(x)=y. Since {g(xn)}n=1 tends to g(x), (fg)(xn)=f(g(xn))f(g(x))=(fg)(x). .

Question 4.1.1

Show that a polynomial P(x)=anxn+an-1xn-1++a0 is continuous at any real number.

Solution: By the Product Rule for Continuous Functions, xn is continuous at any real number. Hence anxn is continuous at any real number, so by the Sum Rule for Continuous Functions our polynomial is also continuous at any given real number. Also, by the Composition Rule the function exp(x2) and sin(cos(x))exp(x) is continuous at any given number.

We have another definition for continuity.

Definition 4.1.4 (The infamous (ε,δ)-definition)

The function f:RR is continuous at x if for any ε>0, there exists some δ>0 such that if |y-x|<δ, then |f(y)-f(x)|<ε.

Note that this is again a mathematized version of the fact that if we are getting closer and closer to x, then f(y) is getting closer and closer to f(x). If y is δ-close to x, then f(y) is ε-close to f(x). So, it is not surprising (but awfully important) that:

Theorem 4.1.1

The Sequential Definition and the (ε,δ)-definition are equivalent.

Proof:  How can we prove something like that? We need to prove that if f is continuous at x according to the Sequential Definition, then f is continuous at x according to the (ε,δ)-definition and vice versa. We use our favourite:

A follows from B if and only if not-B follows from not-A

trick. Negate the statement that “f is continuous at x according to the (ε,δ)-definition”. The negated statement is that there exists some ε>0 for which there is no δ such that if |y-x|<δ, then |f(y)-f(x)|<ε. So, in particular there exists yn such that |yn-x|<1n but |f(yn)-f(x)|ε. This means that

  • {yn}n=1 converges to x.

  • {f(yn)}n=1 does not converge to f(x).

So, f is not convergent at x according to the Sequential Definition. What did we prove??? We proved that if f is continuous at x according to the Sequential Definition, then f is continuous at x according to the (ε,δ)-definition. Here comes the “vice versa” part. Negate the statement that “ for all convergent sequences xnx, f(xn)f(x)”. It is not very hard: there exists a sequence xnx such that {f(xn)}n=1 does not converge to f(x). What does it mean that the sequence {f(xn)}n=1 is not converging to f(x). Recall Question 2.2.1. It means that there exists a subsequence {f(xnk)}k=1 so that for some ε>0, |f(xnk)-f(x)|ε. This will be our “bad” ε. No matter how small δ is, there will be some element xnk in the subsequence such that |xnk-x|. For this element xnk, |f(xnk)-f(x)|ε. Hence f is not continuous at x according to the (ε,δ)-definition.

Question 4.1.2

Let f be a continuous function on the real numbers. Suppose that f(q)=0 if q is rational. Show that f(x)=0 for all xR.

Solution: Let x be a real number and {xn}n=1 be a sequence of rational numbers tending to x. Then by the continuity of f, 0=limn,f(xn)=f(x).