Math · Sets & Logic · Grade 6-8 · 5 min read

Union

⚡ In one breath

The union ABA \cup B is the set of everything that is in AA, in BB, or in both, with duplicates removed.

📐 The formula

AB={x:xA or xB}A \cup B = \{x : x \in A \text{ or } x \in B\}

Orient

The one-line idea, why it matters, and the intuition.

Section 1

Quick Answer

The union ABA \cup B is the set of everything that is in AA, in BB, or in both, with duplicates removed. Use it when an item qualifies by being in at least one of the sets — the OR condition. The cue is 'or', 'either', or 'combined'. Before calculating, ask: Does an item belong as long as it is in at least one of the sets?

Section 2

Why This Matters

Union is the OR of set theory and feeds straight into probability ('A or B happens'), counting with inclusion-exclusion, and database queries. A student who double-counts the overlap when listing or sizing a union will overstate every combined count. Recognizing it by "Does an item belong as long as it is in at least one of the sets?" — rather than by familiar numbers — is what lets a student tell it apart from intersection and sum of cardinalities and concatenation of lists in a mixed problem set.

Section 3

Intuitive Explanation

Pour a bag of red marbles and a bag of blue marbles into one jar. If a marble was in both bags, you still only have that one marble in the jar — everything from either bag is now together. This is the clean version of the idea because the visible structure matches the concept before any formula or procedure is chosen.

Listing shared elements twice in ABA \cup B — an element in both sets appears only once in the union, since a set has no duplicates. That contrast matters because many wrong answers come from recognizing a surface feature, such as a familiar number or word, instead of the actual task.

A useful way to slow down is to name the signal words and then test them. Words like **or**, **either**, **combined**, **all together**, **\cup** are helpful clues, but they are not enough by themselves. They must point to the same structure as the mental model: The union gathers all elements in A, in B, or in both, into one set.

The recognition test is simple: Does an item belong as long as it is in at least one of the sets? If yes, union is probably the right tool; if not, compare with Intersection or Sum of cardinalities or Concatenation of lists before calculating.

Core idea

The union gathers all elements in A, in B, or in both, into one set.

Recognize

The cues that signal this concept and how to distinguish it from look-alikes.

Section 4

When to Use

Use Union when an item qualifies by belonging to at least one of the sets (the OR condition). Strong signals include **or**, **either**, **combined**, **all together**, **\cup**. The safest workflow is to read the final question first, identify what kind of answer it wants, and then test the structure. Do not use union just because familiar numbers appear; first decide whether the situation answers "Does an item belong as long as it is in at least one of the sets?" with yes.

✨ Pro tip

Ask: Does an item belong as long as it is in at least one of the sets?

Section 5

How to Recognize It

Before using Union, check the structure of the problem, not just the vocabulary. These questions force the same recognition move from several angles: the task, the signal words, the nearest confusion, and the thing that would make the concept fail.

  1. Does an item belong as long as it is in at least one of the sets?

    If yes, the problem matches union. If no, pause before applying the procedure, because the same numbers may belong to a different idea.

  2. Which words signal the structure?

    Look for or, either, combined, all together. These words are useful only after the situation matches them; a keyword without structure is not proof.

  3. What is the nearest confusion?

    Intersection is the common trap here: Keeps only elements in BOTH sets, not either. Compare the desired final answer before choosing a method.

  4. What answer form should I expect?

    The answer should fit this mental model: The union gathers all elements in A, in B, or in both, into one set. If the expected answer sounds more like intersection, use the comparison table before solving.

  5. What would make this NOT Union?

    Listing shared elements twice in ABA \cup B — an element in both sets appears only once in the union, since a set has no duplicates. This tells you when to switch tools instead of forcing the concept.

Section 6

Union vs Common Confusions

The hard part is recognizing when the task is really about union instead of a nearby idea. Read the final answer the problem wants, then ask which row describes the structure before you start calculating.

Union

Meaning
Use this when an item qualifies by belonging to at least one of the sets (the OR condition). The deciding question is: Does an item belong as long as it is in at least one of the sets?
Key test
Does an item belong as long as it is in at least one of the sets?
Formula
AB={x:xA or xB}A \cup B = \{x : x \in A \text{ or } x \in B\}
Example
Let A={1,2,3}A = \{1, 2, 3\} and B={3,4,5}B = \{3, 4, 5\}. Find ABA \cup B.

Intersection

Meaning
Keeps only elements in BOTH sets, not either.
Key test
Use when an item must satisfy both conditions at once (AND).
Formula
AB={x:xA and xB}A \cap B = \{x : x \in A \text{ and } x \in B\}
Example
{1,2}{2,3}={2}\{1,2\} \cap \{2,3\} = \{2\}

Sum of cardinalities

Meaning
Adds the counts and double-counts shared members.
Key test
Use only when the sets are disjoint, or correct it with inclusion-exclusion.
Formula
A+BAB|A| + |B| - |A \cap B|
Example
ABA+B|A \cup B| \ne |A| + |B| when they overlap

Concatenation of lists

Meaning
Joins lists keeping order and duplicates.
Key test
Use when order and repeats matter, not for sets.
Example
[1,2]+[2,3]=[1,2,2,3][1,2] + [2,3] = [1,2,2,3]

Apply

Worked examples and the mistakes most students make.

Section 7

Formula & Notation

AB={x:xA or xB}A \cup B = \{x : x \in A \text{ or } x \in B\}
AB={x:xAxB}A \cup B = \{x : x \in A \lor x \in B\}

How to read it: ABA \cup B

Section 8

Worked Examples

Example 1 — Combine two sets

Easy

Problem

Let A={1,2,3}A = \{1, 2, 3\} and B={3,4,5}B = \{3, 4, 5\}. Find ABA \cup B.

Solution

  1. An element qualifies by being in AA or BB (or both).

    Name the structure before touching arithmetic — that is what makes the right method obvious.

  2. Ask the recognition question: Does an item belong as long as it is in at least one of the sets?

    If the answer is yes, the concept applies; the cue, not a keyword, decides the method.

  3. Collect every element from either set, listing each once.

    The rule is chosen only after the structure matches, so the steps mean something.

  4. From AA: 1,2,31, 2, 3; from BB: 4,54, 5 (the 33 is already counted).

    Keep units, shape, or answer form tied to the story so the work does not become symbol pushing.

  5. Check the answer against the original question.

    It should fit the mental model — everything from either pile, no repeats. If it does not, revisit the recognition step before changing the arithmetic.

Answer

AB={1,2,3,4,5}A \cup B = \{1, 2, 3, 4, 5\}

Takeaway: Union takes everything from either set with no repeats.

Example 2 — Both, not either

Standard

Problem

With A={1,2,3}A = \{1, 2, 3\} and B={3,4,5}B = \{3, 4, 5\}, what is the set of elements in BOTH?

Solution

  1. Notice why this looks like the same concept.

    Nearby language or numbers can tempt you toward everything from either pile, no repeats.

  2. 'Both' is the AND condition, which is intersection, not union.

    Spotting what actually changed is what separates this from the concept it resembles.

  3. Keep only elements shared by AA and BB instead of all of them.

    The nearby idea may share numbers but answers a different question, so it needs a different move.

  4. State the result in the language of the actual task.

    AB={3}A \cap B = \{3\}. Name it for what the problem really asked, not the concept you first expected.

  5. Say the contrast in one sentence.

    'Either' means union; 'both' means intersection.

Answer

AB={3}A \cap B = \{3\}

Takeaway: 'Either' means union; 'both' means intersection.

Example 3 — Spot the trap: Everything from either pile, no repeats

Application

Problem

A student starts with this idea: "Writing a shared element twice in the union" What should they check before accepting that reasoning?

Solution

  1. Pause before the first move.

    The first move is a decision, not a calculation — does the situation really match everything from either pile, no repeats.

  2. Run the recognition test: Does an item belong as long as it is in at least one of the sets?

    This is the single check that the trap skips.

  3. the union, being a set, lists each element once.

    Stating the safer rule turns the mistake into a checkable step instead of a vague "be careful."

  4. Compare with the nearest confusion, Intersection.

    Keeps only elements in BOTH sets, not either.

  5. State the corrected decision and reuse it.

    Using the concept only when the structure matches leaves a process the student can repeat on a new problem.

Answer

the union, being a set, lists each element once.

Takeaway: The recognition step prevents the common trap: Writing a shared element twice in the union

Section 9

Common Mistakes

Common slip-up

Writing a shared element twice in the union

The right idea

the union, being a set, lists each element once.

Common slip-up

Confusing \cup (or, combine) with \cap (and, overlap)

The right idea

union grows or stays the same, intersection shrinks or stays the same.

Common slip-up

Sizing a union as A+B|A| + |B| when the sets overlap

The right idea

subtract AB|A \cap B| to avoid double-counting.

Practice

Try it, then see where this concept fits in the path.

Section 10

Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. What clue tells you this is a Union situation: Let A={1,2,3}A = \{1, 2, 3\} and B={3,4,5}B = \{3, 4, 5\}. Find ABA \cup B.

    Hint: Does an item belong as long as it is in at least one of the sets?

  2. Let A={1,2,3}A = \{1, 2, 3\} and B={3,4,5}B = \{3, 4, 5\}. Find ABA \cup B.

    Hint: Collect every element from either set, listing each once.

  3. Why is this a contrast case instead of Union: With A={1,2,3}A = \{1, 2, 3\} and B={3,4,5}B = \{3, 4, 5\}, what is the set of elements in BOTH?

    Hint: 'Both' is the AND condition, which is intersection, not union.

  4. Fix this thinking: Writing a shared element twice in the union

    Hint: Name the recognition cue before choosing a rule.

  5. Which is the better fit here: Union or Intersection? Explain the deciding difference.

    Hint: For Union, ask: Does an item belong as long as it is in at least one of the sets?

  6. Write one sentence that would remind a classmate how to recognize Union.

    Hint: Use the mental model "Everything from either pile, no repeats." and one signal word.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Section 11

Frequently Asked Questions

How do I know when to use Union?

Use Union when an item qualifies by belonging to at least one of the sets (the OR condition). Do not start from the numbers alone; first name the structure of the situation. The fastest check is: Does an item belong as long as it is in at least one of the sets? If the answer is yes and the wording matches cues like or, either, combined, then union is probably the right tool.

What is Union most often confused with?

Union is often confused with Intersection. Intersection means Keeps only elements in BOTH sets, not either. The difference is not just vocabulary; it changes the action you take. For union, the key test is "Does an item belong as long as it is in at least one of the sets?" For intersection, the better cue is: Use when an item must satisfy both conditions at once (AND).

What is the fastest recognition cue for Union?

Look for or, either, combined, all together, but treat those words as clues, not proof. A word problem can contain a familiar keyword and still ask for a different idea. After noticing the cue, ask the recognition question: Does an item belong as long as it is in at least one of the sets? That question protects you from using a memorized procedure in the wrong place.

What mistake should I avoid with Union?

Avoid this thinking: "Writing a shared element twice in the union" That mistake usually happens when the student jumps to a rule before checking the situation. The safer version is: the union, being a set, lists each element once. A good habit is to say the mental model out loud first: "Everything from either pile, no repeats." Then choose the calculation or representation.

How can I tell this apart from Sum of cardinalities?

Sum of cardinalities is the better fit when the task is about this: Adds the counts and double-counts shared members. Union is the better fit when an item qualifies by belonging to at least one of the sets (the OR condition). If both ideas seem possible, compare what the problem wants as the final answer. The desired output often reveals whether you should use union or switch to the nearby concept.

Why does Union matter?

Union is the OR of set theory and feeds straight into probability ('A or B happens'), counting with inclusion-exclusion, and database queries. A student who double-counts the overlap when listing or sizing a union will overstate every combined count. The practical value is recognition: once you can spot union, you can choose a method before calculating. That makes later topics easier because you are not memorizing isolated tricks; you are recognizing the same structure when it appears in a new representation.

Section 12

Learning Path

← Before

Set
Union

You are here

Before this, students should be comfortable with Set. This page focuses on the recognition cue: Does an item belong as long as it is in at least one of the sets? That cue is the bridge between earlier skills and later problem solving: students first learn to identify the structure, then they learn which calculation, diagram, graph, or proof move belongs to it. After this, Intersection and Venn Diagram become easier to recognize.

Section 13

See Also