Skip to content

Search topics

Practise for free Sign in

Calculator Numerical methods

Change of sign checker

In one sentence

Tests whether a root lies in an interval.

Last checked Source: uk-dfe-alevel-maths-subject-content Source: Department for Education, GCE AS and A level subject content for mathematics (topics derived; every example and value computed here), uk-dfe-alevel-maths-subject-content www.gov.uk (opens in a new tab)

Key facts

Change of sign checker

Formula ref
f(a)f(b) < 0
Topic
Numerical methods

Inputs

  • f, a, b

Worked input

  • Input f(x) = cos x − x on [0.7, 0.8] (radians).
  • f(0.7) = 0.0648, f(0.8) = −0.1033.
  • Opposite signs, f continuous: a root lies between.
  • Test f(x) = x² − 2 on [1, 2], a continuous function whose end values should have opposite signs. f(1) = −1 and f(2) = 2, so the sign changes. A change of sign for a continuous function guarantees a root in the interval, and narrowing the interval repeatedly is the basis of the interval bisection method. Check: f is a polynomial, hence continuous, so a root lies between 1 and 2, and it is √2 ≈ 1.414.
  • Test f(x) = (x − 1.5)² on [1, 2], where both end values are the same positive number 1/4. The test reports no sign change. A root where the curve touches the axis without crossing gives no change of sign, so the test can miss it, which shows the test is a sufficient condition and not a necessary one. Check: the function does touch zero at x = 1.5, so a root exists, which shows that a failed test does not prove there is no root, it only fails to detect an even-order one.
  • Test f(x) = 1/(x − 1) on [0, 2], where f(0) = −1 and f(2) = 1 have opposite signs. The sign test seems to succeed. A change of sign across an asymptote is not a root, since the function jumps instead of passing through zero, and checking continuity on the interval is an essential part of the argument. Check: f is not continuous at x = 1, where it has an asymptote, so the change of sign is a jump and there is no root, which is why the continuity condition matters.

How to use it

  • Enter f and the interval.

Change of sign checker for your study of A-level maths: where it comes from and what it covers.

See also Trapezium rule calculator, Probability union and conditional calculator, Newton-Raphson calculator and Two-stage tree diagram calculator.

Study brief

  • For the a level maths, students should recognize that identifying sign changes is a method used to locate roots of f(x) = 0. This approach is suitable for continuous functions when examining a small interval. However, certain limitations exist regarding this method. If a selected interval is too large, the sign may not change because an even number of roots could exist within that range. Additionally, sign changes do not always indicate a root if the function is not continuous, as the change might instead occur due to an asymptote. Understanding these failures is necessary when solving equations approximately using simple iterative methods. While many mathematical problems cannot be solved analytically, these numerical methods provide a way to find approximate solutions for well behaved functions.

Practise for free

Test yourself with exam-style questions and see why each answer is right or wrong.

Start practising
Free practice, no card Start without an account Sources checked Every fact names its official source
Works on any device Phone, tablet or desktop
Contact us Questions or a correction