<<

Math 300 - Introduction to Mathematical reasoning Summer 2013 Lecture 1: Sets - June 24 Chapter 1 - Sets and Functions

Definition and Examples

Sets are a “well-defined” collection of objects. We shall not say what we mean by “well-defined” in this course. At an introductory level, it suffices to think of a as a collection of objects. Some examples of sets are - • Collection of students taking Math 300, • Collection of all possible speeds that your car can attain, • Collection of all matrices with real entries (Math 308).

Examples

We mention some mathematical examples which we shall use throughout the course. Keep these examples in mind.

• N - the set of natural numbers. Here, N = {1, 2, 3,..., } • Z - the set of integers. Here, Z = {,..., −3, −2, −1, 0, 1, 2, 3,..., } • Q - the set of rational numbers. The set of rational numbers can described as fractions, where the numerator and denominator of the fraction are both integers and the denominator is not equal to zero.

• R - the set of real numbers. • R+ - the set of positive real numbers. The objects of the set are called elements, members or points of the set. Usually a set is denoted by a capital letter. The elements of the set are denoted by lowercase letters. The symbol ∈ denotes the phrase “belongs to”. Let A be a set and let x be an of the set A. The statement x ∈ A should be read as x belongs to the set A.

For example, the statement “1 ∈ N” should be read as “1 belongs to the set of natural numbers”. Recall that π is defined to be the ratio of the circumference of a circle to its diameter. The statement “π ∈ R” should be read as “π belongs to the set of real numbers”. Here are some more useful examples to keep in mind -

• E - the set of even integers. Here, the set E = {,..., −8, −6, −4, −2, 0, 2, 4, 6, 8,..., }. • O - the set of odd integers. Here, the set O = {,..., −9, −7, −5, −3, −1, 1, 3, 5, 7, 9,..., }.

1-1 1-2 Lecture 1: Sets - June 24

Describing a set

We mention various ways to describe a set. We will be slightly informal here. However, we hope that our examples are illustrative and convey our thoughts.

Listing the elements

One way of describing a set is to list all the elements of a set. We separate the elements of a set using commas and enclose the elements within curly brackets. For example, consider the statement A = {3.5, 6, π, 0} The statement says that there is a set A with 5 elements. The elements of this set A are 3, 5, 6, π and 0. The order in which you specify the elements is NOT important. For example, {0, π, 5, 3, 6} also denotes the same set A. Repeating an element is also NOT important. For example, {π, π, 3, 3, 3, 0, 5, 6, 6, 6} also denotes the same set A. The symbol “∈/” should be read as “does not belong to”. In our example, 2 ∈/ A, i.e. the element 2 does not belong to the set A. Listing the elements of a set can be done with infinite sets too. We wrote down the set of natural numbers as follows, N = {1, 2, 3,...}. Here “...” should be read as “and so on”. Here, it is implicit what the phrase“and so on” should be interpreted as. We have given similar descriptions for the set of integers Z, the set of odd integers O and the set of even integers E. However, there might be some sets where it might not be possible to list down all the elements of the set. We need alternate ways to describe such sets.

Think about it - Is there a possible way to list out all the elements of R - the set of real numbers ? The answer is NO. It is not possible to list the elements of the set of real numbers R as we had listed out the elements of the set of natural numbers N. Now, is there possible way to list out all the elements of Q ? This is a slightly subtle question. The answer is YES ! We hope to talk about both these questions more in Chapter 4.

Conditional definition of a set

An alternate way of describing a set is to specify some conditions, that allows us to pick elements from a larger set whose description is already available to us. We provide some illustrative examples. Throughout, we assume that we have already described the set of integers Z. We make use of the symbol “|” which should be read as “such that” Examples :

• B = {n ∈ Z | 0 < n < 4}. Intrepret the definition of B as follows “The set B is the set of integers n such that n is greater than 0 and less than 4”. One can see that B can be written down as {1, 2, 3}.

• The set of even integers, E = {a ∈ Z | a is a multiple of 2}. Interpret this definition of E as follows - “The set E is the set of integers n such that n is a multiple of 2”. • The set of odd integers O = {a ∈ Z | a is not a multiple of 2}. Lecture 1: Sets - June 24 1-3

• The set of rational numbers Q = {x ∈ R | x = a/b for some a, b ∈ Z}.

Constructive definition of a set

The other systematic way of describing a set is to give a formula or an algorithm to construct the elements of the set. We provide some illustrative examples. Example :

• The set of rational numbers Q = {a/b | a, b ∈ Z}. • The set of even integers E = {2 · a| a ∈ Z}. • The set of odd integers O = {2 · a + 1 | a ∈ Z}

Set operations

Universe : Let us be slightly informal here. In most of our questions, there will be a special distinguished set called the “universe” hovering the background. The elements of the sets in question will belong to this special set - the universe. Most often, we will denote the “Universe” by U. In most problems, we will not mention what the universe is and the existence of the universe will be quite implicit.

Venn Diagrams

Read about Venn diagrams in Wikipedia !

Subset

Suppose we have two sets A and B. We say that A is a of B - we write A ⊂ B - if every element of A is an element of B.

For example, we have N ⊂ Z ⊂ Q ⊂ R.

A

B 1-4 Lecture 1: Sets - June 24

Equality of sets

We say that two sets A and B are equal to each other (and we write A = B) if every element of A is an element of B and every element of B is an element of A. Alternatively, two sets A and B are equal to each other if A ⊂ B and B ⊂ A. Example: Consider the two sets A = {2 · n + 1 | n ∈ Z} and B = {2 · n − 1 | n ∈ Z}

We will prove that A = B. Proof: To prove that A = B, we need to show that A ⊂ B and B ⊂ A. 1. First we show that A ⊂ B. Choose an arbitrary element x ∈ A. We will try to show that x ∈ B. Since x was an arbitrarily chosen element of A, this would imply that every element of A is an element of B and hence that A ⊂ B. Since x ∈ A, there is some integer n such that x = 2 · n + 1.

x = 2 · n + 1 = 2 · (n + 1 − 1) + 1 = 2 · (n + 1) − 2 + 1 = 2 · (n + 1) − 1

Substitute m = n + 1, we get that x ∈ B. Note that the variable n used in the definition of the sets A and B is just a dummy variable. We could have defined B = {2 · m − 1 | m ∈ Z}. We have shown that A ⊂ B. 2. Now we have to show that B ⊂ A. Let x ∈ B, i.e. we choose an arbitrary element x in B. This means that there is an integer n such that x = 2 · n − 1. We proceed similarly.

x = 2 · n − 1 = 2 · (n − 1 + 1) − 1 = 2 · (n − 1) + 2 − 1 = 2 · (n − 1) + 1

Substitute m = n − 1, we get that x = 2 · m + 1. m is also an integer. Hence we can conclude that x ∈ A. Since x was an arbitrary element in B, we can conclude that B ⊂ A.

Empty set

Another distinguished set is the . In some sense, it is the opposite of the set we called the “Universe”. The empty set is the unique set with no elements. The empty set is denoted by ∅. Lecture 1: Sets - June 24 1-5

Union

Suppose we have two sets A and B. Then we define the of the sets A and B to be the set that consists of those elements that are either in A or in B. We denote the set by A ∪ B. We provide the following conditional definition

A ∪ B = {x | x ∈ A or x ∈ B}.

Example E ∪ O = Z. A non-example- Let A = {1, 2, 3} and B = {1, 2} be two sets. Consider another set C = {A, B} is another set, whose elements are sets themselves. The set C is not equal to A ∪ B. The set A ∪ B = {1, 2, 3}. The set C = {{1, 2, 3}, {1, 2}}. A set consisting of other sets as its members is not uncommon in real life. For instance, you can think of the “European union” whose elements are “countries”. Now, you can further think of a country as a set whose elements are “people”.

A B

Intersection

Suppose we have two sets A and B. We define the intersection of the sets A and B to be the set that consists of those elements that are in both A and B. We denote the intersection by A ∩ B.

A ∩ B = {x | x ∈ A and x ∈ B}.

Example

Z ∩ R+ = N.

A B 1-6 Lecture 1: Sets - June 24

Complements

Fix a universe U. Now suppose we have a set A. The set Ac - read as “A ” - consists of elements in the universe U but not in the set A. We give the conditional definition -

Ac = {x ∈ U | x∈ / A}

Notice that if you change your universe, the complement of a set changes. Example Suppose our universe is the set Z. Then, we have that Ec = O and Oc = E.

A