Solving Equations and Inequalities Graphically
Some equations can’t be solved with algebra at all. Try isolating in : taking logs doesn’t help, because is stuck both in an exponent and outside one. Equations like this, which mix different function types, come up all the time in real problems. You can still solve them, very accurately, by using graphs to find roughly where the solutions are and then narrowing in with numbers. Trig functions here use radians.
Key ideas
Section titled “Key ideas”Two ways to use a graph
Section titled “Two ways to use a graph”To solve :
- Graph both sides. Graph and on the same axes. The solutions are the -coordinates of the points where the graphs intersect.
- Find zeros. Move everything to one side: . Graph . The solutions are its zeros (-intercepts).
Both give the same answers. The first is good for seeing how many solutions there are and roughly where. The second is handy for narrowing them down, because you only have to watch one sign.
Narrowing in with a sign change
Section titled “Narrowing in with a sign change”If and have opposite signs (and has no breaks between them), the graph must cross the -axis somewhere between and . So you can trap a solution:
- Find two values where changes sign, using the graph or a table.
- Test a value in between, and keep the half where the sign still changes.
- Repeat until the interval is small enough.
To round to 2 decimal places, show a sign change across the rounding interval. For example, if and have opposite signs, the solution is between them, so it rounds to .
Inequalities
Section titled “Inequalities”To solve , find where the graphs intersect first. Those points split the -axis into intervals, and on each interval one graph stays below the other. The solution is the set of intervals where the graph of is below the graph of . (This is the same idea as polynomial inequalities, but the boundary points now come from a graph instead of from factoring.)
Technology
Section titled “Technology”Graphing technology such as Desmos finds intersection points and zeros instantly, and it’s a great way to check your work. But you should always be able to explain where the answer came from: an intersection, a zero, or a sign change. A by-hand table with a calculator works anywhere.
Worked examples
Section titled “Worked examples”Example 1: An exponential and a line
Section titled “Example 1: An exponential and a line”Solve . Give the answers to 2 decimal places.
Solution. Graph and .
The graphs cross twice: once between and , and once between and . A line can’t cross an exponential curve more than twice, so these are all the solutions.
Let and narrow in on each crossing (values to 4 decimal places).
- and , so the first solution is between them and rounds to .
- and , so the second solution rounds to .
Check: and . They agree to within rounding. ✓
Example 2: Cosine equals x
Section titled “Example 2: Cosine equals x”Solve , where is in radians. Give the answer to 2 decimal places.
Solution. Sketch and . The line is above for , and below for , so any crossing must have . For , is positive while is not, so there’s no crossing there either. Between and , falls from while rises from , so they cross exactly once.
Let and narrow in (calculator in radian mode):
The sign changes between and (in fact between and ), so the solution rounds to
Check: , very close to . ✓
Example 3: An inequality
Section titled “Example 3: An inequality”Solve . Give the boundary values to 2 decimal places.
Solution. First solve the equation . Graph both sides.
The graphs meet three times. One crossing is exact: at , both sides equal . Narrow in on the other two with :
So the crossings are at , and .
Now test a value in each interval to see where :
| Interval | Test | ? | ||
|---|---|---|---|---|
| no | ||||
| yes | ||||
| no | ||||
| yes |
The solution is approximately
Notice the last interval: it’s easy to miss if your graph stops at . Because exponentials eventually beat polynomials, must overtake again somewhere.
Example 4: Two growing towns
Section titled “Example 4: Two growing towns”Town A has people and grows by a year, so after years its population is . Town B has people and grows by people a year: . When will the towns have the same population? Answer to 2 decimal places.
Solution. Solve . This mixes an exponential and a linear function, so use a graph or a table. Let :
changes sign between and , so the populations are equal after about years, when both towns have about people. Before that Town B is bigger, and after it Town A’s exponential growth keeps it ahead for good.
Common mistakes
Section titled “Common mistakes”Trying to solve with algebra that can’t work. Taking logs of gives , which still has in two different kinds of places. Recognize these equations early and switch to a graph.
Stopping after the first solution. Graph over a wide enough window to see every crossing. In Example 3, the crossing near is far from the others.
Rounding from a single nearby value. Seeing that is small doesn’t prove the answer rounds to . Show a sign change between and .
Using degree mode. In , is a real number of radians. In degree mode you’ll get a completely different (and wrong) answer.
Reading the wrong intervals for an inequality. is where the graph of is below the graph of . Test a point in each interval to be sure.
Giving the y-coordinate as the solution. The solutions of are the -coordinates of the intersection points. The -coordinate is just the common value.
Practice
Section titled “Practice”1. (Warm-up) The equation can’t be solved algebraically.
- (a) Explain why it has exactly one solution.
- (b) Show that the solution lies between and , then find it to 2 decimal places.
Solution
(a) is always increasing and is always decreasing, so their graphs can cross at most once. And they do cross, since starts below the line on the left and ends up above it on the right.
(b) Let . Then and , so there’s a solution between and .
Narrowing in: , , . The sign changes between and , so .
2. (Warm-up) Show that has a solution between and , and find it to 2 decimal places.
Solution
Let . Then and : a sign change.
The sign changes between and , so .
3. (Warm-up) Without solving, explain how many solutions has ( in radians). Use a sketch of both sides.
Solution
is always between and , and is between and only for . So all solutions are in that interval.
is a solution. For : starts out rising faster than the line (at , ), but by it’s below it (), so they cross once between and . For , is negative while is positive, so there are no more crossings. Both sides are odd functions, so the picture for is the mirror image.
There are solutions: and one each near . (Narrowing in gives .)
4. (Core) Solve . Give all solutions to 2 decimal places.
Solution
The rational root candidates don’t work ( and ), so it doesn’t factor nicely. Use a table of to find sign changes:
There are sign changes in , and : three solutions, the most a cubic can have. Narrowing in:
- and , so .
- and , so .
- and , so .
5. (Core) Solve . Give boundary values to 2 decimal places where needed.
Solution
Solve first. is exact: . A line meets an exponential at most twice; let . and , so there’s another crossing between and . Narrowing in: and , so it’s at .
Test each interval:
- : , so . ✓
- : . ✗
- : . ✓
The solution is approximately or .
6. (Core) Solve . Give the answer to 2 decimal places.
Solution
is increasing and is decreasing, so there’s at most one solution, and the domain needs . Let .
and : a sign change. Narrowing in:
The sign changes between and , so .
7. (Core) A town has people and grows by a year. Its water system can serve people after years, as it’s gradually upgraded. After how many years will the population exceed the system’s capacity? Answer to 2 decimal places.
Solution
Solve . Let .
Narrowing in between and : and . Checking the rounding interval: and , so .
The population exceeds the system’s capacity after about years, that is, during the ninth year.
8. (Challenge) Solve , with in radians. Give the boundary values to 2 decimal places.
Solution
Both sides are even functions, so the graph is symmetric about the -axis. At , . As moves away from , decreases and increases, and for , (with equality impossible, since ). So there’s exactly one crossing with and its mirror image.
Let . and , so the crossing is at , and by symmetry at .
Since , the inequality holds between the crossings:
9. (Challenge) Find all solutions of , with in radians, to 2 decimal places.
Solution
is between and , so any solution has . is a solution. Both sides are odd, so solutions come in pairs .
For , let . Near , rises faster than (for example, ), but . So there’s a crossing between and .
The sign changes between and , so .
The solutions are and .