Sets and Venn diagrams

What is a set

A set is a collection of items, called elements, written inside curly brackets: A={2,4,6,8}A = \{2, 4, 6, 8\}. A set can also be described in words, such as B = {multiples of 3} or C = {prime numbers}.

  • xAx \in A means xx is an element of set AA — here 4A4 \in A.
  • The universal set EE is everything being considered in the question. In a Venn diagram it is the rectangle drawn around the circles.
  • ABA \subset B means AA is a subset of BB: every element of AA is also in BB.

Union and intersection

  • The union ABA \cup B contains every element that is in AA, in BB, or in both — the two circles combined.
  • The intersection ABA \cap B contains only the elements that are in both sets — the overlap of the circles.

If A={1,3,5,7}A = \{1, 3, 5, 7\} and B={3,4,5}B = \{3, 4, 5\}, then AB={1,3,4,5,7}A \cup B = \{1, 3, 4, 5, 7\} and AB={3,5}A \cap B = \{3, 5\}. In a union each element is written once, even if it belongs to both sets.

Complement and counting

  • The complement A\overline{A} is every element of EE that is not in AA. If EE is the whole numbers from 1 to 10 and AA = {even numbers}, then A={1,3,5,7,9}\overline{A} = \{1, 3, 5, 7, 9\}.
  • A|A| means the number of elements in AA. Here A=5|A| = 5.

Symbols combine — read them from the inside out. AB\overline{A \cup B} is everything outside both circles, and AB|A \cap B| counts the elements in the overlap.

Venn diagram word problems

A typical question: in a class of 28 students, 15 play hockey, 14 play cricket and 6 play both.

  1. Fill in the overlap first: 6 play both.
  2. Subtract to find each “only” region: hockey only is 156=915 - 6 = 9; cricket only is 146=814 - 6 = 8.
  3. Whatever remains sits outside the circles: 28(9+6+8)=528 - (9 + 6 + 8) = 5 play neither sport.

Once the diagram is complete you can answer anything: “exactly one sport” is 9+8=179 + 8 = 17, “at least one” is 2323.