Sets forget order, so we engineer something that doesn't
From the membership lesson: . A set is a bag, and a bag has no first or last. That's great for "the set of solutions" but useless when order carries information. The coordinates and are different locations; " divides " reads one way only.
So we build the ordered pair — a new object whose defining property is exactly that it remembers which came first. Its entire contract is one rule:
Two ordered pairs are equal iff their first coordinates match and their second coordinates match. That's the definition, and it's the only thing about ordered pairs you ever need. The immediate consequence: only when . Order is now remembered — baked in, inescapable, exactly as advertised. (For the curious: you can build purely from sets — Kuratowski's trick defines it as , and you can check this satisfies the equality rule. We won't need the guts; the contract is what matters. But isn't it perversely beautiful that we can build this out of nothing but braces?)
The Cartesian product: every pair, assembled
Now collect them all. Given sets and , the Cartesian product is the set of all ordered pairs with first coordinate from and second from :
So is a set (good — sets are all we have), but its elements are ordered pairs. Concretely, if and :
Lay those out in a grid — rows indexed by , columns by — and every cell is one pair. That picture hands you the size formula for free:
Two choices for the first slot ( of them) times the choices for the second (), independent — so pairs above. This is the same multiplication-by-independent-choices logic that gave subsets in the power-set argument; you're going to keep meeting it.
Order matters in the product too: in general. Above, contains , which isn't even the right shape to be in . The product is not commutative — first sighting of a theme that dominates the matrix stratum.
Descartes' detonation: ℝ² is the plane
Here is one of the genuinely great moves in the history of human thought, and I will not forgive the Federation of Boring Textbook Authors for presenting it as "graph paper" and moving on. Take , the real line. Then
is the set of all ordered pairs of reals. And every such pair is a point in the coordinate plane: tells you how far along, tells you how far up. The plane you've drawn on since grade school is literally the Cartesian product of two number lines. That's why we call it the Cartesian plane — after René Descartes, who fused algebra and geometry by declaring that a point is a pair of numbers.
Sit with how violent this is. Before Descartes, geometry (shapes, lines, circles) and algebra (equations, numbers) were separate disciplines that barely spoke to each other. After him, a circle is the equation — a set of pairs . A line is a set of pairs. Geometry became algebra on sets of ordered pairs. Every graph you'll ever draw lives in some . Remember when we built from defects in ? Same fucking spirit — once you have the reals, products of them carry entire geometries.
More than two: ℝⁿ and the doorway to linear algebra
Nothing stops you at two. An ordered triple remembers three slots, with . The triple product is
and its size is . Taking all three factors to be gives — the set of points in D space, where locates a point in the room you're sitting in.
Keep going. For any , an ordered -tuple has slots, and
is the set of all such tuples of reals. This is the home address of all of linear algebra — vectors are tuples in , matrices are machines that move them around, and the entire Spaces stratum is just wearing a lab coat. You're building the floor that the rest of the building stands on. Right now. In this lesson. Every "vector" you ever meet is an element of a Cartesian product you just defined. File that away — it detonates the moment we reach vectors, and I want you to feel the satisfaction of knowing you built the floor before anyone else even told you the building existed.