How to Write Domain and Range in Interval Notation
Ever stared at a graph, tried to read the domain and range, and then wondered how on earth you’re supposed to write those numbers? You’re not alone. Also, most students can point to the axes, but when the teacher asks for “the domain in interval notation,” a blank stare often follows. The short version is: you just need a tiny set of symbols and a clear sense of what’s inside and what’s out. Below is the full, no‑fluff guide that will turn that blank stare into a confident checkmark every time.
What Is Domain and Range (in Plain English)
When you hear “domain” think input – the set of all x‑values a function will accept. The “range” is the output – every y‑value the function can actually produce And that's really what it comes down to..
Domain in a Sentence
If you plug any number from the domain into the function, you’ll get a real result (or at least a result that the function is defined to give).
Range in a Sentence
Take every possible input from the domain, run it through the function, and the collection of all those outputs is the range Which is the point..
That’s it. No jargon, just the idea that a function is a machine: you feed it something (domain) and it spits something out (range). The trick is translating those sets into the compact language of interval notation Which is the point..
Why It Matters / Why People Care
Knowing how to write domain and range in interval notation isn’t just a box‑checking exercise for a math test. It’s a skill that shows up in calculus, statistics, and even computer graphics.
- Calculus – When you set up an integral, you need the correct interval for the variable of integration.
- Data modeling – A data scientist will often describe the valid input range of a model to avoid “out‑of‑bounds” errors.
- Everyday problem solving – Think about a thermostat that only works between 50 °F and 90 °F. That’s a domain written as ([50, 90]).
If you get the notation wrong, you might integrate over a region where the function isn’t defined, or you could feed a program a value it can’t handle. Think about it: in practice, that means wasted time, wrong answers, or a crash. So mastering interval notation is worth knowing Still holds up..
How It Works (Step‑by‑Step)
Below is the meat of the guide. Follow each step, and you’ll be able to translate any domain or range into interval notation without breaking a sweat.
1. Identify the Set of Numbers
First, figure out exactly which numbers belong to the domain or range. Ask yourself:
- Are there any breaks (holes) in the graph?
- Does the function go off to infinity on either side?
- Are there endpoints that are included or excluded?
Write those observations down in plain language. Example: “All real numbers except –2” or “All y‑values from 0 up to, but not including, 5.”
2. Choose the Right Brackets
Interval notation uses two kinds of brackets:
| Symbol | Meaning |
|---|---|
[ or ] |
Closed – the endpoint is included (≤ or ≥) |
( or ) |
Open – the endpoint is excluded (< or >) |
So ([2, 7]) means 2 ≤ x ≤ 7, while ((2, 7)) means 2 < x < 7 The details matter here. Simple as that..
Quick tip: If the function is defined at the endpoint (the graph touches or crosses the axis), use a closed bracket. If there’s a hole, an asymptote, or the function simply stops there, use an open bracket Less friction, more output..
3. Write Single Intervals
When the set is a continuous stretch of numbers with a clear start and end, you can write it as a single interval:
- Example: “All x from –3 to 4, inclusive” → ([-3, 4])
- Example: “All y greater than 0 but less than 10” → ((0, 10))
4. Combine Disjoint Intervals
Sometimes the domain or range isn’t one continuous chunk. Now, think of a rational function with a vertical asymptote at x = 2. The domain might be everything except 2.
[ (-\infty, 2) \cup (2, \infty) ]
The union symbol (∪) simply says “or.” Use it whenever you have two or more separate pieces.
5. Include Infinity Correctly
Infinity (∞) and negative infinity (‑∞) are never enclosed in brackets because they’re not numbers you can actually reach. They’re always paired with a parenthesis:
- ((-\infty, 5]) – all numbers less than or equal to 5
- ([0, \infty)) – all numbers greater than or equal to 0
Never write ([-\infty, 5]) – that’s a common mistake Worth knowing..
6. Write the Final Notation
Put it all together. If you have multiple pieces, separate them with a space, the union sign, and another space. Example:
[ (-\infty, -1) \cup (0, 3] \cup [5, \infty) ]
That reads: “All numbers less than –1, or between 0 and 3 inclusive of 3, or 5 and up.”
Common Mistakes / What Most People Get Wrong
Mistake #1: Using the Wrong Bracket for an Asymptote
A vertical asymptote at x = 4 means the function never actually equals 4. Now, yet beginners often write ([4, \infty)). The correct form is ((4, \infty)).
Mistake #2: Forgetting the Union Symbol
When the domain is “all real numbers except 0,” you might be tempted to write ((-∞,0) (0,∞)). Without the ∪ it looks like a single malformed interval. Always insert the union sign Turns out it matters..
Mistake #3: Bracketing Infinity
Seeing ([-\infty, 2]) is a red flag. Infinity is a direction, not a point, so parentheses are mandatory.
Mistake #4: Mixing Up Open vs. Closed When a Point Is Defined
If a function is defined at x = –2 (say f(–2) = 5), the domain includes –2, so you need a closed bracket: ([... , -2]). If there’s a hole, switch to an open bracket.
Mistake #5: Ignoring the Domain Restrictions from Roots and Logarithms
Square‑root functions require the radicand to be ≥ 0, and logarithms need arguments > 0. On the flip side, forgetting these constraints leads to intervals that are too big. For (f(x)=\sqrt{x-3}), the domain is ([3, \infty)), not ((-\infty, \infty)) Most people skip this — try not to. Surprisingly effective..
Practical Tips / What Actually Works
- Sketch First, Write Later – A quick graph tells you instantly where the function stops or jumps.
- List Endpoints Before Notating – Write “‑2 (included), 5 (excluded)” then translate to brackets.
- Use a Symbol Cheat Sheet – Keep a small table of brackets, infinity, and the union sign handy while you study.
- Check with Test Points – Plug a number just inside and just outside each endpoint to confirm inclusion or exclusion.
- Write “All Real Numbers” as ((-\infty, \infty)) – That’s the universal domain for any polynomial, for example.
- When in Doubt, State it in Words First – “All y greater than 2” becomes ((2, \infty)). The verbal step prevents bracket errors.
- Practice with Real‑World Functions – Try (f(x)=\frac{1}{x-1}), (g(x)=\ln(x)), and (h(x)=\sqrt{4-x}). Each forces you to think about exclusions and inclusions.
FAQ
Q: How do I write a domain that includes a single isolated point, like x = 3?
A: Use a “degenerate” interval: ([3, 3]). It reads “the set containing only 3.”
Q: Can I use curly braces instead of interval notation?
A: Curly braces denote a set of discrete elements, e.g., ({1,2,3}). For continuous ranges, interval notation is the standard because it’s concise and conveys continuity.
Q: What if the function has both a hole and an endpoint at the same x‑value?
A: That can’t happen—if there’s a hole, the point isn’t part of the domain, so the bracket must be open. If the endpoint is truly part of the domain, the graph will show a filled dot.
Q: Do I need to simplify the intervals?
A: Yes. To give you an idea, ((-∞, -2) \cup (-2, ∞)) simplifies to ((-\infty, \infty)) except at -2, which you’d write as ((-\infty, -2) \cup (-2, \infty)). No further simplification is possible because the hole matters The details matter here. Nothing fancy..
Q: How do I write the range of a piecewise function?
A: Find the output set for each piece, write each as an interval, then combine with ∪, just like you would for the domain That alone is useful..
That’s the whole story. Day to day, from spotting the right numbers on a graph to choosing the proper brackets, interval notation is a tiny toolbox that packs a lot of meaning. Once you internalize the steps, writing domain and range becomes second nature—no more staring at blank paper, just a quick, confident scribble of ([a, b)) or ((-\infty, c]).
Happy graphing!
A Quick “Cheat‑Sheet” for Interval Notation
| Symbol | Meaning | Example |
|---|---|---|
| ([a,b]) | Closed interval – includes both endpoints | ([0,5]) |
| ((a,b)) | Open interval – excludes both endpoints | ((2,7)) |
| ([a,b)) | Half‑closed – includes (a), excludes (b) | ([3,10)) |
| ((a,b]) | Half‑closed – excludes (a), includes (b) | ((‑∞,0]) |
| ((-\infty,\infty)) | All real numbers | (\mathbb{R}) |
| ((-\infty,a)) | All real numbers less than (a) | ((-\infty,2)) |
| ((a,\infty)) | All real numbers greater than (a) | ((3,\infty)) |
| ({x}) | Single isolated point | ({7}) |
| (\bigcup) | Union of sets | ([0,2]\cup[4,6]) |
Tip: When in doubt, write the answer in words first. Then translate to symbols. This two‑step process catches most bracket and endpoint errors Still holds up..
A Few “Real‑World” Practice Problems
-
Domain of (f(x)=\sqrt{1-x^2}).
Solution: The expression under the square root must be non‑negative: (1-x^2\ge 0 \Rightarrow -1\le x\le 1).
Domain: ([-1,1]). -
Range of (g(x)=\frac{x^2-4}{x-2}).
Solution: Factor numerator: ((x-2)(x+2)). Cancel (x-2) (but remember the hole at (x=2)). The function simplifies to (x+2) for all (x\neq 2).
Range: All real numbers except the value at the hole, which would be (g(2)=4). So the range is ((-\infty,\infty)\setminus{4}). -
Domain of (h(x)=\ln(x-3)+\frac{1}{x-5}).
Solution: Two restrictions: (x-3>0 \Rightarrow x>3); (x\neq5).
Domain: ((3,5)\cup(5,\infty)).
Common Pitfalls and How to Avoid Them
| Mistake | Why It Happens | Fix |
|---|---|---|
| Writing ((-\infty,0]) when the function actually stops at 0 but the endpoint is open | Forgetting that a “hole” is not part of the domain | Double‑check the graph or algebraic simplification |
| Using brackets for a single point instead of curly braces | Mixing set notation with interval notation | Remember ({3}) not ([3,3]) unless you’re explicitly describing an interval |
| Forgetting to include the negative infinity or infinity symbols | Typing errors or misreading the range | Use the shorthand (-\infty) and (\infty) consistently |
| Over‑simplifying unions | Thinking that ((-\infty,-2)\cup(-2,\infty)) equals ((-\infty,\infty)) | The hole at (-2) matters; keep it explicit |
A Final Thought: Why Interval Notation Matters
Interval notation condenses a lot of information into a compact, universally understood format. It tells you not only which numbers are allowed but also whether the endpoints belong to the set. And in statistics, it helps describe confidence intervals. Day to day, in calculus, it’s indispensable for defining limits, integrals, and continuity. In everyday life, it’s the shorthand that lets engineers, physicists, and programmers communicate constraints without endless prose Simple, but easy to overlook..
Mastering it is like learning a new language—once you know the grammar, you can read any function’s domain or range in a single glance, and you’ll no longer stumble over the right brackets. Keep the cheat‑sheet handy, practice with a variety of functions, and soon interval notation will feel as natural as writing your own name Worth keeping that in mind..
Closing
From the first sketch on a graph to the final scribble of ([a,b)) or ((-\infty,c]), interval notation is a powerful tool that bridges algebraic expressions and geometric intuition. Even so, with the practical tips, FAQ, and practice problems above, you’re now equipped to tackle any domain or range question with confidence. Keep practicing, keep questioning, and soon every interval will feel like a familiar friend Easy to understand, harder to ignore..
Happy graphing—and may your intervals always be correct!