M4.10.8 Chapter 8
Solving with graphs and trials
Two graphs cross at a point. What does that point have to do with solving an equation?
Your guess
Pick one before you read on. It is fine to be wrong.
By the end you can
- Solve an equation by finding where two graphs meet
- Find a root between two numbers by trying values
Some equations are hard to solve with algebra, but a graph can help. Take x² = x + 2. Draw two graphs, y = x² and y = x + 2. At a point where they cross, the two y values are equal. So x² = x + 2 there.
In general, to solve f(x) = g(x), draw y = f(x) and y = g(x) on one grid. The x values of the crossing points are the solutions. Each crossing point is called an intersection.
Worked example
Use the graphs of y = x² and y = x + 2 to solve x² = x + 2.
- Draw y = x² and y = x + 2 on one grid.
- The graphs cross at A (−1, 1) and B (2, 4).
- The x values of the crossing points are the solutions: x = −1 and x = 2.
- Check x = 2: x² = 4, and x + 2 = 2 + 2 = 4. The two sides agree.
Answer: x = −1 or x = 2.
The same idea works for any pair of graphs. To solve 2ˣ = 10, draw y = 2ˣ and the flat line y = 10, and read the x value where they meet. A graph gives an estimate, because you can read it only to the accuracy of the drawing.
To get closer, use trials. A root of f is a value of x with f(x) = 0. It is where the graph of y = f(x) crosses the x axis. Take f(x) = x³ + x − 3. Its graph crosses the x axis once, near x = 1.2.
Work out f(x) for some values of x. Suppose f is negative at one value and positive at another. If the graph has no break between them, it must cross the x axis between those values. There is a root there.
Worked example
f(x) = x³ + x − 3. Show that f has a root between 1 and 2.
- Work out f at x = 1 and x = 2.
- f(1) = 1 + 1 − 3 = −1.
- f(2) = 8 + 2 − 3 = 7.
- f(1) is negative and f(2) is positive. The graph has no break, so it crosses the x axis between 1 and 2.
Answer: There is a root between 1 and 2.
Now close in on the root. Try values between 1 and 2, in steps of 0.1. Look for the place where f changes sign.
Worked example
f(x) = x³ + x − 3 has a root between 1 and 2. Find it to one decimal place.
- Try values in steps of 0.1. We look for a change of sign.
- f(1.2) = 1.728 + 1.2 − 3 = −0.072, which is negative.
- f(1.3) = 2.197 + 1.3 − 3 = 0.497, which is positive.
- The root is between 1.2 and 1.3. To decide how to round, try the middle value: f(1.25) = 1.953125 + 1.25 − 3 = 0.203125.
- f(1.25) is positive, so the root is between 1.2 and 1.25. It is below 1.25, so to one decimal place the root is 1.2.
Answer: x = 1.2 (to one decimal place).
The middle value matters. Between 1.2 and 1.3, the answer to one decimal place could be 1.2 or 1.3. Trying the middle value, 1.25, shows on which side of it the root lies.
See it three ways
With things
Amina has a plant 10 cm high that grows 2 cm each day. Ravi has a plant 4 cm high that grows 4 cm each day. When are the two plants the same height?
As a picture
In words
The lines cross where the two heights are equal. That is after 3 days, when both plants are 16 cm high.
In symbols
10 + 2d = 4 + 4d, so 6 = 2d and d = 3. The height is 10 + 2 × 3 = 16 cm.
Try it
Close in on a square root
You need: a calculator, or paper and a pencil.
- We want x with x² = 7. Try x = 2 and x = 3 first.
- Then try 2.5, 2.6, 2.7 and 2.65. For each, write whether x² is lower or higher than 7.
- Find the two values closest together that have 7 between their squares.
What you will see: 2.6² = 6.76 is low and 2.65² = 7.0225 is high, so the solution is between 2.6 and 2.65. To one decimal place, it is 2.6.
A wrong idea many people have
The solutions of x² = x + 2 are the y values of the crossing points.
Why it feels right: The crossing points are where the graphs meet, and the heights seem to be the answers.
The test that breaks it: The crossing points are (−1, 1) and (2, 4). Put x = 4 into the equation: 4² = 16, but 4 + 2 = 6. They are not equal. Put x = 2: 2² = 4 and 2 + 2 = 4.
What is true: The equation asks for the x values where the two rules agree. Read the x value of each crossing point, going down to the x axis.
A wrong idea many people have
If f changes sign between two numbers, there must be a root between them.
Why it feels right: The graph goes from below the axis to above it, so it seems it must cross the axis.
The test that breaks it: Take f(x) = 1/x. Then f(−1) = −1 and f(1) = 1, a change of sign. But 1/x is never zero. The graph has a break at x = 0 and jumps across the axis without touching it.
What is true: A sign change shows a root only when the graph has no break between the two numbers. Graphs made only of numbers and positive whole number powers of x, such as x³ + x − 3, have no breaks.
Key words
- intersection
- a point where two graphs cross.
- root
- a value of x for which f(x) = 0. It is where the graph of y = f(x) meets the x axis.
Back to your guess
The answer is C: The x value of the point is a solution of the equation.
At a crossing point, the two graphs have the same x and the same y. So at that x, the two rules give the same output. That means the x value solves the equation that says the two rules are equal.
Check yourself
Try each one before you look. A wrong answer tells you where to go next.
The graphs of y = x² and y = 2x + 3 cross at the points shown. What are the solutions of x² = 2x + 3?
See the answer
x = −1 or x = 3
The solutions are the x values of the crossing points C (−1, 1) and D (3, 9). Check x = 3: x² = 9, and 2x + 3 = 9.
f(x) = x² − 5. Then f(2) = −1 and f(3) = 4. Where does f have a root?
See the answer
Between 2 and 3.
f(2) is negative and f(3) is positive, and the graph of x² − 5 has no break. So it crosses the x axis between 2 and 3.
For f(x) = x² − 5 we find f(2) = −1, f(2.5) = 1.25 and f(3) = 4. Where is the root now?
See the answer
Between 2 and 2.5
f(2) is negative and f(2.5) is positive, so the sign changes between 2 and 2.5. The root is in that smaller gap.
The graphs of y = 2ˣ and y = 20 are drawn. Which is the best estimate of the solution of 2ˣ = 20?
See the answer
4.3
Go straight down from S to the x axis. The reading is between 4 and 4.5, about 4.3. Check: 2⁴ = 16 and 2⁵ = 32, and 20 lies between them.
The graphs of y = f(x) and y = g(x) cross at a point. What does the x value of that point tell you?
See the answer
It is a solution of the equation f(x) = g(x).
At the crossing point both graphs have the same y value for that x. So f(x) = g(x) is true there, and x is a solution.
- If you chose A: The x value is read along the bottom axis. The height of the point is the y value, a different number. Go to M4.10.8.
- If you chose B: That would be where the graph of f meets the x axis. At a crossing of two graphs, f(x) and g(x) are equal, but not necessarily 0. Go to M4.10.8.
- If you chose C: The gradient is how steep a graph is, and the two graphs usually have different gradients where they cross. Go to M4.10.8.
f(x) = 2/x. We find f(−2) = −1 and f(4) = 0.5. Does f have a root between −2 and 4?
See the answer
No. There is a break in the graph at zero, and the graph never meets the x axis.
The two branches of 2/x never touch the x axis. The graph jumps from below the axis to above it across the break at zero. So the change of sign does not mean a root.
From an earlier chapter
A tangent to a distance time curve passes through (1, 3) and (5, 19), with distance in m and time in s. What is the speed, in m/s?
See the answer
4 m/s
The rise is 19 − 3 = 16 m and the run is 5 − 1 = 4 s. The gradient is 16 ÷ 4 = 4, so the speed is 4 m/s.
f(x) = x² − 7. Find f(2.8).
See the answer
0.84
2.8² = 2.8 × 2.8 = 7.84. Then 7.84 − 7 = 0.84.
x² = 30. The positive solution lies between two whole numbers. What is the smaller one?
See the answer
5
5² = 25 is below 30 and 6² = 36 is above 30. So the solution is between 5 and 6, and the smaller number is 5.
Keep it
Copy this into your exercise book.
Solve f(x) = g(x): read the x values where the graphs cross. Roots: where f changes sign, if there is no break. Narrow the gap by trying values.
Draw: A line and a curve crossing at two points, with their x values marked on the x axis.