Reading and Analyzing Graphs

Domain and Range: How to Find Them from a Graph or Equation

The domain of a function is the set of all input values (x) it accepts; the range is the set of all output values (y) it produces. On a graph, the domain is the shadow of the curve on the x-axis and the range is its shadow on the y-axis. From an equation, exclude x-values that cause division by zero, even roots of negatives or logs of non-positive numbers.

Graph of f(x) = √(x + 2) + 1 with its projection onto the x-axis showing domain x ≥ −2 and onto the y-axis showing range y ≥ 1.

Check it yourself: every example here can be loaded into the Graphing Calculator.

Open the Graphing Calculator

Definitions

  • Domain: every x-value for which the function is defined — the allowed inputs.
  • Range: every y-value the function actually produces — the outputs.

For f(x) = √(x + 2) + 1, the domain is x ≥ −2 and the range is y ≥ 1.

Notation

Set Inequality Interval notation
all real numbers — (−∞, ∞)
from −2 up, including −2 x ≥ −2 [−2, ∞)
between −3 and 4, not including 4 −3 ≤ x < 4 [−3, 4)
every number except 3 x ≠ 3 (−∞, 3) ∪ (3, ∞)

Square brackets include endpoints; round brackets exclude them. ∪ means “or” (union).

From a graph: project onto the axes

Graph of a curve from a closed dot at (−3, 1.5) down to a minimum at (1, −2.5) and up to an open circle at (4, −0.25); vertical projection gives domain [−3, 4) and horizontal projection gives range [−2.5, 1.5].
Squash the graph onto each axis and read the interval it covers.
Text description of this figure

Graph of a curve from a closed dot at (−3, 1.5) down to a minimum at (1, −2.5) and up to an open circle at (4, −0.25); vertical projection gives domain [−3, 4) and horizontal projection gives range [−2.5, 1.5].

  1. Domain: the x-values covered, from −3 (closed) to 4 (open): [−3, 4).
  2. Range: the y-values covered, from the minimum −2.5 up to the highest point 1.5: [−2.5, 1.5].
  3. Open circles exclude their value; closed dots include it.
  1. Domain: imagine shining a light from above and below; the shadow the graph casts on the x-axis is the domain.
  2. Range: shine the light from the sides; the shadow on the y-axis is the range.
  3. Check endpoints: closed dot → include; open circle → exclude; arrow → continues to infinity.
Try it in the calculator

From an equation: the domain

Start with all real numbers and remove problem values:

Problem Rule Example Domain
Division denominator ≠ 0 1⁄(x − 3) x ≠ 3
Even root inside ≥ 0 √(5 − x) x ≤ 5
Logarithm inside > 0 ln(x + 1) x > −1
Root in a denominator inside > 0 1⁄√x x > 0

Polynomials, |x|, ∛x, eˣ, sin x and cos x accept every real number.

Try it in the calculator

From an equation: the range

The range takes more thought. Useful facts:

  • Quadratic a(x − h)² + k: range y ≥ k if a > 0, y ≤ k if a < 0. For −x² + 4x = −(x − 2)² + 4, the range is y ≤ 4.
  • Square root a√(x − h) + k with a > 0: y ≥ k.
  • Exponential a·bˣ + k with a > 0: y > k (the asymptote is never reached).
  • Logarithm, odd polynomial, ∛x: all real numbers.
  • sin, cos: [−1, 1], scaled by the amplitude and shifted by the midline.
  • 1⁄x: every number except 0.
Try it in the calculator

Worked example from start to finish

f(x) = 2 − √(x − 1).

  • Domain: x − 1 ≥ 0 → [1, ∞).
  • Range: √(x − 1) is ≥ 0, so 2 − √(x − 1) ≤ 2 → (−∞, 2].
  • The graph starts at (1, 2) and falls slowly to the right.

Common mistakes

  • Mixing up domain and range — domain is x (horizontal), range is y (vertical).
  • Reading the range as the y-values of the endpoints only. A curve may go higher or lower in between (check turning points).
  • Including asymptote values. For 2ˣ, y = 0 is never reached, so the range is y > 0, not y ≥ 0.
  • Using a square bracket with ∞.

Questions

Is the domain always all real numbers?

For polynomials, yes. Rational functions, even roots and logarithms usually exclude some values.

How do I find the range from an equation?

Use the shape: the vertex of a parabola, the asymptote of an exponential, the starting point of a square root. Or solve y = f(x) for x and find which y-values give a real x.

What is the vertical line test?

A graph is a function if no vertical line meets it more than once. Each x in the domain must have exactly one y.

Graph your own example with the Graphing Calculator — free, in your browser.

Try it now

Sources and further reading

Worked examples and figures were produced and checked with the Graphing Calculator Lab engine. See the editorial policy.

Related guides

More in Reading and Analyzing Graphs · All guides