不动点的收束 · 蛛网每绕一圈,误差乘上不动点处的斜率;连斜率一起读,几步就合拢;有理读数却总差一道缝How fixed points close in · each turn of the cobweb multiplies the error by the slope at the fixed point; read the slope too and it closes in a few steps; a rational reading always misses by a seam
SCENE —步STEP0还差TO GO—
理论接口 · 这个页面在演示什么Theory interface · what this page shows
舞台是蛛网图:青色曲线 y = f(x)、灰色直线 y = x,两者的交点就是不动点。从起点竖直走到曲线,再水平走回直线,就是按一次 f。本页看的是这条折线怎样收进不动点、收得多快。本页是数值演示,不是证明。
The stage is the cobweb plane: the cyan curve y = f(x) and the grey line y = x meet at the fixed point. Going up or down to the curve from the start and then across to the line is one application of f. The page shows how that path closes in on the fixed point, and how fast. It is a numerical illustration, not a proof.
Iteration. One application of f turns the error δₖ = xₖ − x* into δₖ₊₁ ≈ f′(x*)·δₖ. The slope of the cosine at θ* is −sin θ* = −λ ≈ −0.6736; the slope of 1 + 1/x at φ is −1/φ² ≈ −0.382. The minus sign makes the path close in from alternating sides, and the size is the ratio by which the error shrinks per step. The dashed magenta line on the stage is the tangent at the fixed point; for the cosine, the dashed grey line has the steepest slope on [0, 1], −sin 1 ≈ −0.8415, the global constant of the contraction principle (a literature result, not formalized in this book; the qualitative convergence of the cosine iteration is an application of existing results, see Example ex-ch33-mutual-cosine-monotonic-lock of chapter 34).
The unit circle. The point P = (cos θ*, sin θ*) = (θ*, λ) lies on the unit circle: its cyan abscissa θ* is where the loop stops, its magenta ordinate λ is how fast it closes, and (θ*)² + λ² = 1. This is the reading of chapter 24, §24.5.
Newton. At xₖ, follow the tangent of the curve to the line y = x; it lands at xₖ − (xₖ − cos xₖ)/(1 + sin xₖ), which reads one quantity more than the plain cosine: sin xₖ. Once xₖ is near θ*, the error obeys δₖ₊₁ ≈ θ*/(2(1 + λ))·δₖ² (a literature result, not formalized in this book). The page takes |xₖ − θ*| ≤ 0.5 as that neighbourhood: there |δₖ₊₁| ≤ C·δₖ² with C = cos(θ* − 0.5)/(2(1 + sin(θ* − 0.5))) ≈ 0.393, and 0.5·C < 1, so an orbit that enters it stays; the readout compares the ratio with θ*/(2(1 + λ)) only when the previous step was already inside, and steps from outside are grey dots in the lower right plot. From a start near −π/2, 1 + sin x₀ is close to 0, the first step jumps far, and five steps need not reach the neighbourhood. For every start on the page, 1 + sin xₖ is nonzero at every step, so the landing formula above is always defined (a numerical observation). The readout “steps the iteration needs” is counted by the page, comparing the two orbits step by step.
Readings. The continued fraction of θ* is [0; 1, 2, 1, 4, 1, 40, 1, 9, 4, 2, 1, …] (a numerical observation). For each convergent q = a/b the magenta upright is the residual |cos q − q|. The part of it from the line to the level y = θ* is exactly |q − θ*|; the endpoint of the upright on the cosine curve stays inside the wedge of the two dashed grey lines, because on [0, 1] the slope of the curve lies between 0 and −sin 1. b² times the residual always stays below 1 + sin 1. The ruler D takes the a/D nearest θ*: with D = 1000 it reads 0.739, whose residual is about twice that of 17/23.
What is verified. The existence and uniqueness of θ* with 0 < θ* < 1, and φ as the only positive fixed point of 1 + 1/x, are two frozen Lean theorems (the green boxes). The convergence of the cosine iteration, the condition for strict alternation and the limit of the error ratio are applications of that endpoint theorem and existing real-analysis results (Example ex-ch33-mutual-cosine-monotonic-lock of chapter 34, with no new Lean theorem); the rate for 1 + 1/x, Newton's local quadratic convergence near the fixed point and the two-sided residual bound are literature results, not formalized in this book; the decimals are numerical.