Differential Equations & Numerical Methods · BE5B01DEN · Topic 8 of 13
Finding roots numerically: bisection, Newton, iteration
Week 8. Bisection always works but is slow; Newton is fast but needs a good start; fixed-point iteration needs a contraction.
Key ideas
Bisection
If f is continuous and f(a)f(b)<0, there is a root in [a,b]. Take the midpoint and keep the half where the signs still differ; the length halves each time and convergence is linear.
Newton and secant methods
Newton replaces f by its tangent: xₖ₊₁=x_k−f(x_k)/f′(x_k). It has order 2 at a simple root and order 1 at a multiple root; the secant method avoids f′ and has order (1+√5)/2≈1.6.
Fixed-point iteration and contractions
Rewrite f(x)=0 as x=φ(x) and iterate xₖ₊₁=φ(x_k). If |φ′|≤q<1 on an interval mapped into itself, φ is a contraction (Banach), the fixed point is unique, and the error is bounded by q/(1−q)·|xₖ₊₁−x_k|.
In one line: Different rewrites of the same equation give different iterations: check |φ′| near the root before iterating.
Formulas
- Bisection
- Newton and secant methods
- Fixed-point iteration and contractions
Practice with worked solutions
Question 1
Run the bisection method on [0, 1] and give the third midpoint m₂ (with m₀ = 1/2).
Worked solution
Answer: 3/8
Keep the half where f changes sign.
Question 2
Bisection starts on an interval of length 1 and stops when the interval length is below 0.001. Find the smallest k with b_k − a_k < 0.001.
Worked solution
Answer: 10
Solve 2⁻ᵏ < 10⁻³.
Question 3
Apply Newton’s method and give x₂.
Worked solution
Answer: 17/12
Use xₖ₊₁ = x_k/2 + 1/x_k.
More Differential Equations & Numerical Methods practice in Ucenly
Sources
Written by Ucenly. Based on the BE5B01DEN course materials:
- Course card BE5B01DEN (Bílá kniha), p. 1
- Lecture slides: Roots of functions numerically (edens_n4roots.pdf), p. 1, 3, 4, 6
- Habala: Ordinary Differential Equations and Numerical Analysis (dnbook.pdf), p. 197, 219
- Homework 7 (edenhw07.pdf), p. 1
- Homework 8 (edenhw08.pdf), p. 1