Cartesian product of sets
A map grid reference like "column D, row 7" is really just an ordered pair — and that simple idea, applied to sets, is exactly what launches the whole chapter "Relations and Functions" in CBSE Class 11 Mathematics. Having just finished sets — union, intersection, complement — you now learn how to pair up two sets systematically: take every element of one set, match it with every element of another, and keep track of which came first. The result is the Cartesian product, and it is not a side topic — it is the scaffolding on which relations (subsets of it) and functions (special relations) are built in the very next lessons. This article stays tightly inside the NCERT scope: forming , counting its elements, seeing why order matters, and recognising as the coordinate plane you already graph on.
The Cartesian product collects every ordered pair with and , giving pairs in total, and since order is built into the pair, generally differs from even though both have the same size.
The core idea
Ordered pairs first. An ordered pair fixes a position for each entry — first, second — which is what lets us say two ordered pairs are equal exactly when both positions match:
where: are the first entries and are the second entries of the two pairs being compared. This is stricter than set equality, where regardless of order — an ordered pair remembers sequence, a set does not.
Defining the product. For non-empty sets and , the Cartesian product is the set of all such pairs formed by taking a first element from and a second from :
Every element of gets paired with every element of , once each, and nothing else is included. If either or is empty, there is nothing to pair, so .
Counting the pairs. Because each of 's elements can be matched with each of 's elements independently, the total count multiplies rather than adds:
where: and are the number of elements in and . This is the single most-used fact in the chapter — both forwards (given the sets, find the count) and backwards (given the count and one set, find the other).
Order matters, but size doesn't care. Swapping the roles of and generally produces a different set of pairs, since unless , so in general. Yet the two products always have equal size, , because multiplication of the two counts is commutative even though the pairs themselves are not interchangeable.
Extending the idea. Taking gives (written ), the set of all ordered pairs of real numbers — precisely the coordinate plane, where every point is written . One step further, (written ) is the set of ordered triples , three-dimensional coordinate space. The idea generalises past two sets too: , with .
The goal is to justify, from nothing more than the definition of an ordered pair and a basic counting argument, why the number of pairs in is always the product rather than, say, their sum — this is the fact students are expected to both apply and prove informally in the chapter, and it is also the reasoning that later underlies counting rules in permutations and probability.
Step 1. Fix the first coordinate. Pick any one element and ask: how many ordered pairs can be formed with this fixed and ranging over ? Since can be any of the elements of , and each choice of gives a distinct pair (because the pairs differ in their second coordinate), fixing one produces exactly pairs.
Step 2. Vary the first coordinate. There are choices for , and Step 1 showed each choice of contributes its own separate batch of pairs. No pair from one batch can coincide with a pair from another batch, because pairs from different batches have different first coordinates, so by the definition of equality of ordered pairs they are unequal.
Step 3. Add up the batches. The full set is the union of these disjoint batches, each of size . Since the batches share no pairs, the total count is simply the sum of equal batches of size , which is added to itself times over — that is, :
Step 4. Read the result. The multiplication, not addition, arises because the choices of and are made independently — every one of the choices for the first slot can be freely combined with every one of the choices for the second slot. This is the same independent-choice reasoning used later for the fundamental counting principle.
Worked example
Let and . Find and , and verify the counting rule for each.
Step 1. List by pairing every element of (first slot) with every element of (second slot):
This gives 6 ordered pairs.
Step 2. List by reversing the roles — 's elements now come first:
This also gives 6 ordered pairs, but as sets : for instance while .
Step 3. Check the counting rule. Here and , so and — both match the lists above, confirming that the pairs differ while the counts agree.
Competitive stretch
If and has 20 elements, find , then list for .
Step 1. From : , so .
Step 2. For , each of the three positions is independently or , giving triples:
This matches , so and the eight triples are listed above.
Common traps
- Confusing with . A set collapses order and duplicates (); an ordered pair keeps a fixed sequence and can repeat naturally, e.g. .
- Assuming . The two sets of pairs are generally different (unless ), even though they always have the same size.
- Forgetting the empty-set case. If either or is empty, — it does not default to the non-empty set.
- Turning the product into a sum. , not — a slip that costs marks under time pressure.
Ask the tutor: Want to practice listing a Cartesian product without missing pairs, or work through a few more "find the unknown set size" problems using ?
Why is (a, b) different from (b, a) if a and b are just two elements sitting together
Because an ordered pair is defined by the rule that position carries meaning: the first slot and second slot are separate roles, not interchangeable membership in a group. Two ordered pairs are equal only when both the first entries match and the second entries match. So and are different objects unless , even though the same two elements are involved — exactly like a coordinate meaning something different from on a graph.
Do A times B and B times A ever come out equal as sets
Yes, in the special case , since then swapping the roles of the two sets does not change which pairs are available — every pair with is automatically matched by , also with both entries in . If , though, and are generally different sets of pairs, even while always holds since both equal .
How does the Cartesian product connect to relations and functions in the next lessons
A relation from to is formally defined as any subset of — so before you can even talk about "a relation," you need the full Cartesian product as the universe of all possible pairings to choose from. A function is then a special kind of relation (one where every element of appears exactly once as a first entry). That is why this topic opens the chapter: is the raw material, relations select some pairs from it, and functions are the most tightly constrained selections of all.