Cartesian Product Calculator
Find the Cartesian product of two sets.
About Cartesian Product Calculator
The Cartesian product of two sets is the set of all ordered pairs where the first element is from A and the second from B.
$$A \times B = \{(a,b) | a \in A, b \in B\}$$
How to use this calculator
- Enter the first set, for example \(A = \{1,2\}\).
- Enter the second set, for example \(B = \{x,y\}\).
- Calculate to list every ordered pair \((a,b)\) with \(a \in A\) and \(b \in B\).
- Check the result to make sure each element from the first set is matched with every element from the second set.
The formula explained
The formula \(A \times B = \{(a,b) \mid a \in A, b \in B\}\) means the Cartesian product is the set of all ordered pairs where the first entry comes from \(A\) and the second entry comes from \(B\). The order matters, so \((1,x)\) is different from \((x,1)\).
- A = the first set
- B = the second set
- a = an element chosen from set \(A\)
- b = an element chosen from set \(B\)
- (a,b) = an ordered pair made from one element of \(A\) and one element of \(B\)
Step by step method
- List the elements of the first set and the second set.
- Pair each element of the first set with every element of the second set.
- Write the pairs in ordered form, with the first coordinate from the first set and the second coordinate from the second set.
Worked example
Problem. Find the Cartesian product of \(A = \{1,2\}\) and \(B = \{3,4\}\).
- Start with the first element of \(A\), which is 1, and pair it with every element of \(B\): \((1,3)\), \((1,4)\).
- Now use the second element of \(A\), which is 2, and pair it with every element of \(B\): \((2,3)\), \((2,4)\).
- Combine all the ordered pairs into one set: \(A \times B = \{(1,3),(1,4),(2,3),(2,4)\}\).
Answer. \(A \times B = \{(1,3),(1,4),(2,3),(2,4)\}\)
Tips and common mistakes
- Do not switch the order of the sets unless you want a different product, because \(A \times B\) is not the same as \(B \times A\).
- Remember that the output is a set of ordered pairs, so repeated pairs should appear only once.
Frequently asked questions
How do I use the Cartesian Product Calculator?+
Enter the two sets you want to combine, then calculate. The result lists every ordered pair formed by taking one element from the first set and one from the second set.
What does A × B = {(a,b) | a ∈ A, b ∈ B} mean?+
It means the Cartesian product of set A and set B is the set of all ordered pairs where the first item comes from A and the second item comes from B. Order matters, so (a,b) is not the same as (b,a) unless the two values happen to be equal.
What happens if one of the sets is empty?+
If either set is empty, the Cartesian product is empty too. That is because there is no way to form an ordered pair when one side has no elements.
How is the Cartesian product different from combining sets with union or intersection?+
Union joins elements from both sets without pairing them, while intersection keeps only elements they share. The Cartesian product does something different, it makes ordered pairs from every possible combination of elements across the two sets.
How should I interpret the output for a small example like {1,2} × {a,b}?+
The result is {(1,a), (1,b), (2,a), (2,b)}. This means each element in the first set is paired with each element in the second set, so the total number of pairs is the product of the set sizes.
More Mathematics Tools
Explore related calculators in this category
Absolute Value Calculator
Calculate the absolute value of any number. Use this free calculator for fast, accurate answers, complete with the formula and a worked example.
Absolute Value Equation Solver
Solve equations of the form |ax + b| = c.
Adding Fractions Calculator
Add two fractions with step-by-step simplification.
One-Way ANOVA Calculator
Perform one-way ANOVA on multiple groups.
You Might Also Like
Popular tools from other categories
AC to DC Converter Calculator
Convert AC voltage to DC voltage for different rectifier configurations. Free online calculator with instant, step-by-step results.
Acid-Base Titration Calculator
Calculate concentration from titration data. Get quick, accurate results with this free online calculator, including formulas and worked examples.
ABV Calculator
Calculate alcohol by volume from original and final gravity. Free calculator with instant calculations, the underlying formula, and an easy-to-follow example.
Amortization Schedule Calculator - Free Online
Free Generate a complete amortization schedule. Step-by-step solutions and formulas included. Free, accurate results with step-by-step explanations.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.