Union of Sets – Definition and Examples

Union of SetsWe looked at sets before, and they can be defined as the collection of distinct and unique elements. These elements can be numbers, alphabets, addresses of city halls, locations of stars in the sky, or numbers of electrons in a certain atom.

We also discussed that we could perform different operations between two or more of these sets. In set theory, these operations are intersection, union, difference, and complement, to name a few. All these operations are represented using a unique operator. 

Our operation of interest today is the union of sets. This operation is not only unique to set theory. It is a widely used mathematical concept analogous to addition. The concept is common to Euclidean geometry and set theory. 

Before moving on to discuss the union of sets in detail, let us first define it briefly:

Union of any two sets A and B is defined as a new set containing elements present in both sets A and B’.

We will cover the following topics in this article:

  • What is the union of sets?
  • Representation of union of sets.
  • Notation of union of sets.
  • Properties of the union of sets.
  • Examples
  • Practice problems

 

What is the Union of sets?

Whenever the term union of two sets comes up, it means a resultant new set containing all the elements present in both sets. Alternatively, we can also say that it contains all elements present in the first set, the second set, or both of these sets.

The word ‘or’ is used to represent the union of two sets. For example, what is the probability that light is a wave or a particle? 

Now let us assume we have two sets A and B; their union results in a new set containing all the elements present in A or B or both. The union of two sets has several properties, which we will discuss later, but you must understand that union is a commutative and associative operation for now. What these properties are, we leave for later.

Consider the following example to understand the concept of union. 

Example 1

You are given two sets defined as:

A = {a, b, g, j, k}

B = {h, t, k, g}

Find out elements present in the union of A and B.

Solution:

In the union of two sets, we will include elements present in A, in B, or both. So these elements are a, b, g, j, k, h, t. You will observe that g and k were present in both sets, but we will only mention them once as they are common to both A and B. 

So the elements present in the union of sets A and B are a, b, g, j, k, h, t.

The notation used for Union:

Going deeper into a union of sets, our next step is to talk about the mathematical notation used for representing the union of sets. The union between two sets A and B is represented using the operator ‘U’. This operator is used between operands, which are the names denoting the sets in this case.

This notation, also known as the ‘infix notation,’ is quite common in set notation. In infix notation, the operator is surrounded by the operands. The operator, as we mentioned before, is ‘U’. It usually refers to binary operations. Union, like difference, the intersection is a binary operation.

We can take the union of as many sets as we like simultaneously. For example, we can take A U B U C U D where the resultant set would all the A, B, C, and D.

Let’s do an example of this.

Example 2

You have two sets defined as:

A = {4, 7, 9, 0}

B = {4, 6, 2, 8}

Perform union of the sets.

Solution:

Union of sets is denoted by ‘U’. We are already aware of the definition of the union of sets, so:

A U B = {2, 4, 6, 7, 8, 9}

Representation of Union using Venn Diagram:

Venn diagram is a handy tool for visualizing sets and the operations performed between them. They are also the most appropriate tool to understand the operations on sets to apply them to real-world applications. 

However, we can only use them to represent finite sets. The region covered under a certain curve represents a set, whereas the elements of that particular set are represented using points inside the diagram’s region.

Let us move on to how we can draw a Venn diagram for the union of sets. We will first assume a universal set, of which set A and B are subsets. The following Venn diagram represents the union between these sets.

union of sets

The blue colored region shows the union of sets A and B. We can see that the union includes all the elements of these sets. Although we use two sets here, one thing to keep in mind is that we can use the Venn diagrams to represent the operation between multiple sets, given that they are finite.

Let’s do an example to construct our own Venn diagram:

Example 3

Draw a Venn diagram to represent the union between the two sets:

A = {2, 4, 6, 8, 10}

B = {1, 2, 3, 4, 7, 8, 0}

Solution:

We will divide our solution into a series of steps. Our first step is to find out the union of these sets, which comes out to be:

A U B = {0, 1, 2, 3, 4, 6, 7, 8, 10}

These are all the elements of A and B. Let us move on to the Venn diagram now.

Our next step is to draw two circles representing the two sets. We know some elements are common to A and B, so we keep some overlapping regions.

The next step is to write down the elements in their respective regions after our circles are drawn. When writing down the elements, always label the intersecting region with the common elements first. The remaining elements of set a go inside the respective circle for set A and elements of set B go inside the circle representing set B. 

Always write down the intersecting elements in the intersecting region first to avoid any mislabeling of the elements.

union of sets example 3

When we look at the Venn diagram, we can observe that 2, 4, and 8 were the common elements present in the Venn diagram’s intersecting region. The U is for the universal set; set A and b are the universal set subsets. The blue-colored region represents the union of two sets, A and B. This union is symbolized as:

A U B = {0, 1, 2, 3, 4, 6, 7, 8, 10}

Properties of Union of sets:

In this section, we will be discussing some properties of the union of sets. In set theory, almost all set operations have properties that are different for each of them.Properties of Union of sets

Commutative property:

The commutative property of the union states that:

The result will not be affected by the order of the operating sets.’

This means that if you change the position of the operands, the solution will not be affected. Mathematically, we can say that:

A U B = B U A

Let’s solve an example regarding this. 

Example 4

Given that the sets A and B are:

A = {a, m, h, k, l}

B = {2, 3, 4, 5}

Prove that the commutative property of union holds for them.

Solution:

Our first step is to solve for the left-hand side of the equation, which is:

A U B = {a, m, h, k, l} U {2, 3, 4, 5}

A U B = {a, m, h, k, l, 2, 3, 4, 5}

Next, we solve for the right-hand side of the equation, which is:

B U A = {2, 3, 4, 5} U {a, m, h, k, l}

B U A = {a, m, h, k, l, 2, 3, 4, 5}

From the above right and left sides of the equation, we can prove that the commutative property holds for the union as both sides are equal.

Associative property:

The associativity property of union states that:

The grouping of sets for a union using parentheses will not affect the result.’

This means that changing parentheses’ position in any expression of sets involving union will not affect the results in any way whatsoever. Mathematically it is written as:

(A U B) U C = A U (B U C)

Where A, B, and C are set.

Let’s solve an example regarding this. 

Example 5

Prove that the associativity property of union holds for the following sets:

A = {2, 3, 4}

B = {2, 5, 8}

C = {1, 8, 9}

Solution:

Solving first for the left side of the equation:

(A U B) = {2, 3, 4} U {2, 5, 8} = {2, 3, 4, 5, 8}

(A U B) U C = {2, 3, 4, 5, 8} U {1, 8, 9} = {1, 2, 3, 4, 5, 8, 9}

Now, solving for the right side of the equation: 

(B U C) = {2, 5, 8} U {1, 8, 9} = {1, 2, 5, 8, 9}

A U (B U C) = {2, 3, 4} U {1, 2, 5, 8, 9} = {1, 2, 3, 4, 5, 8, 9} 

From the left and right sides of the equations, we can prove that the associativity property holds for the sets A, B, and C.

Idempotent property:

This property states that the union of any set with itself will give back the set itself, mathematically we can write this as:

A U A = A

Property of Ⲫ:

The property of null set states that the union of any set with a null set will result in the set itself. Mathematically, we have:

A U Ⲫ = 

Property of U:

The property of universal states that the union of any set with the universal set will give us the universal set. Mathematically it is written as:

A U U = U

Problems:

  1. Find out the union of the following sets: A = {set of natural numbers}, B = {set of whole numbers}.
  2. Draw the Venn Diagram of union between A = {0, 3, 6, 8, 9, 10} and B = {11, 2, 4}.
  3. Prove that the idempotent property holds for union of sets where A = {12, 5, 7}, B = {1, 4, 7}.
  4. Using U = set of natural numbers and A = {1, 2, 3, 4, 5} satisfy the property of U.
  5. If A = {m, j, e, I, l, u}, B = {a, p, p, l, e} and C = {c, I, d, e, r}. Find the union between:
  1. A and C
  2. B and C
  3. A, B and C.

Answers:

  1. {Set of whole numbers}
  2. Left for the reader
  3. Left for the reader
  4. Left for the reader
  5. 1 – {m, j, e, l, l, u, c, I, d, r}, 2 – {a, p, p, l, e, c, d, r}, 3 – {m, j, e, l, l, u, p, p, a, c, d, r}

Previous Lesson Main Page | Next Lesson