are Operations on sets possible??

Yes, operations on sets are very much possible. just as you can add or subtract number, similarly you can use particular operations on set, such as union, or intersection.

Union

the union operation is like adding two numbers, 7 plus 2 would be 9. similarly union of two sets would be sum of both of the sets.

let their be two sets: and now the union of both will be but since sets dont have no repetition, it will be .

Note

the symbol for Union is

The union A ∪ B is the set of all elements that belong to A or B

Intersection

the Intersection is taking the common of both sets. so like if we say intersection of two cars would be that they all have four tires or that they all contain an engine, and so on.

taking from two set used above and their intersection will be since only 1 and 3 are the only common elements.

Note

the symbol for intersection is

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

Difference

the Difference is just as subtracting two numbers but no negative numbers.

again taking from first example and , A \ B would be like taking a intersection and then returning what ever is left. so the answer will be

Note

the difference of two sets can be represent in two ways. either A - B or A \ B

Notice how intersection and complementation can be used together to create the difference operation.

let and . their difference will be . Now lets find so we can verify if the above equation is correct.

and U is equal to so the answer to would be . now is equal to {1, 2, 4}.

thus we proved that the equation given above is very much true.

Operator Precedence Rules

  1. Other things being equal, operations are per formed left-to-right.
  2. Operations between parenthesis are done first, starting with the innermost of nested parenthesis.
  3. All complementation’s are computed next. (iv) All intersections are done next.
  4. All unions are performed next.
  5. Tests of set membership and computations, equality or inequality are performed last.

Special operations like the set difference or the symmetric difference, defined below, are not included in the precedence rules and thus always use paren thesis.

Operator precedence

Since complementation is done before intersection the symbolic definition of the difference of sets can be rewritten: If we were to take the set operations

and put in the parenthesis we would get

Symmetric difference

The symmetric difference of two sets S and T is the set of objects that are in one and only one of the sets. The symmetric difference is written S∆T. In curly brace notation:

Why-Sets set-representation Venn-Diagram


These notes are for understanding concepts only and are not a replacement for your textbook or school classes.