The Cartesian product of 2 sets A and B is a set of all ordered pairs (x, y) such that xεA and yεB. It is denoted by A*B or AB.
Ex: A = {a, b, c} B = {1, 2, 3, 4} find A*B and B*A
Solution:
A*B = {(a, 1), (a, 2), (a, 3), (a, 4), (b, 1), (b, 2), (b, 3), (b, 4), (c, 1), (c, 2), (c, 3), (c, 4)}
B*A = {(1, a), (1, b), (1, c), (2, a), (2, b), (2, c), (2, a), (2, c), (3, a), (3, b), (3, c), (4, a), (4, b), (4, b), (4, c)}