Sets MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Sets Fall / 31

Similar documents
CSC Discrete Math I, Spring Sets

1.1 - Introduction to Sets

Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103. Chapter 2. Sets

SET DEFINITION 1 elements members

2. Sets. 2.1&2.2: Sets and Subsets. Combining Sets. c Dr Oksana Shatalov, Fall

Sets 1. The things in a set are called the elements of it. If x is an element of the set S, we say

2.1 Sets 2.2 Set Operations

SETS. Sets are of two sorts: finite infinite A system of sets is a set, whose elements are again sets.

9/19/12. Why Study Discrete Math? What is discrete? Sets (Rosen, Chapter 2) can be described by discrete math TOPICS

CS100: DISCRETE STRUCTURES

Outline. CISC 1100/1400 Structures of Comp. Sci./Discrete Structures Chapter 1 Sets. Sets. Enumerating the elements of a set

Review of Sets. Review. Philippe B. Laval. Current Semester. Kennesaw State University. Philippe B. Laval (KSU) Sets Current Semester 1 / 16

2 Review of Set Theory

Set and Set Operations

2.1 Symbols and Terminology

Chapter 3. Set Theory. 3.1 What is a Set?

SEVENTH EDITION and EXPANDED SEVENTH EDITION

Introduction II. Sets. Terminology III. Definition. Definition. Definition. Example

Discrete Mathematics

Sets. X. Zhang Dept. of Computer & Information Sciences Fordham University

Slides for Faculty Oxford University Press All rights reserved.


CS 1200 Discrete Math Math Preliminaries. A.R. Hurson 323 CS Building, Missouri S&T

9.5 Equivalence Relations

Introduction. Sets and the Real Number System

What is Set? Set Theory. Notation. Venn Diagram

2.2 Set Operations. Introduction DEFINITION 1. EXAMPLE 1 The union of the sets {1, 3, 5} and {1, 2, 3} is the set {1, 2, 3, 5}; that is, EXAMPLE 2

11 Sets II Operations

Figure 1.1: This is an illustration of a generic set and its elements.

Sets. Mukulika Ghosh. Fall Based on slides by Dr. Hyunyoung Lee

Today s Topics. What is a set?

Definition. A set is a collection of objects. The objects in a set are elements.

Cardinality of Sets MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Cardinality of Sets Fall / 15

This Lecture. We will first introduce some basic set theory before we do counting. Basic Definitions. Operations on Sets.

2/18/14. Uses for Discrete Math in Computer Science. What is discrete? Why Study Discrete Math? Sets and Functions (Rosen, Sections 2.1,2.2, 2.

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

Math 110 FOUNDATIONS OF THE REAL NUMBER SYSTEM FOR ELEMENTARY AND MIDDLE SCHOOL TEACHERS

Relational Database: The Relational Data Model; Operations on Database Relations

Algebraic Expressions

The Language of Sets and Functions

Complexity Theory. Compiled By : Hari Prasad Pokhrel Page 1 of 20. ioenotes.edu.np

A set with only one member is called a SINGLETON. A set with no members is called the EMPTY SET or 2 N

Computer Science and Mathematics. Part I: Fundamental Mathematical Concepts Winfried Kurth

MAT 090 Brian Killough s Instructor Notes Strayer University

(Refer Slide Time: 0:19)

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Discrete Mathematics

Let A(x) be x is an element of A, and B(x) be x is an element of B.

Relational terminology. Databases - Sets & Relations. Sets. Membership

c) the set of students at your school who either are sophomores or are taking discrete mathematics

2 Sets. 2.1 Notation. last edited January 26, 2016

This is already grossly inconvenient in present formalisms. Why do we want to make this convenient? GENERAL GOALS

1 Finite Representations of Languages

Solution: It may be helpful to list out exactly what is in each of these events:

Pre-Calc Unit 1 Lesson 1

Set theory is a branch of mathematics that studies sets. Sets are a collection of objects.

Closure Properties of CFLs; Introducing TMs. CS154 Chris Pollett Apr 9, 2007.

CS Bootcamp Boolean Logic Autumn 2015 A B A B T T T T F F F T F F F F T T T T F T F T T F F F

IB Sets and Venn Diagram Questions- Package #1

1 Sets, Fields, and Events

Dr. Relja Vulanovic Professor of Mathematics Kent State University at Stark c 2008

Topology 550A Homework 3, Week 3 (Corrections: February 22, 2012)

CSE 20 DISCRETE MATH. Fall

The Intersection of Two Sets

A.1 Numbers, Sets and Arithmetic

Lecture 25 : Counting DRAFT

Chapter 2: Sets. Diana Pell. In the roster method: elements are listed between braces, with commas between the elements

In this section we take an aside from the normal discussion in algebra.

MATHEMATICS 191, FALL 2004 MATHEMATICAL PROBABILITY Outline #1 (Countability and Uncountability)

Theory Bridge Exam Example Questions Version of June 6, 2008

THEORY OF COMPUTATION

COUNTING AND PROBABILITY

What is a Set? Set Theory. Set Notation. Standard Sets. Standard Sets. Part 1.1. Organizing Information

TOPOLOGY, DR. BLOCK, FALL 2015, NOTES, PART 3.

Algorithm. Algorithm Analysis. Algorithm. Algorithm. Analyzing Sorting Algorithms (Insertion Sort) Analyzing Algorithms 8/31/2017

LECTURE NOTES ON SETS

Section Sets and Set Operations

Sets. {1, 2, 3, Calvin}.

Notes on metric spaces and topology. Math 309: Topics in geometry. Dale Rolfsen. University of British Columbia

LECTURE 8: SETS. Software Engineering Mike Wooldridge

TOPICS. Integers Properties of addition and. Rational Numbers Need for rational numbers. Exponents or Powers Introduction to Exponents or

Phil 320 Chapter 1: Sets, Functions and Enumerability I. Sets Informally: a set is a collection of objects. The objects are called members or

Counting. Rosen, Chapter 6 Walls and Mirrors, Chapter 3

Sets and set operations

CHAPTER 8. Copyright Cengage Learning. All rights reserved.

Figure 1: From Left to Right, General Venn Diagrams for One, Two, and Three Sets

III. Supplementary Materials

Combinatorics Prof. Dr. L. Sunil Chandran Department of Computer Science and Automation Indian Institute of Science, Bangalore

1.1. Real Number System Numbers, Numbers,... My Notes ACTIVITY

CS314: FORMAL LANGUAGES AND AUTOMATA THEORY L. NADA ALZABEN. Lecture 1: Introduction

CSE 20 DISCRETE MATH. Winter

Lecture - 8A: Subbasis of Topology

Fundamental Mathematical Concepts Math 107A. Professor T. D. Hamilton

Review of Mathematical Concepts

Sets. Margaret M. Fleck. 15 September 2010

Discrete Mathematics Lecture 4. Harper Langston New York University

Question7.How many proper subsets in all are there if a set contains (a) 7 elements (b) 4 elements

1.2 Venn Diagrams and Partitions

CSE 215: Foundations of Computer Science Recitation Exercises Set #9 Stony Brook University. Name: ID#: Section #: Score: / 4

CMPSCI 250: Introduction to Computation. Lecture #7: Quantifiers and Languages 6 February 2012

2.8. Connectedness A topological space X is said to be disconnected if X is the disjoint union of two non-empty open subsets. The space X is said to

Transcription:

Sets MAT231 Transition to Higher Mathematics Fall 2014 MAT231 (Transition to Higher Math) Sets Fall 2014 1 / 31

Outline 1 Sets Introduction Cartesian Products Subsets Power Sets Union, Intersection, Difference Set Complement Venn Diagrams Indexed Sets MAT231 (Transition to Higher Math) Sets Fall 2014 2 / 31

Definition of set Definition A set is a collection of items, called elements or members. The elements of a set may be abstract: numbers, ideas, concepts physical: numerals, objects We will usually use uppercase letters to name sets, and lower case letters as elements. The symbol denotes membership: x A indicates that x is an element of the set A. Two sets A and B are equal if and only if they have the same elements. That is, A = B if and only if every element in A is contained in B and every element in B is contained in A. MAT231 (Transition to Higher Math) Sets Fall 2014 3 / 31

Specifying sets: Enumeration There are many ways to specify a set. The simplest way is to list the elements contained in the set, as in 1, 2, 3. This is called enumeration. We use braces { and } to bracket the list of elements in a set. {1, 2, 3} {t, u, v, w, x, y, z} {, } For sets, membership is all that matters and the order the elements are listed in is insignificant. Thus {a, b, c} is the same set as {c, b, a}. MAT231 (Transition to Higher Math) Sets Fall 2014 4 / 31

Specifying sets: Enumeration Listing sets is inconvenient if there are a large number of elements in them. If there is an easy-to-see pattern then an ellipsis can be used. {1, 2, 3,..., 10} {0, 2, 4, 6,...} {..., 5, 3, 1, 1, 3, 5,...} MAT231 (Transition to Higher Math) Sets Fall 2014 5 / 31

Specifying sets: Set-builder notation Sets can also be specified using set-builder notation. It provides a expression for a typical element in the set and then one or more membership rules. {x : x is an even integer} {b : b is a butterfly} MAT231 (Transition to Higher Math) Sets Fall 2014 6 / 31

Some special sets There are some important sets of numbers, which we now name. N = {1, 2, 3, 4,...} is the set of natural numbers. Z = {..., 3, 2, 1, 0, 1, 2, 3,...} is the set of integers. Q = {x/y : x, y Z, y 0} is the set of rational numbers R is the set of real numbers. It is not possible to specify R using enumeration and using enumeration for Q is extremely cumbersome. Set-builder notation, however, makes specifying Q relatively easy. Another important set is the empty set, denoted {} or. This is the set that contains no elements. MAT231 (Transition to Higher Math) Sets Fall 2014 7 / 31

More examples of set-builder notation Here are some more examples using set-builder notation: {3n : n Z} = {..., 6, 3, 0, 3, 6,...} {2 n 1 : n N} = {1, 2, 4, 8, 16,...} {x Z : x 2 < 5} = { 2, 1, 0, 1, 2, 3, 4, 5, 6} MAT231 (Transition to Higher Math) Sets Fall 2014 8 / 31

Cardinality The cardinality of a set is the number of elements in the set. The cardinality of a set X is denoted X. {a, b, c} = 3 {x : x is a letter of the alphabet} = 26 = 0 (this is the only set with cardinality zero) {x Z : x 2 12} = 7 A finite set has a finite number of elements, while a set having infinitely many elements is called an infinite set. The cardinality of a finite set is a number; the cardinality of infinite sets is usually expressed by saying what well known infinite sets have the same cardinality. MAT231 (Transition to Higher Math) Sets Fall 2014 9 / 31

Cardinality What are the cardinalities of the following sets: A = {a, {b, c, d}} B = {{a}, {b, c}, d} C = {{a, b, c, d}} D = {{a, b, {c, d}},, { }} MAT231 (Transition to Higher Math) Sets Fall 2014 10 / 31

Cardinality What are the cardinalities of the following sets: A = {a, {b, c, d}} A = 2 B = {{a}, {b, c}, d} C = {{a, b, c, d}} D = {{a, b, {c, d}},, { }} MAT231 (Transition to Higher Math) Sets Fall 2014 10 / 31

Cardinality What are the cardinalities of the following sets: A = {a, {b, c, d}} A = 2 B = {{a}, {b, c}, d} B = 3 C = {{a, b, c, d}} D = {{a, b, {c, d}},, { }} MAT231 (Transition to Higher Math) Sets Fall 2014 10 / 31

Cardinality What are the cardinalities of the following sets: A = {a, {b, c, d}} A = 2 B = {{a}, {b, c}, d} B = 3 C = {{a, b, c, d}} C = 1 D = {{a, b, {c, d}},, { }} MAT231 (Transition to Higher Math) Sets Fall 2014 10 / 31

Cardinality What are the cardinalities of the following sets: A = {a, {b, c, d}} A = 2 B = {{a}, {b, c}, d} B = 3 C = {{a, b, c, d}} C = 1 D = {{a, b, {c, d}},, { }} D = 3 MAT231 (Transition to Higher Math) Sets Fall 2014 10 / 31

Cartesian products Definition The Cartesian product of two sets A and B is another set, denoted A B whose elements are ordered pairs, defined by A B = {(a, b) : a A, b B} If A = {a, b, c} and B = {0, 1} then A B = {(a, 0), (a, 1), (b, 0), (b, 1), (c, 0), (c, 1)} while B A = {(0, a), (0, b), (0, c), (1, a), (1, b), (1, c)} Recall that the order of elements in a set is unimportant, but the order of elements in a ordered pair is significant. MAT231 (Transition to Higher Math) Sets Fall 2014 11 / 31

Cartesian products If we extend the idea of an ordered pair to an ordered triple or even an ordered n-tuple then we can define the Cartesian product of three or more sets: A B C = {(a, b, c) : a A, b B, c C} W X Y Z = {(w, x, y, z) : w W, x X, y Y, z Z} Notice that the following two sets are different. One is the Cartesian product of three sets while the other is the Cartesian product of two sets. One contains ordered triples while the other contains ordered pairs. A B C = {(a, b, c) : a A, b B, c C} A (B C) = {(a, (b, c)) : a A, b B, c C} MAT231 (Transition to Higher Math) Sets Fall 2014 12 / 31

Cartesian products as powers of sets In some applications Cartesian products of a set with itself are common. We use the notation A 2 = A A to denote this. In general A n = A A A = {(x 1, x 2,..., x n ) : x 1, x 2,..., x n A} {a, b} 3 = {(a, a, a), (a, a, b), (a, b, a), (a, b, b), (b, a, a), (b, a, b), (b, b, a), (b, b, b)} MAT231 (Transition to Higher Math) Sets Fall 2014 13 / 31

Cardinality of Cartesian products Question: What is A B? MAT231 (Transition to Higher Math) Sets Fall 2014 14 / 31

Cardinality of Cartesian products Question: What is A B? Answer: A B = A B MAT231 (Transition to Higher Math) Sets Fall 2014 14 / 31

Cardinality of Cartesian products Question: What is A B? Answer: A B = A B Justification: Every element from A must be paired with every element from B. MAT231 (Transition to Higher Math) Sets Fall 2014 14 / 31

Subsets Definition Suppose A and B are sets. If every element of A is also an element of B then we say A is a subset of B and denote this as A B. If A is not a subset of B we write A B. This means there is at least one element of A that is not contained in B. Which of the following sets are subsets of A = {1, 2, 3, 4, 5, 6}? {2, 4, 6} {0, 1, 2, 3} {1, 2, 3, 4, 5, 6} MAT231 (Transition to Higher Math) Sets Fall 2014 15 / 31

Subsets Definition Suppose A and B are sets. If every element of A is also an element of B then we say A is a subset of B and denote this as A B. If A is not a subset of B we write A B. This means there is at least one element of A that is not contained in B. Which of the following sets are subsets of A = {1, 2, 3, 4, 5, 6}? {2, 4, 6} (is a subset) {0, 1, 2, 3} {1, 2, 3, 4, 5, 6} MAT231 (Transition to Higher Math) Sets Fall 2014 15 / 31

Subsets Definition Suppose A and B are sets. If every element of A is also an element of B then we say A is a subset of B and denote this as A B. If A is not a subset of B we write A B. This means there is at least one element of A that is not contained in B. Which of the following sets are subsets of A = {1, 2, 3, 4, 5, 6}? {2, 4, 6} (is a subset) {0, 1, 2, 3} (is not a subset, 0 not contained in A) {1, 2, 3, 4, 5, 6} MAT231 (Transition to Higher Math) Sets Fall 2014 15 / 31

Subsets Definition Suppose A and B are sets. If every element of A is also an element of B then we say A is a subset of B and denote this as A B. If A is not a subset of B we write A B. This means there is at least one element of A that is not contained in B. Which of the following sets are subsets of A = {1, 2, 3, 4, 5, 6}? {2, 4, 6} (is a subset) {0, 1, 2, 3} (is not a subset, 0 not contained in A) {1, 2, 3, 4, 5, 6} (is a subset, equal to A) MAT231 (Transition to Higher Math) Sets Fall 2014 15 / 31

Subsets Definition Suppose A and B are sets. If every element of A is also an element of B then we say A is a subset of B and denote this as A B. If A is not a subset of B we write A B. This means there is at least one element of A that is not contained in B. Which of the following sets are subsets of A = {1, 2, 3, 4, 5, 6}? {2, 4, 6} (is a subset) {0, 1, 2, 3} (is not a subset, 0 not contained in A) {1, 2, 3, 4, 5, 6} (is a subset, equal to A) (is a subset - does not contain any element not in A) MAT231 (Transition to Higher Math) Sets Fall 2014 15 / 31

The Empty set as a subset The last example leads to an important fact: the empty set is a subset of every set. Thus X for all sets X. We can rephrase set equality in terms of subsets. Two sets A and B are equal if and only if A B and B A. MAT231 (Transition to Higher Math) Sets Fall 2014 16 / 31

Listing subsets Suppose L = {w, x, y, z}. List the subsets of L. Clearly is a subset. MAT231 (Transition to Higher Math) Sets Fall 2014 17 / 31

Listing subsets Suppose L = {w, x, y, z}. List the subsets of L. Clearly is a subset. {w}, {x}, {y}, and {z} are also subsets of L. MAT231 (Transition to Higher Math) Sets Fall 2014 17 / 31

Listing subsets Suppose L = {w, x, y, z}. List the subsets of L. Clearly is a subset. {w}, {x}, {y}, and {z} are also subsets of L. So are {w, x}, {w, y}, {w, z}, {x, y}, {x, z}, and {y, z}. These subsets all have cardinality 2. MAT231 (Transition to Higher Math) Sets Fall 2014 17 / 31

Listing subsets Suppose L = {w, x, y, z}. List the subsets of L. Clearly is a subset. {w}, {x}, {y}, and {z} are also subsets of L. So are {w, x}, {w, y}, {w, z}, {x, y}, {x, z}, and {y, z}. These subsets all have cardinality 2. {w, x, y}, {w, x, z}, {w, y, z}, and {x, y, z} are the only subsets with cardinality 3. MAT231 (Transition to Higher Math) Sets Fall 2014 17 / 31

Listing subsets Suppose L = {w, x, y, z}. List the subsets of L. Clearly is a subset. {w}, {x}, {y}, and {z} are also subsets of L. So are {w, x}, {w, y}, {w, z}, {x, y}, {x, z}, and {y, z}. These subsets all have cardinality 2. {w, x, y}, {w, x, z}, {w, y, z}, and {x, y, z} are the only subsets with cardinality 3. Finally, the only subset of cardinality 4 is the set L itself: {w, x, y, z}. MAT231 (Transition to Higher Math) Sets Fall 2014 17 / 31

Listing subsets While tedious, listing subsets is straightforward: Start with the empty set. List all the singleton subsets (sets with one element). List all possible subsets with two elements. List all possible subsets with three elements. Continue until original set itself is listed as a subset. MAT231 (Transition to Higher Math) Sets Fall 2014 18 / 31

Power Sets Definition If A is a set, the power set of A is another set, denoted P(A) and is the set of all subsets of A. P(A) = {X : X A} P({a, b}) = {, {a}, {b}, {a, b}} P({a, b, c}) = {, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c}} MAT231 (Transition to Higher Math) Sets Fall 2014 19 / 31

Cardinality of power sets Suppose A is a finite set. What is the cardinality of P(A)? Notice that P( ) = 1 (since P( ) = { }) P({a}) = 2 P({a, b}) = 4 P({a, b, c}) = 8 Can you think of a general rule? MAT231 (Transition to Higher Math) Sets Fall 2014 20 / 31

Cardinality of power sets Suppose A is a finite set. What is the cardinality of P(A)? Notice that P( ) = 1 (since P( ) = { }) P({a}) = 2 P({a, b}) = 4 P({a, b, c}) = 8 Can you think of a general rule? Fact If A is a finite set, P(A) = 2 A. MAT231 (Transition to Higher Math) Sets Fall 2014 20 / 31

Union, Intersection, Difference Definition Suppose A and B are two sets. The union of A and B is the set A B = {x : x A or x B} The intersection of A and B is the set A B = {x : x A and x B} The difference of A and B is the set A B = {x : x A and x / B} (Sometimes A\B is used to denote set difference) MAT231 (Transition to Higher Math) Sets Fall 2014 21 / 31

Operations involving two sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then A B = A C = B C = A B = A C = B C = A B = B A = A C = C A = B C = C B = MAT231 (Transition to Higher Math) Sets Fall 2014 22 / 31

Operations involving two sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then A B = {0, 1, 2, 3, 4, 5, 6, 7, 8} A C = B C = A B = A C = B C = A B = B A = A C = C A = B C = C B = MAT231 (Transition to Higher Math) Sets Fall 2014 22 / 31

Operations involving two sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then A B = {0, 1, 2, 3, 4, 5, 6, 7, 8} A C = {2, 4, 5, 6, 7, 8} B C = A B = A C = B C = A B = B A = A C = C A = B C = C B = MAT231 (Transition to Higher Math) Sets Fall 2014 22 / 31

Operations involving two sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then A B = {0, 1, 2, 3, 4, 5, 6, 7, 8} A C = {2, 4, 5, 6, 7, 8} B C = {0, 1, 2, 3, 4, 6} A B = A C = B C = A B = B A = A C = C A = B C = C B = MAT231 (Transition to Higher Math) Sets Fall 2014 22 / 31

Operations involving two sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then A B = {0, 1, 2, 3, 4, 5, 6, 7, 8} A C = {2, 4, 5, 6, 7, 8} B C = {0, 1, 2, 3, 4, 6} A B = {4} A C = B C = A B = B A = A C = C A = B C = C B = MAT231 (Transition to Higher Math) Sets Fall 2014 22 / 31

Operations involving two sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then A B = {0, 1, 2, 3, 4, 5, 6, 7, 8} A C = {2, 4, 5, 6, 7, 8} B C = {0, 1, 2, 3, 4, 6} A B = {4} A C = {4, 6} B C = A B = B A = A C = C A = B C = C B = MAT231 (Transition to Higher Math) Sets Fall 2014 22 / 31

Operations involving two sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then A B = {0, 1, 2, 3, 4, 5, 6, 7, 8} A C = {2, 4, 5, 6, 7, 8} B C = {0, 1, 2, 3, 4, 6} A B = {4} A C = {4, 6} B C = {2, 4} A B = B A = A C = C A = B C = C B = MAT231 (Transition to Higher Math) Sets Fall 2014 22 / 31

Operations involving two sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then A B = {0, 1, 2, 3, 4, 5, 6, 7, 8} A C = {2, 4, 5, 6, 7, 8} B C = {0, 1, 2, 3, 4, 6} A B = {4} A C = {4, 6} B C = {2, 4} A B = {5, 6, 7, 8} B A = A C = C A = B C = C B = MAT231 (Transition to Higher Math) Sets Fall 2014 22 / 31

Operations involving two sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then A B = {0, 1, 2, 3, 4, 5, 6, 7, 8} A C = {2, 4, 5, 6, 7, 8} B C = {0, 1, 2, 3, 4, 6} A B = {4} A C = {4, 6} B C = {2, 4} A B = {5, 6, 7, 8} B A = {0, 1, 2, 3} A C = C A = B C = C B = MAT231 (Transition to Higher Math) Sets Fall 2014 22 / 31

Operations involving two sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then A B = {0, 1, 2, 3, 4, 5, 6, 7, 8} A C = {2, 4, 5, 6, 7, 8} B C = {0, 1, 2, 3, 4, 6} A B = {4} A C = {4, 6} B C = {2, 4} A B = {5, 6, 7, 8} B A = {0, 1, 2, 3} A C = {5, 7, 8} C A = B C = C B = MAT231 (Transition to Higher Math) Sets Fall 2014 22 / 31

Operations involving two sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then A B = {0, 1, 2, 3, 4, 5, 6, 7, 8} A C = {2, 4, 5, 6, 7, 8} B C = {0, 1, 2, 3, 4, 6} A B = {4} A C = {4, 6} B C = {2, 4} A B = {5, 6, 7, 8} B A = {0, 1, 2, 3} A C = {5, 7, 8} C A = {2} B C = C B = MAT231 (Transition to Higher Math) Sets Fall 2014 22 / 31

Operations involving two sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then A B = {0, 1, 2, 3, 4, 5, 6, 7, 8} A C = {2, 4, 5, 6, 7, 8} B C = {0, 1, 2, 3, 4, 6} A B = {4} A C = {4, 6} B C = {2, 4} A B = {5, 6, 7, 8} B A = {0, 1, 2, 3} A C = {5, 7, 8} C A = {2} B C = {0, 1, 3} C B = MAT231 (Transition to Higher Math) Sets Fall 2014 22 / 31

Operations involving two sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then A B = {0, 1, 2, 3, 4, 5, 6, 7, 8} A C = {2, 4, 5, 6, 7, 8} B C = {0, 1, 2, 3, 4, 6} A B = {4} A C = {4, 6} B C = {2, 4} A B = {5, 6, 7, 8} B A = {0, 1, 2, 3} A C = {5, 7, 8} C A = {2} B C = {0, 1, 3} C B = {6} MAT231 (Transition to Higher Math) Sets Fall 2014 22 / 31

Operations involving three or more sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then (A B) (A C) = (A B) (A C) = (A B) (B A) = (A B) (B A) = MAT231 (Transition to Higher Math) Sets Fall 2014 23 / 31

Operations involving three or more sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then (A B) (A C) = {2, 4, 5, 6, 7, 8} (A B) (A C) = (A B) (B A) = (A B) (B A) = MAT231 (Transition to Higher Math) Sets Fall 2014 23 / 31

Operations involving three or more sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then (A B) (A C) = {2, 4, 5, 6, 7, 8} (A B) (A C) = {4, 6} (A B) (B A) = (A B) (B A) = MAT231 (Transition to Higher Math) Sets Fall 2014 23 / 31

Operations involving three or more sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then (A B) (A C) = {2, 4, 5, 6, 7, 8} (A B) (A C) = {4, 6} (A B) (B A) = {0, 1, 2, 3, 5, 6, 7, 8} (A B) (B A) = MAT231 (Transition to Higher Math) Sets Fall 2014 23 / 31

Operations involving three or more sets Let A = {4, 5, 6, 7, 8}, B = {0, 1, 2, 3, 4}, and C = {2, 4, 6}. Then (A B) (A C) = {2, 4, 5, 6, 7, 8} (A B) (A C) = {4, 6} (A B) (B A) = {0, 1, 2, 3, 5, 6, 7, 8} (A B) (B A) = MAT231 (Transition to Higher Math) Sets Fall 2014 23 / 31

Disjoint sets Two sets are disjoint if they have no elements in common. Another way to say this: Sets A and B are disjoint if A B =. MAT231 (Transition to Higher Math) Sets Fall 2014 24 / 31

The Universal Set We can always consider a set to be a subset of another set. In any given situation involving sets, we assume there is a universal set that contains each of our sets as a subset. Consider the sets A = {1, 2, 3}, B = { 1 2, 3 5, 5}, and C = {π, e}. When dealing with only set A, we can use N, Z, Q, or R as the universal set. When dealing with both A and B, we could consider Q or R to be the universal set. When dealing with all three sets we would take R to be the universal set. Often the context will suggest what the universal set should be. MAT231 (Transition to Higher Math) Sets Fall 2014 25 / 31

Set Complement Definition Let A be a set with universal set U. The complement of A, denoted A, is the set A = U A. Essentially A is a set of everything not in A. Let A = {x N : x < 10}. We can infer from the definition of A that U = N. Then A = {x N : x 10}. MAT231 (Transition to Higher Math) Sets Fall 2014 26 / 31

Venn Diagrams A Venn Diagram can help understand set operations on a small number of sets. Closed regions are used to represent sets. Overlapping regions of two or more sets denote elements common to the sets. A B U Often the rectangle representing the universal set is not drawn. MAT231 (Transition to Higher Math) Sets Fall 2014 27 / 31

Venn Diagrams Here are some Venn diagrams of common two-set operations. A B A B A B U A B U A B U A B MAT231 (Transition to Higher Math) Sets Fall 2014 28 / 31

Three Set Venn Diagrams Construct a Venn diagram for A (B C) and for A (B C) MAT231 (Transition to Higher Math) Sets Fall 2014 29 / 31

Three Set Venn Diagrams Construct a Venn diagram for A (B C) and for A (B C) C A B A (B C) MAT231 (Transition to Higher Math) Sets Fall 2014 29 / 31

Three Set Venn Diagrams Construct a Venn diagram for A (B C) and for A (B C) C C A B A B A (B C) A (B C) MAT231 (Transition to Higher Math) Sets Fall 2014 29 / 31

Indexed Sets When working with many sets, it is often convenient to use indexed sets. Thus, rather than sets A, B, C, D, E, we might use sets A 1, A 2, A 3, A 4, A 5. We can express the union and intersections of all of these sets as 5 i=1 A i and 5 i=1 A i MAT231 (Transition to Higher Math) Sets Fall 2014 30 / 31

Indexed Sets Sometimes an even more general notation is used. Suppose I is any set (including an infinite set). If we use the elements of I as indices then we can have indexed sets A α where α I. A α = {x : x A α for at least one set A α with α I } α I A α = {x : x A α for every set A α with α I } α I MAT231 (Transition to Higher Math) Sets Fall 2014 31 / 31