Sets differences

Let A and B be two sets. The set difference of A and B, denoted as AB, is the set of all the elements of A that are not members of B.

Let A and B be two sets. The set difference AB is:

AB={xA and xB}

imagen

Elements belonging to the set difference AB are those elements that belong to A and do not belong to B.

Example

  • If A={a,b,c,d} and B={b,d}, then AB és AB={a,c}.
  • If A={a,b,c,d} and B={c,d,e,f}, then AB={a,b}.
  • If W={x | x  odd and x<13} and Z={7,8,9,10,11,12,13}, then WZ={1,3,5} and ZW={8,10,12,13}.

Note that the set difference operation is not a commutative operation and if A, B are two disjoint sets, then AB=A and BA=B.

The simetric difference of any two sets A,B is defined as:

AB=(AB)(BA)=(AB)(BA)

Some properties of the set difference:

  1. AA=
  2. A=A=A
  3. AB=ABc
  4. ABAB=
  5. A(AB)=AB
  6. A(BC)=(AB)(AC)