Interval notation writes the solution set of an inequality by its two ends, each inside a parenthesis or a bracket: a parenthesis leaves the endpoint out and a bracket includes it. This lesson defines open, closed and half-closed intervals, rays written with the symbols ∞ and −∞ (which are not numbers), the whole line and the empty set, and translates between inequalities, graphs and intervals.
Intervals between two numbers
Lesson 1.2, Solution sets on the number line, drew solution sets as segments, rays, the whole line, or nothing at all. Interval notation is a short written form of the same sets.[1] It names a set by its two ends.
Let a and b be rational numbers with a < b. The intervals from a to b are the collections of all the numbers x that satisfy one of four chains:
- a < x < b, written (a, b), the open interval;
- a ≤ x ≤ b, written [a, b], the closed interval;
- a ≤ x < b, written [a, b), and a < x ≤ b, written (a, b].
The numbers a and b are the endpoints. Every one of the four contains all the numbers strictly between a and b; a bracket next to an endpoint means that the endpoint belongs to the interval, a parenthesis that it does not.[2]
The brackets of the notation match the dots of the graph:[5] a parenthesis where the graph has an open dot, a bracket where it has a filled dot. The smaller endpoint is always written first, as the left end of the segment.
Some books write ]a, b[ for the open interval and turn the bracket outward, instead of using a parenthesis, for an endpoint that is left out: [a, b[ and ]a, b].[6] This site uses parentheses.
Textbooks define intervals as collections of real numbers.[2] The real numbers put together the rational and the irrational numbers[7] and are introduced in the unit Real Numbers. In this unit, whose numbers are the rational numbers, (a, b) means the rational numbers between a and b; from the unit Real Numbers on, the same notation means all the real numbers between them.
Write in interval notation: (a) −2 < x ≤ 3; (b) 1 ≤ x < 4.5; (c) −4 ≤ x ≤ −1; (d) 0.5 < x < 2.
- (a) −2 is left out and 3 included: (−2, 3].
- (b) 1 included, 4.5 left out: [1, 4.5).
- (c) Both ends included: [−4, −1], a closed interval.
- (d) Both ends left out: (0.5, 2), an open interval.
Write [−3.5, 0) as an inequality, and decide which of −3.5, −2, 0 and 0.5 belong to it.
- The bracket includes −3.5 and the parenthesis leaves 0 out: −3.5 ≤ x < 0.
- −3.5: −3.5 ≤ −3.5 and −3.5 < 0 are true, so it belongs.
- −2: −3.5 ≤ −2 < 0 is true, so it belongs.
- 0: 0 < 0 is false, so 0 does not belong. 0.5: 0.5 < 0 is false, so it does not belong.
Answer: −3.5 ≤ x < 0; −3.5 and −2 belong, 0 and 0.5 do not.
What do [2, 2] and (2, 2) contain?
- [2, 2] would be the numbers with 2 ≤ x ≤ 2, and by Exercise 7 of lesson 1.1 only x = 2 satisfies both parts. It contains exactly one number.
- (2, 2) would be the numbers with 2 < x < 2. Then 2 < x and x < 2 would give 2 < 2 by transitivity, which is false. It contains no number, and so do [2, 2) and (2, 2].
Answer: [2, 2] is the single number 2; the other three contain nothing. Some textbooks allow a = b in the notation;[8] this unit writes intervals with a < b, as in the definition, except in cases like this one.
Someone writes the solution set of −3 < x < 6 as (6, −3). What is wrong?
- The notation lists the left end first. Read literally, (6, −3) would mean 6 < x < −3.
- No number satisfies that chain: it would give 6 < −3 by transitivity.
- The left end is the smaller number, −3: (−3, 6).
Answer: (−3, 6). An interval is written from left to right, as the graph is read.
Rays and the symbols ∞ and −∞
A ray has only one endpoint. The solution set of x > −2 is written (−2, ∞): there is no upper end to the solutions. The symbol ∞ is read “infinity”, and it is not an actual number.[9] For a ray going left, the symbol −∞, read “negative infinity”, takes the place of the left end:[10] x ≤ 1.5 is (−∞, 1.5].
Why can no number stand at the open end of a ray? Because the rational numbers have no greatest member and no least, and so the solutions of x > a rise above every number.
- For every rational number x there is a greater one, x + 1, and a smaller one, x − 1. So no rational number is greater than or equal to all the others, and none is less than or equal to all the others.
- Let a be a rational number. For every rational number r, the inequality x > a has a solution greater than r, and x < a has a solution less than r. So no rational number is greater than or equal to all the solutions of x > a, and none is less than or equal to all the solutions of x < a.
(1) (x + 1) − x = 1 > 0 and x − (x − 1) = 1 > 0, so by the Theorem on order through the difference (Rational numbers on the number line) x < x + 1 and x − 1 < x. So for any rational number g, the rational number g + 1 is greater than g: g is not greater than or equal to every rational number. In the same way g − 1 shows that g is not less than or equal to every rational number.
(2) Take a rational number r. By trichotomy, r < a, r = a or r > a. If r < a, the number a + 1 is a solution of x > a, by (1), and it is greater than r, since r < a < a + 1 and by transitivity. If r = a, the solution a + 1 is greater than r by (1). If r > a, the number r + 1 is greater than r by (1), and a < r < r + 1 shows that it is a solution. For x < a, use a − 1 and r − 1 in the same way.
So the solutions of x > −2 have no right end: no number lies at or beyond all of them, and ∞ marks only that they go on without end to the right.[9] Since ∞ and −∞ are not numbers, they can never belong to an interval: they always take a parenthesis, never a bracket.[11]
For a rational number a:
- (a, ∞) is the solution set of x > a, and [a, ∞) that of x ≥ a;
- (−∞, a) is the solution set of x < a, and (−∞, a] that of x ≤ a;
- (−∞, ∞) is the whole line, the solution set of an inequality that every number satisfies.[12]
Write the solution sets in interval notation: (a) x ≥ −1.25; (b) 9 > y; (c) x + 1 > x; (d) “the number n is at most 7”.
- (a) A filled dot at −1.25, going right without end: [−1.25, ∞).
- (b) 9 > y is y < 9: going left without end, 9 left out: (−∞, 9).
- (c) Every rational number is a solution (lesson 1.1): (−∞, ∞).
- (d) “At most 7” is n ≤ 7: (−∞, 7].
Answer: [−1.25, ∞), (−∞, 9), (−∞, ∞), (−∞, 7].
Correct each: (a) the solution set of x ≥ 8 written [8, ∞]; (b) the solution set of x < −7 written (−7, −∞).
- (a) The bracket next to ∞ would say that ∞ belongs to the set, but ∞ is not a number, and by part (2) of the Proposition no number is the right end of the set. Correct: [8, ∞).
- (b) The left end is written first, and the set goes on without end to the left, so −∞ comes first: (−∞, −7).
Answer: [8, ∞) and (−∞, −7).
The empty set
Some inequalities have no solution at all (lesson 1.2). Their solution set is a collection with no members.
The collection that has no members is called the empty set and is written ∅.[15] An inequality with no solution has the solution set ∅.
Write the solution sets: (a) x − 3 > x; (b) 3 < x < 1; (c) x · x ≤ 0.
- (a) No number satisfies it (lesson 1.1): ∅.
- (b) No number satisfies it (lesson 1.2): ∅.
- (c) x · x is never negative, and it is 0 exactly when x = 0. So exactly one number, 0, is a solution: the solution set is [0, 0], the single number 0. It is not ∅: a set whose only member is the number 0 is not empty.
Answer: (a) ∅; (b) ∅; (c) the single number 0.
Sets, their notation and the empty set are studied for their own sake in the unit Sets. Some solution sets are not a single interval: the solutions of x · x > 0 form two rays, one on each side of 0 (lesson 1.2). Lesson 1.7, “Compound inequalities”, gives a notation for such sets, made of two or more intervals.
Inequality, graph and interval
Every solution set of the last two lessons can be given in three ways: by an inequality, by a graph, and in interval notation. To pass from one to another, read each end separately: is there an end at all (or does the set go on without end), at which number, and is the number included?
Complete the three forms: (a) a graph with a filled dot at −4.5 and the line shaded to the right; (b) the inequality 0 ≥ m; (c) the interval (−0.5, 4].
- (a) Included end −4.5, no right end: x ≥ −4.5, [−4.5, ∞).
- (b) 0 ≥ m is m ≤ 0: a filled dot at 0, shaded left; (−∞, 0].
- (c) −0.5 left out, 4 included: −0.5 < x ≤ 4; an open dot at −0.5 and a filled dot at 4, shaded between.
Someone reads (−∞, 3] as x < 3 and says that 3 is not in it. Decide.
- The bracket next to 3 means that 3 belongs to the set: the inequality is x ≤ 3.
- 3 satisfies x ≤ 3, since 3 = 3.
Answer: 3 is in (−∞, 3]. The two sets (−∞, 3] and (−∞, 3) differ in exactly this one number.
Write the interval
- Round
- 1
- Score
- 0
- Streak
- 0
The graph shows a solution set. Write it in interval notation.
The next lesson, Properties of inequalities, proves which operations on an inequality keep its solution set, and lesson 1.6 uses them to solve linear inequalities, whose solution sets are written in this notation. As with equations (Equations with no solution or infinitely many solutions), the answer may also be the whole line or ∅.
Exercises
Write in interval notation: (a) −1 < x < 6; (b) 2 ≤ x ≤ 9; (c) x > −0.25; (d) x ≤ 27.
▸ Show solution
(a) (−1, 6). (b) [2, 9]. (c) (−0.25, ∞). (d) (−∞, 27].
Write as an inequality in x: (a) [−1, 7); (b) (−∞, −2.5]; (c) (6, ∞); (d) (−∞, ∞).
▸ Show solution
(a) −1 ≤ x < 7. (b) x ≤ −2.5. (c) x > 6. (d) Every rational number: for example x + 1 > x has this solution set.
Which are written correctly? Correct the others. (a) (9, 4); (b) [−∞, 5); (c) (0, ∞]; (d) [1.5, 1.5].
▸ Show solution
(a) Wrong: the smaller endpoint comes first; the numbers between 4 and 9 are (4, 9). (b) Wrong: −∞ is not a number and takes a parenthesis: (−∞, 5). (c) Wrong: ∞ takes a parenthesis: (0, ∞). (d) Correct: it is the single number 1.5.
Which of −2, 0, 2.5 and 3 belong to (−2, 3]?
▸ Show solution
(−2, 3] is −2 < x ≤ 3. −2 does not belong (−2 < −2 is false); 0 and 2.5 belong; 3 belongs (3 ≤ 3).
Write the solution sets: (a) x + 4 > x; (b) 5 ≤ x ≤ 5; (c) 6 < x < 6.
▸ Show solution
(a) Every number satisfies it: (−∞, ∞). (b) Only 5 satisfies both (Exercise 7 of lesson 1.1): [5, 5]. (c) No number: 6 < x and x < 6 would give 6 < 6. The solution set is ∅.
How many integers belong to (−3.5, 2]? How many to (−3, 1)?
▸ Show solution
(−3.5, 2] contains the integers −3, −2, −1, 0, 1 and 2: six of them (−4 is not, since −4 < −3.5, and 2 is, since 2 ≤ 2). (−3, 1) contains −2, −1 and 0: three of them, since both ends are left out.
Show that the solution set of 1 < x < 3 has no greatest member, although 3 is greater than all its members. What does the parenthesis next to 3 in (1, 3) say, and why does ∞ in a ray never take a bracket?
▸ Show solution
Every solution s satisfies s < 3, so 3 is greater than every solution; and 3 is not a solution, since 3 < 3 is false. Now let s be a solution, so 1 < s < 3. As in the Theorem of lesson 1.2, the average m = s + 32 satisfies s < m < 3, and 1 < s < m gives 1 < m by transitivity. So m is a solution greater than s: no solution is the greatest.
So 3 is where the solutions end without being one of them: it is greater than all of them, and none of them is the last before it. The parenthesis in (1, 3) records exactly this: 3 is the right endpoint, and it is left out. For a ray such as x > 1 there is no such number at all (part (2) of the Proposition), so ∞ takes its place; ∞ is not a member either, so it too always takes a parenthesis.
Summary
- For a < b: (a, b) is a < x < b, [a, b] is a ≤ x ≤ b, [a, b) and (a, b] include one end. A bracket includes its endpoint, a parenthesis leaves it out; they match the filled and open dots of the graph.
- The smaller endpoint is written first. [a, a] is the single number a; (a, a) contains nothing.
- Rays: (a, ∞) is x > a, [a, ∞) is x ≥ a, (−∞, b) is x < b, (−∞, b] is x ≤ b, and (−∞, ∞) is every number.
- ∞ and −∞ are not numbers. There is no greatest or least rational number, and the solutions of x > a rise above every number, so a ray has no number at its open end: ∞ or −∞ marks that the set goes on without end, and always takes a parenthesis.
- The empty set ∅ has no members: it is the solution set of an inequality with no solution. It is not the set whose only member is 0.
Sources
- 1.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 2, “Solving Linear Equations and Inequalities”, section 2.7, “Solve Linear Inequalities” (“Graph Inequalities on the Number Line”), p. 277 (the whole topic: pp. 277–278).
“We can also represent inequalities using interval notation.”
Used for: interval notation is a written form of the solution sets of inequalities. - 2.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 2, “Basic Structures: Sets, Functions, Sequences, Sums, and Matrices”, section 2.1, “Sets” (2.1.1, “Introduction”), p. 123 (the whole topic: pp. 122–123).
“Among the sets studied in calculus and other subjects are intervals, sets of all the real numbers between two numbers a and b, with or without a and b.”
Used for: an interval is the collection of the numbers between two numbers a and b, with or without a and b; textbooks define intervals as collections of real numbers. - 3.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 2, “Basic Structures: Sets, Functions, Sequences, Sums, and Matrices”, section 2.1, “Sets” (2.1.1, “Introduction”), p. 123 (the whole topic: pp. 122–123).
“Note that [a, b] is called the closed interval from a to b and (a, b) is called the open interval from a to b. Each of the intervals [a, b], [a, b), (a, b], and (a, b) contains all the real numbers strictly between a and b. The first two of these contain a and the first and third contain b.”
Used for: the names closed interval for [a, b] and open interval for (a, b); each of the four intervals contains all the numbers strictly between a and b, and a bracket next to an endpoint includes it, a parenthesis leaves it out. - 4.Eric W. Weisstein, “Half-Closed Interval”, MathWorld, a Wolfram Web Resource.Section “Half-Closed Interval”. mathworld.wolfram.com/Half-ClosedInterval.html · open at the quoted passage.
“A half-closed interval is an interval in which one endpoint is included but not the other.”
Used for: an interval that includes one endpoint but not the other is called half-closed. - 5.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 2, “Solving Linear Equations and Inequalities”, section 2.7, “Solve Linear Inequalities” (“Graph Inequalities on the Number Line”), p. 278 (the whole topic: pp. 277–278).
“Did you notice how the parenthesis or bracket in the interval notation matches the symbol at the endpoint of the arrow?”
Used for: the parenthesis or bracket of the notation matches the mark at the endpoint of the graph. - 6.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 2, “Basic Structures: Sets, Functions, Sequences, Sums, and Matrices”, section 2.1, “Sets” (2.1.1, “Introduction”), p. 123 (the whole topic: pp. 122–123).
“Remark: Some books use the notations [a, b[, ]a, b], and ]a, b[ for [a, b), (a, b], and (a, b), respectively.”
Used for: the other notation ]a, b[, [a, b[ and ]a, b] for the open and half-closed intervals. - 7.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 1, “Foundations”, section 1.8, “The Real Numbers” (“Identify Integers, Rational Numbers, Irrational Numbers, and Real Numbers”), p. 135 (the whole topic: pp. 132–136).
“When we put together the rational numbers and the irrational numbers, we get the set of real numbers.”
Used for: the real numbers put together the rational and the irrational numbers (a preview of the unit Real Numbers). - 8.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 2, “Basic Structures: Sets, Functions, Sequences, Sums, and Matrices”, section 2.1, “Sets” (2.1.1, “Introduction”), p. 123 (the whole topic: pp. 122–123).
“If a and b are real numbers with a ≤ b, we denote these intervals by”
Used for: some textbooks allow equal endpoints, a ≤ b, in interval notation. - 9.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 2, “Solving Linear Equations and Inequalities”, section 2.7, “Solve Linear Inequalities” (“Graph Inequalities on the Number Line”), p. 277 (the whole topic: pp. 277–278).
“There is no upper end to the solution to this inequality. In interval notation, we express x > 3 as (3, ∞). The symbol ∞ is read as ‘infinity’. It is not an actual number.”
Used for: x > 3 is written (3, ∞): there is no upper end; ∞ is read “infinity” and is not an actual number. - 10.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 2, “Solving Linear Equations and Inequalities”, section 2.7, “Solve Linear Inequalities” (“Graph Inequalities on the Number Line”), p. 277 (the whole topic: pp. 277–278).
“There is no lower end to those numbers. We write x ≤ 1 in interval notation as (−∞, 1]. The symbol −∞ is read as ‘negative infinity’.”
Used for: x ≤ 1 is written (−∞, 1]; −∞ is read “negative infinity”. - 11.Jane Butterfield and Gary MacGillivray, “Precalculus Review Materials, Section 1.4, “Intervals on the real line””, Department of Mathematics and Statistics, University of Victoria.Section “1.4, “Intervals on the real line””. web.uvic.ca/~jvbutter/PreCalcReview/sec_intervals.html · open at the quoted passage.
“Since infinity is not a real number, we must always use an open bracket for infinity or negative infinity.”
Used for: since ∞ is not a number, ∞ and −∞ always take a parenthesis (an “open bracket”), never a bracket. - 12.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 2, “Solving Linear Equations and Inequalities”, section 2.7, “Solve Linear Inequalities” (“Solve Inequalities That Require Simplification”), p. 285 (the whole topic: pp. 285).
“The inequality is an identity. The solution is all real numbers.”
Used for: the solution set of an inequality that every number satisfies is the whole line, which the source writes (−∞, ∞) in interval notation. - 13.Florian Cajori, A History of Mathematical Notations (two volumes bound as one, Dover (first published by Open Court, 1928–1929), 1993).Vol. II, Chapter I, “Topical Survey of Symbols in Arithmetic and Algebra (Advanced Part)”, section “Signs for Infinity and Transfinite Numbers”, §421, p. 44 (the whole topic: pp. 44–46).
“to signify infinite number was introduced by John Wallis in 1655 in his De sectionibus conicis”
Used for: the sign ∞ for an infinite number was introduced by John Wallis in 1655, in his De sectionibus conicis (the sentence begins “The sign ∞”). - 14.J. J. O’Connor and E. F. Robertson, “John Wallis”, MacTutor History of Mathematics Archive, University of St Andrews.
“This work is also famed for the first use of the symbol ∞ which was chosen by Wallis to represent a curve which one could traced out infinitely many times.”
Used for: Wallis’s treatise on conic sections (1655, named in the preceding sentence of the page) is the work in which the symbol ∞ was first used (a second source). - 15.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 2, “Basic Structures: Sets, Functions, Sequences, Sums, and Matrices”, section 2.1, “Sets” (2.1.1, “Introduction”: “The Empty Set”), p. 124 (the whole topic: pp. 124–125).
“There is a special set that has no elements. This set is called the empty set, or null set, and is denoted by ∅.”
Used for: the collection with no members is called the empty set and is written ∅.