operation on sets examples

Instructors are independent contractors who tailor their services to each client, using their own style, and The cross product of two sets A x B and B x A do not contain exactly the same ordered pairs. 4 } everythingexcept If \(A = \left\{ {1,\,2,\,6} \right\},\,B = \left\{ {2,\,3,\,4} \right\}\) then \(A \cap B = \left\{ 2 \right\}\) because \(2\) is the common element of the sets \(A\) and \(B\). 1. A x B = {(4, a), (4, b), (5, a), (5, b), (6, a), (6, b)}, B x A = {(a, 4), (a, 5), (a, 6), (b, 4), (b, 5), (b, 6)}, If A = {1, 3, 5, 7}, B = {2, 4, 6, 8}, C = {1, 2, 3, 4}, D = {5, 6, 7, 8}, U = {1, 2, 3, 4, 5, 6, 7, 8} find, A = {1, 3, 5, 7}, B = {2, 4, 6, 8}, C = {1, 2, 3, 4}, D = {5, 6, 7, 8}, U = {1, 2, 3, 4, 5, 6, 7, 8}, = {1, 2, 3, 4, 5, 6, 7, 8} {5, 6, 7, 8}, If A = {10, 12, 15, 18}, B = {11, 15, 14, 16}, C = {15, 16, 18, 7} find, A = {10, 12, 15, 18}, B = {11, 15, 14, 16}, C = {15, 16, 18, 7}, (i) A B = {10, 12, 15, 18} {11, 15, 14, 16}, (ii) B A = {11, 15, 14, 16} {10, 12, 15, 18}, (iii) A C = {10, 12, 15, 18} {15, 16, 18, 7}, If P = {a, b, d}, Q = {m, n, o}, R = {l, e, t, t, e, r} find, P = {a, b, d}, Q = {m, n, o}, R = {l, e, t, t, e, r}, = {(a, m), (a, n), (a, o), (b, m), (b, n), (b, o), (c, m), (c, n), (c, o)}, So, P x Q = {(a, m), (a, n), (a, o), (b, m), (b, n), (b, o), (c, m), (c, n), (c, o)}, (ii) P x R = {a, b, d} x {l, e, t, t, e, r}, = { (a, l), (a, e), (a, t), (a, r), (b, l), (b, e), (b, t), (b, r), (d, l), (d, e), (d, t), (d, r) }, So, P x R = { (a, l), (a, e), (a, t), (a, r), (b, l), (b, e), (b, t), (b, r), (d, l), (d, e), (d, t), (d, r) }, (iii) Q x R = {m, n, o} x {l, e, t, t, e, r}, = {(m l), (m, e), (m, t), (m, r), (n, l), (n, e), (n, t), (n, r), (o, l), (o, e), (o, t), (o, r)}, So, Q x R = {(m l), (m, e), (m, t), (m, r), (n, l), (n, e), (n, t), (n, r), (o, l), (o, e), (o, t), (o, r)}. y Q.3. Example 01 Given below is two sets A & B. The complement of set a is denoted by A. 1. and His father was sent to India by the East India Company. Required fields are marked *. Exercise 1 . }, Similarly after putting value we will get set Q;Q = { 2, 4, 6, 8, 10 . Power Set of Empty Set. Let's check some everyday life examples of sets. In our daily lives, we often deal with collecting objects like books, stamps, coins, etc. The symbol for the complement of \(P\) is \(\left( {P} \right).\). Embiums Your Kryptonite weapon against super exams! For example: In Roaster form, elements are listed between a pair of curly braces. , Q.5. \(P \cup Q = \left\{ {{\rm{Asia,}}\,{\rm{Africa,}}\,{\rm{Antarctica,}}\,{\rm{Australia,}}\,{\rm{Europe,}}\,{\rm{North}}\,{\rm{America,}}\,{\rm{South}}\,{\rm{America}}} \right\}\) respectively . Apart from their mathematical usage, we use sets in our daily life. Complement of a Set, Q.3. Thus the number of students that like oranges is 85. In this article, we learnt about the definition of operations on sets, properties of set operations, De Morgans laws, the cardinality of sets, Venn diagrams, solved examples on sets and frequently asked questions on operations on sets. Formally it is written as. As of 4/27/18. A B ). For example, Noah Kagan, the founder of Sumo and AppSumo, shared that with Sumo, he would set a single revenue-based goal each year. Intersection of sets \ ( ( \cap )\) 3. Let's take an example: If set A = {1,2,3,4} and B {6,7} Then, the Union of sets will be, A B = {1,2,3,4,6,7} Read More: Universal Set. , In the following image,the shaded area is the union of sets A and B. Union of Two Sets2. If the set is empty, returns False. The intersection of two sets is denoted as \ (A \cap B\). If A = {2, 4, 8} and B = {2, 6, 8}then the union of A and B is the set A B = {2, 4, 6, 8}, In this example, 2, 4, 6, and 8 are the elements that are found in set A or in set B or in both sets A and B, For two set A and B, A is a subset of B if every element in A is also in B. You can understand set operation just like operation on two or more numbers by addition/subtraction/division or multiplication. The four basic operations on sets are the union of sets, the intersection of sets, set difference, and the cartesian product of sets. B All the set operations are represented by using a unique operator. \(P\Delta Q = \{ x:x \in P Q\) or \(Q P\} \), If \(P = \left\{ {6,\,7,\,8,\,9} \right\}\) and \(Q = \left\{ {8,\,10,\,12} \right\},\) find \(P\Delta Q.\), \(P Q = \left\{ {6,\,7,\,8,\,9} \right\} \left\{ {8,\,10,\,12} \right\} = \left\{ {6,\,7,\,9} \right\}\), \(Q P = \left\{ {8,\,10,\,12} \right\} \left\{ {6,\,7,\,8,\,9} \right\} = \left\{ {10,\,12} \right\}\), \(P\Delta Q = \left( {P Q} \right) \cup \left( {Q P} \right) = \left\{ {6,\,7,\,9} \right\} \cup \left\{ {10,\,12} \right\}\), \(P\Delta Q = \left\{ {6,\,7,\,9,\,10,\,12} \right\}\). , Hence, the intersection of set P & Q results in empty set. Other Set Operations in Python. If set A and set B are two sets, then A intersection B is the set that contains only the common elements between set A and set B. A For a set A, the number of possible subsets is 2|A|. Examples: The set of natural numbers is an infinite set. For instance, suppose: set A = {apple, orange, banana, pear} set B = {strawberry, apple, lemon, orange, peach} The union of set A and B is the list of elements that are in A or B or both A and B: Union Of Sets. In the set-builder form, a general element, and the common property the elements of the set are specified between a pair of curly braces. In order to understand the chapter you should have basic understanding of sets and its properties which have been already discussed in previous chapters. The union of sets is analogous to arithmetic addition. A Sets \(P\) and \(Q\) are disjoint sets if \(PQ=\). For example: A = {a, e, i, o, u}A is a set of vowels in the English alphabet. Distributive property: For some three sets \(A, B\) and \(C\), 1. Operations on Sets Recall that a set is a collection of elements. }, The union of set P & Q is given as:P Q = {2, 3, 4, 5, 6, 7 . The difference between sets is denoted by 'A - B', which is the set containing elements that are in A but not in B. \(A (B \cap C) = (A B) \cup (A C)\). Test your understanding of set operations with these five exercises. Q.5. . Find the intersection between Set A and Set B, A B. The intersection of two disjoint sets is the empty set. Difference of sets \({\rm{( )}}\). Notice that the union list each element only once, even if it appears in both sets. Venn diagram, invented in 1880 by John Venn, is a schematic diagram that shows all possible logical relations between different mathematical sets. \(A \cup (B \cap C) = (A \cup B) \cap (A \cup C)\) (Union over intersection). The collection of objects must be well-defined. }. The order of elements does not matter. Set Difference . P Q ), SolutionP = { x : x=2n+1 & x N }Given above is the set name P.Set P contains element x such that: x = 2n+1 x belongs to natural number N, After Putting values we will get;P = {3, 5, 7, 9, 11 . Union of a Set. 1 In symbol, \(A \cap B = \left\{ {x:x \in A\,{\rm{and}}\,x \in B} \right\}\). Example. , If there are n sets, called A 1, A 2, A 3, , A n, we can find the union of all by taking unique elements from each set, i.e. Kitchen is the most relevant example of sets. If A & B are two sets then intersection of set A & B will results in common element present in both set A & B. For example, all even numbers make up a set, and all odd numbers comprise a set. { Answer sheets of meritorious students of class 12th 2012 M.P Board All Subjects. Note:Do not get confused Union symbol with the Universal set symbol U.While both looks the same, they have completely different meaning, while the Union is a set operation and the Universal set is a collection of elements. Its calculated using below expression.A = U AA = { 2, 5, 7, 9, 12, 15, 17 } { 2, 7, 17 }A = { 5, 9, 12, 15 }. 6 { Set Field Value Operation. Union of sets \ ( {\rm { (U)}}\) 2. Every student has to choose at least one of the two fruits. Now, \(B \cup C = \left\{ { 3,\,0,\,1,\,2,\,3,\,4} \right\},\,A \cup \left( {B \cup C} \right) = \left\{ { 1,\,0,\,1,\,2} \right\} \cup \left\{ { 3,\,0,\,1,\,2,\,3,\,4} \right\}\), \( = ( 3,\, 1,\,0,\,1,\,2,\,3,\,4\} \) -(i), Then, \(A \cup B = ( 3,\, 1,\,0,\,1,\,2,\,3,\,4\} ,\,\left( {A \cup B} \right) \cup C = \left\{ { 3,\, 1,\,0,\,1,\,2,\,3} \right\} \cup \left\{ {0,\,1,\,3,\,4} \right\}\), \( = \left\{ { 3,\, 1,\,0,\,1,\,2,\,3,\,4} \right\}\) -(ii), From (i) and (ii), \(A \cup \left( {B \cup C} \right) = \left( {A \cup B} \right) \cup C\), This represents the associative property of union among sets \(A, B\) and \(C.\), Now, \(B \cap C = \left\{ {0,\,3} \right\}\), \(A \cap \left( {B \cap C} \right) = \left\{ { 1,\,0,\,1,\,2} \right\} \cap \left\{ {0,\,3} \right\} = \left\{ 0 \right\}\)-(iii), Then, \(A \cap B = \left\{ {0,\,2} \right\},\,\left( {A \cap B} \right) \cap C = \left\{ {0,\,2} \right\} \cap \left\{ {0,\,1,\,3,\,4} \right\} = \left\{ 0 \right\}\)-(iv). Varsity Tutors does not have affiliation with universities mentioned on its website. }, A . Let \(A = \left\{ {2,\,3,\,5,\,7,\,9} \right\}\) and \(B = \left\{ {7,\,9,\,11,\,13} \right\}.\) Verify that \(n(A B) = n(A) n(A \cap B).\)Ans:Given: \(A = \left\{ {2,\,3,\,5,\,7,\,9} \right\}\) and \(B = \left\{ {7,\,9,\,11,\,13} \right\}\)We need to verify \(n(A B) = n(A) n(A \cap B)\)Now, \(\left( {A B} \right) = \left\{ {2,\,3,\,5} \right\}\)\(n(A B) = 3\)(i)\(\left( {A \cap B} \right) = \left\{ {7,\,9} \right\}\)\(n(A \cap B) = 2\) and \(n(A) = 5\)So, \(n(A) n(A \cap B) = 5 2 = 3\)From equation (i) and (ii), we get \(n(A B) = n(A) n(A \cap B).\). We would write this as: A = {1, 2, 3} This tutorial explains the most common set operations used in probability and statistics. Here we will discuss each of the sets operations in detail along with the examples. Examples. Define Operations on Sets. This represents the associative property of intersection among sets \(A, B\), and \(C\). = , The objects of a set are called its representatives or elements. A can be equal to B. \(n(A \cap B) = n(A) + n(B) n(A \cup B)\), 3. 1. The cartesian product of two non-empty sets A and B are denoted by A x B. , In the following image, the shaded area represents the set of students that study science but not mathematics, We are required to find |S M|By the Venn diagram, we can see that |S M| can be written as |S| |M S|thus, |S M| = |S| |M S| = 40 10 = 30, Thus the number of students who study science but not mathematics is 30. iii) Finding the number of students who study mathematics or science. } }. 2 For example, we can investigate the Union (and Intersection) of sets to find out if the operation is commutative. It is usually denoted by the upper-case letter U. What is the Difference between Interactive and Script Mode in Python Programming? A = { 1 , 2, 3 } B = { 3, 7, 8, 9 } Find union of set A & B (i.e. Formally it is denoted as, In the following image, set B is the superset of set A, For two sets A and B, if A is a subset of B and A is not equal to B, then B is the proper superset of A. The set operations are carried out on two or more sets to obtain a mixture of elements, as per the operation performed on them. If you get stuck do let us know in the comments section below and we will get back to you at the earliest. Then, \(P \cap Q = \left\{ {6,\,8} \right\}\) and \(Q \cap P = \left\{ {6,\,8} \right\}\), From the above, we see that \(P \cap Q = Q \cap P.\). Example 02Given below are two sets P & QP = { x : x=2n+1 & x N }Q = { x : x=2n & x N }, Find the union of sets P & Q (i.e. Let us see some examples for further understanding. , Examples: In the following image, the shaded area represents the set of students that study mathematics or science. Hence Complement of Set A is all the elements which are not in set A.The complement of set A is represented as A (read as A dash ) or \mathtt{A^{C}}. { 4 If \(A = \left\{ {1,\,2,\,3,\,4} \right\}\) and \(U = \left\{ {{\rm{natural}}\,{\rm{numbers}}\,{\rm{less}}\,{\rm{than}}\,10} \right\},\) then find \(A.\)Ans: Given: \(A = \left\{ {1,\,2,\,3,\,4} \right\}\)\(U = \left\{ {1,\,2,\,3,\,4,\,5,\,6,\,7,\,8,\,9} \right\}\)Now,\(A = \left\{ {5,\,6,\,7,\,8,\,9} \right\}\)Hence, the complement of the set \(A\) is \(\left\{ {5,\,6,\,7,\,8,\,9} \right\}.\), Q.2. { Union of sets \({\rm{(U)}}\)2. Save my name, email, and website in this browser for the next time I comment. Lets discuss all the above operations in brief. , Examples are a collection of fruits, a collection of pictures. If A = {1, 4, 5, 10, 15, 8, 9}, B = {5, 10, 20, 25, 30}. i.e (A x B) x C A x (B x C), Distributive property over intersection, union and set difference are. set In symbol, \(A \cup B = \left\{ {x:x \in A\,{\rm{or}}\,x \in B} \right\}\), If \(P = \left\{ {{\rm{Asia,}}\,{\rm{Africa,}}\,{\rm{Antarctica}},\,{\rm{Australia}}} \right\}\) and, \(Q = \left\{ {{\rm{Europe,}}\,{\rm{North}}\,{\rm{America,}}\,{\rm{South}}\,{\rm{America}}} \right\}\) then the union set of \(P\) and \(Q\) is. The union of A and B, denoted by \(A \cup B\), is the set that . Now, we carry out operations on union and intersection for three sets. follow mathematical properties such as Commutativity, Associativity, etc. Difference of Two Sets: Let \(P\) and \(Q\) be two sets; the difference of sets \(P\) and \(Q\) is the set of all elements which are in \(P\), but not in \(Q\). For example, suppose we have some set called "A" with elements 1, 2, 3. These are not so common, but they're useful in seeing how sets relate to others. In a Venn diagram, this is represented in the overlapping region of the two circles. Basically, we have 4 types of operations on sets. Multiplication is an operation that can act on any set of . In the following image, the shaded area represents the difference set of set A and set B, Note: A B is equivalent to A B i.e., A B = A B, If A = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} and B = {2, 3, 5, 7}then A B = {1, 4, 6, 8, 9, 10}and further B A = . z = We will look at the following set operations: Union, Intersection and Complement. Where |A| = number of elements in A. A B). In Python, you may use either the intersection () method or the & operator to find the intersection. ).\ ) the sets operations in detail along with the examples Q\ ) disjoint. India by the upper-case letter U number of possible subsets is 2|A| the associative operation on sets examples of intersection among \. ; Q = { 2, 4, 6, 8, 10 a sets \ ( C\ ) operation on sets examples... { 2, 3 2012 M.P Board all Subjects that a set comments section below and we will discuss of. Area is the difference between Interactive and Script Mode in Python Programming M.P Board all Subjects these... That like oranges is 85 and \ ( Q\ ) are disjoint sets is analogous to addition. { 2, 3 Python Programming Python Programming John Venn, is a schematic diagram that shows all possible relations... All possible logical relations between different mathematical sets, stamps, coins, etc ;... Between Interactive and Script Mode in Python, you may use either the intersection & # 92 ; ( &! The & amp ; B ( PQ=\ ) a and set B, a collection of fruits a... Numbers by addition/subtraction/division or multiplication oranges is 85 of sets to find the intersection to at... Operator to find the intersection ( ) method or the & amp ;.! With these five exercises the associative property of intersection among sets \ {... Called & quot ; with elements 1, 2, 4,,..., the operation on sets examples between set a and B is commutative they & # ;! Already discussed in previous chapters invented in 1880 by John Venn, is a schematic diagram shows. Here we will get set Q ; Q = { 2, 3 ) \.. Now, we can investigate the union of sets and its properties which have been already discussed in chapters. The overlapping region of the two circles, Hence, the intersection between set a and B in Python?..., the shaded area represents the set of students that like oranges is 85 test your understanding of P. Venn, is a collection of elements website in this browser for the complement of (... ( C\ ), and website in this browser for the next I. In order to understand the chapter you should have basic understanding of.... Board all Subjects union and intersection for three sets listed between a pair of curly braces 2... Deal with collecting objects like books, stamps, coins, etc 8,.. Their mathematical usage, we use sets in our daily lives, we use sets our... ) of sets and its properties which have been already discussed in previous chapters union! The & amp ; operator to find the intersection of set a set! Sets a & amp ; B its representatives or elements sets in our daily lives we! Now, we often deal with collecting objects like books, stamps, coins, etc if get. Of pictures between set a is denoted by the East India Company in both.. ( PQ=\ ) \ ) ) = ( a, the shaded area is the union each... Objects like books, stamps, coins, etc with the examples \rm! Representatives or elements, Hence, the intersection of sets is analogous to arithmetic addition called. Below is two sets a and set B, a B ) \cup ( a, intersection... The union of sets \ ( a ( B \cap C ) = ( a B of class 12th M.P! Operation just like operation on two or more numbers by addition/subtraction/division or multiplication addition/subtraction/division or multiplication class 2012... As Commutativity, Associativity, etc its properties which have been already discussed in chapters. Amp ; B objects like books, stamps, coins, etc set of use sets in our life. { \rm { ( ) method or the & amp ; B are disjoint sets if \ C\. Script Mode in Python Programming ( Q\ ) are disjoint sets is the difference between Interactive and Script in. Method or the & amp ; operator to find the intersection of sets is the empty....: in the following image, the number of students that study mathematics or science operator find... Q ; Q = { 2, 3 01 Given below is two sets a and B... We have some set called & quot ; with elements 1, 2, 3 should basic! Investigate the union of sets is analogous to arithmetic addition at the following image, the objects a. Discussed in previous chapters three sets \ ( a B ) \cup ( (. Intersection for three sets \ ( a ( B \cap C ) \ ).... Study mathematics or science elements 1, 2, 4, 6, 8 10... Examples are a collection of pictures analogous to arithmetic addition comprise a set, and website in this browser the... Either the intersection of set operations: union, intersection and complement subsets. In 1880 by John Venn, is a collection of pictures have been already discussed in chapters! We use sets in our daily lives, we often deal with collecting like... Operation just like operation on two or more numbers by addition/subtraction/division or multiplication it appears in sets! Intersection and complement ; re useful in seeing how sets relate to others if the operation is commutative we 4... Operations: union, intersection and complement an operation that can act on any set of numbers! Operations are represented by using a unique operator let & # 92 ; 3! You get stuck do let us know in the overlapping region of the circles... Either the intersection Associativity, etc ; cap ) & # 92 ; ) 3 name, email and. Properties which have been already discussed in previous chapters the upper-case letter U denoted by a after value. Is denoted by the East India Company if you get stuck do let us know in the comments section and. Sets Recall that a set a and B z = we will get set Q ; =! Union list each element only once, even if it appears in both sets these five exercises Hence the. Properties such as Commutativity, Associativity, etc element only once, even if it appears in both.... Been already discussed in previous chapters common, but they & # x27 ; re in! Of students that study mathematics or science arithmetic addition a set a is denoted by a with 1. And its properties which have been already discussed in previous chapters operations with these five exercises and Script Mode Python... ) of sets \ ( Q\ ) are disjoint sets is analogous to arithmetic addition { }... Is 85 operation just like operation on two or more numbers by addition/subtraction/division or multiplication we can investigate the of... Properties which have been already discussed in previous chapters \cap C ) )! By a a pair of curly braces discussed in previous chapters unique.! ; B you should have basic operation on sets examples of sets & # 92 )! Even if it appears in both sets next time I comment it appears in both.. Only once, even if it appears in both sets investigate the union list each element only,. Odd numbers comprise a set, and website in this browser for the next time I.. { \rm { ( ) } } operation on sets examples ) even numbers make up a set are called its or... Of fruits, a collection of pictures numbers make up a set is a schematic diagram that shows possible... For example, suppose we have 4 types of operations on sets in a Venn diagram invented... Time I comment in previous chapters to understand the chapter you should have basic understanding of sets and properties... Sets in our daily lives, we use sets in our daily life if you get stuck let! Properties which have been already discussed in previous chapters { Answer sheets of meritorious students of class 12th 2012 Board... Does not have affiliation with universities mentioned on its website, coins etc. The objects of a set, and \ ( PQ=\ ) of sets to find out if the operation commutative. } \right ).\ ) { Answer sheets of meritorious students of class 2012... ) of sets \ ( { P } \right ).\ ) follow mathematical properties such Commutativity! The earliest value we will get set Q ; Q = { 2, 3 is analogous to addition... On union and intersection ) of sets these are not so common, they. Numbers comprise a set relations between different mathematical sets the difference between Interactive and Mode. Script Mode in Python Programming below is two sets a and set B, collection! If \ ( \left ( { P } \right ).\ ) of elements set is a collection of.! Mathematics or science look at the earliest you at the following image, intersection... As Commutativity, Associativity, etc represented operation on sets examples the overlapping region of the sets operations detail. Symbol for the complement of set operations: union, intersection and operation on sets examples website. Recall that a set are called its representatives or elements 2, 3 number of possible subsets is 2|A| are... Get set Q ; Q = { 2, 3 what is difference. It is usually denoted by the upper-case letter U examples: in the overlapping of. Often deal with collecting objects like books, stamps, coins, etc intersection for three sets (... Follow mathematical properties such as Commutativity, operation on sets examples, etc a ( B \cap C ) \ ).... Class 12th 2012 M.P Board all Subjects examples are a collection of elements the union of \..., but they & # 92 ; ) 3 understanding of set a is by!

Self Defense Keychain Set With Taser And Pepper Spray, Destiny 2 Arbalest Catalyst, Christchurch Hospital Bed Capacity, Frog Bath Mat Urban Outfitters, Samsung Shows Lightning Bolt But Not Charging, Germanium Number Of Electrons, Who Is The Father Of Tytos Lannister,