The Cartesian product A × B
A × B is the set of all ordered pairs (a, b) with a ∈ A and b ∈ B. Unlike sets, ordered pairs care about order: (1, 2) ≠ (2, 1), which is why A × B ≠ B × A in general. The cardinality rule |A × B| = |A| · |B| is just the product rule of counting, and it underpins the definition of relations and functions as sets of pairs.
✓ Unlimited questions · marked criterion by criterion · no card needed
Method: how to approach it
The order below is what examiners expect to see, and each step carries its own marks.
- Fix the orderThe first coordinate always comes from the first named set. Pair each element of A with every element of B, in a systematic sweep.
- Count as a check|A × B| = |A| · |B|. If your list is shorter, you missed pairs.
- Extend to more factorsA × B × C consists of ordered triples, with |A × B × C| = |A| · |B| · |C|. Note A × B × C and (A × B) × C are formally different but routinely identified.
- Handle the empty caseIf either factor is empty, the product is empty: there is no pair to form.
Worked example
With A = {1, 2} and B = {x, y, z}, list A × B and give |B × A|.
- |A| = 2 and |B| = 3, so |A × B| = 6.
- Pair 1 with each of x, y, z: (1,x), (1,y), (1,z).
- Pair 2 with each: (2,x), (2,y), (2,z).
- |B × A| = 3 · 2 = 6 as well, but the sets differ — B × A contains (x,1), not (1,x).
Answer. A × B = {(1,x), (1,y), (1,z), (2,x), (2,y), (2,z)}; |B × A| = 6, though B × A ≠ A × B.
Where marks get dropped
These are the specific errors that cost credit on the cartesian product a × b questions — QED's rubric penalises each of them separately.
- Writing pairs as sets, {a, b} instead of (a, b). Order is the whole point, and {a, b} = {b, a} destroys it.
- Claiming A × B = B × A because the cardinalities match. Equal size does not mean equal set.
- Forgetting that A × ∅ = ∅ regardless of how large A is.
Practise this until it is automatic
Unlimited fresh questions
QED generates new the cartesian product a × b problems on demand at warm-up, exam and challenge level, so you can drill this one skill until it stops costing you marks.
Marked like an examiner
Every answer is scored against a point-by-point rubric with partial credit, so you see exactly which step of the method broke down — not just a tick or a cross.
Answer in real notation
A one-tap symbol palette, a visual equation editor and a truth-table builder — or photograph your handwritten working and QED converts it to LaTeX.
Saved to your library
Every question you generate is kept and re-takeable as a timed exam, and your Sets mastery is tracked so you know when this is exam-ready.
The Cartesian product A × B — frequently asked questions
Is A × B ever equal to B × A?
Only when A = B, or when one of them is empty. Otherwise some pair (a, b) with a ∉ B witnesses the difference.
What is A²?
Shorthand for A × A, the set of ordered pairs from A. Relations on A are exactly the subsets of A², which is why the notation is worth knowing.
Why is |A × B| = |A|·|B|?
By the product rule: choose the first coordinate |A| ways, then independently the second |B| ways. Every pair arises exactly once from such a choice.
The rest of Sets
Set-builder notation, operations, and set identities. Each subtopic below has its own method, worked example and mark-losing traps.
- 1Set-builder notation & membership
- 2Union, intersection, difference & complement
- 3Subsets & the power set 𝒫(A)
- 4The Cartesian product A × B
- 5Proving set identities
- 6Cardinality & inclusion–exclusion
- 7Indexed families & generalised ⋃ / ⋂
- 8Partitions & disjoint unions
- 9Countable vs uncountable sets
- 10Characteristic (indicator) functions
- 11Venn diagrams & shading regions
- 12Symmetric difference A △ B
- 13Russell’s paradox & naive set theory
Ready to make the cartesian product a × b exam-proof?
Generate your first questions free — no card, no setup, no personal data stored. Practise until the method is second nature.
Start practising free →