The domain and range of a graph in interval notation describe two essential features of a relationship: the set of all possible input values and the set of all possible output values. On a coordinate plane, the domain tells you how far the graph extends from left to right along the x-axis, while the range tells you how far it extends from bottom to top along the y-axis. Expressing these sets in interval notation gives you a compact, precise way to communicate which values are included, which are excluded, and whether the graph continues forever in a given direction.
What Domain and Range Mean on a Graph
Every point on a graph has an x-coordinate and a y-coordinate. Here's the thing — the domain is the collection of all x-values for which the graph exists. The range is the collection of all y-values that the graph actually reaches.
A simple way to remember the difference is:
- Domain: look left and right along the x-axis.
- Range: look down and up along the y-axis.
As an example, if a graph begins at the point ((-2, 1)) and ends at ((4, 5)), then its x-values run from (-2) to (4), and its y-values run from (1) to (5). Whether the endpoints are included depends on whether the graph has solid dots, open circles, or arrows.
How Interval Notation Works
Interval notation uses parentheses and brackets to describe a set of numbers.
- A parenthesis (() or ()) means the endpoint is not included.
- A bracket ([) or (]) means the endpoint is included.
- The symbol (\infty) or (-\infty) always uses a parenthesis because infinity is not a number you can reach.
- The union symbol (\cup) combines separate intervals.
For example:
- ((2, 5)) means all numbers greater than 2 and less than 5.
- ([2, 5]) means all numbers from 2 through 5, including both endpoints.
- ([2, 5)) means 2 is included, but 5 is not.
- ((-\infty, 3]) means all numbers less than or equal to 3.
- ((-\infty, 0) \cup (0, \infty)) means every real number except 0.
When reading a graph, solid endpoints and arrows usually indicate inclusion or continuation. Open circles indicate that a specific point is missing Less friction, more output..
Reading Domain from Left to Right
To find the domain, scan the graph horizontally from its leftmost point to its rightmost point Most people skip this — try not to..
- Identify the smallest x-value shown by the graph.
- Identify the largest x-value shown by the graph.
- Check whether the endpoints are included or excluded.
- Use arrows to decide whether the graph continues to (-\infty) or (\infty).
If a graph has arrows on both ends and no breaks, its domain is usually ((-\infty, \infty)). Now, if it starts at (x = -1) with a solid dot and continues to the right forever, the domain is ([-1, \infty)). If it starts at (x = -1) with an open circle and continues right, the domain is ((-1, \infty)).
Breaks in the graph matter. Plus, a rational function such as (f(x) = \frac{1}{x}) has a vertical asymptote at (x = 0). The graph exists for every x-value except 0, so its domain is ((-\infty, 0) \cup (0, \infty)) Easy to understand, harder to ignore..
Reading Range from Bottom to Top
To find the range, scan the graph vertically from its lowest point to its highest point.
- Identify the smallest y-value reached by the graph.
- Identify the largest y-value reached by the graph.
- Check whether those y-values are included or excluded.
- Use arrows to determine whether the graph continues toward (-\infty) or (\infty).
For the parabola (y = x^2), the graph opens upward and has a lowest point at ((0, 0)). Also, the y-values never go below 0, but they increase without bound. So, the range is ([0, \infty)). The domain is ((-\infty, \infty)) because the parabola extends left and right forever.
For the graph of (y = \sqrt{x}), the domain is ([0, \infty)) because square roots of negative numbers are not real. The range is also ([0, \infty)) because the principal square root never produces a negative output.
Examples of Domain and Range in Interval Notation
Example 1: A Parabola
Consider (y = x^2).
- Domain: ((-\infty, \infty))
- Range: ([0, \infty))
The graph continues left and right forever, so every real x-value is allowed. The lowest y-value is 0, and the graph rises forever, so the range begins at 0 and includes it.
Example 2: A Square Root Function
Consider (y = \sqrt{x}).
- Domain: ([0, \infty))
- Range: ([0, \infty))
The graph starts at ((0,0)) and moves to the right and upward. Both the x-values and y-values begin at 0 and increase without bound Most people skip this — try not to. No workaround needed..
Example 3: A Rational Function
Consider (y = \frac{1}{x}).
- Domain: ((-\infty, 0) \cup (0, \infty))
- Range: ((-\infty, 0) \cup (0, \infty))
The graph has a vertical asymptote at (x = 0) and a horizontal asymptote at (y = 0). Neither 0 nor 0 is ever reached, so both domain and range exclude 0.
Example 4: A Line Segment
Suppose a graph is a straight line segment from ((-3, -1)) to ((2, 4)), with solid dots at both endpoints.
- Domain: ([-3, 2])
- Range: ([-1, 4])
Because the endpoints are solid, both the smallest and largest values are included.
Example 5: A Graph with a Hole
Suppose a graph is the line (y = x + 1) with an open circle at (x = 2). The graph exists everywhere except at that single x-value.
- Domain: ((-\infty, 2) \cup (2, \infty))
- Range: ((-\infty, 3) \cup (3, \infty))
The missing point removes one x-value from the domain and one y-value from the range Small thing, real impact..
Common Mistakes to Avoid
Many students lose points because of small notation errors. Keep these points in mind:
- Do not use brackets with infinity. Write ((-\infty, \infty)), not ([-\infty, \infty]).
- Do not confuse domain and range. Domain is x; range is y.
- Check open and closed endpoints carefully. A solid dot includes the endpoint; an open circle excludes it.
- Look for breaks and asymptotes. A graph may have separate intervals that require the union symbol.
- **Do not assume every graph has
every graph has a single continuous interval. - **Watch for arrows versus endpoints.Piecewise functions and graphs with gaps often require the union symbol $\cup$ to combine separate intervals. ** An arrow indicates the graph continues forever in that direction (use parentheses with infinity), while a solid or open dot marks a specific stopping point Not complicated — just consistent..
Finding Domain and Range Algebraically
While graphs provide a visual shortcut, you can often determine domain and range directly from an equation. This is essential when a graph is not provided or is difficult to sketch accurately That's the whole idea..
For the Domain (Input Restrictions):
- Denominators: Set the denominator $\neq 0$ and solve for $x$. Exclude these values.
- Even Roots (Square roots, fourth roots, etc.): Set the radicand (expression inside the root) $\geq 0$ and solve for $x$.
- Logarithms: Set the argument (expression inside the log) ${content}gt; 0$ and solve for $x$.
- Context: In word problems, restrict the domain to values that make physical sense (e.g., time $\geq 0$, number of items must be an integer).
For the Range (Output Behavior): Finding the range algebraically is often trickier. Common strategies include:
- Solve for $x$ in terms of $y$: Swap $x$ and $y$ (find the inverse relation) and find the domain of that inverse. That domain is the range of the original function.
- Analyze the function type:
- Quadratics ($ax^2+bx+c$): Find the vertex $y$-coordinate. If $a>0$, range is $[y_{vertex}, \infty)$; if $a<0$, range is $(-\infty, y_{vertex}]$.
- Rational functions: Look for horizontal asymptotes and check if the function ever crosses that value. Often the range is all real numbers except the horizontal asymptote value.
- Even roots: Range is typically $[0, \infty)$ or shifted vertically.
- Exponentials ($a^x, a>0$): Range is $(0, \infty)$ (shifted by vertical translations).
- Logarithms: Range is $(-\infty, \infty)$.
- Calculus (if applicable): Use derivatives to find absolute maximum and minimum values on the domain.
Practice Problems
Test your understanding by writing the domain and range in interval notation for the following:
- $f(x) = \sqrt{x - 4}$
- $g(x) = \frac{2}{x + 3}$
- $h(x) = -x^2 + 6x - 5$
- A graph consisting of a ray starting with a solid dot at $(-1, 2)$ and extending up and right forever, and a separate ray starting with an open dot at $(3, -2)$ extending down and right forever.
(Answers: 1. Domain: $[4, \infty)$, Range: $[0, \infty)$ | 2. Domain: $(-\infty, -3) \cup (-3, \infty)$, Range: $(-\infty, 0) \cup (0, \infty)$ | 3. Domain: $(-\infty, \infty)$, Range: $(-\infty, 4]$ | 4. Domain: $[-1, \infty)$, Range: $(-\infty, 2] \cup (-2, \infty)$)
Conclusion
Mastering domain and range is a foundational skill that bridges algebraic manipulation and graphical interpretation. Now, as you progress to calculus and beyond, this fluency becomes indispensable for evaluating limits, determining continuity, and solving optimization problems. By consistently applying interval notation—paying strict attention to brackets versus parentheses and the union symbol—you communicate these sets with mathematical precision. Worth adding: whether you are analyzing a simple polynomial, a complex rational function, or a real-world mathematical model, the ability to identify valid inputs and resulting outputs allows you to define the "universe" in which a function operates. Keep practicing with a variety of function types, and soon reading the domain and range will become as automatic as reading the axes on a graph.