Sei sulla pagina 1di 63

Chapter 1 :

Introduction to Set and Logic

SM0013 Mathematics I Khadizah Ghazali Lecture 1 25/05/2011

LEARNING OUTCOMES

At the end of this chapter, you should be able to :


know what set & logic are about define some basic terminologies in set & logic identify relations between pairs of sets use Venn diagrams & the counting formula to solve set equations build & use the truth table
2

SM0013 - 24/05/2011

Outline (A)
1.1 1.2 1.3 1.4 1.5 Symbols in set & logic Set Terminology and Notation Operations on set Algebra of sets Finite Sets and Counting Principle.
3

SM0013 - 24/05/2011

Outline (B)
1.6 Statements and Argument 1.7 Combining, Conditional and Biconditional Statements 1.8 Truth Table 1.9 Logic of Equivalent

SM0013 - 24/05/2011

SECTION 1.1

Symbols in set & logic


Symbols is the central part in set & logic. Here some important symbols :

SM0013 - 24/05/2011

SM0013 - 24/05/2011

SM0013 - 24/05/2011

SM0013 - 24/05/2011

SM0013 - 24/05/2011

Here is a list of sets that we will refer to often, and the symbols are standard.

SM0013 - 24/05/2011

10

Example 1.1

SM0013 - 24/05/2011

11

Example 1.2

SM0013 - 24/05/2011

12

Example 1.3

SM0013 - 24/05/2011

13

SECTION 1.2

Set Terminology & Notation


George Cantor (1845-1915), in 1895, was the first to define a set formally. Definition : Set
A set is a group of things of the same kind that belong together.

The objects that make up a set are called


elements or members of the set.

SM0013 - 24/05/2011

14

Some Properties of Sets


The order in which the elements are presented in a set is not important.

A = {a, e, i, o, u} and B = {e, o, u, a, i} both define the same set.

The members of a set can be anything. In a set the same member does not appear more than once.

F = {a, e, i, o, a, u} is incorrect since the element a repeats.


15

SM0013 - 24/05/2011

Some Notation

Consider the set A = {a, e, i, o, u} then We write a is a member of A as:


aA bA Note: b A (b A)

We write b is not a member of A as:


SM0013 - 24/05/2011

16

Set representation:

There are 4 ways to represent a set.

1. Set may be represented by words, for example: A = the first three natural numbers greater than zero B = the colors red, white, blue, and green
SM0013 - 24/05/2011 17

Set representation (cont.):


2. Another way to represented a set is to list its elements between curly brackets (by enumeration). ~ is called the roster method, for example:

C = {1, 2, 3} D = {red, white, blue, green}


SM0013 - 24/05/2011 18

Set representation (cont.):


3. Another kind of set notation commonly used is

set-builder notation, for example: The set E of a natural number less than 4 is written as

SM0013 - 24/05/2011

19

Set representation (cont.):


4.

A set can also be represented by a Vann diagram A pictorial way of representing sets. The universal set is represented by the interior of a rectangle and the other sets are represented by disks lying within the A rectangle.

E.g. A = {a, e, i, o, u}
SM0013 - 24/05/2011

a u i e o
20

Equality of two Sets


A set A is equal to a set B if and only if both sets have the same elements. If sets A and B are equal we write: A = B. If sets A and B are not equal we write A B. In other words we can say: A = B (x, xA xB)

E.g.
A = {1, 2, 3, 4, 5}, B = {2, 4, 1, 3, 5}, C = {1, 3, 5, 4} D = {x : x Z 0 < x < 6}, E = {1, 10/5, 9 , 22, 5} then A = B = D = E and A C.

SM0013 - 24/05/2011

21

Universal Set and Empty Set


The members of all the investigated sets in a particular problem usually belongs to some fixed large set. That set is called the universal set and is usually denoted by U. The set that has no elements is called the empty set and is denoted by or {}.

E.g. {x | x2 = 4 and x is an odd integer} =


SM0013 - 24/05/2011 22

Cardinality of a Set

The number of elements in a set is called the cardinality of a set. Let A be any set then its cardinality is denoted by |A| @ n(A) E.g. A = {a, e, i, o, u} then |A| = 5.

SM0013 - 24/05/2011

23

Subsets

Set A is called a subset of set B if and only if every element of set A is also an element of set B. We also say that A is contained in B or that B contains A. It is denoted by A B or B A. In other words we can say:
(A B) (x, x A x B)

SM0013 - 24/05/2011

24

Subset cont.

If A is not a subset of B then it is denoted by A B or B A


E.g. A = {1, 2, 3, 4, 5} and B = {1, 3} and C = {2, 4, 6} then B A and C A


A 5 1 3 2 4 6 C

SM0013 - 24/05/2011

25

Some Properties Regarding Subsets


For any set A, A U For any set A, A A ABBCAC A=BABBA

SM0013 - 24/05/2011

26

Proper Subsets

Notice that when we say A B then it is even possible to be A = B. We say that set A is a proper subset of set B if and only if A B and A B. We denote it by A B or B A. In other words we can say:
(A B) (x, xA xB AB)

SM0013 - 24/05/2011

27

Venn Diagram for a Proper Subset


Note that if A B then the Venn diagram depicting those sets is as follows:
B A

If A B then the disc showing B may overlap with the disc showing A where in this case it is actually A = B
28

SM0013 - 24/05/2011

Power Set

The set of all subsets of a set S is called the power set of S. It is denoted by P(S) or 2S. In other words we can say: P(S) = {x : x S} E.g. A = {1, 2, 3} then
P(A) = {, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}}

Note that |P(S)| = 2|S|. E.g. |P(A)| = 2|A| = 23 = 8.


29

SM0013 - 24/05/2011

???

Is the empty set, a subset of {3, 5, 7}? If we say that is not a subset of {3, 5, 7}, then there must be an element of that does not belong to {3, 5, 7}. But that cannot happen because is empty. So is a subset of {3, 5, 7}. In fact, by the same reasoning, the empty set is a subset of every set.
SM0013 - 24/05/2011 30

SECTION 1.3
Operations on Set

Complement : The (absolute) complement of a set A is the set of elements which belong to the universal set but which do not belong to A. This is denoted by Ac or or . In other words we can say: Ac = {x : xU xA}
SM0013 - 24/05/2011 31

Venn Diagram for the Complement


A Ac

SM0013 - 24/05/2011

32

Set Complementation

If U is a universal set and A is a subset of U, then

SM0013 - 24/05/2011

33

nion

Union of two sets A and B is the set of all elements which belong to either A or B or both. This is denoted by A B. In other words we can say: A B = {x : xA xB} E.g. A = {3, 5, 7}, B = {2, 3, 5} A B = {3, 5, 7, 2, 3, 5} = {2, 3, 5, 7}
SM0013 - 24/05/2011 34

Venn Diagram Representation for Union


AB A

35

SM0013 - 24/05/2011

35

Itersection

Intersection of two sets A and B is the set of all elements which belong to both A and B. This is denoted by A B. In other words we can say: A B = {x : xA xB} E.g. A = {3, 5, 7}, B = {2, 3, 5} A B = {3, 5}
SM0013 - 24/05/2011 36

Venn Diagram Representation for Intersection


AB A

SM0013 - 24/05/2011

37

Difference

The difference or the relative complement of a set B with respect to a set A is the set of elements which belong to A but which do not belong to B. This is denoted by A \ B. In other words we can say: A \ B = {x : xA xB} E.g. A = {3, 5, 7}, B = {2, 3, 5} A \ B = {3, 5, 7}\{2, 3, 5} = {7}
SM0013 - 24/05/2011 38

Venn Diagram Representation for Difference


A B A

35

SM0013 - 24/05/2011

39

Disjoint Sets

If two sets A and B have no elements in common, that is, if

AB=

then A and B are called disjoint sets. Notice that the circles corresponding to A and B not overlap anywhere because AB is empty. B A

SM0013 - 24/05/2011

40

Some Properties

A A B and B A B AB A and AB B |A B| = |A| + |B| - |AB| A B Bc Ac A B = A Bc If A B = then we say A and B are disjoint.
SM0013 - 24/05/2011 41

SECTION 1.4
Algebra of Set

In section 1.3 we saw that, given two sets A and B, the operations union and intersection could be used to generate two further sets A B and A B These two new sets can then be combined with a third set C, associated with the same universal set U as the sets A and B, to form four further sets
C (A B) , C (A B) , C (A B) , C (A B)
SM0013 - 24/05/2011 42

And the compositions of these sets are clearly indicated by the shaded portion in the Venn diagrams

SM0013 - 24/05/2011

43

Algebraic Laws on Sets:


Sets operations of union, intersection and complement satisfy various laws (identities). Let U be the universal set and A, B and C are subsets of U.

SM0013 - 24/05/2011

44

Algebra of Sets

Idempotent laws

AA=A AA=A (A B) C = A (B C) (A B) C = A (B C)

Associative laws

SM0013 - 24/05/2011

45

Algebra of Sets cont.


Commutative laws

AB=BA AB=BA A (B C) = (A B) (A C) A (B C) = (A B) (A C)

Distributive laws

SM0013 - 24/05/2011

46

Algebra of Sets cont.


Identity laws

A A A A

=A U=A U=U =

Involution laws

(Ac)c = A
47

SM0013 - 24/05/2011

Algebra of Sets cont.


Complement laws

A Ac = U A Ac = Uc = c = U

SM0013 - 24/05/2011

48

Algebra of Sets cont.


De Morgans laws

(A B)c = Ac Bc (A B)c = Ac Bc

Note: Compare these De Morgans laws with the De Morgans laws that you will find in logic and see the similarity.

SM0013 - 24/05/2011

49

Proofs

Basically there are two approaches in proving above mentioned laws and any other set relationship

Mathematical Notation Using Venn diagrams

SM0013 - 24/05/2011

50

Example 1.4 :

SM0013 - 24/05/2011

51

Solution : a)Method 1;

SM0013 - 24/05/2011

52

Solution : a)Method 2;

SM0013 - 24/05/2011

53

Solution : b)

SM0013 - 24/05/2011

54

SECTION 1.5

Finite Sets & Counting Principle


Definition : Finite set A set is said to be finite if it contains exactly p elements. Otherwise a set is said to be infinite.

SM0013 - 24/05/2011

55

Number of the elements in a set;


is determined by simply counting the elements in the set. If A is any set, then n(A) or |A| denotes the number of elements in A.

SM0013 - 24/05/2011

56

Another result that is easily seen to be true is the following cases :

SM0013 - 24/05/2011

57

Case III : Inclusion-Exclusion Principle

SM0013 - 24/05/2011

58

Case IV:

SM0013 - 24/05/2011

59

Example 1.5 :

SM0013 - 24/05/2011

60

Example 1.6 :

SM0013 - 24/05/2011

61

Example 1.7 :

SM0013 - 24/05/2011

62

SM0013 - 24/05/2011

63

Potrebbero piacerti anche