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: A cosine and a line
Section titled “Example 2: A cosine and a line”Solve , where is in radians. Give the answer to 2 decimal places.
Solution. Sketch and . Since is always between and , any crossing needs , that is, . On that interval is decreasing (it falls from at until ), while the line is increasing, so they can cross at most once. And they do cross: at the cosine is above the line (), and at it’s below (). So there is exactly one solution.
Let and narrow in (calculator in radian mode):
The sign changes between and (in fact between and ), so the solution rounds to
Check: and , very close. ✓
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. Narrow in on each crossing 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 .
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
Graphing technology is allowed. For every equation, say what you graphed, what window you used, and why there are no other solutions. Trig functions use radians.
Foundations
Section titled “Foundations”H1. (Foundations) Consider the equation , with in radians.
- (a) Explain why every solution must satisfy .
- (b) Explain why there is no solution with , and exactly one with .
- (c) Find the solution to 2 decimal places, showing a sign change across the rounding interval.
H2. (Foundations) The graphs of and meet exactly three times. (You may use a graph to confirm this.)
- (a) Show that and are exact solutions of .
- (b) Let . Show that changes sign between and , then find the third solution to 2 decimal places.
- (c) Use the graph to solve .
H3. (Core) (IB style) Use your GDC to solve , giving answers to 3 significant figures where they are not exact.
- (a) State what you graphed and a suitable viewing window.
- (b) Give all the solutions, and explain why there are none for and none for .
- (c) Hence solve .
H4. (Core) Find all solutions of in the interval , to 2 decimal places.
- (a) Explain why every solution must lie in .
- (b) A classmate graphs both sides in a window with and and thinks there are only two intersections. Zoom in near . What do you find?
- (c) Give all the solutions.
H5. (Core) Two cups of tea are poured at the same moment (hypothetical models). Tea in an ordinary mug cools so that its temperature after minutes is degrees Celsius. Tea in a travel mug cools more steadily: , a model meant only for the first hour, .
- (a) Which tea starts hotter, and by how much?
- (b) When are the two teas the same temperature in the first hour? Give to 2 decimal places and the common temperature to the nearest degree.
- (c) For which times in the first hour is the travel-mug tea hotter?
- (d) If you extend the window past , the graphs cross again near . Explain why that second crossing shouldn’t be trusted.
H6. (Core) A city has people and grows by a year, so after years. A nearby suburb has people and grows by people a year: . (These are hypothetical models.)
- (a) Explain why the graphs must cross twice, even though the suburb starts smaller.
- (b) Find both times when the populations are equal, to 2 decimal places.
- (c) For what times is the suburb larger than the city?
Challenge
Section titled “Challenge”H7. (Challenge) Without finding them all, count the solutions of , with in radians.
- (a) Explain why every solution lies in .
- (b) Work along the positive -axis one half-wave of at a time, and count the crossings in each. Then use symmetry to count all solutions.
- (c) Find the largest solution to 2 decimal places.
H8. (Challenge) Jordan solves by graphing both sides in the window , . Jordan sees two intersections, finds and , and writes “two solutions.”
- (a) At , which graph is on top? Use end behaviour to explain why there must be another solution off the screen.
- (b) Show that is an exact solution.
- (c) Solve .
H9. (Challenge) Consider , where is a constant.
- (a) Graph and the line for a few values of (a slider helps). Describe how the number of solutions depends on .
- (b) Find, approximately (to 2 decimal places), the positive value of for which there is exactly one solution, and the solution for that .
- (c) Are there any other values of that give exactly one solution? Explain.
H10. (Challenge) Solve , giving each answer to 3 significant figures.
- (a) Graph both sides in a standard window. How many intersections do you see?
- (b) Evaluate at and . What does this tell you?
- (c) Find both solutions, and explain why there are no more.