Fixed Point Iteration Calculator
Solve x = g(x) by repeated substitution.
What it does
Fixed point iteration solves an equation written in the form x = g(x). Starting from a guess, you repeatedly apply g and hope the sequence settles on a value that satisfies the equation.
Norwegian University of Science and Technology notes define convergence rate and order for such iterations, and Gordon College handouts explain that many root finding methods can be viewed as fixed point iterations.
The method is simple but not always convergent. A sufficient condition is that the absolute value of g prime is less than one near the fixed point, which makes g a contraction.
This tool offers three built in functions, a starting value and an iteration count. It reports the estimate and the residual absolute difference between x and g(x).
If the sequence diverges, choose a different starting value or a different rearrangement of the original equation.
How to use
- Choose a built in function g(x).
- Enter a starting value near the expected fixed point.
- Enter the number of iterations, up to 500.
- Read the fixed point estimate in the main result.
- Check the residual to see how well x equals g(x) is satisfied.
- Try a different starting value if the sequence does not settle.
Formula
- g
- The iteration function.
- x(n)
- The estimate after n iterations.
- fixed point
- A value r with r = g(r).
- contraction
- A function whose slope magnitude is below one near the fixed point.
The engine applies g repeatedly and stops early only if it detects a non finite value. It does not test the contraction condition automatically.
Worked example
Example: square root by fixed point
Function g(x) = sqrt(x + 2), starting value 1, 20 iterations.
- The fixed point satisfies x = sqrt(x + 2), so x squared equals x + 2 and x = 2.
- The first iteration gives sqrt(3), about 1.73205081.
- The next gives sqrt(3.73205081), about 1.93185165.
- Each step moves closer to 2.
- After 20 iterations the estimate is 2.0000000000 with residual effectively zero.
- For g(x) = cos(x) the same method converges to about 0.73918.
Reference table
| Function | Fixed point | Starting value |
|---|---|---|
| sqrt(x + 2) | 2 | 1 |
| cos(x) | about 0.73918 | 1 |
| 1 + 1/x | about 1.61803 | 1 |
Limits
- Only three built in functions are offered.
- Convergence is not guaranteed for every starting value.
- The reciprocal function rejects a zero estimate.
- Results are shown to ten decimal places.
Common mistakes
- Assuming every rearrangement of an equation converges.
- Starting at a value where g is undefined.
- Expecting quadratic convergence from a simple fixed point iteration.
- Confusing the residual with the true error in the root.
- Using too many iterations when the sequence has already settled.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is a fixed point of g?
A value r such that r = g(r).
What is the fixed point of sqrt(x+2)?
2.
What condition encourages convergence?
The magnitude of g prime should be less than one near the fixed point.
Questions
What is fixed point iteration?
Repeatedly applying a function to approach a value where x equals g(x).
Does it always converge?
No. The choice of g and the starting value matter.
How is it related to root finding?
Solving f(x)=0 can be rewritten as x=g(x) for a suitable g.
What is the residual?
The absolute difference between x and g(x).
Can I enter my own g?
Not on this page. Three built in functions are available.
What happens if it diverges?
Choose another start or a different rearrangement.