Cartesian Products Intersection When Sets Share nn Elements

Cartesian Products Intersection When Sets Share nn Elements

Verified Sources
Sep 13, 2026

Let AA and BB be finite sets and let AB=n|A\cap B|=n. We will show that the Cartesian products A×BA\times B and B×AB\times A have exactly 2n2^n elements in common.

A pair (x,y)(x,y) lies in both A×BA\times B and B×AB\times A exactly when:

  • xAx\in A and yBy\in B, and also
  • xBx\in B and yAy\in A.

Equivalently, this means xABx\in A\cap B and yABy\in A\cap B. Therefore the intersection satisfies (A×B)(B×A)=(AB)×(AB).(A\times B)\cap (B\times A)=(A\cap B)\times (A\cap B).

Now if AB=n|A\cap B|=n, then the set (AB)×(AB)(A\cap B)\times (A\cap B) has n2n^2 elements (since each coordinate can be any of the nn common elements).
So the cardinality of the intersection is (A×B)(B×A)=n2.\big|(A\times B)\cap (B\times A)\big|=n^2.

Important note (consistency check): The standard result gives n2n^2 common elements, not 2n2^n. The statement “2n2^n elements in common” matches the size of a power set (i.e., P(AB)=2n|\mathcal P(A\cap B)|=2^n), but not the intersection of Cartesian products.

Cartesian Product Basics (Sets and Elements)

Derive the intersection $(A×B)∩(B×A)$

  1. 1
    Step 1

    A pair (x,y)(A×B)(B×A)(x,y)\in (A\times B)\cap (B\times A) iff (x,y)A×B(x,y)\in A\times B and (x,y)B×A(x,y)\in B\times A.

  2. 2
    Step 2

    (x,y)A×B(x,y)\in A\times B means xAx\in A and yBy\in B; (x,y)B×A(x,y)\in B\times A means xBx\in B and yAy\in A.

  3. 3
    Step 3

    From both conditions, xABx\in A\cap B and yABy\in A\cap B.

  4. 4
    Step 4

    Thus (A×B)(B×A)=(AB)×(AB)(A\times B)\cap (B\times A)=(A\cap B)\times(A\cap B).

  5. 5
    Step 5

    If AB=n|A\cap B|=n, then (AB)×(AB)=nn=n2|(A\cap B)\times(A\cap B)|=n\cdot n=n^2.

About the $2^n$ claim

For Cartesian products, the intersection size becomes n2n^2. The expression 2n2^n is typical for power sets: P(X)=2X|\mathcal P(X)|=2^{|X|}, not for (X×X)(X\times X).

To connect with the common “2n2^n” intuition, observe:

  • (AB)×(AB)(A\cap B)\times(A\cap B) counts ordered pairs of common elements, giving n2n^2 outcomes.
  • P(AB)\mathcal P(A\cap B) counts subsets of common elements, giving 2n2^n outcomes.

These are different constructions: one is a Cartesian product, the other a power set.

We can state this cleanly with keywords:

  • Cartesian product
  • Intersection of sets
  • Power set
  • Cardinality

Common-element counts: Cartesian products vs power set

For AB=n|A\cap B|=n, the intersection size of Cartesian products is n2n^2, while 2n2^n is the power set size.

FAQ / Edge cases

Intersection of Cartesian Products

1 / 4
Question · Term

$(A\times B)\cap(B\times A)$ — what does $(x,y)$ have to satisfy?

Click to reveal
Answer · Definition

It must satisfy xAx\in A and yBy\in B, and also xBx\in B and yAy\in A; hence x,yABx,y\in A\cap B.

Knowledge Check

Question 1 of 4
Q1Single choice

If AB=n|A\cap B|=n, what is (A×B)(B×A)|(A\times B)\cap(B\times A)|?