In this section we extend the notion of the limit of a sequence to the concept of the limit of a function. Hereby we obtain a tool which enables us to investigate the behaviour of graphs of functions in the neighbourhood of chosen points. Moreover, limits of functions form the basis of one of the central themes in mathematical analysis, namely differentiation (Chap. 7). In order to derive certain differentiation formulas some elementary limits are needed, for instance, limits of trigonometric functions. The property of continuity of a function has far-reaching consequences like, for instance, the intermediate value theorem, according to which a continuous function which changes its sign in an interval has a zero. Not only does this theorem allow one to show the solvability of equations, it also provides numerical procedures to approximate the solutions. Further material on continuity can be found in Appendix C.
6.1 The Notion of Continuity



Definition 6.1
- (a)
The function f has a limit M at a point
, if
with
. In this case one writes
- (b)
The function f has a right-hand limit R at the point
, if
with
, with the corresponding notation
- (c)
The function f has a left-hand limit L at the point
, if:
with
. Notations:
- (d)
If f has a limit M at
which coincides with the value of the function, i.e.
, then f is called continuous at the point x.
- (e)
If f is continuous at every
, then f is said to be continuous on the open interval (a, b). If in addition f has right- and left-hand limits at the endpoints a and b, it is called continuous on the closed interval [a, b].


Limit and continuity; left- and right-hand limits

Example 6.2








Example 6.3
The absolute value function and the third root
are everywhere continuous. The former
has a kink at
, the latter a vertical tangent; see
Fig. 6.2.

Continuity and kink or vertical tangent
Example 6.4
The sign function has different left- and right-hand
limits
,
at
. In particular, it is discontinuous
at that point. At all other points
it is continuous; see
Fig. 6.3.
Example 6.5





Discontinuities: jump discontinuity and exceptional value
Example 6.6
The functions and
have vertical asymptotes at
and
, respectively, and in particular no
left- or right-hand limit at these points. At all other points,
however, they are continuous. We refer to Figs. 2.9 and 3.10.
Example 6.7




![$$[-1,1]$$](/epubstore/O/M-Oberguggenberger/Analysis-For-Computer-Scientists/OEBPS/images/215236_2_En_6_Chapter/215236_2_En_6_Chapter_TeX_IEq38.png)

No limits, oscillation with non-vanishing amplitude
Example 6.8







Continuity, oscillation with vanishing amplitude
6.2 Trigonometric Limits




Illustration of trigonometric inequalities













Proposition 6.10
.
Proof




6.3 Zeros of Continuous Functions


The intermediate value theorem
Proposition 6.11
(Intermediate value
theorem) Let be
continuous and
,
. Then there exists a point
with
.
Proof
The proof is based on the successive
bisection of the intervals and the
completeness of the set of real numbers. One starts with the
interval [a, b] and sets ,
.



















The proof provides at the same time a numerical method to compute zeros of functions, the bisection method . Although it converges rather slowly, it is easily implementable and universally applicable—also for non-differentiable, continuous functions. For differentiable functions, however, considerably faster algorithms exist. The order of convergence and the discussion of faster procedures will be taken up in Sect. 8.2.
Example 6.12




Experiment 6.13
Sketch the graph of the function
on the interval
, and try to first estimate
graphically one of the roots by successive bisection. Execute the
interval bisection with the help of the applet Bisection method. Assure yourself of the
plausibility of the intermediate value theorem using the applet
Animation of the intermediate value
theorem.
As an important application of the intermediate value theorem we now show that images of intervals under continuous functions are again intervals. For the different types of intervals which appear in the following proposition we refer to Sect. 1.2; for the notion of the proper range to Sect. 2.1.
Proposition 6.14
Let be an interval (open, half-open or
closed, bounded or improper) and
a continuous function with proper
range
. Then J is also an interval.
Proof
As subsets of the real line, intervals
are characterised by the following property: With any two points
all intermediate points are contained in it as well. Let
,
and
be an intermediate point, i.e.
. Since
is surjective there are
such that
and
. We consider the case
. Since
and
it follows from the intermediate
value theorem applied on the interval
that there exists a point
with
, thus
. Hence
is attained as a value of the
function and therefore lies in
.
Proposition 6.15
Let be a closed, bounded interval and
a continuous function. Then the
proper range
is also a closed, bounded
interval.
Proof



![$$x_n\in I = [a, b]$$](/epubstore/O/M-Oberguggenberger/Analysis-For-Computer-Scientists/OEBPS/images/215236_2_En_6_Chapter/215236_2_En_6_Chapter_TeX_IEq110.png)







From the proof of the proposition it is clear that d is the largest and c the smallest value of the function f on the interval [a, b]. We thus obtain the following important consequence.
Corollary 6.16
Each continuous function defined on a
closed interval attains its maximum and minimum
there.
6.4 Exercises
- 1.
-
- (a)
-
Investigate the behaviour of the functions
by plotting their graphs for arguments in
.
- (b)
-
Find out by inspection of the graphs whether there are left- or right-hand limits at
. Which value do they have? Explain your results by rearranging the expressions in (a).
Hint. Some guidance for part (a) can be found in the M-file mat06_ex1.m. Expand the middle term in (b) with
.
- 2.
-
Do the following functions have a limit at the given points? If so, what is its value?
- (a)
-
- (b)
-
- (c)
-
Hint. Expand with
- (d)
-
- (e)
-
- 3.
-
Let
. Compute the limits
, and sketch the graphs of the thereby defined functions f and g. Are they continuous? Plot
and
using MATLAB, and investigate the behaviour of the graphs for
.
Hint. An advice can be found in the M-file mat06_ex3.m.
- 4.
-
With the help of zero sequences, carry out a formal proof of the fact that the absolute value function and the third root function of Example 6.3 are continuous.
- 5.
-
Argue with the help of the intermediate value theorem that
has a zero in the interval
. Compute this zero up to four decimal places using the applet Bisection method.
- 6.
-
Compute all zeros of the following functions in the given interval with accuracy
, using the applet Bisection method.
- 7.
-
Write a MATLAB program which locates—with the help of the bisection method—the zero of an arbitrary polynomial
,
(why do such values always exist?). Test your program by choosing the coefficient vector
randomly, for example by using c = 1000*rand(1,3).
Hint. A solution is suggested in the M-file mat06_ex7.m.