Formula Numerical methods
Change of sign method
When to use it
Locating a root of an equation that cannot be solved exactly. For f(x) = x³ − x − 1 the product f(1)f(2) is −5, below 0, so a root lies between 1 and 2. The test needs f to be continuous: for f(x) = 1/x the product f(−1)f(1) is −1, below 0, yet there is no root, because f jumps at 0.
Last checked Source: Solve equations approximately Source: Solve equations approximately qualifications.pearson.com (opens in a new tab)
Change of sign method in your study of A-level maths, set out with its source.
Worked case: Show x³ + x − 3 = 0 has a root in (1, 2).
See also Sum and product of the roots, SUVAT: v² = u² + 2as, SUVAT: s = ½(u + v)t and SUVAT: s = ut + ½at².
Result: f(1) = −1, f(2) = 7
Application 1: Show that f(x) = 2x³ − 5x + 1 has a root between x = −2 and x = −1. Step 1: Evaluate f(−2) = −5. Step 2: Evaluate f(−1) = 4. Step 3: f is continuous (a polynomial), so by the change-of-sign rule there is a root in the interval. Result: sign change: f(−2) and f(−1) have opposite signs, so a root lies in (−2, −1).
Application 2: Use the iteration xₙ₊₁ from xₙ₊₁ = (xₙ + 1)^(1/3) with x₀ = 1.0 to find x₁ to x4, to 4 decimal places. Step 1: Start with x₀ = 1.0. (Iteration repeats a substitution.) Step 2: x₁ = 1.2599, x₂ = 1.3123, x₃ = 1.3224. (Feed each output back in as the next input.) Step 3: Continue: x4 = 1.3243. (The values settle to a limit.) Step 4: The sequence converges to about 1.324. (A fixed point satisfies x = g(x).) Result: x4 = 1.3243.
Application 3: Show that f(x) = x³ + x² − 4 has a root between x = 1 and x = 2. Step 1: Evaluate f(1) = −2. Step 2: Evaluate f(2) = 8. Step 3: f is continuous (a polynomial), so by the change-of-sign rule there is a root in the interval. Result: sign change: f(1) and f(2) have opposite signs, so a root lies in (1, 2).
Points to check
- Using the sum f(a) + f(b) for f(x) = x³ − x − 1 on [1, 2]: The sign change test uses the product: f(1)f(2) = −5, which is negative; the sum 4 is positive and would hide the root.
- Looking for a zero product f(a)f(b) = 0: A root does not need the product to be zero: the product is −5, negative, and that alone signals a root between 1 and 2.
- Ignoring the signs and using |f(a)||f(b)| = 5: The signs are the whole point: the product f(1)f(2) is −5, and the absolute values give 5, which is positive whatever happens.
- Rounding every intermediate value to 2 decimals and drifting from the true limit.
Study brief
- To locate roots of f(x) = 0, the change of sign method involves considering changes of sign of f(x) within an interval of x. This technique is appropriate for continuous functions where f(x) is sufficiently well behaved. However, certain limitations exist. If the interval selected is too large, the sign may not change because there might be an even number of roots present. Furthermore, if a function is not continuous, a change in sign could occur where an asymptote exists instead of a root. This method serves as a way to locate roots in numerical methods, alongside other approaches like the Newton-Raphson method or using iterations of the form xn + 1 = f(xn) or xn+1 = g(xn). Understanding these methods is necessary for solving mathematical problems that cannot be solved analytically, as numerical methods allow for a required level of accuracy. Learners should also be able to represent convergence through staircase diagrams or cobweb diagrams.
Practise for free
Test yourself with exam-style questions and see why each answer is right or wrong.
Related formulas
-
Fixed-point iteration xₙ₊₁ = g(xₙ)
Fixed-point iteration xₙ₊₁ = g(xₙ): xₙ₊₁ = g(xₙ) converges to α if |g′(α)| < 1.
-
Newton-Raphson for square roots
Newton-Raphson for square roots: xₙ₊₁ = (xₙ + N/xₙ)/2.
-
Newton-Raphson formula
Newton-Raphson formula: xₙ₊₁ = xₙ − f(xₙ)/f′(xₙ).
-
Over- and under-estimates with the trapezium rule
Over- and under-estimates with the trapezium rule: convex curve: overestimate; concave curve: underestimate.
-
Relative and absolute error
Relative and absolute error: relative error = |approximate − exact| / |exact|.
-
Trapezium rule
Trapezium rule: ∫ₐᵇ y dx ≈ (h/2)[y₀ + yₙ + 2(y₁ + ... + yₙ₋₁)].
-
When Newton-Raphson fails
When Newton-Raphson fails: f′(xₙ) ≈ 0 ⇒ the tangent is nearly horizontal.