Iteration and orbits
What it means to apply a rule over and over, what the resulting sequence is called, and why some starting points settle down while others run away.
9 minutes read
1752 words
Contents14
Applying one rule repeatedly, with each answer becoming the next question, produces a sequence. Which sequence depends entirely on where the process starts. Two starting points a hair apart can produce sequences that end in different places.
Assumed knowledge
Arithmetic, and what a rule that turns one number into another is. Reading a point off a graph with a horizontal and a vertical axis.
Nothing here needs complex numbers. Every example is an ordinary number, and the definitions carry over to complex numbers without change.
Ground covered
What a map is, and what its orbit from a starting point is. Fixed points, and how to find them. The cobweb, which reads an orbit off the graph of the map without arithmetic. Bounded and escaping orbits. Why some fixed points draw nearby orbits in while others push them away. Then the linear map, the same map for vectors, and a rule that remembers further back than one step. Last, what a cycle is.
A reader who can already say why the orbit of 0.8 under converges and the orbit of 1.05 does not can skip the page.
Maps
A map is a rule that turns one number into another. The rule turns 3 into 9 and turns 0.5 into 0.25. Written as a function it is .
Repeated application is why the rule is called a map here. The same rule is applied to its own output, and then to that output again.
Equation (1) says that each term comes from the one before it by one application of . Nothing else is needed to generate the whole sequence once the first term is chosen.
Orbits
The orbit of a starting point is the sequence that equation (1) produces from it. The starting point is written , and the terms that follow are and onward.
Under the orbit of runs and shrinks towards zero. The orbit of runs and grows without limit.
Both starting points lie within a quarter of each other, and their orbits go opposite ways. The value 1 is what separates them, and the next two sections say why.
Applying the map times is written , so means . The superscript counts applications of the map. It is not a power, and is not .
Cobweb diagrams
An orbit can be read off the graph of the map with no arithmetic at all. Draw and the diagonal line on the same axes.
Start on the horizontal axis at and go vertically to the curve. The height reached is , which is the next term. To apply the map again that height has to become the next input, which means moving it onto the horizontal axis. Going horizontally to the diagonal does exactly that, because a point on the diagonal has its height and its position equal.
Repeating the pair of moves draws a staircase, and the corners of the staircase are the terms of the orbit.
The diagonal is where the curve is compared against the input. Where the curve lies below the diagonal the map returns something smaller than it was given, and the staircase steps down. Where the curve lies above it the map returns something larger, and the staircase steps up.
Fixed points
A fixed point is a number the map leaves alone.
Its orbit is the same value forever, because every application returns it unchanged. On the graph a fixed point is where the curve crosses the diagonal, since that is where the output equals the input.
Fixed points are found by solving equation (3). For that means solving , which factors as .
The two crossings in the figure are exactly those two values.
Bounded and escaping orbits
An orbit is bounded when one fixed distance holds every term of it. There has to be a number that no term ever exceeds in size.
Which value takes does not matter. What matters is whether any such value exists.
An orbit escapes when no such exists, which means its terms grow without limit. Every orbit of a given map is one or the other.
Under the boundary is the fixed point 1. A starting point smaller than 1 in size has an orbit that falls to zero. A starting point larger than 1 in size has an orbit that escapes. A starting point of exactly 1 stays there.
Attracting and repelling
The two fixed points of behave in opposite ways. Orbits that begin near zero move towards it. Orbits that begin near 1, on either side, move away from it.
The difference is how much the map stretches a small step. The derivative of a map at a point measures that stretch. For the derivative is .
A step near a fixed point is multiplied by at each application. A multiplier smaller than 1 in size shrinks the step every time, so the orbit is drawn in. A multiplier larger than 1 grows it, so the orbit is pushed away.
At the derivative is 0, so zero is attracting. At the derivative is 2, so 1 is repelling. That is why the boundary between the two behaviours sits exactly at 1.
A multiplier of exactly 1 in size decides nothing, and those cases need a closer argument than this page gives.
The linear map
The simplest map of all is multiplication by a constant, . Its orbit from is a list of powers.
Its only fixed point is , unless , when every point is fixed. The derivative is everywhere, so by equation (6) the fixed point attracts when and repels when . The orbit shrinks towards zero by the same factor at every step, or grows by it. A shrinking orbit of this kind is a geometric sequence. When the steps are instants of time it is an exponential decay, and decibels and exponential decay measures how fast.
Iterating a matrix
The same idea works when the state is a vector and the rule is a matrix, so that and . Whether the orbit shrinks depends on what does to lengths. Take the case where is times a matrix that keeps every length .
The orbit then behaves exactly like the one-dimensional map of equation (7). The direction of swings about as turns it, and its length follows . More generally, take a number for which at every . The map is then a contraction, and every orbit falls to zero at least as fast as . The feedback loop of a reverb is built to be a contraction, with a length-keeping mixing matrix preceded by gains all below 1.
A rule with memory
The maps on this page use only the previous value. A rule may reach further back than one step.
Nothing new happens. The sequence splits into interleaved orbits of the map , one for each remainder of on division by . Each of them shrinks by every steps. Measured per step the factor is , so a longer memory decays more slowly for the same . When several such rules with different have to fade in the same time, each one needs its own . Decibels and exponential decay says which.
Cycles
An orbit can return to a value it has already taken without that value being fixed. It then repeats forever, and the repeating block is a cycle.
The count is the period. A fixed point is the case .
Under the starting point 0 gives the orbit and repeats with period 2. Neither value is fixed, because the map moves each of them, but the pair together is left alone.
A cycle is attracting or repelling by the same test as a fixed point, applied to rather than to . An attracting cycle draws in every orbit that starts near enough to it.
Figure sources
Both drawings come from one script kept beside this page. It draws the map , two of its orbits, and its two fixed points. The script needs NumPy and Matplotlib.
iterate.py
uv run --with numpy --with matplotlib python3 iterate.py
Further reading
Iterated functions, and the notation for repeated application.1
Fixed points, and the test that decides whether one attracts.2
Cobweb plots, with worked examples on other maps.3
-
Iterated function. Wikipedia. Retrieved 31 August 2026. https://en.wikipedia.org/wiki/Iterated_function (opens in a new tab) ↩︎
-
Fixed point (mathematics). Wikipedia. Retrieved 31 August 2026. https://en.wikipedia.org/wiki/Fixed_point_(mathematics) (opens in a new tab) ↩︎
-
Cobweb plot. Wikipedia. Retrieved 31 August 2026. https://en.wikipedia.org/wiki/Cobweb_plot (opens in a new tab) ↩︎