Concept stop · What is it?

Operations on Sets

In the Chinese book: 集合的运算

Three sets cut U into 8 regions; equal sets shade exactly the same regions.

Before this stop, visit:Elements and Sets (Concept)

Hands first, words secondShade a few regions at random and watch the formula the machine writes below. Can you find a shading that makes the formula especially long?

Loading figure…

Try this

  1. Shade only the common part of and (ignore ). What does the machine write? Now unshade the small piece of it that lies in . What does the formula become?
  2. Shade the two regions “in but not in ”. Why does the machine use instead of and a complement?
  3. Shade every region outside , then tap “Complement” a few times. How are the two formulas related?
  4. Into how many regions do the three circles cut ? Each region is either shaded or not.

Intersection, union, complement and difference are all defined element by element:

The three logical words “and”, “or” and “not” are the whole secret. A Venn diagram draws exactly this: which region an element lands in depends only on whether it is in , whether it is in and whether it is in . Three yes/no answers give possibilities.

Predict first

Three sets cut the universal set into regions. Using with intersection, union, difference and complement, how many different sets can you write?

Choose an answer first; then you can see the result.

Why: De Morgan's laws

The standard way to prove that two sets are equal is to show that each contains the other, that is, to chase elements: take any element of the left side and show it is in the right side, and vice versa. On a Venn diagram this amounts to shading every region the same way.

Proof: ∁(A∪B) = ∁A ∩ ∁B

Step 1 / 6
Loading figure…
  1. The left side

    First shade : the three regions inside the circles.

The commutative, associative, distributive and absorption laws can all be checked region by region in the same way. The “picture matcher” below draws the two sides next to each other. There are two distributive laws: which option is another way of writing ?

Loading figure…
The red regions are where the two sides disagree. Put an element there and you have a counterexample.

Unlike the arithmetic of numbers, both distributive laws hold for sets: distributes over , and distributes over .

Remove one condition

Break it

Counterexample lab: remove one condition

Conclusion: The brackets can be moved freely

When every operation is (or every one is ), the associative law holds and it does not matter where the brackets go:

Loading figure…

Practice

Exercise 1Basic

Let , let be the set of even numbers in , and let be the set of multiples of in . How many elements does have?

Exercise 2Basic

Given , and , find (list its elements separated by commas).

Exercise 3Advanced

How many ordered pairs of sets satisfy ? (When , and count as two.)

Exercise 4Challenge

Let . How many ordered triples satisfy and ?

Mistake Museum · Exhibits from this stop

Before you leave, look at the traps other people fell into here.See every exhibit in the museum →

Exhibit

Moving brackets around in a set difference

The wrong step:
What went wrong? Think first, then open

Diagnosis Take . On the left, , so the left side is ; on the right, , and removing more still leaves . The two sides disagree on the region .

The right step: Check element by element, or rewrite the difference as an intersection: .

“Only union and intersection let you move brackets freely; difference does not”

Exhibit

Taking the complement inside the brackets but not flipping the operation

The wrong step:
What went wrong? Think first, then open

Diagnosis An element outside is only missing from at least one of them: it may be in but not in . For example, with , , , the left side is and the right side is .

The right step: De Morgan's laws do two things at once: complement each set, and swap intersection for union: .

“When the complement goes inside the brackets, intersection and union swap”