Iteration and numerical methods · Grade 12
In Grade 12 you learn: iteration to solve equations.
Many equations, such as x³ + x − 5 = 0, cannot be solved exactly with algebra. Numerical methods find the solution approximately, as accurately as you need: first trap the root between two values, then close in on it with an iteration formula or the Newton–Raphson method.
Key facts
- Change of sign: if f(a) and f(b) have opposite signs (and f is continuous), there is a root between a and b.
- Iteration: rearrange f(x) = 0 into x = g(x), then use xₙ₊₁ = g(xₙ) again and again.
- An iteration converges near a root α when |g′(α)| < 1.
- To show a root is 1.52 to 2 decimal places, show that f changes sign between 1.515 and 1.525.
- Keep full calculator accuracy (use the ANS key) and round only at the end.
Worked examples
Example 1
Show that x³ + x − 5 = 0 has a root between 1 and 2.
Answer: f(1) = −3 and f(2) = 5 have opposite signs
Example 2
Use xₙ₊₁ = ∛(5 − xₙ) with x₀ = 1.5 to find x₁, x₂ and x₃ to 4 decimal places.
Answer: 1.5183, 1.5156, 1.5160
Example 3
Show that the root of x³ + x − 5 = 0 is 1.516 to 3 decimal places.
Answer: f(1.5155) < 0 < f(1.5165)
Example 4
Use xₙ₊₁ = √(xₙ + 2) with x₀ = 1 to find x₁ and x₂ to 3 decimal places.
Answer: x₁ = 1.732, x₂ = 1.932
Example 5
Show that x^2 − 3x − 1 = 0 has a root between 3 and 4.
Answer: A change of sign