foundation21 min studyLesson 111 in Mathematics

Set operations: turn membership into an argument

Distinguish elements from subsets and prove identities by following one arbitrary member.

On this page

What you’ll understand

  • Separate membership, containment, and equality.
  • Compute unions, intersections, differences, and complements relative to a universe.
  • Prove a set identity by translating membership into logic.

A search filter combines conditions: records from this year, records tagged physics, or records missing an author. Sets give those requests a precise language. The important object is not the outline of a Venn diagram but the rule deciding whether each possible record belongs. Once membership is explicit, an identity between complicated filters becomes a short logical argument that works for every record, including ones not drawn in the picture.

Membership and containment ask different questions

A set is determined by its members. Repeating an entry or changing the written order does not change it: the collections written as {2,2,5}\{2,2,5\} and {5,2}\{5,2\} are equal. Membership asks whether a particular object is in a set. Containment asks whether every member of one set is also a member of another. An element can itself be a set, so the two questions must remain distinct even when both sides use braces.

The empty set contains no elements and is a subset of every set: a counterexample to containment would need an element of the empty set, and none exists. However, the empty set is not automatically an element of every set. For example, the singleton containing the empty set has one element, whereas the empty set has zero. Keeping this difference explicit prevents mistakes when later counting collections of subsets or constructing partitions.

A⊆B ⟺ (∀x)(x∈A⇒x∈B),A=B ⟺ A⊆B and B⊆AA\subseteq B\ \Longleftrightarrow\ (\forall x)(x\in A\Rightarrow x\in B),\qquad A=B\ \Longleftrightarrow\ A\subseteq B\ \text{and}\ B\subseteq A
Equality can be proved using two containments. The quantified variable ranges over the objects under discussion.↔ Scroll wide equations horizontally.

Combine conditions one object at a time

An object belongs to a union when it belongs to at least one operand, and to an intersection when it belongs to both. Set difference keeps members of the first set that fail membership in the second. A complement needs a declared universe: the complement of the even integers among integers differs from their complement among real numbers. In a database analogy, the universe is the table being filtered, not every conceivable object.

To prove an identity, pick an arbitrary object and translate each operation into and, or, and not. For De Morgan's law, failing to belong to a union means satisfying neither membership condition, so it means belonging to both complements. This argument establishes equality for all possible objects at once. Testing three sample objects can expose a false identity, but it cannot replace the arbitrary-object argument establishing a true one.

U∖(A∪B)=(U∖A)∩(U∖B),A,B⊆UU\setminus(A\cup B)=(U\setminus A)\cap(U\setminus B),\qquad A,B\subseteq U
Both complements use the same fixed universe U. The identity is the set version of negating an inclusive logical or.↔ Scroll wide equations horizontally.

Use structure instead of trusting a picture

Distribution describes how two kinds of filtering interact. Membership in an intersection with a union means satisfying the first condition and at least one of the other two; this can be rearranged into a union of two intersections. A Venn diagram is useful for inventing the claim, while a membership proof explains why it survives even for infinite sets or sets with no meaningful geometric shape.

A power set is the set of all subsets of a given set, including the empty subset and the whole set. It is a new level of collection, not a synonym for the original set. For two distinct objects there are four subsets, because each object independently receives a yes or no membership choice. Later counting arguments will turn this decision process into a general formula, and diagonal arguments will show why power sets matter even beyond finite counting.

Audit a pair of filters

Let U = {1,2,3,4,5,6}, A = {1,2,4}, and B = {2,3,4}. Compute the complement of their union and check De Morgan's law.

  1. List every object that meets either membership test: the union is {1,2,3,4}. The shared entries 2 and 4 appear once because this is a set.

  2. Remove that union from U. The surviving objects are {5,6}; there are no other candidates because the universe was declared explicitly.

  3. Compute the separate complements: U minus A is {3,5,6}, and U minus B is {1,5,6}. Their intersection is {5,6}, agreeing with the direct computation.

The result

Both procedures return {5,6}. The example checks these particular sets; the membership argument proves the general identity.

Explore the model

Interactive lab

Interactive lab · function

A graph is also a set

The coefficient a and position x controls inspect the graph set Ga={(x,ax2):x∈R}G_a=\{(x,ax^2):x\in\mathbb R\}. Choose a=1 and x=1 and record (1,1). Before changing a to 2, predict whether that recorded pair belongs to the new graph. The highlighted point itself updates with a; the old pair stays in the union of both graphs. The lab shows one quadratic family, not arbitrary unions or a proof of a set identity.

A graph is also a setThis lab uses only y = ax². Playback traces the curve within the fixed integration interval from 0 to x; it does not estimate numerical error or change the chosen point. Current readings: y at chosen x: 0.608; Tangent slope · 2ax: 1.35; Signed area · ax³/3: 0.182. All parameters are adjustable with the labeled controls below.−2.4−1.201.22.4−9−4.504.59xy(x, ax²)
y = ax²TangentSigned integral
y at chosen x
0.608
Tangent slope · 2ax
1.35
Signed area · ax³/3
0.182
t = 0 s

This lab uses only y = ax². Playback traces the curve within the fixed integration interval from 0 to x; it does not estimate numerical error or change the chosen point. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forA membership rule supplies the meaning; the visible curve shows only some of its members.

Check your understanding

Which claim holds for every set A?

Try it yourself

Prove A minus (B intersection C) = (A minus B) union (A minus C), without assuming the sets are finite.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Start with membership on the left and negate the condition requiring membership in both B and C.

Compare with the solution

An arbitrary x belongs to the left precisely when x is in A and not in both B and C. This means x is in A and either absent from B or absent from C. Distributing the A condition gives: x is in A but absent from B, or x is in A but absent from C. That is exactly membership on the right. Every step is reversible, so the sets are equal.

Take it with you

  • An element of a set and a subset of that set are different kinds of claim.
  • Complements have meaning only relative to a declared universe.
  • An arbitrary-member argument proves an identity beyond the finite picture.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.