Disjoint Sets: Is |A ∪ B| = N + M?
Hey guys! Today, we're diving deep into the fascinating world of set theory, specifically looking at a super common question: If you have two disjoint and finite sets, A and B, with sizes |A| = n and |B| = m, is it always true that the size of their union, |A ∪ B|, is equal to n + m? Let's break this down, explore why the answer is a resounding 'yes', and get a solid grasp on the underlying principles. This isn't just some abstract mathematical concept; understanding this property is fundamental to many areas of math and computer science, from counting principles to probability. So, grab your thinking caps, and let's get started on unraveling this neat piece of set theory.
Understanding Disjoint Sets and Their Union
First off, let's get our definitions straight. What exactly are disjoint sets? In simple terms, two sets are disjoint if they have absolutely no elements in common. Think of them as completely separate entities. Mathematically, we say sets A and B are disjoint if their intersection is the empty set, denoted as . The empty set is like a container with nothing inside it. So, if the intersection is empty, it means there isn't a single element that belongs to both A and B simultaneously. This is a crucial condition for our problem.
Now, what about the union of sets, ? The union of two sets A and B is a new set that contains all the elements from set A and all the elements from set B. If an element is in A, it's in the union. If an element is in B, it's also in the union. If an element happens to be in both A and B, it's still only included once in the union (because sets, by definition, don't contain duplicate elements). The size of a set, often denoted by vertical bars like , simply tells us how many elements are in that set. So, if , it means set A has 'n' distinct elements, and if , set B has 'm' distinct elements.
Our core question boils down to this: when A and B don't share any elements (), and A has 'n' elements while B has 'm' elements, does the combined set automatically have elements? The answer, my friends, is a categorical YES! And the reason is elegantly simple, stemming directly from the definition of disjoint sets. Because the sets are disjoint, every element we count from set A is unique and not present in set B, and every element we count from set B is unique and not present in set A. Therefore, when we combine them to form the union, we are simply adding up the distinct elements from each set without any overlap or double-counting. This fundamental principle is known as the Addition Principle in combinatorics, and it's a cornerstone of counting.
Imagine you have a bag of red marbles (set A, with n red marbles) and another bag of blue marbles (set B, with m blue marbles). If these bags are completely separate and no marble is in both bags (disjoint), and you pour all the marbles from both bags into a single large box (the union ), how many marbles will be in the box? You'll have the 'n' red marbles plus the 'm' blue marbles, for a total of marbles. There's no trickery, no overlap, just a straightforward sum of the individual quantities. This intuitive example perfectly mirrors the mathematical concept. The condition of being disjoint is what allows this simple addition to hold true. If the sets were not disjoint, we would have to subtract the elements in the intersection to avoid counting them twice, leading to the more general formula . But for disjoint sets, , simplifying the formula back to our desired . So, yes, for disjoint finite sets, the size of their union is indeed the sum of their individual sizes.
Proof of the Principle
Let's solidify this understanding with a formal proof, shall we? This will give us that extra layer of confidence in our answer. We are given two finite sets, A and B, such that they are disjoint. This means their intersection is the empty set: . We are also given that the size of set A is , and the size of set B is . We want to prove that .
To prove this, we can construct a one-to-one correspondence (a bijection) between the elements of and a set of distinct objects. A common way to represent distinct objects is using the set of integers from 1 to , which we can denote as . If we can show that there's a perfect pairing between the elements in and the elements in , then their sizes must be equal.
Since A and B are finite and disjoint, we can list the elements of A as and the elements of B as . Because , we know that none of the elements are the same as any of the elements. This means all the elements are distinct.
The union is the set containing all these elements: . The total number of elements in this combined set is the sum of the number of elements in A and the number of elements in B, since there's no overlap. So, directly from the definition of union and disjointness.
To be more rigorous, let's define a function . We can define as follows:
- For any element , let , where (i.e., map the i-th element of A to the integer i).
- For any element , let , where (i.e., map the j-th element of B to the integer ).
Now, let's check if this function is a bijection (both injective and surjective).
Injectivity (One-to-One): We need to show that if , then for any . There are three cases:
- If , then and . If , then . Since the mapping from to is unique, must equal . So .
- If , then and . If , then , which implies . Since the mapping from to is unique, must equal . So .
- If and , then (which is between 1 and n) and (which is between and ). Since the ranges of values assigned to elements from A and B are disjoint (one is and the other is ), can never equal . Thus, if , they must be in the same set, as shown in cases 1 and 2.
So, is indeed injective.
Surjectivity (Onto): We need to show that for every element , there exists an element such that .
- If , let . Then . So all integers from 1 to n are covered.
- If , let , where . Let . Then . So all integers from to are covered.
Since contains all 's and all 's, and contains all integers from 1 to , every element in is mapped to by some element in . Thus, is surjective.
Since is both injective and surjective, it is a bijection. The existence of a bijection between and proves that . And we know that . Therefore, . This formal proof confirms our intuition and the Addition Principle for disjoint sets. It’s a beautiful demonstration of how definitions lead directly to powerful properties in mathematics!
Why Disjointness is Key
So, we've established that yes, when A and B are disjoint finite sets. But why is that specific condition of