Where two functions meet
Solving f(x) = g(x) by graph, by table and by algebra, and checking the answer.
Two phone plans, two hire companies, two savings schemes: the useful question is almost never what does this cost, but at what point does the cheaper one stop being cheaper. That is a question about where two functions agree.
Put both functions in one table, with their difference beside them, and look for the moment the difference changes sign.
Change the 20 to 30 and run it again. The crossing moves further right, which is what a bigger fixed charge should do.
The difference runs 20, 16, 12, 8, 4, 0, -4, -8. It hits exactly zero at , and that is where the two functions agree. Before 5, is the larger. After 5, is.
That is the first of the three methods, and it also shows the idea underneath all of them: solving is the same as solving . The crossings of two graphs are the zeros of one function.
Method one: read it off the graphs
Draw both curves on the same axes and look at where they cross. Each crossing point gives one solution, and the solution is its horizontal coordinate. The vertical coordinate is the common value, which is often the second half of the question: at what number of units, and at what cost.
- Difference at
- -1
- Difference at
- 7
Leave m at 2 and drag c downwards. At the line touches the curve at exactly one point, and below that they miss each other entirely. Two solutions become one, then none at all.
A graph is quick and it shows how many solutions there are, which the algebra can hide. It is also only as accurate as the drawing, so a graphical answer is usually a check or an estimate rather than the final word.
Method two: narrow it down numerically
When the crossing is not at a whole number, the table method can be repeated on a smaller interval. Watch it close in.
Change x + 5 to x + 7 and run it again. The bracket [2, 3] no longer contains a crossing, and the search reports nonsense. Widen it to [2, 4] and it recovers.
Each pass halves the interval, so after twelve passes the answer is pinned down to about a thousandth. This is how a calculator finds an intersection, and it is worth knowing that the number on the screen was found this way rather than exactly.
Method three: do the algebra
The exact answer comes from setting the two rules equal and rearranging. One worked example in full: solve .
- Get the terms on one side: subtract from both sides, giving .
- Divide both sides by 4: .
- Check by substituting into both original rules: and .
- They agree, so the crossing point is and the answer is confirmed.
A second worked example, where the two functions are not both lines. Solve .
- Bring everything to one side: .
- The left-hand side is the difference function, so its zeros are the answers.
- Testing whole numbers: at it is , and at it is .
- Check both in the original equation: and , then and .
- Both work, so the solutions are and .
Two graphs cross at . What is the solution of , and what is ?
The solution is , the horizontal coordinate. The common height gives , and also . Answering that the solution is 9 is the standard mistake: 9 is what the two functions agree on, not the input where they agree.