Sets and Elements

Chapter 2: Reading, Writing, and Notating Mathematics

Learning objectives

  • Define sets using roster and set-builder notation
  • Understand subset, union, and intersection
  • Work with the empty set

Modern mathematics speaks set theory the way physics speaks calculus. Every mathematical object — a number, a function, a vector, a triangle — lives in some set. Every theorem is a claim about elements of a set. Get fluent here and the rest of mathematics opens up. A set is a well-defined collection of objects called elements (or members). We write aAa \in A to mean "aa is an element of AA" and aAa \notin A to mean "aa is not in AA."

Set Notation

Roster: {1,2,3}{1, 2, 3} lists all elements.

Set-builder: {xZ:x>0}{x \in \mathbb{Z} : x > 0} describes elements by a property.

Set Operations

Union:

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

Intersection:

AB={x:xA and xB}A \cap B = \{x : x \in A \text{ and } x \in B\}

Subset: ABA \subseteq B means every element of AA is also in BB.

Empty set: ={}\emptyset = {} has no elements. It is a subset of every set.

Set VennInteractive figure — enable JavaScript to interact.

(Click a dot to move it between regions of the Venn diagram. Watch the readout update with |A|, |B|, |A ∪ B|, and |A ∩ B|. Toggle to 3-set mode for a more complex picture.)

Two famous identities

The inclusion-exclusion principle for two sets: AB=A+BAB|A \cup B| = |A| + |B| - |A \cap B|. The intersection is subtracted because elements in both sets would otherwise be double-counted.

The distributive law: A(BC)=(AB)(AC)A \cap (B \cup C) = (A \cap B) \cup (A \cap C). This mirrors a(b+c)=ab+aca(b + c) = ab + ac from arithmetic, with \cap playing the role of multiplication and \cup the role of addition.

Try it

  • In the widget, place dots so that A=3,B=3,AB=2|A| = 3, |B| = 3, |A \cap B| = 2. Read off AB|A \cup B|. Confirm it equals 3+32=43 + 3 - 2 = 4.
  • Let A={1,2,3,4}A = {1,2,3,4} and B={3,4,5,6}B = {3,4,5,6}. Find ABA \cup B and ABA \cap B.
  • List the elements of {xZ:x2<10}{x \in \mathbb{Z} : x^2 < 10}. (Hint: check the integers between 3-3 and 33.)
  • Switch the widget to 3-set mode. Place a dot in the central A ∩ B ∩ C region. Now move it to the A ∩ B but NOT C region. What changes in the summary?

A trap to watch for

Beginners write {a,b}={a,a,b}{a, b} = {a, a, b} and worry. In set theory, elements are not repeated — either an object is in the set or it is not, and listing it twice does not change the set. Also, order does not matter: {a,b}={b,a}{a, b} = {b, a}. If you need order, you want an ordered pair or tuple, not a set. The fix: when a set looks like it has duplicates, mentally collapse them; when order matters, use parentheses (a,b)(a, b) instead of braces.

What you now know

You can describe sets in roster or set-builder form, perform union, intersection, and subset operations, and articulate the role of the empty set. The next section catalogues the symbolic notation that builds on these set foundations.

Quick check

References

  • Lang, S. (1971). Basic Mathematics. Springer. Intermezzo, §3 — sets, elements, and basic operations.
  • Halmos, P. (1974). Naive Set Theory. Springer. The classic gentle introduction to set theory.
  • Velleman, D. (2019). How to Prove It: A Structured Approach, 3rd ed. Cambridge. Chapter 2 — set theory presented alongside the proof techniques that use it.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.