Definition Let A,B be nonempty sets Then the Cartesian product A×B of A and B is the set of all ordered pairs (a,b) with a∈A and b∈B. That is, A×B:={(a,b):a∈A,b∈B}