Writing domain and range using interval notation is one of the most practical skills in algebra and precalculus because it gives you a compact, precise way to describe where a function exists and what outputs it produces. Instead of writing long inequalities or wordy descriptions, interval notation uses brackets, parentheses, and the union symbol to communicate the same information in a form that is easy to read, compare, and graph. Whether you are analyzing a rational function, a square root function, or a simple parabola, mastering domain and range in interval notation helps you avoid ambiguity and communicate mathematical ideas clearly.
What Are Domain and Range?
The domain of a function is the set of all possible input values, usually the x-values, for which the function is defined. The range is the set of all possible output values, usually the y-values, that the function can produce Still holds up..
As an example, consider the function (f(x)=x^2). Think about it: you can square any real number, so the domain is all real numbers. Still, a square can never be negative, so the range is all nonnegative real numbers Less friction, more output..
- Domain: ((-\infty, \infty))
- Range: ([0, \infty))
That is the core idea behind writing domain and range using interval notation: translate restrictions and possibilities into a standard symbolic form Not complicated — just consistent..
Domain vs. Range at a Glance
- Domain answers: “What x-values are allowed?”
- Range answers: “What y-values come out?”
- Interval notation answers both in a compact format using endpoints and symbols.
- Brackets mean the endpoint is included.
- Parentheses mean the endpoint is not included.
- Infinity always uses parentheses because infinity is not a number you can reach.
Interval Notation Basics
Before you can write domain and range confidently, you need to understand the symbols.
Brackets and Parentheses
Use a square bracket ([) or (]) when the endpoint is included. Use a parenthesis (() or ()) when the endpoint is excluded And it works..
- ([2,5]) means (2 \le x \le 5).
- ((2,5)) means (2 < x < 5).
- ([2,5)) means (2 \le x < 5).
- ((2,5]) means (2 < x \le 5).
Infinity and Negative Infinity
The symbols (\infty) and (-\infty) describe unbounded behavior. They are always paired with parentheses:
- ([3,\infty)) means (x \ge 3).
- ((-\infty,3)) means (x < 3).
- ((-\infty,\infty)) means all real numbers.
The Union Symbol
When a domain or range is broken into separate pieces, use the union symbol (\cup). For example:
- ((-\infty,2)\cup(2,\infty)) means all real numbers except (2).
- ([-1,0]\cup[2,4]) means two separate included intervals.
The union symbol is especially important when a function has a hole, vertical asymptote, or other excluded value.
How to Write Domain and Range Using Interval Notation
Follow a consistent process so you do not miss restrictions or misuse brackets.
Step 1: Identify the Type of Function or Graph
Different functions have different restrictions. Ask yourself:
- Is there a denominator? If yes, it cannot equal zero.
- Is there a square root or even root? If yes, the radicand must be nonnegative.
- Is there a logarithm? If yes, the argument must be positive.
- Is the graph continuous, or does it have holes, gaps, or asymptotes?
Step 2: Find the Restrictions
Solve for values that make the function undefined Most people skip this — try not to..
For (f(x)=\frac{1}{x-3}), the denominator cannot be zero, so (x-3 \ne 0), which means (x \ne 3). The domain is all real numbers except (3).
For (g(x)=\sqrt{x+4}), the expression under the square root must be nonnegative, so (x+4 \ge 0), which means (x \ge -4).
Step 3: Write the Inequality First
Writing the inequality first reduces mistakes. For example:
- (x \ne 3) becomes two intervals: (x<3) or (x>3).
- (x \ge -4) becomes ([-4,\infty)).
- (-2 < x \le 5) becomes ((-2,5]).
Step 4: Convert to Interval Notation
Translate the inequality into brackets and parentheses. Remember:
- Included endpoint → bracket
- Excluded endpoint → parenthesis
- Infinity → parenthesis
Step 5
Step 5: Combine Intervals When Necessary
If your domain or range consists of multiple separate pieces, you must use the union symbol (\cup) to combine them. Also, for instance, the domain of the reciprocal function (f(x)=\frac{1}{x-3}) consists of all real numbers except (3). This is expressed as the union of two intervals: ((-\infty,3)\cup(3,\infty)). The same principle applies to ranges that are split by a vertical asymptote or a discontinuity.
Quick Reference Summary
- Brackets ([) or (]) indicate inclusion at that endpoint.
- Parentheses (() or ()) indicate exclusion at that endpoint.
- Infinity (\infty) or (-\infty) always uses parentheses because infinity is not a real number that can be reached by any finite input.
- Union (\cup) connects separate intervals that are not connected by a continuous set.
Final Thoughts
Mastering interval notation is essential for accurately describing the domains and ranges of functions. By following the systematic process of identifying restrictions, translating inequalities into interval symbols, and combining separate pieces with the union operator, you can express these sets with precision. Still, remember that the key distinction lies in whether an endpoint is included or excluded—this single detail determines whether you use a bracket or a parenthesis. With practice, writing interval notation will become second nature, allowing you to communicate mathematical domains and ranges clearly and unambiguously Simple, but easy to overlook..
Common Pitfalls to Avoid
Even with a clear process, certain scenarios frequently lead to errors. Watch for these traps:
- Confusing Domain and Range Restrictions: The domain concerns inputs ($x$-values), while the range concerns outputs ($y$-values). For $f(x) = \sqrt{x}$, the domain is $[0, \infty)$ because the radicand must be nonnegative. The range is also $[0, \infty)$, but for a different reason: the square root function only outputs nonnegative numbers. Always verify the logic for each separately.
- Mishandling "Or" vs. "And" in Compound Inequalities:
- $x < -2 \text{ or } x > 3$ $\rightarrow$ $(-\infty, -2) \cup (3, \infty)$ (Union: two separate pieces).
- $-2 < x < 3$ $\rightarrow$ $(-2, 3)$ (Intersection: a single continuous piece).
- Writing $(-\infty, -2) \cap (3, \infty)$ is incorrect for a domain; the intersection of those sets is empty.
- Forgetting to Check the Numerator in Rational Functions: While the denominator dictates the domain, the numerator can sometimes cancel a factor (creating a removable discontinuity or "hole"). For $f(x) = \frac{x-2}{x^2-4} = \frac{x-2}{(x-2)(x+2)}$, the domain excludes $x=2$ and $x=-2$, written as $(-\infty, -2) \cup (-2, 2) \cup (2, \infty)$. The hole at $x=2$ is still a domain restriction.
- Using Brackets with Infinity: Never write $[-\infty, 5]$ or $[3, \infty]$. Infinity is a concept of unboundedness, not a specific number that can be included.
Putting It All Together: A Worked Example
Find the domain of $h(x) = \frac{\sqrt{x-1}}{x-4}$ Most people skip this — try not to..
- Identify Restrictions:
- Square root in numerator $\rightarrow$ Radicand $\ge 0$: $x - 1 \ge 0 \Rightarrow x \ge 1$.
- Denominator $\rightarrow$ Cannot be zero: $x - 4 \ne 0 \Rightarrow x \ne 4$.
- Combine Restrictions ("And" logic): $x$ must satisfy $x \ge 1$ AND $x \ne 4$.
- Visualize on Number Line: Start at $1$ (included), go right forever, but punch a hole at $4$.
- Write Intervals:
- Piece 1: $1 \le x < 4 \rightarrow [1, 4)$
- Piece 2: $x > 4 \rightarrow (4, \infty)$
- Union: $\text{Domain} = [1, 4) \cup (4, \infty)$.
Conclusion
Interval notation is more than a notational convention; it is the precise language of continuity and boundaries in mathematics. By systematically hunting for restrictions—zero denominators, negative radicands, non-positive logarithmic arguments—and faithfully translating the resulting inequalities into brackets, parentheses, and unions, you transform vague descriptions into rigorous mathematical objects. But this precision pays dividends in calculus, where the distinction between an open and closed interval determines the applicability of theorems like the Extreme Value Theorem or the Fundamental Theorem of Calculus. As you progress, you will find that reading a domain like $(-\infty, -2) \cup [0, 5)$ instantly paints a picture of the function's behavior, allowing you to sketch graphs, evaluate limits, and solve inequalities with confidence Worth keeping that in mind..
the vast landscape of functions. Whether you are sketching a graph, evaluating a limit, or determining where a function is even defined, the ability to translate between inequalities, number lines, and interval notation is what separates guesswork from genuine understanding Practical, not theoretical..
The five steps—identify restrictions, solve the resulting inequalities, mark boundary points as open or closed, combine the pieces with the correct logic, and express the result as a union of intervals—form a repeatable procedure that works for polynomials, rational functions, radicals, logarithms, and their combinations alike. The complexity of the function changes, but the discipline of the method does not And that's really what it comes down to..
Most guides skip this. Don't.
Final Thoughts
Mathematics rewards those who are precise about boundaries. A single misplaced bracket can turn a valid solution into a false one, and a forgotten restriction can hide a hole or an asymptote that changes everything about a function's behavior. Interval notation forces you to confront these details directly, leaving no room for ambiguity.
It sounds simple, but the gap is usually here.
As you continue your studies, treat every domain problem as an exercise in careful reasoning rather than rote memorization. That's why ask what values are forbidden and why, translate those constraints faithfully, and let the notation carry the full weight of your conclusions. Do this consistently, and interval notation will become second nature—a quiet, reliable framework beneath the more advanced mathematics you have yet to explore.