ba202 ch2.3 function

32
1 2.3 EXPLAIN FUNCTION CLO3: SOLVE RELATED PROBLEMS CRITICALLY USING APPROPRIATE FORMULAE AND CONCEPTS. (C3, A1)

Upload: shaiful-asad

Post on 13-Apr-2015

23 views

Category:

Documents


2 download

DESCRIPTION

discrete math

TRANSCRIPT

Page 1: BA202 CH2.3 Function

1

2.3 EXPLAIN FUNCTION

CLO3: SOLVE RELATED PROBLEMS CRITICALLY USING APPROPRIATE FORMULAE AND CONCEPTS. (C3, A1)

Page 2: BA202 CH2.3 Function

2liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Describe basic constructions.Explain the properties of following functions:

One-to-one functions Onto functions Composition functions Inverse functions

Describe graphs of the Floor and Ceiling functions.

LEARNING OUTCOMES

Page 3: BA202 CH2.3 Function

3liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Let A and B be nonempty sets. A function A to B is an assignment of exactly one element of B to each element of A.

Write as (Function from A to B)Function sometimes called mapping.

(Mapping input to output)

FUNCTIONS

Page 4: BA202 CH2.3 Function

4liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Assignment of grades in Discrete Mathematic Class

FUNCTIONS

Page 5: BA202 CH2.3 Function

5liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

R = { (1,a), (2,b), (3,b), (4, c)R is a function from A to B. Exactly one

element in B is assigned to every element of A.

IS THIS A FUNCTION?

Page 6: BA202 CH2.3 Function

6liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

R= {(1,a), (2,b), 3,c)}R is not a functionBecause 4 belongs to A and 4 is not

associated with any element of B.R is only a relation but not a function.

IS THIS A FUNCTION?

Page 7: BA202 CH2.3 Function

7liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

R= {(1,a), (1,b), (2,c), (3,c), (4,c)Not functionBecause 1 belongs to A and 1 is associated

with two element of B.

IS THIS A FUNCTION?

Page 8: BA202 CH2.3 Function

8liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

f(x) = {(1,2), (2,3), (3,4)}FuntionExactly one element in y is associated with

every element in x

IS THIS A FUNCTION?

Page 9: BA202 CH2.3 Function

9liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Everywhere definedDomainCodomainRange ImagePre-image/Inverse image

TERMS IN FUNCTON

Page 10: BA202 CH2.3 Function

10liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Let f be a function from A to B. Then we say that f is everywhere defined function if Dom(f) = A.

In other words, all domain are used.

EVERYWHERE DEFINED

Everywhere defined Not everywhere defined

Page 11: BA202 CH2.3 Function

11liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

f is a function from A to B represented by the diagram above:

Domain : All element in A { Adam, Chou, Ali, Steven, Jacob }

Codomain : All element in B Codomain : { A, B, C, D, E }

Range : Element in B that associated with element in A { A, B, C, E }

TERMS IN FUNCTION

Page 12: BA202 CH2.3 Function

12liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Image : If f(a) = b, the image of a is bf(Adam) = A

The image of Adam is A The image of Jacob is E

Pre-image or inverse image Pre-image of A are Adam and Steven Pre-image of B is Ali

Tambah objek

TERMS IN FUNCTION

Page 13: BA202 CH2.3 Function

13liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

One to OneOnto CompositionInverse

PROPERTIES OF FUNCTION

Page 14: BA202 CH2.3 Function

14liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Function that assign one value in the domain to one value in codomain and

Never assign the same value of codomain to two different domain elements.

Also known as injective.

ONE TO ONE FUNCTION

Page 15: BA202 CH2.3 Function

15liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

All element in the domain is assigned to element in domain  

All elements in codomain has assignmentAlso known as surjective.

ONTO FUNCTION

Page 16: BA202 CH2.3 Function

16liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

A function is one to one correspondence if the function satisfy the properties below: one to one and onto

Also known as bijection.

ONE TO ONE CORRESPONDENCE

Page 17: BA202 CH2.3 Function

17liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

To define Inverse Function, the function has to be one to one correspondence.

A function is not invertible if it is not a one-to-one correspondence, because the inverse of such function does not exist.

INVERSE

inverse

• It is not a function c is element in the domain but not associated with any element in codomain

• element a is assigned to two different element in codomain

Page 18: BA202 CH2.3 Function

18liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

To obtain the inverse function, simply reversing the direction of each arrow.

For example : = {(1,a), (2,c), (3,b)} = { (a, 1), (c,2), (b,3) }

INVERSE

Page 19: BA202 CH2.3 Function

19liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Find .

Let

INVERSE

Page 20: BA202 CH2.3 Function

20liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

(2)

Let

=

= 1.2247

INVERSE

Page 21: BA202 CH2.3 Function

21liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Let

INVERSE

Page 22: BA202 CH2.3 Function

22liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Find inverse of Find of functionFunction Find the value of when

EXERCISES

Page 23: BA202 CH2.3 Function

23liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Combination of two functions.If we have two functions, f(x) and g(x) the

composite of f(x) and g(x) can be denote as : fg(x) f ○ g

COMPOSITE

Page 24: BA202 CH2.3 Function

24liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

COMPOSITE

Page 25: BA202 CH2.3 Function

25liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Given and Find each of the followings:

EXERCISES

Page 26: BA202 CH2.3 Function

26liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Find

Assume

COMPOSITE

Page 27: BA202 CH2.3 Function

27liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Find Solve the equation

EXERCISE

Page 28: BA202 CH2.3 Function

28liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Two important function in discrete Mathematics: Floor Function Ceiling Function

GRAPH FUNCTION

Page 29: BA202 CH2.3 Function

29liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

The floor function rounds x down to the closest integer less than or equal to x.

Example :

FLOOR FUNCTION

Page 30: BA202 CH2.3 Function

30liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Draw a graph for

FLOOR FUNCTION

Page 31: BA202 CH2.3 Function

31liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

The ceiling function round x up to the closest integer greater than or equal to x

Example :

CEILING FUNCTION

Page 32: BA202 CH2.3 Function

32liyana JMSK , POLITEKNIK BALIK PULAU

BA202 Discrete Mathematics

Draw a graph for

CEILING FUNCTION