Basic 1
g(x) = cos(x); x₀ = 0.5
Expected result: x ≈ 0.7390851332
Calculation steps
- xₖ₊₁ = cos(xₖ), x₀ = 0.5
- x₁ ≈ 0.877583; x₂ ≈ 0.639012; x₃ ≈ 0.802685
- g([0, 1]) ⊂ [0, 1]; |g′(x)| ≤ sin(1) < 1
- x ≈ 0.7390851332
Source: Original exercise
Solve x = g(x) with successive approximations, cobweb diagrams and local derivative diagnostics.
g(x) = cos(x); x₀ = 0.5
Expected result: x ≈ 0.7390851332
Source: Original exercise
x² − 2 = 0; g(x) = x − (x² − 2)/3; x₀ = 1
Expected result: x ≈ √2
g(x) = x − (x² − 2); x₀ = 1; k = 8
Expected result: 2, 0, 2, 0, 2, 0, 2, 0
Expected: a two-cycle, not convergence.
A rigorous error bound needs a known uniform contraction constant q < 1 on an invariant interval. A derivative at one point is not enough.