Main Content

Lesson 1: Set Theory: Relations and Operations

Counting Elements

Number of Elements in a Set

To denote the number of elements in a set, we use the notation n(A). This is called cardinality of a set A. Putting the lowercase n in front of the set in parentheses refers to the number of elements in the set. For example: If A = (2, 4, 7, 9) we would say n(A) = 4. If we can assign a positive integer or a zero value to n(A), then set A is finite; if we cannot, then set A is infinite.

Carefully go over Example 2 in Section 7.2 in the text to see how the formula for the number of elements in the union of two sets is derived.

n ( A B ) = n ( A ) + n ( B ) n ( A B )

If the sets are disjoint then the last part of the formula n ( A B ) would be zero. Many students make mistakes by forgetting this last part of the formula and end up adding the elements in the intersection twice.

Let's look at some examples and try to pull the various ideas presented above into clearer focus.

Example 1. Sets with Numbers

Let A = {3, 4, 7, 8, 9} and B = {4, 7, 12, 15} in the universal set
{1, 2, 3, …, 15}.

If we want to find n ( A B ) , we would first have to determine A B = { 3 , 4 , 7 , 8 , 9 , 12 , 15 } . So n ( A B ) would then be 7.

To find n ( A B ) using the formula we would have to find the intersection A B = { 4 , 7 } . Then n ( A B ) is 2.

Could we use the above formula for n ( A B ) to get the same answer? Let's try it.

n ( A B ) = n ( A ) + n ( B ) n ( A B ) = 5 + 4 2 = 7

What about A complement? Did you get n ( A ) ¯ ? Remember  A ¯ ={1, 2, 5, 6, 10, 11, 12, 13, 14, 15}. So the answer should be n ( A ) ¯ =10.

Example 2. Sets with Letters

What about sets with letters instead of numbers? Are they done differently?

A ' = { a , c , d , h }  and  B ' = { b , c , d , g } , then what is n ( A ' B ' ) ? Since A ' B ' = { a , b , c , d , g , h } , then n ( A ' B ' ) = 6 .

Example 3. Sets with Mixed Elements.

If the universal set is {0, 1, 2, …10} and A = {0, 2, 4, 6, 8, 10} and B = {prime numbers less than 10}, find the following:

n ( A B ) = n { 2 } = 1 (Hint: You didn't forget what the prime numbers were, did you?)

n ( A B ) = n { 0 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 10 } = 9

n ( A ¯ B ) = n { 3 , 5 , 7 } = 3

n ( A ¯ ) = n { 1 , 3 , 5 , 7 , 9 } = 5


Top of page