Fixed Point Iteration

Solve x = g(x) numerically: enter your g(x) expression, initial guess, tolerance, and see every iteration in a table until convergence.

Parameters

Quick examples

Enter parameters and click Run Iteration

Summary

Solve x = g(x) numerically: enter your g(x) expression, initial guess, tolerance, and see every iteration in a table until convergence.

How it works

  1. Express your equation in the form x = g(x) and enter g(x) in the input field.
  2. Provide an initial guess x0 close to the expected root.
  3. Set a convergence tolerance (e.g. 0.0001) and a maximum iteration count.
  4. Click "Run Iteration" to compute x_(n+1) = g(x_n) repeatedly.
  5. Each step is displayed in a table showing n, x_n, g(x_n), and the absolute error |x_(n+1) - x_n|.
  6. Iteration stops when the error falls below the tolerance (converged) or the maximum count is reached (diverged or slow convergence).

Use cases

  • Find roots of transcendental equations like cos(x) = x.
  • Verify fixed-point iteration convergence in numerical analysis courses.
  • Explore how the choice of g(x) and x0 affects convergence speed.
  • Demonstrate divergence when |g'(x)| >= 1 near the root.
  • Solve engineering equations iteratively without needing derivatives.
  • Cross-check hand-computed iteration tables for homework problems.

Frequently Asked Questions

Last updated: 2026-06-10 · Reviewed by Nham Vu