Real sequences/Heron's method/Introduction/Section

From Wikiversity
Jump to navigation Jump to search
Heron of Alexandria (1. century a.C.)

We begin with a motivating example.


Example

We would like to "compute“ the square root of a natural number, say of . Such a number with the property does not exist within the rational numbers (this follows from unique prime factorization). If is such an element, then also has this property. Due to

there can not be more than two solutions.

Though there is no solution within the rational numbers for the equation , there exist arbitrarily good approximations for it with rational numbers. Arbitrarily good means that the error (the deviation) can be made so small that it is below any given positive bound. The classical method to approximate a square root is Heron's method. This is an iterative method, i.e., the next approximation is computed from the preceding approximation. Let us start with as a first approximation. Because of

we see that is to small, . From ( being positive) we get and therefore , so . Hence we have the estimates

where we get a rational number on the right hand side if is rational. Such an estimate provides a certain idea where lies. The difference is a measure for how good the approximation is.

In particular, when we start with , we get that the square root is between and . Then we take the arithmetic mean of the interval bounds, so

Due to , this value is too large and therefore is in the interval . Then, we take again the arithmetic mean of these interval bounds and we set

to be the next approximation. Continuing like that, we get better and better approximations for .

In this way we get always a sequence of better and better approximations of the square root of a positive real number.


Definition  

Let denote a positive real number. The Heron-sequence, with the positive initial value , is defined recursively by

Accordingly, this method is called Heron's method for the computation of square roots. In particular, this method produces for every natural number a real number which approximates a number defined by a certain algebraic property within an error which is arbitrarily small. In many technical applications, it is enough to know a certain number within a certain accuracy, but the accuracy aimed at might depend on the technical goal. In general, there is no accuracy which will work for all possible applications. Instead, it is important to know how to improve a good approximation by a better approximation and to know how many (computational) steps one has to take in order to reach a certain desired approximation. This idea yields the concepts sequence and convergence.


Definition  

A real sequence is a mapping

We usually write a sequence as or simple as . For a given starting number , the recursively defined numbers by Heron's method (for the computation of ) form a sequence. Sometimes a sequence is not defined for all natural numbers, but just for all natural numbers . But all concepts and statements apply also in this situation.


Definition  

Let denote a real sequence, and let . We say that the sequence converges to , if the following property holds.

For every positive , , there exists some , such that for all , the estimate

holds.

If this condition is fulfilled, then is called the limit of the sequence. For this we write

If the sequence converges to a limit, we just say that the sequence converges, otherwise, that the sequence diverges.

One should think of the given as a small but positive real number which expresses the desired aiming accuracy (or the allowed error). The natural number represents the effort how far one has to go in order to achieve the desired accuracy, and in fact in such a way that above this effort number , all the following members will stay within this allowed error. Thus, convergence means that every possible accuracy can be achieved by some suitable effort. The smaller the error is supposed to be (the better the approximation shall be), the higher the effort will be. Instead of arbitrary positive real numbers , one can also work with unit fractions (the rational numbers of the form , ), see exercise, or with the inverse powers of ten , .

For and a real number , the interval is also called the -neighborhood of . A sequence converging to is called null sequence.


Example

A constant sequence converges to the limit . This follows immediately, since for every , we can take . Then we have

for all .


Example

The sequence

converges to the limit . To show this, let some positive be given. Due to the Archimedean axiom, there exists an , such that . Then for all , the estimate

holds.


Example

We consider the sequence

with exactly digits after the point. We claim that this sequence converges to . For this, we have to determine , and before we can do this, we have to recall the meaning of a decimal expansion. We have

and therefore

If now a positive is given, then for sufficiently large, this last term is .


Lemma

A real sequence has at most one limit.

Proof  

We assume that the sequence has two distinct limits , . Then . We consider . Because of the convergence to there exists an such that

and because of the convergence to there exists an such that

hence both conditions hold simultaneously for . Suppose that is as large as this maximum. Then due to the triangle inequality we arrive at the contradiction