fixed-point iteration

{{Short description|Root-finding algorithm}}

{{refimprove|date=May 2010}}

In numerical analysis, fixed-point iteration is a method of computing fixed points of a function.

More specifically, given a function f defined on the real numbers with real values and given a point x_0 in the domain of f, the fixed-point iteration is

x_{n+1}=f(x_n), \, n=0, 1, 2, \dots

which gives rise to the sequence x_0, x_1, x_2, \dots of iterated function applications x_0, f(x_0), f(f(x_0)), \dots which is hoped to converge to a point x_\text{fix}. If f is continuous, then one can prove that the obtained x_\text{fix} is a fixed point of f, i.e.,

f(x_\text{fix})=x_\text{fix} .

More generally, the function f can be defined on any metric space with values in that same space.

Examples

File:Sine fixed point.svg and so its speed of convergence is very slow.]]

  • A first simple and useful example is the Babylonian method for computing the square root of {{math|a > 0}}, which consists in taking f(x) = \frac 1 2 \left(\frac a x + x\right), i.e. the mean value of {{mvar|x}} and {{math|a/x}}, to approach the limit x = \sqrt a (from whatever starting point x_0 \gg 0 ). This is a special case of Newton's method quoted below.
  • The fixed-point iteration x_{n+1} = \cos x_n\, converges to the unique fixed point of the function f(x) = \cos x\, for any starting point x_0. This example does satisfy (at the latest after the first iteration step) the assumptions of the Banach fixed-point theorem. Hence, the error after n steps satisfies |x_n-x| \leq { q^n \over 1-q } | x_1 - x_0 | = C q^n (where we can take q = 0.85, if we start from x_0=1.) When the error is less than a multiple of q^n for some constant {{math|q}}, we say that we have linear convergence. The Banach fixed-point theorem allows one to obtain fixed-point iterations with linear convergence.
  • The requirement that {{math|f}} is continuous is important, as the following example shows. The iteration x_{n+1} =

\begin{cases}

\frac{x_n}{2}, & x_n \ne 0\\

1, & x_n=0

\end{cases} converges to 0 for all values of x_0. However, 0 is not a fixed point of the function f(x) =

\begin{cases}

\frac{x}{2}, & x \ne 0\\

1, & x = 0

\end{cases} as this function is not continuous at x = 0, and in fact has no fixed points.

Attracting fixed points

File:Cosine fixed point.svg {{math|1=xn+1 = cos xn}} with initial value {{math|1=x1 = −1}}.]]

An attracting fixed point of a function {{math|f}} is a fixed point {{math|xfix}} of {{math|f}} with a neighborhood {{math|U}} of "close enough" points around {{math|xfix}} such that for any value of {{mvar|x}} in {{math|U}}, the fixed-point iteration sequence

x,\ f(x),\ f(f(x)),\ f(f(f(x))), \dots

is contained in {{math|U}} and converges to {{math|xfix}}. The basin of attraction of {{math|xfix}} is the largest such neighborhood {{math|U}}.{{cite book |last1=Rassias |first1=Themistocles M. |last2=Pardalos |first2=Panos M. |title=Mathematics Without Boundaries: Surveys in Pure Mathematics |date=17 September 2014 |publisher=Springer |isbn=978-1-4939-1106-6 |url=https://books.google.com/books?id=TbKNBAAAQBAJ&pg=PA138 |language=en}}

The natural cosine function ("natural" means in radians, not degrees or other units) has exactly one fixed point, and that fixed point is attracting. In this case, "close enough" is not a stringent criterion at all—to demonstrate this, start with any real number and repeatedly press the cos key on a calculator (checking first that the calculator is in "radians" mode). It eventually converges to the Dottie number (about 0.739085133), which is a fixed point. That is where the graph of the cosine function intersects the line y = x.{{cite web| last1=Weisstein| first1=Eric W.| title=Dottie Number| url=http://mathworld.wolfram.com/DottieNumber.html| website=Wolfram MathWorld| publisher=Wolfram Research, Inc.| access-date=23 July 2016}}

Not all fixed points are attracting. For example, 0 is a fixed point of the function {{math|1=f(x) = 2x}}, but iteration of this function for any value other than zero rapidly diverges. We say that the fixed point of f(x) = 2x is repelling.

An attracting fixed point is said to be a stable fixed point if it is also Lyapunov stable.

A fixed point is said to be a neutrally stable fixed point if it is Lyapunov stable but not attracting. The center of a linear homogeneous differential equation of the second order is an example of a neutrally stable fixed point.

Multiple attracting points can be collected in an attracting fixed set.

=Banach fixed-point theorem=

The Banach fixed-point theorem gives a sufficient condition for the existence of attracting fixed points. A contraction mapping function f defined on a complete metric space has precisely one fixed point, and the fixed-point iteration is attracted towards that fixed point for any initial guess x_0 in the domain of the function. Common special cases are that (1) f is defined on the real line with real values and is Lipschitz continuous with Lipschitz constant L < 1, and (2) the function {{math|f}} is continuously differentiable in an open neighbourhood of a fixed point {{math|xfix}}, and |f'(x_\text{fix})| < 1.

Although there are other fixed-point theorems, this one in particular is very useful because not all fixed-points are attractive. When constructing a fixed-point iteration, it is very important to make sure it converges to the fixed point. We can usually use the Banach fixed-point theorem to show that the fixed point is attractive.

= Attractors =

Attracting fixed points are a special case of a wider mathematical concept of attractors. Fixed-point iterations are a discrete dynamical system on one variable. Bifurcation theory studies dynamical systems and classifies various behaviors such as attracting fixed points, periodic orbits, or strange attractors. An example system is the logistic map.

Iterative methods

{{Main|Iterative method}}

In computational mathematics, an iterative method is a mathematical procedure that uses an initial value to generate a sequence of improving approximate solutions for a class of problems, in which the n-th approximation is derived from the previous ones. Convergent fixed-point iterations are mathematically rigorous formalizations of iterative methods.

=Iterative method examples=

{{ulist

|1=Newton's method is a root-finding algorithm for finding roots of a given differentiable function {{tmath|f(x)}}. The iteration is x_{n+1} = x_n-\frac{f(x_n)}{f'(x_n)}.

If we write g(x) = x - \frac{f(x)}{f'(x)}, we may rewrite the Newton iteration as the fixed-point iteration x_{n+1} = g(x_n).

If this iteration converges to a fixed point x_\text{fix} of {{mvar|g}}, then

x_\text{fix} = g(x_\text{fix}) = x_\text{fix} - \frac{f(x_\text{fix})}{f'(x_\text{fix})}, so f(x_\text{fix}) / f'(x_\text{fix}) = 0 ,

therefore f(x_\text{fix}) = 0, that is, x_\text{fix} is a root of f. Under the assumptions of the Banach fixed-point theorem, the Newton iteration, framed as a fixed-point method, demonstrates at least linear convergence. More detailed analysis shows quadratic convergence, i.e., |x_n - x_\text{fix}| < C q^{2^n}, under certain circumstances.

|2=Halley's method is similar to Newton's method when it works correctly, but its error is |x_n-x_\text{fix}| < Cq^{3^n} (cubic convergence). In general, it is possible to design methods that converge with speed C q^{k^n} for any k\in \mathbb N. As a general rule, the higher the {{mvar|k}}, the less stable it is, and the more computationally expensive it gets. For these reasons, higher order methods are typically not used.

|3=Runge–Kutta methods and numerical ordinary differential equation solvers in general can be viewed as fixed-point iterations. Indeed, the core idea when analyzing the A-stability of ODE solvers is to start with the special case y'=ay, where a is a complex number, and to check whether the ODE solver converges to the fixed point y_\text{fix}=0 whenever the real part of a is negative.{{efn|One may also consider certain iterations A-stable if the iterates stay bounded for a long time, which is beyond the scope of this article.}}

|4={{anchor|Picard iteration}}The Picard–Lindelöf theorem, which shows that ordinary differential equations have solutions, is essentially an application of the Banach fixed-point theorem to a special sequence of functions which forms a fixed-point iteration, constructing the solution to the equation. Solving an ODE in this way is called Picard iteration, Picard's method, or the Picard iterative process.

|5=The iteration capability in Excel can be used to find solutions to the Colebrook equation to an accuracy of 15 significant figures.M A Kumar (2010), Solve Implicit Equations (Colebrook) Within Worksheet, Createspace, {{ISBN|1-4528-1619-0}}

Brkic, Dejan (2017) Solution of the Implicit Colebrook Equation for Flow Friction Using Excel, Spreadsheets in Education (eJSiE): Vol. 10: Iss. 2, Article 2. Available at: https://sie.scholasticahq.com/article/4663-solution-of-the-implicit-colebrook-equation-for-flow-friction-using-excel

|6=Some of the "successive approximation" schemes used in dynamic programming to solve Bellman's functional equation are based on fixed-point iterations in the space of the return function.Bellman, R. (1957). Dynamic programming, Princeton University Press.Sniedovich, M. (2010). Dynamic Programming: Foundations and Principles, Taylor & Francis.

|7=The cobweb model of price theory corresponds to the fixed-point iteration of the composition of the supply function and the demand function.{{cite book |title=Nonlinearity, Bounded Rationality, and Heterogeneity: Some Aspects of Market Economies as Complex Systems |chapter=Chapter 2. One-Dimensional Nonlinear Cobweb Model |first=Tamotsu |last=Onozaki |publisher=Springer |year=2018 |isbn=978-4-431-54971-0}}

}}

=Convergence acceleration=

The speed of convergence of the iteration sequence can be increased by using a convergence acceleration method such as Anderson acceleration and Aitken's delta-squared process. The application of Aitken's method to fixed-point iteration is known as Steffensen's method, and it can be shown that Steffensen's method yields a rate of convergence that is at least quadratic.

Chaos game

File:Sierpinski Chaos.gif

{{Main|Chaos game}}

The term chaos game refers to a method of generating the fixed point of any iterated function system (IFS). Starting with any point {{math|x0}}, successive iterations are formed as {{math|1=xk+1 = fr(xk)}}, where {{math|fr}} is a member of the given IFS randomly selected for each iteration. Hence the chaos game is a randomized fixed-point iteration. The chaos game allows plotting the general shape of a fractal such as the Sierpinski triangle by repeating the iterative process a large number of times. More mathematically, the iterations converge to the fixed point of the IFS. Whenever {{math|x0}} belongs to the attractor of the IFS, all iterations {{math|xk}} stay inside the attractor and, with probability 1, form a dense set in the latter.

See also

References

{{reflist|group=lower-alpha}}

{{reflist}}

Further reading

  • {{cite book | last1=Burden | first1=Richard L. | last2=Faires | first2=J. Douglas | title=Numerical Analysis | publisher=PWS Publishers | edition=Third | isbn=0-87150-857-5 | year=1985 | chapter=Fixed-Point Iteration | url-access=registration | url=https://archive.org/details/numericalanalys00burd }}
  • {{cite book |first1=Joe D. |last1=Hoffman |first2=Steven |last2=Frankel |chapter=Fixed-Point Iteration |title=Numerical Methods for Engineers and Scientists |edition=Second |location=New York |publisher=CRC Press |year=2001 |pages=141–145 |isbn=0-8247-0443-6 |chapter-url=https://books.google.com/books?id=VKs7Afjkng4C&pg=PA141 }}
  • {{cite book |first=Kenneth L. |last=Judd |author-link=Kenneth Judd |chapter=Fixed-Point Iteration |title=Numerical Methods in Economics |location=Cambridge |publisher=MIT Press |year=1998 |isbn=0-262-10071-1 |pages=165–167 |chapter-url=https://books.google.com/books?id=9Wxk_z9HskAC&pg=PA165 }}
  • {{cite book | last=Sternberg | first=Shlomo | author-link=Shlomo Sternberg |title=Dynamical Systems | publisher=Dover Publications | edition=First | isbn=978-0486477053 | year=2010 | chapter=Iteration and fixed points | url=https://books.google.com/books?id=T2uTAwAAQBAJ }}
  • {{cite book | last=Shashkin | first=Yuri A. |title=Fixed Points | publisher=American Mathematical Society | edition=First | isbn=0-8218-9000-X | year=1991 | chapter=9. The Iteration Method | url=https://books.google.com/books?id=Kf8TiuXgNYQC }}
  • {{cite journal

| first = Alessandro

| last = Rosa

| author-link=Alessandro Rosa

| title = An episodic history of the staircased iteration diagram

| journal = Antiquitates Mathematicae

| year = 2021

| volume = 15

| pages = 3–90

| url = https://wydawnictwa.ptm.org.pl/index.php/antiquitates-mathematicae/article/view/7056/6528

| doi=10.14708/am.v15i1.7056

| s2cid = 247259939

| url-access = subscription

}}