More Functions and Sets

Slides:



Advertisements
Similar presentations
1.6 Functions. Chapter 1, section 6 Functions notation: f: A B x in A, y in B, f(x) = y. concepts: –domain of f, –codomain of f, –range of f, –f maps.
Advertisements

Some important properties Lectures of Prof. Doron Peled, Bar Ilan University.
Functions.
Functions Rosen 1.8.
Lecture 4 4.1,4.2 Counting. 4.1 Counting Two Important Principles: Product Rule and Sum Rule. Product Rule: Assume we need to perform procedure 1 AND.
Jessie Zhao Course page: 1.
DEFINITION Let f : A  B and let X  A and Y  B. The image (set) of X is f(X) = {y  B : y = f(x) for some x  X} and the inverse image of Y is f –1 (Y)
Equivalence Relations
Discrete Structures Chapter 6: Set Theory
More Set Definitions and Proofs 1.6, 1.7. Ordered n-tuple The ordered n-tuple (a1,a2,…an) is the ordered collection that has a1 as its first element,
Exercise 1- 1’ Prove that if a point B belongs to the affine / convex hull Aff/Conv (A 1, A 2, …, A k ) of points A 1, A 2,…, A k, then: Aff/Conv (A 1,
SET.   A set is a collection of elements.   Sets are usually denoted by capital letters A, B, Ω, etc.   Elements are usually denoted by lower case.
What is the best way to start? 1.Plug in n = 1. 2.Factor 6n 2 + 5n Let n be an integer. 4.Let n be an odd integer. 5.Let 6n 2 + 5n + 4 be an odd.
1 Section 1.8 Functions. 2 Loose Definition Mapping of each element of one set onto some element of another set –each element of 1st set must map to something,
1 Set Theory. Notation S={a, b, c} refers to the set whose elements are a, b and c. a  S means “a is an element of set S”. d  S means “d is not an element.
SETS A set B is a collection of objects such that for every object X in the universe the statement: “X is a member of B” Is a proposition.
Rosen 1.6. Approaches to Proofs Membership tables (similar to truth tables) Convert to a problem in propositional logic, prove, then convert back Use.
Functions.
Section 1.8: Functions A function is a mapping from one set to another that satisfies certain properties. We will first introduce the notion of a mapping.
2.1 Sets 2.2 Set Operations 2.3 Functions ‒Functions ‒ Injections, Surjections and Bijections ‒ Inverse Functions ‒Composition 2.4 Sequences and Summations.
Finite Groups & Subgroups. Order of a group Definition: The number of elements of a group (finite or infinite) is called its order. Notation: We will.
Mathematical Induction. F(1) = 1; F(n+1) = F(n) + (2n+1) for n≥ F(n) n F(n) =n 2 for all n ≥ 1 Prove it!
ICS 253: Discrete Structures I
Part B Set Theory What is a set? A set is a collection of objects. Can you give me some examples?
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
1 Section 2.1 Functions: Definitions and Examples A function ƒ from A to B associates each element of A with exactly one element of B. Write ƒ : A  B.
1 Discrete Structures – CNS 2300 Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 1 The Foundations: Logic, Sets,
Example Prove that: “IF 3n + 2 is odd, then n is odd” Proof by Contradiction: -p = 3n + 2 is odd, q = n is odd. -Assume that ~(p  q) is true OR -(p 
Basic Structures: Sets, Functions, Sequences, and Sums CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Basic Structures: Functions Muhammad Arief download dari
Agenda Week 10 Lecture coverage: –Functions –Types of Function –Composite function –Inverse of a function.
Mathematical Induction
What is a set? A set is a collection of objects.
Functions. L62 Agenda Section 1.8: Functions Domain, co-domain, range Image, pre-image One-to-one, onto, bijective, inverse Functional composition and.
Rosen 1.6, 1.7. Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by.
Basic Structures: Sets, Functions, Sequences, and Sums.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
Review 2 Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by lower.
CSC102 - Discrete Structures Functions
Functions (Mappings). Definitions A function (or mapping)  from a set A to a set B is a rule that assigns to each element a of A exactly one element.
1 Functions CS 202 Epp section ??? Aaron Bloomfield.
FUNCTIONS COSC-1321 Discrete Structures 1. Function. Definition Let X and Y be sets. A function f from X to Y is a relation from X to Y with the property.
Section 2.5. Cardinality Definition: A set that is either finite or has the same cardinality as the set of positive integers (Z + ) is called countable.
Section 2.3. Section Summary  Definition of a Function. o Domain, Cdomain o Image, Preimage  One-to-one (Injection), onto (Surjection), Bijection 
Chapter 2 1. Chapter Summary Sets The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions and sequences.
FUNCTIONS.
 {x|-3 ≤ x ≤ 16, x ∈ ℤ}  Describe the set of numbers using set- builder notation. {8, 9, 10, 11, 12, …}  The set of numbers is always considered x.
Set & Interval Notation
Functions Section 2.3.
CHAPTER 2 Set Theory A B C.
Sets Section 2.1.
5.2: Triangle Inequalities
Functions.
Set Topology MTH 251 Lecture # 8.
Solving Inequalities > < < > > <
Functions Section 2.3.
Review 2.
Discrete Math (2) Haiming Chen Associate Professor, PhD
Functions CS 202 Epp section 7.1.
Functions.
Lecture 43 Section 10.1 Wed, Apr 6, 2005
Functions Rosen 6th ed., §2.3.
Functions Rosen 2.3, 2.5 f( ) = A B Lecture 5: Oct 1, 2.
Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007
Every number has its place!
Functions Section 2.3.
Copyright © Zeph Grunschlag,
Chapter 3 Vocabulary 3.)Roster form 4.) Set-builder notation 5.) Empty set 6.) Universal set 7.) Complement of a set.
3-5 Working with Sets.
Presentation transcript:

More Functions and Sets Rosen 1.8

Inverse Image Let f be an invertible function from set A to set B. Let S be a subset of B. We define the inverse image of S to be the subset of A containing all pre-images of all elements of S. f-1(S) = {aA | f(a) S} S A f(a) a B

Let f be an invertible function from A to B. Let S be a subset of B Let f be an invertible function from A to B. Let S be a subset of B. Show that f-1(S) = f-1(S) What do we know? f must be 1-to-1 and onto S A B b1 a2 b2 a1 f -1 f-1(S)

Let f be an invertible function from A to B. Let S be a subset of B Let f be an invertible function from A to B. Let S be a subset of B. Show that f-1(S) = f-1(S) Proof: We must show that f-1(S)  f-1(S) and that f-1(S)  f-1(S) . Let x  f-1(S). Then xA and f(x)  S. Since f(x)  S, x  f-1(S). Therefore x  f-1(S). Now let x  f-1(S). Then x  f-1(S) which implies that f(x)  S. Therefore f(x)  S and x  f-1(S) If x  f-1(S). Then f(x)  S after taking the inverse of both sides (i.e., x = f-1(y) means y = f(x); therefore y  S).

Let f be an invertible function from A to B. Let S be a subset of B Let f be an invertible function from A to B. Let S be a subset of B. Show that f-1(S) = f-1(S) Proof: f-1(S) = {xA | f(x)  S} Set builder notation = {xA | f(x)  S} Def of Complement = f-1(S) Def of Complement

Floor and Ceiling Functions The floor function assigns to the real number x the largest integer that is less than or equal to x. x x = n iff n  x < n+1, nZ x = n iff x-1 < n  x, nZ The ceiling function assigns to the real number x the smallest integer that is greater than or equal to x. x x = n iff n-1 < x  n, nZ x = n iff x  n < x+1, nZ

Examples 0.5 = 1 0.5 = 0 -0.3 = 0 -0.3 = -1 6 = 6 6 = 6 -3.4 = -3 3.9 = 3

Prove that x+m = x + m when m is an integer. Proof: Assume that x = n, nZ. Therefore n  x < n+1. Next we add m to each term in the inequality to get n+m  x+m < n+m+1. Therefore x+m = n+m = x + m x = n iff n  x < n+1, nZ

Let xR. Show that 2x = x + x+1/2 Proof: Let nZ such that x = n. Therefore n  x < n+1. We will look at the two cases: x  n + 1/2 and x < n + 1/2. Case 1: x  n + 1/2 Then 2n+1  2x < 2n+2, so 2x = 2n+1 Also n+1  x + 1/2 < n+2, so x + 1/2  = n+1 2x = 2n+1 = n + n+1 = x + x+1/2 n n+1

Let xR. Show that 2x = x + x+1/2 Case 2: x < n + 1/2 Then 2n  2x < 2n+1, so 2x = 2n Also n  x + 1/2 < n+1, so x + 1/2  = n 2x = 2n = n + n = x + x+1/2

Characteristic Function Let S be a subset of a universal set U. The characteristic function fS of S is the function from U to {0,1}such that fS(x) = 1 if xS and fS(x) = 0 if xS. Example: Let U = Z and S = {2,4,6,8}. fS(4) = 1 fS(10) = 0

Let A and B be sets. Show that for all x, fAB(x) = fA(x)fB(x) Proof: fAB(x) must equal either 0 or 1. Suppose that fAB(x) = 1. Then x must be in the intersection of A and B. Since x AB, then xA and xB. Since xA, fA(x)=1 and since xB fB(x) = 1. Therefore fAB = fA(x)fB(x) = 1. If fAB(x) = 0. Then x  AB. Since x is not in the intersection of A and B, either xA or xB or x is not in either A or B. If xA, then fA(x)=0. If xB, then fB(x) = 0. In either case fAB = fA(x)fB(x) = 0.

Let A and B be sets. Show that for all x, fAB(x) = fA(x) + fB(x) - fA(x)fB(x) Proof: fAB(x) must equal either 0 or 1. Suppose that fAB(x) = 1. Then xA or xB or x is in both A and B. If x is in one set but not the other, then fA(x) + fB(x) - fA(x)fB(x) = 1+0+(1)(0) = 1. If x is in both A and B, then fA(x) + fB(x) - fA(x)fB(x) = 1+1 – (1)(1) = 1. If fAB(x) = 0. Then xA and xB. Then fA(x) + fB(x) - fA(x)fB(x) = 0 + 0 – (0)(0) = 0.

A B AB fAB(x) fA(x) + fB(x) - fA(x)fB(x) Let A and B be sets. Show that for all x, fAB(x) = fA(x) + fB(x) - fA(x)fB(x) A B AB fAB(x) fA(x) + fB(x) - fA(x)fB(x) 1 1 1 1 1+1-(1)(1) = 1 1 0 1 1 1+0-(1)(0) = 1 0 1 1 1 0+1-(0)(1) = 1 0 0 0 0 0+)-(0)(0) = 0