Algebra 1Quadratic Functions and EquationsA-REI.D.11

Solving f(x) = g(x) with Graphs

The x-coordinates where two graphs meet solve f(x) = g(x).

Not started Jump to practice

Any equation in one variable can be pictured as two graphs meeting. To solve $f(x) = g(x)$, graph $y = f(x)$ and $y = g(x)$ and look for where they cross. This generalizes line and parabola systems to any functions, including exponential ones that you cannot yet solve with algebra.

Why it works

A point $(a, b)$ where the graphs cross is on both of them, so $f(a) = b$ and $g(a) = b$. That means $f(a) = g(a)$: the input $a$ solves the equation. The shared height $b$ is just the common output. So the solutions are the $x$-coordinates of the crossing points, and a table of values can find them too: look for inputs where the two outputs agree.
$2^x = x + 1$ has no algebra-only solution in this course, but the graphs show it: they cross at $x = 0$ and $x = 1$.

Key idea

The solutions of $f(x) = g(x)$ are the $x$-coordinates of the points where the graphs of $f$ and $g$ meet. Read them from a graph or a table, then check by substituting.

Worked examples

Worked example: Read from a graph

Use the graph above to solve $2^x = x + 1$.
  1. The curves cross at $(0, 1)$ and $(1, 2)$.
  2. Check: $2^0 = 1 = 0 + 1$ and $2^1 = 2 = 1 + 1$.

Answer: $x = 0$ or $x = 1$

Worked example: Use a table

$f(x) = x^2$ and $g(x) = 2x + 3$. Make a table for $x = -2, \ldots, 4$ and solve $f(x) = g(x)$.
  1. $f$: $4, 1, 0, 1, 4, 9, 16$. $g$: $-1, 1, 3, 5, 7, 9, 11$.
  2. They agree at $x = -1$ (both $1$) and $x = 3$ (both $9$).

Answer: $x = -1$ or $x = 3$

Common mistake

Giving the $y$-coordinate of the crossing as the solution. In the first example the crossing points are $(0, 1)$ and $(1, 2)$, but the solutions are $x = 0$ and $x = 1$. The equation asks for inputs; the shared $y$ is only the value both sides equal there.

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 2 XP.

Loading practice…

Builds on

Leads to

This is one of the top rungs of Algebra 1.

Sources and further reading

  • Common Core State Standards for Mathematics, A-REI.D.11: the x-coordinates where the graphs of y = f(x) and y = g(x) intersect are the solutions of f(x) = g(x)
  • OpenStax, Intermediate Algebra 2e, section 11.5 Solve Systems of Nonlinear Equations
@teddyrookbook GitHub