Algebra 1 · Grades 9, 10
Solving Equations by Graphing Both Sides
Quick answer
An equation f(x) = g(x) asks where two outputs agree. Graph y = f(x) and y = g(x) on the same axes and the answer is visible: the x-coordinates of the crossing points. That works for any pair of functions, including pairs no algebra at this level can solve, such as 2 to the x equals x plus 3. A table then pins each crossing down to as many decimal places as needed.
What you'll learn
- Explain why intersection points give the solutions of f(x) = g(x)
- Approximate solutions from a graph and a table of values
- Narrow a solution by successive approximation
One equation, two graphs
The equation
has no algebraic method at this level. The unknown sits in an exponent on one side and in a sum on the other, and no rearrangement isolates it.
But the equation asks a plain question: for which do these two expressions give the same number? Graph each side as its own function and the question becomes visual.
- y = 2^x
- y = x + 3
The graphs cross twice, so the equation has two solutions: about and about .
Why the crossing points are the solutions
A graph is the set of every point that satisfies its equation. So:
- is on the graph of exactly when
- is on the graph of exactly when
A point on both graphs therefore has and . Two things equal to the same number are equal to each other:
So the -coordinate of every crossing is a solution.
The argument also runs the other way. If , call the shared value . Then is on the first graph and on the second, so it is a crossing point. The solutions and the crossings are the same list — none missing and none extra.
Nothing in that argument used the kind of function. It works for lines, parabolas, exponentials, absolute values, reciprocals and logarithms alike.
Narrowing with a table
A graph gives a solution to about a tenth. A table does better.
Subtract one side from the other. A solution is where , so look for the difference changing sign.
| difference | |||
|---|---|---|---|
The difference goes from negative to positive between and . At the line is still above the curve; at the curve has passed it. The crossing is in between.
Repeat with a step ten times smaller.
| difference | |||
|---|---|---|---|
Now the sign changes between and . Each round buys one more decimal place, and the rounds can continue as long as needed. This is successive approximation.
Other kinds of functions
The method needs only two graphs. Absolute value works the same way.
- y = |x − 1|
- y = 3 − x/2
The line meets each arm of the V once, so there are two solutions. Reading them and checking:
A graph also reports how many solutions to expect before any algebra starts. Here the answer is two, so an algebraic solution that finds only one has missed a case.
Worked examples
Common mistakes
Practice problems
-
The graphs of and cross at and . Solve .
Answer
or
Full solution
The solutions are the -coordinates of the crossings. The -coordinates, and , are the shared values.
-
The graphs of and cross at and . Solve .
Answer
or
Full solution
Read the -coordinates, then check: ✓ and ✓
-
How many real solutions does have?
Answer
None.
Full solution
never goes below , so it never meets the line .
-
Between which two consecutive whole numbers is the solution of ?
Answer
Between and .
Full solution
and , so the curve passes between and .
-
For , the difference is at and at . What does that tell you?
Answer
A solution lies between and .
Full solution
The difference changes sign, so the two sides trade places between those inputs. They must be equal somewhere in between.
-
Solve and explain how the graph shows there are exactly two solutions.
Answer
or .
Full solution
The line passes through each branch of once, at and .
Neither graph meets the other anywhere else, so those are the only solutions.
-
Check that and both solve .
Answer
Both check.
Full solution
At : and ✓
At : and ✓
-
Find the solution of to one decimal place.
Hint
Try and .
Answer
About .
Full solution
and , so the solution is between and .
To decide which way it rounds, test the midpoint: , still below . So the solution is above and rounds to .
-
Explain why the argument that crossings are solutions works for every kind of function.
Answer
It uses only what a graph means — every point satisfies its equation — and never the formula of either function.
Full solution
The argument says: a point on both graphs has and , so . And if , the point lies on both graphs.
Neither step asks whether is linear, exponential or anything else. So the method applies to any pair of functions that can be graphed.
-
Reading the crossing of and , Andre reports that the solution of is . Find his errors.
Hint
Which coordinate is the input? And is there only one crossing?
Answer
He reported the -coordinate, and he missed a crossing. The solutions are and .
Full solution
At the input is and the shared output is . The equation asks for the input, so this crossing gives .
Substituting shows the mistake: but .
The parabola also crosses the line at , since . So the full answer is or .
Frequently asked questions
Why do intersection points solve f(x) = g(x)?
A point on both graphs has one x and one y. Being on the first graph means f(x) equals that y, and being on the second means g(x) does, so f(x) = g(x) there.
Is the solution the x or the y of the intersection?
The x. The y is the value both sides share at that point, not the input that makes them equal.
What if the graphs never cross?
Then no real x makes the two sides equal, and the equation has no real solution.
How do I get more decimal places than the graph shows?
Make a table of f(x) − g(x). Where it changes sign, a solution lies between. Shrink the step and repeat.
Does this work for exponential or absolute value equations?
Yes. The argument never uses the type of function, so it works for any two functions that can be graphed.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSA.REI.D.11Reasoning with Equations and InequalitiesExplain why the x-coordinates of the points where the graphs of the equations y = f(x) and y = g(x) intersect are the solutions of the equation f(x) = g(x); find the solutions approximately, e.g., using technology to graph the functions, make tables of values, or find successive approximations. Include cases where f(x) and/or g(x) are linear, polynomial, rational, absolute value, exponential, and logarithmic functions.