Top Banner
(CSC 102) Lecture 21 Discrete Structures
27

(CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery Sum/Difference of Two Functions Equality of Two Functions One-to-One Function.

Dec 15, 2015

Download

Documents

Russell Divine
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

(CSC 102)

Lecture 21

Discrete Structures

Page 2: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Previous Lecture Summery

Sum/Difference of Two Functions

Equality of Two Functions

One-to-One Function

Onto Function

Bijective Function (One-to-One

correspondence)

Page 3: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Today’s Lecture

Inverse Functions

Finding an Inverse Function

Composition of Functions

Composition of Functions

Composition of Functions defined on finite

sets

Plotting Functions

Page 4: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Inverse Functions

Theorem

The function F-1 is called inverse function.

Page 5: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Inverse Functions

Given an arrow diagram for a function. Draw the arrow diagram for the inverse of this function

Page 6: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Finding an Inverse Function

The function f : R → R defined by the formula

f (x) = 4x − 1, for all real numbers x

Page 7: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Theorem

Page 8: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Composition of Functions

Page 9: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Composition of Functions defined on finite sets

Let X = {1, 2, 3}, Y ’ = {a, b, c, d}, Y = {a, b, c, d, e}, and Z = {x, y, z}. Define functions f : X → Y’ and g: Y → Z by the arrow diagrams below.

Draw the arrow diagram for g ◦ f . What is the range of g ◦ f ?

Page 10: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Composition of Functions defined on finite sets

Page 11: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

To find the arrow diagram for g ◦ f , just trace the arrows all the way across from X to Z through Y . The result is shown below.

Composition of Functions defined on finite sets

Let X = {1, 2, 3}, Y ’ = {a, b, c, d}, Y = {a, b, c, d, e}, and Z = {x, y, z}.

The range of g ◦ f is {y, z}.

Page 12: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Composition of Functions defined on Infinite Sets

Let f : Z → Z, and g: Z → Z be two functions. s.t.,

f (n)=n + 1 for all n ∈ Z and g(n) = n2 for all n ∈ Z.

a. Find the compositions g◦f and f◦g.

b. Is g ◦ f = f ◦g? Explain.

a. The functions g ◦ f and f ◦g are defined as follows:

(g ◦ f )(n) = g( f (n)) = g(n + 1) = (n + 1)2 for all n ∈ Z,

( f ◦g)(n) = f (g(n)) = f (n2) = n2 + 1 for all n ∈ Z.

Page 13: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Composition of Functions defined on Infinite Sets

Let f : Z → Z, and g: Z → Z be two functions. s.t.,

f (n)=n + 1 for all n ∈ Z and g(n) = n2 for all n ∈ Z.

b. Is g ◦ f = f ◦g? Explain.

Page 14: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Composition with Identity Function

Let X = {a, b, c, d} and Y = {u, v,w}, and suppose f : X → Y is given by the arrow diagram

Find f ◦ IX and IY ◦ f .

Page 15: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Composition with Identity Function

Page 16: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Composing a Function with its Inverse

Page 17: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

In a similar way, we can show that

Composing a Function with its Inverse

Page 18: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Composition of One-to-One Functions

Page 19: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.
Page 20: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.
Page 21: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.
Page 22: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.
Page 23: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.
Page 24: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.
Page 25: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Domain = Range =

Page 26: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.
Page 27: (CSC 102) Lecture 21 Discrete Structures. Previous Lecture Summery  Sum/Difference of Two Functions  Equality of Two Functions  One-to-One Function.

Lecture Summery

One-to-One Function

Onto Function

Bijective Function (One-to-One

correspondence)

Inverse Functions