Try to solve with algebra. Taking logarithms gives , which still has in two incompatible places. Try : one side is periodic and one is a straight line, and no identity connects them. These are not trick questions. Equations that mix families — an exponential with a polynomial, a trig function with a line, a logarithm with anything — usually have no algebraic solution at all, and they come up constantly when two models are compared: when does one town's population overtake another's, when does a cooling drink reach room temperature plus five degrees? Mathematicians do not give up on these. They switch to methods that find the answer to any accuracy you ask for, and those methods are the subject of this lesson.
Turning an equation into a zero-finding problem
Every equation can be rewritten with everything on one side. Define . Then exactly when , so the solutions of the equation are the zeros of — the -intercepts of a single graph. This one move pays off three ways. You only have to look at one curve and find where it meets the -axis, which is easier to read than where two curves cross. The sign of tells you which side is bigger: means , which is exactly what you need for inequalities. And a change of sign in between two inputs is a numerical signal that a solution lies between them, which is the basis of the bisection method.
Reading intersections with graphing technology
With a graphing calculator or graphing software you can either graph and and use the intersect feature, or graph and use the zero feature. The danger is the window. Graph and for and you will see the crossings at and and miss the third one entirely, near , because it is off the screen. Before trusting a graph, think about end behaviour: as , while grows, so is negative far to the left; at it is positive. A sign change between them guarantees another root. Check exact-looking answers by substitution — confirms — and report the others to the accuracy asked for, in radians for any trig equation.
| x | −2 | −1 | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|---|---|
| −3.75 | −0.5 | 1 | 1 | 0 | −1 | 0 | 7 | |
| Sign | − | − | + | + | 0 | − | 0 | + |
Sign changes and the bisection method
If is continuous on — its graph has no breaks — and and have opposite signs, the graph must cross the axis somewhere between them. Bisection turns that fact into an algorithm. Evaluate at the midpoint . If has the same sign as , the root is in ; otherwise it is in . Keep the half that still has a sign change and repeat. Every step halves the interval, so after steps an interval of width has shrunk to : ten halvings take a width of 1 below . You stop when the required accuracy is guaranteed — for example, when both endpoints round to the same value at the stated number of decimal places. Bisection is slow compared with a calculator's built-in solver, but it never fails on a continuous function with a sign change, and it is how you can be sure of every digit you report.
| Step | Interval [a, b] | Midpoint m | h(m) = cos m − m | Keep |
|---|---|---|---|---|
| 1 | [0, 1] | 0.5 | 0.3776 (+) | [0.5, 1] |
| 2 | [0.5, 1] | 0.75 | −0.0183 (−) | [0.5, 0.75] |
| 3 | [0.5, 0.75] | 0.625 | 0.1860 (+) | [0.625, 0.75] |
| 4 | [0.625, 0.75] | 0.6875 | 0.0853 (+) | [0.6875, 0.75] |
| 5 | [0.6875, 0.75] | 0.71875 | 0.0339 (+) | [0.71875, 0.75] |
Inequalities and applied problems
To solve , find the solutions of first; they are the only places where the inequality can switch from true to false. Then read the sign of on each interval between them, from the graph or by testing one point. For , the sign row above gives or (approximately). Endpoints are included for and excluded for . The same reasoning answers applied questions. Suppose Town A has 12 000 people growing by 3 percent per year, , and Town B has 18 000 people growing by 200 per year, . The equation mixes an exponential with a line, so you graph : it is negative at and positive at , and technology places the zero at years. So Town A is larger for — and because exponential growth eventually beats linear growth, it stays larger.