When to Use Union in Interval Notation
Interval notation is a concise way to represent sets of numbers, particularly when describing ranges of values. While it is often used to express continuous intervals, there are situations where a single interval is insufficient, and the union of multiple intervals becomes necessary. Understanding when to use the union symbol (∪) in interval notation is essential for accurately conveying complex sets of numbers, especially in algebra, calculus, and higher-level mathematics.
Introduction
Interval notation is a powerful tool for describing sets of real numbers. It allows mathematicians to express ranges of values without listing every individual number. On the flip side, not all sets of numbers are continuous. Here's the thing — in cases where a set is composed of two or more separate intervals, the union symbol (∪) is used to combine them into a single, coherent expression. This is particularly important when dealing with inequalities, piecewise functions, or domain and range problems.
Understanding Interval Notation Basics
Before diving into unions, it’s important to understand the fundamentals of interval notation. Intervals are typically written using brackets or parentheses to indicate whether endpoints are included or excluded:
- [a, b] includes both endpoints a and b.
- (a, b) excludes both endpoints.
- [a, b) includes a but excludes b.
- (a, b] excludes a but includes b.
Here's one way to look at it: the interval [1, 5] represents all numbers from 1 to 5, including 1 and 5. Similarly, (2, 7) represents all numbers between 2 and 7, but not including 2 or 7 Simple, but easy to overlook..
When to Use Union in Interval Notation
The union symbol (∪) is used when a set of numbers consists of two or more separate intervals. Day to day, this typically occurs when the solution to an inequality or the domain of a function is not a single continuous range. Let’s explore the most common scenarios where union notation becomes necessary Worth keeping that in mind. Still holds up..
1. Solving Inequalities with Multiple Solutions
Worth mentioning: most frequent uses of union in interval notation is when solving inequalities that yield multiple disjoint solutions. Here's one way to look at it: consider the inequality:
$ x^2 - 5x + 6 < 0 $
Factoring the quadratic gives:
$ (x - 2)(x - 3) < 0 $
The critical points are x = 2 and x = 3. Testing intervals around these points shows that the inequality is satisfied for 2 < x < 3. Even so, if the inequality were:
$ x^2 - 5x + 6 > 0 $
The solution would be:
$ x < 2 \quad \text{or} \quad x > 3 $
In interval notation, this is written as:
$ (-\infty, 2) \cup (3, \infty) $
Here, the union symbol combines two separate intervals, indicating that the solution includes all numbers less than 2 or greater than 3.
2. Domain of a Function with Restrictions
The domain of a function is the set of all possible input values (x-values) for which the function is defined. When a function has restrictions that create multiple intervals, the union symbol is used to express the domain And that's really what it comes down to..
To give you an idea, consider the function:
$ f(x) = \frac{1}{x^2 - 4} $
The denominator cannot be zero, so we solve:
$ x^2 - 4 \neq 0 \Rightarrow x \neq \pm 2 $
This means the domain excludes x = 2 and x = -2. The domain is therefore:
$ (-\infty, -2) \cup (-2, 2) \cup (2, \infty) $
Each interval represents a range of x-values where the function is defined, and the union symbol combines them into a single expression.
3. Range of a Function with Discontinuities
The range of a function is the set of all possible output values (y-values). If a function has discontinuities or restrictions that result in multiple intervals of y-values, the union symbol is used to describe the range.
Here's a good example: the function:
$ f(x) = \frac{1}{x} $
has a range that excludes y = 0. The range is:
$ (-\infty, 0) \cup (0, \infty) $
This notation indicates that the function can take any real value except zero Most people skip this — try not to..
4. Absolute Value Inequalities
Absolute value inequalities often result in two separate intervals. For example:
$ |x - 4| > 3 $
This inequality splits into two cases:
$ x - 4 > 3 \quad \text{or} \quad x - 4 < -3 $
Solving these gives:
$ x > 7 \quad \text{or} \quad x < 1 $
In interval notation, this is:
$ (-\infty, 1) \cup (7, \infty) $
The union symbol clearly shows that the solution includes two distinct intervals No workaround needed..
Common Mistakes to Avoid
While using union in interval notation, it’s important to avoid common pitfalls:
- Misplacing the union symbol: Ensure the union symbol is placed between the intervals, not within them. Take this: (1, 3) ∪ (5, 7) is correct, but (1, 3 ∪ 5, 7) is incorrect.
- Overlooking endpoints: Always check whether endpoints are included or excluded. To give you an idea, [1, 3) ∪ (5, 7] is different from (1, 3) ∪ (5, 7).
- Using union when not needed: If the solution is a single continuous interval, there’s no need for a union. Here's one way to look at it: (1, 5) is sufficient without a union.
Conclusion
Union in interval notation is a crucial concept for expressing complex sets of numbers that are not continuous. It is most commonly used when solving inequalities, determining the domain or range of functions, or dealing with absolute value problems. On top of that, by understanding when and how to use the union symbol, students and professionals can accurately communicate mathematical ideas and avoid errors in their work. Whether you're analyzing a function's behavior or solving an equation, mastering the use of union in interval notation is an essential skill in mathematics That's the part that actually makes a difference..
5. Union with Mixed Endpoint Types
When intervals share a common endpoint, the union can combine open and closed portions in a single expression. To give you an idea, consider the solution set of
[ x^2-4\le 0\quad\text{and}\quad x\neq\pm2. ]
Solving (x^2-4\le0) yields ([-2,2]). Removing the points (-2) and (2) (because of the “(\neq)” restriction) leaves
[ (-2,2);. ]
If, instead, we only excluded one endpoint, say (x\neq2) but allowed (x=-2), the set would be
[ [-2,2)\cup(-2,2] ;=;[-2,2];, ]
but written with a union to highlight the two distinct pieces that meet at (-2). In such mixed‑endpoint situations the union notation makes it explicit that the set is not a single continuous interval.
Tip: When writing mixed‑endpoint unions, keep each interval’s brackets consistent and place the union symbol directly between them Practical, not theoretical..
[ [-2,2)\cup(2,5]\qquad\text{or}\qquad[-2,2)\cup(2,5). ]
6. Union in Set‑Based Function Definitions
Many higher‑level mathematics courses define functions piece‑wise using unions of intervals. To give you an idea, the piece‑wise function
[ g(x)=\begin{cases} x^2, & x\in(-\infty,-1]\cup[1,\infty),\[4pt] -,x, & x\in(-1,1). \end{cases} ]
Here the domain of the first piece is expressed as the union of two disjoint intervals. Consider this: the union notation succinctly captures the fact that the rule (x^2) applies to every (x) that lies either left of (-1) or right of (1). Without the union, one would have to write two separate cases, which can become cumbersome when many pieces are involved.
7. Union in Probability and Statistics
In probability theory, the union of events corresponds to “either this event or that event occurs.In real terms, ” When events are mutually exclusive, the probability of the union is simply the sum of the individual probabilities. In interval notation, outcomes of a discrete random variable are often described as unions of intervals.
Example: Suppose a random variable (X) can take values in the set [ {x\in\mathbb{R}\mid 0\le x<2}\cup{x\in\mathbb{R}\mid 5<x\le 7}. ]
The probability density function (pdf) is defined only on those intervals; elsewhere it is zero. The union notation cleanly separates the two regions where the pdf is positive.
8. Visualizing Union on the Number Line
A quick sketch helps solidify the meaning of a union of intervals. Draw a number line, shade each interval according to its endpoints, and then shade the entire combined region. Overlapping portions are shaded only once, but the union symbol reminds you that the shading represents “all points that belong to at least one of the intervals That's the part that actually makes a difference..
Example:
[ ( -\infty,-3);\cup;(-2,1);\cup;(4,5] ]
- Shade everything left of (-3) (open circle at (-3)).
- Shade from just right of (-2) up to (but not including) (1) (open at both ends).
- Shade from just right of (4) up to and including (5) (open at (4), closed at (5)).
The final picture is exactly the set described by the union Small thing, real impact..
9. Advanced Operations: Union of Infinite Collections
The union operation is not limited to two intervals; it extends naturally to any collection—finite or infinite—of sets. For a family ({A_i}_{i\in I}) of intervals, the union is written
[ \bigcup_{i\in I} A_i. ]
Example:
[ \bigcup_{n=1}^{\infty}\left(\frac{1}{n+1},,\frac{1}{n}\right] ;=;(0,1]. ]
Here each interval (\left(\frac{1}{n+1},\frac{1}{n}\right]) is disjoint, yet their union fills the entire half‑open interval ((0,1]). This concept appears frequently in analysis, especially when defining limits, series, and measure theory.
10. Practical Exercises
To cement the ideas discussed, try the following problems. Write each solution in interval notation, using union where necessary.
- Solve (|2x-5|\ge 3) and express the answer as a union of intervals. 2. Determine the domain of (h(x)=\dfrac{1}{\sqrt{x-1}+\sqrt{5-x}}) and write it using union notation.
- Express the set of all real numbers that are either less than (-4) or greater than or equal to (2) but less than (6) using union.
Sample solution for #1:
[
|2x-5|\ge3;\Longrightarrow;2x-
[ |2x-5|\ge 3;\Longrightarrow;2x-5\le -3;\text{or};2x-5\ge 3 ;\Longrightarrow;x\le 1;\text{or};x\ge 4 . ]
Thus the solution set is
[ (-\infty,1];\cup;[4,\infty). ]
11. Common Pitfalls and How to Avoid Them
Even seasoned students sometimes stumble when working with unions of intervals. Below are a few frequent errors and tips for catching them Simple, but easy to overlook..
| Mistake | Why It Happens | Correct Approach |
|---|---|---|
| Forgetting endpoint types (open vs. Even so, | Visualize on a number line or list the intervals in order; only merge when the gap between them is zero (i. | Remember that (-\infty) and (\infty) are always open: ((-\infty,a)), ((b,\infty)), ((-\infty,a]) is never used. |
| Assuming disjoint intervals become a single interval after union. Double‑check by testing a point exactly at each endpoint. ** | The two symbols are visually similar, especially in cramped fonts. | Explicitly write the endpoint type next to each interval before attempting to combine them. In real terms, e. , the right endpoint of one touches or overlaps the left endpoint of the next). |
| Neglecting infinite endpoints when dealing with unbounded intervals. | The symbols (-\infty) and (\infty) are not numbers, so it’s easy to mistakenly place a bracket around them. On top of that, | Always write intervals with the smaller number first; if you ever see a larger number on the left, pause and reorder. , writing ((5,2]) instead of ((2,5])). Think about it: closed) when merging intervals. |
| **Confusing union ((\cup)) with intersection ((\cap)). | ||
| Mis‑ordering endpoints (e. | The symbols “( )”, “(])”, “([ )”, “([])” look similar, especially in handwritten work. Even so, g. | Write the word “union” or “intersection” underneath the symbol the first few times you use it in a solution, then erase the reminder. |
A quick “sanity check” after you finish a problem can catch most of these issues:
- Pick a test point from each interval and verify it satisfies the original condition.
- Pick a test point from each gap (if any) and confirm it does not satisfy the condition.
- Check endpoints individually—plug them into the original inequality or domain condition.
12. Extending to Higher Dimensions
So far we have focused on intervals on the real line, but the notion of a union extends naturally to subsets of (\mathbb{R}^n). Here's the thing — in two dimensions, the analogue of an interval is a region (often a rectangle, disk, or more complicated shape). The union of regions is simply all points that lie in at least one of them Less friction, more output..
People argue about this. Here's where I land on it.
12.1 Example: Union of Rectangles
Consider the rectangles
[ R_1 = [0,2]\times[1,4],\qquad R_2 = (1,5]\times[3,6). ]
Their union is
[ R_1\cup R_2 = {(x,y)\mid (0\le x\le 2\ \text{and}\ 1\le y\le 4)\ \text{or}\ (1< x\le 5\ \text{and}\ 3\le y\le 6)}. ]
When plotted, the overlapping portion ((1,2]\times[3,4]) is shaded only once, but the union covers the L‑shaped region formed by the two rectangles together Took long enough..
12.2 Measure-Theoretic Perspective
In measure theory, the Lebesgue measure of a countable union of disjoint measurable sets is the sum of their measures. This is a direct generalisation of the finite‑union rule we used for probabilities earlier. Take this: the measure (area) of the union above is
[ \mu(R_1\cup R_2)=\mu(R_1)+\mu(R_2)-\mu(R_1\cap R_2) = (2\cdot3)+(4\cdot3)- (1\cdot1)=6+12-1=17. ]
The subtraction of the intersection prevents double‑counting the overlapping square.
13. Computational Tools
Modern calculators and computer algebra systems (CAS) can perform union operations automatically, but it helps to understand the underlying logic.
| Tool | How to Express a Union | Tips |
|---|---|---|
| WolframAlpha | Union[{interval1, interval2, …}] |
Use parentheses for open ends, brackets for closed ends, e.So g. And , Union[{(−∞,−2), [0,3] , (5,∞)}]. On top of that, |
| Desmos (graphing) | Enter each interval as a separate inequality, e. Think about it: g. Consider this: , x < -2 and 0 ≤ x ≤ 3 and x > 5. |
Turn on “Shade” to see the combined region. Here's the thing — |
| Python (sympy) | `Interval. open(-oo, -2) | Interval.Day to day, closed(0,3) |
| MATLAB | union(A,B) where A and B are arrays of interval endpoints. |
Remember MATLAB treats intervals as closed by default; adjust with openinterval if needed. |
It sounds simple, but the gap is usually here Practical, not theoretical..
Even when you rely on software, writing the union in proper mathematical notation first will save you from mis‑interpreting the output Most people skip this — try not to..
14. Quick Reference Sheet
| Symbol | Meaning | Example |
|---|---|---|
| ((a,b)) | Open interval: (a < x < b) | ((2,5)) |
| ([a,b]) | Closed interval: (a \le x \le b) | ([−3,0]) |
| ((a,b]) | Half‑open: (a < x \le b) | ((1,4]) |
| ([a,b)) | Half‑open: (a \le x < b) | ([0,7)) |
| ((-\infty, a)) | All numbers less than (a) | ((-\infty,3)) |
| ((b, \infty)) | All numbers greater than (b) | ((5,\infty)) |
| (\cup) | Union (at least one condition) | ((−\infty,−2]\cup[1,4)) |
| (\cap) | Intersection (both conditions) | ((−1,3)\cap[0,5]) |
| (\bigcup_{i\in I} A_i) | Union over an indexed family | (\bigcup_{n=1}^{\infty}( \frac{1}{n+1},\frac{1}{n}]) |
15. Concluding Remarks
Understanding the union of intervals is more than an exercise in set notation; it is a fundamental skill that underpins many areas of mathematics—from solving elementary inequalities to defining domains of complex functions, from calculating probabilities to measuring geometric objects in higher dimensions. The key ideas to retain are:
- “At least one” – a point belongs to the union if it satisfies any of the constituent conditions.
- Endpoint awareness – open versus closed endpoints dictate whether the boundary points are included.
- Visualization – a quick sketch on the number line (or in the plane) often reveals whether intervals truly overlap, touch, or remain disjoint.
- Logical rigor – translate verbal statements (“either…or…”) directly into union notation to avoid ambiguity.
- Generalisation – the same principles hold for infinite families of intervals and for higher‑dimensional regions.
By mastering these concepts, you’ll find that many seemingly complicated problems simplify to “just draw the intervals and shade the union.” Whether you are preparing for a calculus exam, working on a probability model, or exploring the foundations of real analysis, the union of intervals will appear again and again—always ready to collect the pieces of the real line (or space) that matter.
Takeaway: Whenever you encounter a statement that asks for “all numbers satisfying this or that,” think “union,” write the appropriate interval(s), check the endpoints, and you’ll have the correct solution ready in a matter of seconds. Happy solving!
16. Beyond the Basics: Unions in Higher Dimensions and Infinite Families
While the examples above focus on intervals on the real line, the concept of union extends naturally to higher dimensions and infinite collections. As an example, in the plane, the union of rectangles or disks describes regions like "all points inside shape A or shape B." In calculus, domains of piecewise functions often arise as unions of intervals (e.g., ( f(x) = \sqrt{x} ) requires ( x \geq 0 ), while ( g(x) = \ln(x-1) ) requires ( x > 1 ), so the domain of ( f(x) + g(x) ) is ( [0, \infty) \cup (1, \infty) = [0, \infty) )). Infinite unions, such as ( \bigcup_{n=1}^{\infty} \left(0, \frac{1}{n}\right] ), model sets like ( (0,1] ) in limits or fractals. Always verify overlaps and endpoints rigorously—especially for unbounded or infinite cases—to avoid errors in continuity, convergence, or integration Easy to understand, harder to ignore..
Final Conclusion
The union of intervals is a foundational tool that transforms abstract conditions into precise mathematical structures. It simplifies complex problems—from inequality solutions to domain definitions—by leveraging the intuitive logic of "at least one condition." By mastering endpoint rules, visualizing overlaps, and translating verbal statements into notation, you build a dependable framework for advanced mathematics. Whether in calculus, probability, or topology, unions of intervals unify scattered regions into coherent sets,