Get AI summaries of any video or article — Sign up free
Start Learning Sets 4 | Cartesian Product and Maps [dark version] thumbnail

Start Learning Sets 4 | Cartesian Product and Maps [dark version]

5 min read

Based on The Bright Side of Mathematics's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

The Cartesian product A × B is the set of all ordered pairs (a, b) with a ∈ A and b ∈ B, and swapping components generally changes the pair.

Briefing

Cartesian product and maps are built from the same core idea: pairing elements from two sets, then using those pairs to encode a rule.

The Cartesian product of two sets A and B—written A × B—is the set of all ordered pairs (a, b) where the first entry a comes from A and the second entry b comes from B. Order matters: swapping the entries changes the pair, so (a, b) is not the same as (b, a) unless the sets and elements line up in a way that makes the ordered pairs identical. A concrete example uses A = {triangle, square, circle} and B = {4, 7}. The Cartesian product contains six ordered pairs: (triangle, 4), (triangle, 7), (square, 4), (square, 7), (circle, 4), and (circle, 7). For intuition, the transcript suggests visualizing A as an x-axis and B as a y-axis, turning A × B into a grid of coordinate positions—each position corresponds to exactly one ordered pair.

To connect this “ordered” object back to ordinary set theory, ordered pairs are defined using sets. One common encoding is: (X, Y) is represented by a set whose elements are {X} and {X, Y}. With this encoding, equality of ordered pairs reduces to equality of the underlying components: (X, Y) = (X̃, Ỹ) happens exactly when X = X̃ and Y = Ỹ. Once ordered pairs are secured this way, the Cartesian product can be treated purely as a set of these encoded ordered pairs.

The next step turns a subset of A × B into a map (also called a function). A subset Gf ⊆ A × B is called the graph of a map f if it satisfies the “uniqueness” requirement: for every X in A, there is exactly one Y in B such that (X, Y) lies in Gf. In the plane picture, that means each x-value from A can correspond to at most one y-value in B; the graph should behave like a one-dimensional rule rather than a scatter of multiple points for the same input. The transcript also emphasizes the “exactly one” part: every element of the domain must be assigned an output.

This leads to standard notation. A map is written f: A → B, and the statement “f(x) = y” means that the ordered pair (x, y) belongs to the graph Gf. Here, A is the domain (the set of inputs) and B is the codomain (the set of potential outputs). An example uses the same A as before and a numerical set B. The map can send triangle to 1 and circle to 6, while the square can be sent to either 1 or 6 (or another allowed number if present). The key asymmetry remains: every element in A must be hit exactly once as an input, but elements in B may be unused or hit multiple times as outputs.

Overall, the framework is systematic: Cartesian products create the universe of ordered pairs, and maps are precisely the subsets of that universe that assign each domain element a unique codomain value.

Cornell Notes

The Cartesian product A × B is the set of all ordered pairs (a, b) with a ∈ A and b ∈ B, and the order of entries matters. Ordered pairs can be defined using sets, so the “ordered” structure can be built entirely from set theory. A map f: A → B is a subset Gf ⊆ A × B with a uniqueness rule: for every x ∈ A, there exists exactly one y ∈ B such that (x, y) ∈ Gf. This makes the graph behave like a rule that assigns each input to one output. The domain is A and the codomain is B; outputs in B can be repeated or not used at all.

What exactly is A × B, and why does order matter?

A × B is the set of all ordered pairs (a, b) where the first component a comes from A and the second component b comes from B. Order matters because (a, b) is different from (b, a) in general; swapping the entries changes which set each element is drawn from. In the example A = {triangle, square, circle} and B = {4, 7}, the product contains pairs like (triangle, 7) and (square, 4), and there is no pair obtained by swapping the components that would still belong to A × B unless the swapped pair matches the required “first from A, second from B” structure.

How can an ordered pair be defined using only sets?

The transcript gives a common encoding: for elements X and Y, the ordered pair (X, Y) is represented as a set with (at most) two elements, designed so that the first component and second component can be recovered. In the presented scheme, one element is {X} and the other is {X, Y}. With this encoding, equality of ordered pairs reduces to equality of components: (X, Y) = (X̃, Ỹ) holds exactly when X = X̃ and Y = Ỹ.

What condition turns a subset of A × B into the graph of a map?

A subset Gf ⊆ A × B becomes the graph of a map f when it satisfies uniqueness for inputs: for every X ∈ A, there exists exactly one Y ∈ B such that (X, Y) ∈ Gf. In other words, each input X can pair with at most one output Y in the subset, and the “exactly one” requirement ensures every X gets an output. Visually, in the grid picture, each x-value has one corresponding y-value on the graph.

How do the notations f: A → B and f(x) = y relate to membership in the graph?

The notation f: A → B names a map from A (domain) to B (codomain). The statement f(x) = y means that the ordered pair (x, y) lies in the graph Gf ⊆ A × B. So the arrow notation describes the rule’s direction, while the equation f(x) = y pins down the specific paired output for a given input.

In a map, what restrictions apply to the domain versus the codomain?

Every element of the domain A must be assigned an output in B—so each x ∈ A appears in exactly one ordered pair (x, y) in the graph. By contrast, elements of the codomain B are not required to appear at all; some y-values may be unused. Also, multiple different inputs in A may map to the same output in B, so outputs can repeat.

Review Questions

  1. If (a, b) and (b, a) are both formed from the same two sets A and B, under what circumstances could they be equal?
  2. What does it mean for a subset Gf ⊆ A × B to satisfy the “exactly one y for each x” condition?
  3. Why is the codomain B called a “potential outputs” set rather than the set of outputs that must all be used?

Key Points

  1. 1

    The Cartesian product A × B is the set of all ordered pairs (a, b) with a ∈ A and b ∈ B, and swapping components generally changes the pair.

  2. 2

    Ordered pairs can be encoded as sets, allowing ordered structures to be defined purely within set theory.

  3. 3

    A map f: A → B corresponds to a subset Gf ⊆ A × B where each input x ∈ A has exactly one associated output y ∈ B.

  4. 4

    The graph condition enforces uniqueness: no input x can correspond to two different outputs y and ỹ in Gf.

  5. 5

    The domain is A (every element must be mapped), while the codomain is B (elements may be unused or hit multiple times).

  6. 6

    Notation f(x) = y is equivalent to saying (x, y) ∈ Gf.

  7. 7

    A coordinate-grid visualization helps: A supplies x-values and B supplies y-values, and a map’s graph behaves like a one-output-per-input rule.

Highlights

A × B is built from ordered pairs, so order matters: (a, b) is not the same as (b, a) in general.
Ordered pairs can be defined using sets, making the Cartesian product and maps derivable from set theory alone.
A map is exactly a subset of A × B with the rule: each x ∈ A pairs with one and only one y ∈ B.
In a function, every domain element must be used, but codomain elements can be skipped or repeated.

Topics

  • Cartesian Product
  • Ordered Pairs
  • Maps
  • Function Graph
  • Domain and Codomain