The Wayback Machine - https://web.archive.org/web/20241225113307/https://www.geeksforgeeks.org/set-operations/
Open In App

Set Operations

Last Updated : 27 Aug, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Set Operations can be defined as the operations performed on two or more sets to obtain a single set containing a combination of elements from all the sets being operated upon. There are three types of operation on sets in Mathematics; they are The Union of Sets (∪), the Intersection of Sets (∩), and the Difference between Sets (-).

Set-Operations

Set Operations

What are Set Operations?

Set operations are mathematical operations operated on sets, which are collections of distinct objects or elements. These operations are fundamental in set theory and are used to manipulate sets, define relationships between sets, and solve problems involving collections of objects.

There are three major types of operations performed on sets, such as:

Let us discuss these operations one by one.

Union

Union of sets A and B, denoted by A ∪ B, is the set of distinct elements that belong to set A or set B, or both.

AUB

Venn diagram of A ∪ B

Above is the Venn Diagram of A U B.

Example: Find the union of A = {2, 3, 4} and B = {3, 4, 5};

Solution:

A ∪ B = {2, 3, 4, 5}.

Intersection

The intersection of the sets A and B, denoted by A ∩ B, is the set of elements that belong to both A and B i.e. set of the common elements in A and B.

AinterB

Venn diagram of A ∩ B

Above is the Venn Diagram of A ∩ B.

Example: Find the intersection of A = {2, 3, 4} and B = {3, 4, 5}

Solution:

A ∩ B = {3, 4}.

Disjoint

Two sets are said to be disjoint if their intersection is the empty set. i.e, sets have no common elements.

AdijointB

Above is the Venn Diagram of A disjoint B.

For Example: Let A = {1, 3, 5, 7, 9} and B = {2, 4, 6, 8}

A and B are disjoint sets since both of them have no common elements.

Set Difference 

The difference between sets is denoted by ‘A – B’, which is the set containing elements that are in A but not in B. i.e., all elements of A except the element of B.

A-B

Above is the Venn Diagram of A – B.

Example: If A = {1, 2, 3, 4, 5} and B = {2, 4, 6, 8}, find A – B

Solution:

A – B = {1, 3, 5}

Addition and Subtraction 

Addition of sets A and B, referred to as Minkowski addition, is the set in whose elements are the sum of each possible pair of elements from the 2 sets (that is one element is from set A and the other is from set B).

Set subtraction follows the same rule, but with the subtraction operation on the elements. It is to be observed that these operations are operable only on numeric data types.

Even if operated otherwise, it would only be a symbolic representation without any significance. Further, it can be seen easily that set addition is commutative, while subtraction is not. 

n (A ∪ B) = n(A) + n(B) – n (A ∩ B)

A – B = A ∩ B’

Properties of Set Operations

Set operations have several important properties that govern their behavior. Here are some fundamental properties of set operations:

Closure Property

  • Set operations are closed under their respective operations, meaning that performing an operation on sets results in another set.
  • For example, the union, intersection, and difference of sets always produce sets as their results.

Commutative Property

  • Union: A ∪ B = B ∪ A
  • Intersection: A ∩ B = B ∩ A
  • Symmetric Difference: A Δ B = B Δ A

Associative Property

  • Union: (A ∪ B) ∪ C = A ∪ (B ∪ C)
  • Intersection: (A ∩ B) ∩ C = A ∩ (B ∩ C)

Distributive Property

  • Union over Intersection: A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
  • Intersection over Union: A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)

Identity Property

  • Union: A ∪ ∅ = A
  • Intersection: A ∩ U = A, where U represents the universal set
  • Symmetric Difference: A Δ ∅ = A

Complement Property

  • Union: A ∪ A’ = U, where U is the universal set
  • Intersection: A ∩ A’ = ∅ (the empty set)

Absorption Property

  • Union over Intersection: A ∪ (A ∩ B) = A
  • Intersection over Union: A ∩ (A ∪ B) = A

Examples of Operations on Sets

Example 1: Find the union of two sets A = {8, 10, 14} and B = {7, 16}

Solution:

(A ∪ B) = {8, 10, 14} ∪ {7, 16}

(A ∪ B) = {7, 8, 10, 14, 16}

Example 2: Find the intersection of sets P = {a, n, x} and Q = {x, y, z}

Solution:

(P ∩ Q) = {a, n, x} ∩ {x, y, z}

(P ∩ Q) = {x}

Example 3: Find the complement of set X = {4, 6, 9} where Universal set U = {1, 2, 3, 4, 6, 9}

Solution:

X’ = U – X

X’ = {1, 2, 3, 4, 6, 9} – {4, 6, 9}

X’ = {1, 2, 3}

Example 4: Given two sets A = {5, 6, 9, 10} and B = {3, 6, 12} then find, A – B and B – A

Solution:

A – B = {5, 6, 9, 10} – {3, 6, 12}

A – B = {5, 9, 10}

B – A = {3, 6, 12} – {5, 6, 9, 10}

B – A = {3, 12}

Example 5: Find the number of elements in set (A ∪ B) given that n(A) = 10, n(B) = 4 and n (A ∩ B) = 5.

Solution:

To find n (A ∪ B) we use formula:

n (A ∪ B) = n(A) + n(B) – n (A ∩ B)

n (A ∪ B) = 10 + 4 – 5

n (A ∪ B) = 9

Practice Questions on Set Operations

Q1. Find the union of two sets A = {2, 4, 5, 9} and B = {2, 6, 10, 12}

Q2. Find the intersection of sets P = {5, 6, 7, 9} and Q = {6, 9}

Q3. Find the complement of set X = {p, q, r} where Universal set U = {e, f, h, p, q, r}

Q4. Given two sets A = {1, 2, 4, 7, 10} and B = {1, 2, 8, 15} then find, B – A

Q5. Find the number of elements in set A given that n (A ∪ B) = 12, n(B) = 7 and n (A ∩ B) = 4.

Conclusion

Set operations are essential tools that let us work with, combine, and evaluate groups of items or components. We may represent real-world settings, describe relationships between sets, and solve set-related problems by using operations like union, intersection, complement, difference, and symmetric difference. A systematic foundation for comprehending and thinking about sets is provided by the qualities of set operations, which include closure, commutative, associative, distributive, identity, complement, and absorption features.

FAQs on Set Operations

What are the 4 Operations of Sets?

The four fundamental operations of sets, commonly used in set theory and mathematics, are:

  • Union
  • Intersection
  • Difference
  • Complement

What are Operations 4?

They are addition, subtraction, multiplication, and division.

What is the Union Symbol?

“∪” serves as the union symbol, which symbolizes the process of joining two sets to create a new set that includes every unique element from both sets.

What is Power of a Set?

Set, including the empty set and the set itself, is called the power set of that set. the power set of a set with n elements will have 2 n subsets if the set has n elements.

What is the Formula for Set Operation?

n(P∪Q) = n(P) + n(Q) − n(P∩Q)



Next Article

Similar Reads

three90RightbarBannerImg