Union Intersection Difference Set Operations

In this class, We discuss Union Intersection Difference Set Operations.

The reader should have prior knowledge of set theory basics. Click Here

Union:

The union of two sets is defined as the set of all elements members of set A, set B, or both.

A ∪ B = {x/x∈A or x∈B}

Example:

A = {1, 2, 5, a, b}

B = {a, b, c, d, e}

A ∪ B = {1, 2, 5, a, b, c, d, e}

The diagram below shows the Venn diagram.

Intersection:

The intersection of two sets, A and B, is the set consisting of all the elements that belong to both A and B.

A ∩ B = {x/x∈A and x∈B}

Example:

A = {1,2, 5, a}

B = {a, b, c, d}

A ∩ B = {a}

The diagram below shows the Venn diagram

Set Difference:

The difference between two sets, A and B, is the set of elements belong to A and does not belong to B.

Example:

A = {1, 2, 5, 7}

B = {5, 7, 8, 9}

A – B = {1, 2}