Show f(x)=2x+1 is a contraction with q=21; find the fixed point and the error bound.
x∗=2,∣xn−2∣≤(21)n∣x0−2∣
x0=0, n=8: the error =0.0078 matches the bound exactly.Show proof
∣f(x)−f(y)∣=2x−y=21∣x−y∣, so f is a contraction with q=21.
Solving x=2x+1 gives x∗=2.
Since ∣xn+1−2∣=21∣xn−2∣, induction gives ∣xn−2∣=(21)n∣x0−2∣. For x0=0, n=8, the error is 2562=0.0078125.
Show cosx is a contraction on [0,1]; explain the existence and uniqueness of the Dottie number x∗≈0.739.
∣cosx−cosy∣≤sin(1)∣x−y∣,sin(1)≈0.8415<1
n=20: the iterates cling to the Dottie number 0.739085.Show proof
By the Mean Value Theorem, ∣cosx−cosy∣=∣−sinξ∣⋅∣x−y∣≤sin(1)∣x−y∣, and sin(1)≈0.8415<1, so cos is a contraction. Also cos is decreasing on [0,1] (since (cos)′=−sin<0), so cos([0,1])=[cos1,cos0]=[cos1,1]⊂[0,1] (with cos1≈0.5403>0) — a contraction mapping [0,1] into itself.
Banach's theorem gives a unique fixed point in [0,1] — the Dottie number x∗≈0.739085 (the value is from iteration).
Prove in three lines that there is at most one fixed point.
∣x∗−y∗∣=∣f(x∗)−f(y∗)∣≤q∣x∗−y∗∣
Every start gets sucked into the same point x∗=2.Show proof