lesson

Updated 1 month ago Β· 5 views
If you repeatedly press the cos button on your calculator starting from any number, the display always marches straight toward 0.739085....
What does this mysterious path look like when we draw it on a graph, and why do some formulas spiral in while others step cleanly like stairs?
The Two Lines of Iteration
An iteration is the process of repeatedly feeding the output of a function back in as its next input, written as xn+1β=g(xnβ).
A fixed point is a value Ξ± where the input equals the output, meaning g(Ξ±)=Ξ±, which marks the intersection of y=g(x) and the line y=x.
πInteractive diagram
To move from any estimate xnβ to the next, we go vertically to the curve y=g(x) to evaluate the value, then horizontally to the line y=x to turn that y-value into our next x-value.
What happens if the slope of our curve stays positive between 0 and 1?
The Staircase Pattern
When the derivative satisfies 0<gβ²(x)<1 near the root, each new value stays on the same side of the root as the previous value, producing a staircase diagram.
Let's trace g(x)=x+2β starting at x0β=0 to find the positive root of x2βxβ2=0.
πInteractive diagram
First, x1β=g(0)=2ββ1.414. Next, x2β=g(1.414)=3.414ββ1.848.