Escolar Documentos
Profissional Documentos
Cultura Documentos
Lecture
SETS
Preliminaries
Definition
A set is a collection of distinct well defined objects
The objects in a set are called the elements of the set. If a is an element of the
set M we write
a M . We write a M if a is not in M
Examples
The set of all natural numbers, N, is given by N = {0, 1, 2, 3, , }
(a)
{x : x R, x 2}
(b)
{ y: y solves (y + 1)(y 3) = 0}
(c)
{x R : 2 x 2} or {x : x ( 2, 2]}
(d)
(e)
{ a : a Z and b Z }
b
i.e Q {x : x a : a Z , b Z }
b
Definitions
(i)
(ii)
(iii)
(iv)
Set Operations
Definitions Given two sets A and B with elements from a universal set U
The intersection of A and B (written as A B ) is the set that contains
elements common to both A and B i.e A B {x U : x A and x B}
The union of A and B (written as A B ) is the set that contains those
(b)
elements in either set A or B. i.e A B {x U : x A or x B}
The difference of A and B (written as A B) is the set that contains those
(c)
elements in A which are not in B. i.e A B A B c
Example : Let U = N , A = {1, 3} , B = {2, 3, 6 } and C = {1, 2, 3, 4, 5)
Then A B = {1} and A C =
The Cartesian product of A and B (written as A X B) is the set of all ordered
(d)
pairs (a,b) where a is an element of A and b is an element of B. i.e
A X B {( a, b) : a A and b B}
Example : Let A = {1, 2, 3} and B = {x, y} Then A X B = { (1, x), (1, y),
(2, x), (2, y), (3, x), (3, y) }
(a)
(
A B) C A ( B C )
Associative property for
(c)
( A B) C A ( B C )
Associative property for
(d)
A ( B C ) ( A B) ( A C )
Distributive property for over
(e)
A ( B C ) ( A B) ( A C )
Distributive property for over
(f)
A U A
A A
Identity
(g)
A Ac U A Ac
Negation
(h)
Idempotent
A A A
(i)
( A B) c A c B c and ( A B) c A c B c
De Morgans Laws
(j)
A ( A B ) A and A ( A B ) A
Absorption
(k)
To show that one set is a subset of another, we establish that every element of the
first set must also be an element of the second set.
Example
Prove that for all sets A and B, A B A
Proof
Let x A B where x is any arbitrary element in A B
x A and x B by definition of intersection
Therefore A B A
Definition
Two sets A and B are equal (written as A = B) if A B and
Example
Prove that for all sets A, B and C
A ( B C ) ( A B) ( A C ) (De Morgans law)
Proof
Let x A ( B C )
x A or x ( B C )
Case 1 : If x A
Then x ( A B ) and x ( A C )
Hence x ( A B ) ( A C )
Case 2 : If x ( B C )
Then x B and x C
Hence x ( A B ) and x ( A C )
so that x ( A B ) ( A C )
In both cases x ( A B ) ( A C )
Therefore A ( B C ) ( A B ) ( A C )
Conversely,
(1)
B A
Suppose x ( A B ) ( A C )
x ( A B ) and x ( A C )
Consider the cases x A and x A separately
Case 1 : If x A then x A ( B C )
Case 2 : If x A then x B and x C
x (B C)
x A (B C)
In both cases x A ( B C )
Hence ( A B ) ( A C ) A ( B C )
( 2)