- Practice
- About 18 min
- 5 practice questions
Cartesian products, constants and variables, intervals and neighbourhoods
Form Cartesian products and count their elements, tell constants from dependent and independent variables, write intervals in every notation and describe ε-neighbourhoods of a point.
If something looks wrong, please tell us.
By the end of this lesson you can
- List A × B and A × B × C and use n(A × B) = n(A) n(B).
- Explain why A × B ≠ B × A for unequal non-empty sets.
- Identify constants, independent variables and dependent variables in a formula.
- Decide whether a subset of R is an interval, and write it in set and interval notation.
- Write the ε-neighbourhood and deleted neighbourhood of a point.
Relations and functions are sets of ordered pairs, and ordered pairs come from the Cartesian product. The domains of the real functions you will meet are usually intervals or unions of intervals. So this lesson gathers the two tools, together with the language of constants and variables, before relations begin.
Cartesian product
The Cartesian product of A with B is A × B = {(a, b) : a ∈ A, b ∈ B}, the set of all ordered pairs whose first entry comes from A and second from B. Likewise A × B × C = {(a, b, c) : a ∈ A, b ∈ B, c ∈ C} is a set of ordered triplets. Order matters: (1, 2) and (2, 1) are different pairs. So A × A = {(a, b) : a, b ∈ A} contains all pairs, not only the pairs (a, a). For non-empty sets, A × B = B × A if and only if A = B.
R × R = {(x, y) : x, y ∈ R} is written R² (the coordinate plane) and R × R × R is written R³ (space). For finite sets, n(A × B) = n(A) n(B) and n(A × B × C) = n(A) n(B) n(C). Familiar curves are subsets of R²: the line {(x, 3x) : x ∈ R}, the parabola {(x, x²) : x ∈ R}, and the two halves {(x, √x)} and {(x, −√x)} with x ≥ 0.
Worked example 1: listing a product
Let A = {p, q} and B = {1, 2, 3}. Then A × B = {(p, 1), (p, 2), (p, 3), (q, 1), (q, 2), (q, 3)}, which has 2 × 3 = 6 elements. B × A = {(1, p), (1, q), (2, p), (2, q), (3, p), (3, q)} also has 6 elements, but none of them is in A × B, so A × B ≠ B × A.
Worked example 2: counting a triple product
Let A = {2, 4, 6, 8, 10} and B = {8, 10, 12, 14}. Find n((A ∪ B) × (A ∩ B) × (A∆B)). Working: A ∪ B = {2, 4, 6, 8, 10, 12, 14}, so n = 7. A ∩ B = {8, 10}, so n = 2. A∆B = {2, 4, 6, 12, 14}, so n = 5. Hence the product has 7 × 2 × 5 = 70 elements.
Worked example 3: recovering a set from A × A
A × A has 9 elements, and (−1, 0) and (0, 2) are two of them. Find A. Working: n(A)² = 9 gives n(A) = 3. Every entry of a pair in A × A lies in A, so −1, 0 and 2 all belong to A. That is already three elements, so A = {−1, 0, 2}.
Worked example 4: a distributive law
Check A × (B ∩ C) = (A × B) ∩ (A × C) for A = {1, 2}, B = {x, y} and C = {y, z}. Left side: B ∩ C = {y}, so A × (B ∩ C) = {(1, y), (2, y)}. Right side: A × B = {(1, x), (1, y), (2, x), (2, y)} and A × C = {(1, y), (1, z), (2, y), (2, z)}; their common pairs are (1, y) and (2, y). Both sides agree.
Constants and variables
A quantity that keeps the same value throughout a piece of mathematics is a constant; one that changes is a variable. A variable that may take values freely is an independent variable; one whose value is decided by other variables is a dependent variable. In the perimeter of a rectangle, P = 2(l + b), the number 2 is a constant, l and b are independent variables and P is dependent. In the volume of a sphere, V = (4/3)πr³, both 4/3 and π are constants, r is independent and V is dependent. The labels are relative: in x − y = 4 we may choose x freely and find y, or choose y and find x.
Intervals
Real numbers correspond to points on the real line; numbers increase to the right, and between any two real numbers there are infinitely many more. A subset I of R is an interval if (i) I has at least two elements and (ii) whenever a, b ∈ I and a < c < b, also c ∈ I: an interval has no gaps. So N, W, Z, the even integers and the primes are not intervals, since, for example, 1.5 lies between 1 and 2 but is not an integer.
Intervals whose two ends are real numbers are finite intervals (line segments); those reaching ∞ or −∞ are infinite intervals (rays or the whole line). A finite interval still contains infinitely many numbers; finite refers only to its ends. A finite interval is closed if it contains both end points and open if it contains neither. A round bracket ( ) excludes an end; a square bracket [ ] includes it. On a number-line sketch an unfilled circle ○ marks an excluded point and a filled circle ● an included one. Since ∞ is not a number, it always takes a round bracket.
| Interval | Set form | Type |
|---|---|---|
| (a, b) | {x : a < x < b} | finite, open |
| [a, b] | {x : a ≤ x ≤ b} | finite, closed |
| (a, b] | {x : a < x ≤ b} | finite, neither open nor closed |
| [a, b) | {x : a ≤ x < b} | finite, neither open nor closed |
| (a, ∞) | {x : x > a} | infinite |
| [a, ∞) | {x : x ≥ a} | infinite |
| (−∞, b) | {x : x < b} | infinite |
| (−∞, b] | {x : x ≤ b} | infinite |
| (−∞, ∞) | R | infinite, the whole line |
Worked example 5: converting notations
(i) {x ∈ R : −3 < x ≤ 5} = (−3, 5], a finite interval that is neither open nor closed. (ii) {x ∈ R : x ≥ 2} = [2, ∞). (iii) [−1, 4) in set form is {x ∈ R : −1 ≤ x < 4}. (iv) The solution set of x² < 9 is the open interval (−3, 3), because x² < 9 exactly when −3 < x < 3.
Neighbourhoods
A neighbourhood of a point a is any open interval containing a. If ε is a positive number (usually small), the ε-neighbourhood of a is the open interval (a − ε, a + ε), which is the same as {x : |x − a| < ε}. Removing the point itself gives the deleted neighbourhood (a − ε, a + ε) − {a}, described by 0 < |x − a| < ε. These ideas are the starting point of limits in calculus.
Worked example 6: neighbourhoods
The 0.1-neighbourhood of 3 is (3 − 0.1, 3 + 0.1) = (2.9, 3.1), or |x − 3| < 0.1. Its deleted neighbourhood is (2.9, 3) ∪ (3, 3.1). In reverse, |x − 2| < 3 means −3 < x − 2 < 3, that is −1 < x < 5; this is the open interval (−1, 5), the 3-neighbourhood of 2.
Neighbourhood or deleted neighbourhood?
-
ε-neighbourhood of a
- (a − ε, a + ε)
- |x − a| < ε
- contains a itself
-
Deleted neighbourhood of a
- (a − ε, a + ε) − {a}
- 0 < |x − a| < ε
- a is removed
n(A × B) = n(A) n(B). In intervals, ( ) excludes an end and [ ] includes it; ∞ always takes ( ). The ε-neighbourhood of a is (a − ε, a + ε) = {x : |x − a| < ε}.
Key takeaways: Cartesian products are sets of ordered pairs, so order matters and A × B ≠ B × A unless A = B; constants stay fixed while dependent variables follow independent ones; an interval is a gap-free subset of R with at least two points; and the ε-neighbourhood of a is the open interval of half-width ε centred at a.
Check your understanding
-
1. If n(A) = 4 and n(B) = 3, how many elements does A × B × A have?
- 11
- 48
- 36
- 64
Show answer
Answer: B. n(A × B × A) = n(A) × n(B) × n(A) = 4 × 3 × 4 = 48.
-
2. A × A has 16 elements and contains (0, 3) and (5, 1). What is A?
- {0, 1, 3, 5}
- {0, 3, 5}
- {0, 1, 3}
- {1, 3, 5}
Show answer
Answer: A. n(A)² = 16 gives n(A) = 4. The entries 0, 3, 5 and 1 must all lie in A, which makes four elements, so A = {0, 1, 3, 5}.
-
3. Which of these sets is an interval?
- The set of integers
- The set of prime numbers
- {x ∈ R : 1 < x ≤ 2}
- {1, 2}
Show answer
Answer: C. {x ∈ R : 1 < x ≤ 2} = (1, 2] contains every real number between any two of its members. The integers, the primes and {1, 2} have gaps: 1.5 lies between 1 and 2 but is not in them.
-
4. Which interval is {x ∈ R : |x + 1| < 2}?
- (−1, 3)
- (−3, 3)
- [−3, 1]
- (−3, 1)
Show answer
Answer: D. |x + 1| < 2 means −2 < x + 1 < 2. Subtracting 1 gives −3 < x < 1, the open interval (−3, 1), which is the 2-neighbourhood of −1.
-
5. In the formula for the area of a circle, A = πr², which statement is correct?
- π and r are constants, A is a variable
- π is a constant, r is independent and A is dependent
- A is independent and r is dependent
- All three are constants
Show answer
Answer: B. π keeps the same value whatever the circle, so it is a constant. We choose the radius r freely, so it is the independent variable, and the area A is decided by r, so A is dependent.
Sign in to keep track of the lessons you finish.