14.1 Locating Roots of a Function
OCR A-level Maths Year 2 · H240 · Chapter 14: Numerical Solution of Equations
What is in the full lesson (14 activities)
Every item below opens free in the course.
- Video: Locating Roots (Intro 1)
- Video: Locating Roots (Intro 2)
- Video: Locating Roots (Graphical Method)
- Video: Locating Roots example 1
- Video: Locating Roots example 2
- Video: Locating Roots example 3
- Video: Locating Roots example 4
- Video: Locating Roots example 5
- Notes: Lesson notes: Locating Roots of a Function
- Interactive lesson: Interactive lesson: Sign Change Detector
- Interactive lesson: Interactive practice: Locating Roots of a Function Practice
- Practice questions: Practice questions (8 questions, 12 marks)
- Worksheet: Worksheet: Locating Roots of a Function
- Answers: Answers and mark scheme of the Worksheet: Locating Roots of a Function
A free OCR A-level Maths Year 2 lesson for OCR A Level Mathematics A (H240) from OBA School: using a change of sign to locate roots, and knowing when the method fails (OCR H240: 1.09a, 1.09b). Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.
What you will learn
- Show that an equation f(x) = 0 has a root in a given interval by a change of sign
- State the condition that f must be continuous on the interval
- Use a change of sign on a narrow interval to show a root is correct to a given accuracy
- Explain how the method can fail: repeated roots, roots close together and discontinuities
- Rearrange g(x) = h(x) as f(x) = 0 and use sketches to count roots
Key words
- Root: A value of x for which f(x) = 0; where the graph meets the x-axis.
- Continuous: A function whose graph has no breaks, jumps or asymptotes on the interval.
- Change of sign: f(a) and f(b) have opposite signs.
- Bounds: The ends of the interval that a rounded value could have come from, such as 1.855 and 1.865 for 1.86.
- Repeated root: A root where the graph touches the x-axis without crossing it.
The change of sign method
If the graph of a continuous function is below the x-axis at x = a and above it at x = b, it must cross the axis somewhere in between. So a change of sign shows there is at least one root in the interval.
Key fact: If f is continuous on [a, b] and f(a) and f(b) have opposite signs, then f(x) = 0 has at least one root in a < x < b.
Worked example: showing a root lies in an interval
Show that x³ − 4x + 1 = 0 has a root between x = 1.8 and x = 1.9.
Let f(x) = x³ − 4x + 1. f(1.8) = −0.368 0
There is a change of sign and f is continuous (it is a polynomial).
Answer: so there is a root between 1.8 and 1.9
Always give a conclusion: name the change of sign, say that f is continuous, and state the result. These are all marks in OCR mark schemes.
Showing a root to a given accuracy
To show that a root is 1.86 correct to 2 decimal places, test the bounds 1.855 and 1.865. Any number in between rounds to 1.86, so a change of sign there proves the result.
Worked example: proving the accuracy
Show that the root of x³ − 4x + 1 = 0 in [1.8, 1.9] is 1.86 to 2 d.p.
f(1.855) = −0.0369 0
Change of sign and f continuous, so 1.855 < α < 1.865.
Answer: α = 1.86 correct to 2 decimal places
You can also narrow the interval step by step (decimal search): test 1.81, 1.82, ... until the sign changes, then repeat with the next decimal place.
When the method fails
A change of sign is evidence of a root only for a continuous function, and no change of sign does not mean no root.
- Roots close together: an even number of roots in [a, b] gives no change of sign. Use a narrower interval.
- Repeated root: the curve touches the axis, so the sign does not change, for example (x − 2)² near x = 2.
- Discontinuity: f may change sign across a vertical asymptote without a root, as for 1/(x − 2) or tan x.
Worked example: a sign change but no root
f(x) = 3/(x − 2) has f(1) = −3 and f(3) = 3.
f is not continuous at x = 2, and 3/(x − 2) is never 0.
Answer: no root, even though the sign changes
Equations of the form g(x) = h(x)
To solve g(x) = h(x), rearrange to f(x) = g(x) − h(x) = 0. A sketch of y = g(x) and y = h(x) shows how many roots there are, because each intersection is a root.
Worked example: two roots
Show that eˣ = 4 − x² has a root in [1, 2] and a root in [−2, −1].
Let f(x) = eˣ + x² − 4, which is continuous.
f(1) = −0.282 0; f(−2) = 0.135 > 0, f(−1) = −2.63 < 0
Answer: a change of sign on each interval, so there is a root in each
Common mistakes
- Not giving a conclusion, or not mentioning continuity.
- Testing 1.85 and 1.86 to show a root is 1.86 to 2 d.p. Use the bounds 1.855 and 1.865.
- Writing only "positive" and "negative" without showing the values you calculated.
- Using degrees for trigonometric functions. Use radians.
- Assuming no sign change means no root, or that a sign change always means a root.
Revision questions
Try these, then check your answers below each one.
Question 1. f(a) < 0 and f(b) > 0. What else must be true to conclude that f(x) = 0 has a root between a and b? (Choose from: f is continuous on [a, b]; f is increasing on [a, b]; f(a) + f(b) = 0; f is a polynomial of odd degree.)
Answer: f is continuous on [a, b]
Working: A change of sign only guarantees a root if the graph has no breaks: f must be continuous on the interval.
Question 2. f(x) = 1/(x − 1) has f(0) = −1 and f(2) = 1, so f(x) = 0 has a root between 0 and 2.
Answer: False
Working: False. There is a vertical asymptote at x = 1, and 1/(x − 1) is never 0.
Question 3. To show that a root is 1.15 correct to 2 decimal places, you test f at two values of x. Enter the smaller value.
Answer: 1.145
Working: Any number in [1.145, 1.155) rounds to 1.15, so test f(1.145) and f(1.155).
Related lessons
- Previous lesson: 13.3 Modelling with Differential Equations
- Next lesson: 14.2 The Newton-Raphson Method
- In this chapter: 14.3 Limitations of the Newton-Raphson Method
- In this chapter: 14.4 Fixed-Point Iteration
- In this chapter: 14.5 Limitations of Fixed-Point Iteration and Alternative Rearrangements
Continue in the full course
This lesson is section 14.1 of our free OCR A-level Maths Year 2 course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved.
Continue lesson 14.1 in the free course →