Numerical Methods
Most equations cannot be solved exactly. Numerical methods find a root to any required accuracy: first locate it between two values by a sign change, then home in with an iteration built from a rearrangement of the equation.
Locating a root
If is continuous and and have opposite signs, then has a root between and .
To show a root lies between and , evaluate and , state their signs, and say "change of sign, so a root lies in ". Graphically, a root of is where the two graphs cross; sketching them shows how many roots there are and roughly where.
Show that the equation has a root between and .
Solution
Let . and . There is a change of sign, and is continuous, so a root lies between and .
By sketching and on the same axes, show that has exactly one real root, and find two consecutive integers between which it lies.
Solution
decreases from toward ; increases without bound. They cross exactly once. With : , . The root lies between and .
Iteration
Rearrange into the form . Starting from near the root, compute
If the sequence settles to a fixed value , then , so is a root of the original equation.
- Show that the given iterative formula is a rearrangement of the equation (or derive it from the given rearrangement).
- Substitute and compute using the calculator's ANS key, writing each to at least one more decimal place than required.
- Stop when two successive values agree to the required accuracy, and state the root to that accuracy.
Use the iterative formula with to find the root of correct to 3 decimal places.
Solution
, , , .
The root is (3 d.p.).
Show that the equation can be written in the form , and use with to find the root correct to 2 decimal places.
Solution
directly. Iterating from : , , , , , , , .
The values settle at (2 d.p.).
The equation has a root near . Show that the iteration starting from does not converge to it.
Solution
, , , , . The values jump around and do not settle near .
A different rearrangement, , gives , which converges.
Why some rearrangements work
An iteration converges near a root when there; the closer to , the faster. You are not required to know this condition, but you are expected to understand that a rearrangement can fail, and to use the one the question provides.
Do not round intermediate values. Keep the full calculator value in ANS and only round when you report the answer. Rounding each step can make the sequence appear to converge to the wrong digits.
"Correct to 3 decimal places" is checked by seeing that consecutive iterates agree when rounded to 3 d.p.; write at least to 4 d.p. so the examiner can see the agreement. When asked to "verify" the root to a given accuracy, show a sign change on at the two ends of the rounding interval, e.g. and .
Practice
- Show that has a root between and .
- Show that this equation can be written as and use the iteration with to find the root to 3 d.p.
- Show that has a root in and find it to 2 d.p. using with .
- Verify that is a root of correct to 3 d.p. by considering and .
Answers
- , : sign change.
- , , , , : root .
- : , . Iteration: ; root .
- , : sign change, so the root is to 3 d.p.