| home | contents | previous | next page | send comment | send link | add bookmark |

10.5. Continuous and discontinuous functions

Suppose we have a function that maps real numbers to real numbers. On a graph the function is continuous if it is a single unbroken curve with no gaps. A continuous function is defined to be one in which arbitrarily small changes in the independent variable produce arbitrarily small changes in the value of the function. If small changes in the independent variable produce a jump in the value of the function or cause the value of the function to be undefined, the function is discontinuous. Rational functions and functions defined piecewise are likely to have points of discontinuity.

Rational functions may be discontinuous at the points where the function is undefined; division by zero is the usual cause. Consider rational function:

        x  + 2
f(x) = ————————
        x2 - 4
The independent variable x is in the denominator and there is one or more values of x that will make the function undefined. For f(x), the domain is all real numbers except -2 and +2. At these points the function is discontinuous.

Piecewise functions may be discontinuous at the points where the function definition changes. A function or curve is piecewise continuous if it is continuous on all but a finite number of points at which certain matching conditions are sometimes required.

Definition of continuity

Consider the function f: R -> R. Let c be in the domain of f. Then f is continuous at the point c if and only if there is some number δ > 0 such that for all x in the domain with:

|x - c| < δ
the value of f(x) will satisfy:
|f(x) - f(c)| < ε
for any number ε > 0 however small. That is, for any arbitrary choice of ε > 0, a function is continuous if there is a number δ > 0 such that a point on the graph will be within the rectangle shown in the figure below.

Continuity condition

Figure 10-4: Continuity condition

Examples of continuous functions

The following functions are continuous in the set of real numbers:

f(x) = ax2 + bx + c
f(x) = bx
f(x) = log x    for x > 0
f(x) = √x       for x ≥ 0
f(x) = |x|
f(x) = 1/(x2 + 1)

Examples of discontinuous functions

The following functions are discontinuous at one or more points in the set of real numbers:

f(x) = 1/x discontinuous at x = 0
f(x) = tan(x) discontinuous at x = (2n-1)
π/2, n is an integer

Examples of discontinuous piecewise functions

The following functions are discontinuous at the point between each piece of the function:

Unit step function

       0   if x < 0
u(x) = 0.5 if x = 0
       1   if x > 0
Floor function
floor(x) = greatest integer ≤ x
Ceiling function
ceil(x) = smallest integer ≥ x
Round function
round(x) = integer nearest to x 
           Even integer if fractional part = 0.5
Rounding is ambiguous for half-integers; by convention half-integers are rounded to even numbers in order to avoid statistical biasing.

Properties of continuous functions

If two functions f(x) and g(x) are continuous, then the following are continuous:

f(x) + g(x) 
f(x) - g(x) 
f(x)·g(x) 
f(x)/g(x)    if g(x) ≠ 0 for all x in the domain

Intermediate value theorem

If the function f(x) is continuous on a closed interval [a, b] then for every real number d between f(a) and f(b), there is at least one number c in the open interval (a, b) such that f(c) = d.

Bolzano's theorem

If the function f(x) is continuous on a closed interval [a, b] whose values have different signs at the endpoints of the interval, the graph of f(x) crosses the x-axis at least once in the open interval (a, b). That is, at some point c, the function f(c) must equal zero.

Weierstrass extreme value theorem

If the function f(x) is continuous on a closed interval [a, b], then their are two numbers, c and d, in this interval such that f(c) ≤ f(x) ≤ f(d) for all x in the interval. That is, f(x) has both a maximum and a minimum in the closed interval [a, b].


| home | contents | previous | next page | send comment | send link | add bookmark |

Copyright © 2005, Stephen R. Schmitt