Continuous Functions

Definition 1.

Let f ( x ) be defined on an interval containing x 0 , and assume now that f ( x 0 ) is defined. Then we say that f ( x ) is continuous at x 0 if

lim x x 0 f ( x ) = f ( x 0 ) ,

or in other words, if for every ϵ > 0 we can find a δ > 0 such that whenever | x x 0 | < δ , then | f ( x ) f ( x 0 ) | < ϵ

This is the precise way of saying " f ( x ) is near f ( x 0 ) when x is near x 0 ", or that "a small change in x produces only a small change in f ( x ) ." Note, however, that it is not the change in x that we start with, but rather the number ϵ , which is to be a bound for the change in f ( x ) . Then we find an interval about x 0 , of length 2 δ , such that if x is in this interval, i.e., x is not farther than δ away from x 0 , then f ( x ) is not farther away from f ( x 0 ) than the given bound ϵ . It is only by this type of definition that we can be sure of meeting the challenge of a man who says, "I don't call f ( x ) near f ( x 0 ) until it is within 10 4 ", a second one who says "Near means to me within 10 8 ", and so on. Thus in order to show that a given function f ( x ) is continuous at x 0 , we must start with a symbol ϵ , representing a general positive number, and then show that we can find a positive number δ , which will usually depend on ϵ , such that the inequality | x x 0 | < δ gives us some information about the expression | f ( x ) f ( x 0 ) | , namely that it is less than ϵ . To prove that f ( x ) is not continuous at x 0 , it would suffice to demonstrate just one ϵ for which we could not find a suitable δ . (Of course, then we could not find a suitable δ for any smaller ϵ .)

Let us illustrate by discussing some examples:

Example 1.

f ( x ) = x 2 , x 0 = 1 . If you recheck our proof that a differentiable function is continuous, you will see that it is completely rigorous in terms of the definitions and the theorems about limits which we have now given. However, let us prove that x 2 is continuous at 1 using only the definition of continuity.

Let ϵ > 0 be given. Then we must study | f ( x ) f ( x 0 ) | = | x 2 1 | . Let us write h = x 1 , x = 1 + h . Then

| f ( x ) f ( x 0 ) | = | 1 + 2 h + h 2 1 | = | 2 h + h 2 | = | h | | 2 + h |

Now let us take δ = Min ( 1 , ϵ 3 ) . Then if | h | < δ ,

| 2 + h | 2 + | h | < 3 , and | h | | 2 + h | < 3 | h | < ϵ

Since h = x 1 = x x 0 , we see that whenever | x x 0 | < δ , we have | f ( x ) f ( x 0 ) | < ϵ , and thus that f ( x ) is continuous at x 0

Example 2.

Our second example will seem somewhat more bizarre. Let f ( x ) be defined for 0 x 1 as follows:
If x is irrational, f ( x ) = 0 .
If x = p q in lowest terms ( q > 0 , p 0 , p and q integers), then

f ( x ) = 1 q

For example,
f ( 2 2 ) = 0 , f ( π 4 ) = 0 , f ( 6 7 ) = 1 7 , f ( 1 3 ) = 1 3 , f ( 2 3 ) = 1 3 ;

f ( 0 ) = 1 ( 0 = 0 1  in lowest terms ) , f ( 1 ) = 1

First of all, f ( x ) is not continuous at x 0 if x 0 is a rational number; for if x 0 = p q in lowest terms, f ( x 0 ) = 1 q > 0 . In every interval about x 0 we have irrational numbers x , where f ( x ) = 0 . Therefore, if we tried ϵ = 1 2 q , we could not find a suitable δ . Now we show that f ( x ) is continuous at x 0 if x 0 is any irrational number; then f ( x 0 ) = 0 . Let ϵ > 0 be given, and find an integer n > 0 such that 1 n < ϵ Now there are in the interval 0 x 1 only a finite number of rational numbers which, in lowest terms, have denominators less than n ; there are two with denominator 1 , one with denominator 2 , two with denominator 3 , two with denominator 4 , four with denominator 5 , In general, except for denominator 1 , there at most ( k 1 ) with denominator k (and this is only achieved if k is prime). Therefore those with denominator less than n are at most

2 + 1 + 2 + + ( n 2 ) = 2 + ( n 1 ) ( n 2 ) 2

in number. Some one of these, say r , is therefore closest to x 0 . Let δ = | r x 0 | δ > 0 , since x 0 is irrational. Now let | x x 0 | < δ . If x is irrational, then | f ( x ) f ( x 0 ) | = | 0 0 | = 0 < ϵ . If x = p q is rational, we know that q n , or f ( x ) = 1 q 1 n < ϵ . Thus | f ( x ) f ( x 0 ) | = 1 q < ϵ , and we have proved that f ( x ) is continuous at x 0 .

EXERCISES

Exercise 1.

Prove that | x | is continuous at x = 0 .

Exercise 2.

Prove that x 2 / 3 is continuous at x = 0 .

Exercise 3.

Prove that

f(x) = \begin{cases} x \sin \dfrac{1}{x}, & x \neq 0 \\ 0, & x = 0 \end{cases}

is continuous at x = 0 .

Exercise 4.

Prove that [ x ] is continuous at x 0 if x 0 is not an integer, and that it is not continuous at x 0 if x 0 is an integer.

Exercise 5.

Prove the following, assuming that f ( x ) and g ( x ) are continuous at x 0 :
a) f ( x ) + g ( x ) is continuous at x 0 .
b) c f ( x ) is continuous at x 0 , where c is a constant.
c) f ( x ) g ( x ) is continuous at x 0 .
d) If f ( x 0 ) 0 , 1 f ( x ) is continuous at x 0 .

Exercise 6.

Write out in formal language the proof that if f'(x_0) exists, then f ( x ) is continuous at x 0 .