functions in mathematics

15
Functions MATHEMATICS SIR SYED UNIVERSITY OF ENGINEERING & TECHNOLOGY 1

Upload: burhanuddin-shabbir

Post on 16-Apr-2017

452 views

Category:

Engineering


1 download

TRANSCRIPT

Page 1: Functions in mathematics

Functions MATHEMATICS

SIR SYED UNIVERSITY OF ENGINEERING & TECHNOLOGY

1

Page 2: Functions in mathematics

GROUP MEMBERS

• Burhanuddin Shabbir (2015-CS-101)

• Muzzamil Jaffri (2015-CS-105)• Umair Abdul Rahman (2015-CS-77)• Hasnain Ahmed (2015-CS-300)• Hussain Ansari (2015-CS-78)

2

Page 3: Functions in mathematics

Definition of Functions

• Given any sets A, B, a function f from (or “mapping”) A to B (f:AB) is an assignment of exactly one element f(x)B

to each element xA.

3

Page 4: Functions in mathematics

Graphical Representations

• Functions can be represented graphically in several ways:

4

• •

A B

a b

f

f

••••

••

••

• x

y

PlotGraphLike Venn diagrams

A B

Page 5: Functions in mathematics

Some Function Terminology

• If f:AB, and f(a)=b (where aA & bB), then:• A is the domain of f. • B is the codomain of f.• b is the image of a under f.• a is a pre-image of b under f.• In general, b may have more than one pre-

image.• The range RB of f is {b | a f(a)=b }.

5

Page 6: Functions in mathematics

Range vs. Codomain• Suppose that: “f is a function mapping students in

this class to the set of grades {A,B,C,D,E}.”

• At this point, you know f’s codomain is: __________, and its range is ________.

• Suppose the grades turn out all As and Bs.

• Then the range of f is _________, but its codomain is __________________.

6

{A,B,C,D,E} unknown!

{A,B}still {A,B,C,D,E}!

Page 7: Functions in mathematics

One-to-One Functions• A function is one-to-one (1-1), or injective, or an injection,

iff every element of its range has only one pre-image. • Only one element of the domain is mapped to any given

one element of the range.• Domain & range have same cardinality. What about

codomain?• Formally: given f:AB

“x is injective” : ( x1,x2 X,if F(x1)=F(x2)then x1=x2)7

Page 8: Functions in mathematics

One-to-One Illustration• Graph representations of functions that are (or

not) one-to-one:

8

••••

••

••

One-to-one

••••

••

••

•Not one-to-one

••••

••

••

•Not even a function!

Page 9: Functions in mathematics

Onto (Surjective) Functions

• A function f:AB is onto or surjective or a surjection iff its range is equal to its codomain (bB, aA: f(a)=b).

• An onto function maps the set A onto (over, covering) the entirety of the set B, not just over a piece of it.

• e.g., for domain & codomain R, x3 is onto, whereas x2

isn’t. (Why not?)

• Formally: given f:AB

“x is surjective” : (yY xX such that F(x)=y)9

Page 10: Functions in mathematics

Illustration of Onto

• Some functions that are or are not onto their codomains:

10

Onto(but not 1-1)

••••

••

•Not Onto(or 1-1)

••••

••

Both 1-1and onto

••••

•••

•1-1 butnot onto

••••

•••

Page 11: Functions in mathematics

ARROW DIAGRAM OF ONTO & ONE TO ONE

FUNCTION

11

Page 12: Functions in mathematics

Bijections

• A function f is a one-to-one correspondence, or a bijection, or reversible, or invertible, iff it is both one-to-one and onto.

12

Page 13: Functions in mathematics

THE PIGEONHOLE PRINCIPLE

13

• In mathematics, the pigeonhole principle states that if n items are put into m containers, with n > m, then at least one container must contain more than one item. This theorem is exemplified in real life by truisms like "there must be at least two left gloves or two right gloves in a group of three gloves".

Page 14: Functions in mathematics

14

Page 15: Functions in mathematics

EXAMPLE OF PIGEONHOLE

15