Cobweb plot

A cobweb plot, known also as Lémeray Diagram or Verhulst diagram is a visual tool used in the dynamical systems field of mathematics to investigate the qualitative behaviour of one-dimensional iterated functions, such as the logistic map. The technique was introduced in the 1890s by E.-M. Lémeray. Using a cobweb plot, it is possible to infer the long term status of an initial condition under repeated application of a map.

Method
For a given iterated function $$f:\mathbb{R}\rightarrow\mathbb{R}$$, the plot consists of a diagonal ($$x=y$$) line and a curve representing $$y = f(x)$$. To plot the behaviour of a value $$x_0$$, apply the following steps.


 * 1) Find the point on the function curve with an x-coordinate of $$x_0$$. This has the coordinates ($$x_0, f(x_0)$$).
 * 2) Plot horizontally across from this point to the diagonal line. This has the coordinates ($$f(x_0), f(x_0)$$).
 * 3) Plot vertically from the point on the diagonal to the function curve. This has the coordinates ($$f(x_0), f(f(x_0))$$).
 * 4) Repeat from step 2 as required.

Interpretation
On the Lémeray diagram, a stable fixed point corresponds to the segment of the staircase with progressively decreasing stair lengths or to an inward spiral, while an unstable fixed point is the segment of the staircase with growing stairs or an outward spiral. It follows from the definition of a fixed point that the staircases converge whereas spirals center at a point where the diagonal y=x line crosses the function graph. A period 2 orbit is represented by a rectangle, while greater period cycles produce further, more complex closed loops. A chaotic orbit would show a 'filled out' area, indicating an infinite number of non-repeating values.