Mathematics · Ch 1 — Sets, Relations and Functions
Cartesian Product
1.3
Cartesian Product
Definition. For non-empty sets A,B,C, the Cartesian product of A with B is the set of ordered pairs
A×B={(a,b):a∈A,b∈B}.
For three sets, A×B×C={(a,b,c):a∈A,b∈B,c∈C} is a set of ordered triplets. In particular A×A={(a,b):a,b∈A} -- this is not the same as {(a,a):a∈A}, which is only the "diagonal" of A×A.
Order matters. Because the pairs are ordered, A×B=B×A in general; equality A×B=B×A forces A=B. The familiar R×R={(x,y):x,y∈R} (written R2) is the coordinate plane, and R×R×R=R3 (written R3) is ordered-triplet space.
Counting rule.n(A×B)=n(A)n(B) for finite A,B; similarly n(A×B×C)=n(A)n(B)n(C).
Familiar subsets of R×R. Graphs of ordinary curves are exactly subsets of R×R: {(x,2x):x∈R} (a line), {(x,x2):x∈R} (a parabola), {(x,x):x≥0} and {(x,−x):x≥0} (the two branches of y2=x), {(x2,x):x∈R}.
Worked examples from the book, in brief:
Counting subsets of a set defined by a condition. For A={x:x=4n+1,2≤n≤5,n∈N}={9,13,17,21}, n(A)=4 so n(P(A))=24=16.
Language-survey cardinality. With three overlapping groups (percentages of 5000 people knowing three languages), the count "only Language A" is found via n(A)−n(A∩B)−n(A∩C)+n(A∩B∩C), giving 1950 people -- confirmed independently by drawing a Venn diagram with the region percentages.
A set-algebra identity. Statements like ((A∪B′∪C)∩(A∩B′∩C′))∪((A∪B∪C′)∩(B′∩C′))=B′∩C′ are proved by using subset containments (e.g. A∩B′∩C′⊆A⊆A∪B′∪C) to collapse each bracket.
Counting a "removed-element" family of subsets. If X={1,…,10}, A={1,2,3,4,5}, the subsets B⊆X with A−B={4} correspond exactly to subsets C of {6,7,8,9,10} (take B=C∪{1,2,3,5}), so there are 25=32 such B.
Cardinality algebra. If n(B−A)=2n(A−B)=4n(A∩B) and n(A∪B)=14: setting n(A∩B)=k gives n(A−B)=2k,n(B−A)=4k, and since n(A∪B)=n(A−B)+n(B−A)+n(A∩B)=7k=14, k=2; then n(A)=n(A−B)+n(A∩B)=6, so n(P(A))=26=64.
Power-of-2 equation. Two sets with m,k elements (m>k) where 2m−2k=112=24×7: factoring 2k(2m−k−1)=24×7 forces k=4,2m−k−1=7⇒m−k=3⇒m=7. …