SlideShare a Scribd company logo
1 of 16
1/20
Functions
2/20
Topics
• Function Definition
• Notation
• Partial Functions
• Special Functions
• Composition
• Injections, surjections, bijections
• Inverses
3/20
• A function is a special kind of binary
relation.
• A binary relation f ⊆ A × B is a function if
for each a ∈ A there is a unique b ∈ B
Function Definition
1
2
3
α
β
γ
x
y
4/20
NOT Functions
1
2
3
α
β
γ
f = {(1, α), (2, β)}
“For each” violated
Some x’s do not have
corresponding y’s
x
y
5/20
NOT Functions
Uniqueness violated for some x’s
x
y
1
2
3
α
β
γ
f = {(1, α), (2, β), (3, β), (3, γ)}
uniqueness violated for 3 
appears twice
6/20
An (n+1)-ary relation f ⊆ A1 × A2 × … × An
× B is a function if for each < a1, a2, …,
an> ∈ A1 × A2 × … × An there is a unique
b ∈ B.
Functions
with N-Dimensional Domains
α
β
γ
<1,1>
<1,2>
<1,3>
7/20
• We can use various notation for functions: for
f = {(1, α),(2, β),(3, β)}
Notation for Functions
Notation (x, y) ∈ f f : x→y y = f(x)
Example (2, β) ∈ f f : 2→β β = f(2)
• In the notation, x is the argument or preimage
and y is the image. We can also have the
image of a set of arguments.
• For functions with n-ary domains, use <x0, x1,
…, xn> in place of x.
8/20
Function Domain and Range
• f : A → B
– A is the domain space
• same as the domain (since all elements participate)
• dom f, dom(f), or domain(f)
– B is the range space
• may or may not be the same as the range, which is:
– {y | ∃x(y=f(x))}
– All rhs values in pairs (all that get “hit”)
πBf
• ran f, ran(f), range(f)
• f : D1 × D2 × … × Dn → Z
• f : Dn
→ Z (when all domains are the same)
9/20
Remove the requirement that each a ∈ A must
participate. Retain the uniqueness requirement.
Partial Functions
Partial Function:
α
β
γ
f = {(<1,2>, β),(<1,3>, β),(<1,3>, γ)}
<1,3> not unique
<1,1>
<1,2>
<1,3>
α
β
γ
<1,1>
<1,2>
<1,3>
NOT a Partial Function:
α
β
γ
<1,1>
<1,2>
<1,3>
Partial Function: (A
Total Function is also a
Partial Function.)
10/20
• Identity Function
– IA : A → A
– IA = {(x, x) | x ∈ A}
• Constant Function
– C : A → B
– C = {(x, c) | x ∈ A ∧ c ∈ B }
– Often A and B are the same
• C : A → A
• C= {(x, c) | x ∈ A ∧ c ∈ A}
Special Functions
Discussion #29 11/20
Composition of Functions
• Composition is written “°”
• Range space of f =
domain space of g
a
c
1
2
4
f
g
b
α
β
3
f(a) = 2 g(2) = α g(f(a)) = α
g°f(a) = α
f(b) = 2 g(2) = α g(f(b)) = α
g°f(b) = α
f(c) = 4 g(4) = β g(f(c)) = β
g°f(c) = β
Discussion #29 12/20
Injection: “one-to-one” or “1-1”
∀x∀y(f(x) = f(y) ⇒ x = y)
– For f : A → B, the elements in B are “hit” at most once
Injection
a
b
d
1
2
3
c
Injective
a
b
d
1
2
3
c
NOT Injective
x
y
x
y
13/20
Surjection: “onto”
∀y∃x(y = f(x))
– For f : A → B, the elements in B are all “hit” at least once
Surjection
1
2
4
a
b
c
3
Surjective NOT Surjective
x
y
x
y
1
2
4
a
b
c
3
{not
“hit”
14/20
Bijection: “one-to-one and onto” or “1-1 correspondence”
∀x∀y(f(x) = f(y) ⇒ x = y) ∧ ∀y∃x(y = f(x))
– For f : A → B, every B element is “hit” once and only once
Bijection
1
2
a
b
c
3
Bijective NOT Bijective
x
y
x
y
1
2
4
a
b
c
3
NOT Surjective
NOT injective
15/20
Notes on Bijection
1. |A| = |B|
– An “extra” B cannot be “hit” (not a surjection)
– An “extra” A requires that at least one B must be
“hit” twice (not an injection)
1. If f is a bijection, swapping the elements of the
ordered pairs is a function
– Called the inverse
– Denoted f-1
– Is also a bijection
– f-1
(f(x)) is the identity function, i.e. f-1
(f(x)) = x.
16/20
Notes on Bijection (continued …)
3. The inverse of an injection is a partial function.
If f : A →B is an injection, then f-1
is a partial function
4. Restricting the range space of an injective
function to the range yields a bijection
Remove b
a
b
d
1
2
3
c
f
a
b
d
1
2
3
c
f-1

More Related Content

What's hot

6 binomial theorem
6 binomial theorem6 binomial theorem
6 binomial theorem
math123c
 
Linear Algebra PowerPoint
Linear Algebra PowerPointLinear Algebra PowerPoint
Linear Algebra PowerPoint
Ashley Carter
 
Relations
RelationsRelations
Relations
Gaditek
 
Writing and Graphing slope intercept form
Writing and Graphing slope intercept formWriting and Graphing slope intercept form
Writing and Graphing slope intercept form
guestd1dc2e
 
Visual Models for Fraction Operations
Visual Models for Fraction OperationsVisual Models for Fraction Operations
Visual Models for Fraction Operations
sjwiegmink
 
3.3 graphs of exponential functions
3.3 graphs of  exponential functions3.3 graphs of  exponential functions
3.3 graphs of exponential functions
hisema01
 

What's hot (20)

27 calculation with log and exp x
27 calculation with log and exp x27 calculation with log and exp x
27 calculation with log and exp x
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinants
 
Functions
FunctionsFunctions
Functions
 
34 polar coordinate and equations
34 polar coordinate and equations34 polar coordinate and equations
34 polar coordinate and equations
 
6 binomial theorem
6 binomial theorem6 binomial theorem
6 binomial theorem
 
Linear Algebra PowerPoint
Linear Algebra PowerPointLinear Algebra PowerPoint
Linear Algebra PowerPoint
 
Relations
RelationsRelations
Relations
 
Writing and Graphing slope intercept form
Writing and Graphing slope intercept formWriting and Graphing slope intercept form
Writing and Graphing slope intercept form
 
mathematical functions
mathematical functions mathematical functions
mathematical functions
 
Differentiation using First Principle - By Mohd Noor Abdul Hamid
Differentiation using First Principle  - By Mohd Noor Abdul HamidDifferentiation using First Principle  - By Mohd Noor Abdul Hamid
Differentiation using First Principle - By Mohd Noor Abdul Hamid
 
Relation and function
Relation and functionRelation and function
Relation and function
 
Section 5.4 logarithmic functions
Section 5.4 logarithmic functions Section 5.4 logarithmic functions
Section 5.4 logarithmic functions
 
Exponential formula presentation
Exponential formula presentationExponential formula presentation
Exponential formula presentation
 
9 trigonometric functions via the unit circle nat
9 trigonometric functions via the unit circle nat9 trigonometric functions via the unit circle nat
9 trigonometric functions via the unit circle nat
 
Hasse diagram
Hasse diagramHasse diagram
Hasse diagram
 
Visual Models for Fraction Operations
Visual Models for Fraction OperationsVisual Models for Fraction Operations
Visual Models for Fraction Operations
 
Maths ppt linear equations in two variables
Maths ppt   linear equations in two variablesMaths ppt   linear equations in two variables
Maths ppt linear equations in two variables
 
Combination
CombinationCombination
Combination
 
Functions
FunctionsFunctions
Functions
 
3.3 graphs of exponential functions
3.3 graphs of  exponential functions3.3 graphs of  exponential functions
3.3 graphs of exponential functions
 

Similar to Functions

Functions and graphs
Functions and graphsFunctions and graphs
Functions and graphs
Sujata Tapare
 
Functions for Grade 10
Functions for Grade 10Functions for Grade 10
Functions for Grade 10
Boipelo Radebe
 
monotonicity thoery & solved & execise Module-4.pdf
monotonicity thoery & solved & execise Module-4.pdfmonotonicity thoery & solved & execise Module-4.pdf
monotonicity thoery & solved & execise Module-4.pdf
RajuSingh806014
 
บทที่ 4 ฟังก์ชัน
บทที่ 4 ฟังก์ชันบทที่ 4 ฟังก์ชัน
บทที่ 4 ฟังก์ชัน
Thipayarat Mocha
 
บทที่ 4 ฟังก์ชัน
บทที่ 4 ฟังก์ชันบทที่ 4 ฟังก์ชัน
บทที่ 4 ฟังก์ชัน
Thipayarat Mocha
 
Functions
FunctionsFunctions
Functions
SPSV
 

Similar to Functions (20)

Functions
FunctionsFunctions
Functions
 
9-Functions.pptx
9-Functions.pptx9-Functions.pptx
9-Functions.pptx
 
Functions.ppt
Functions.pptFunctions.ppt
Functions.ppt
 
Functions.ppt
Functions.pptFunctions.ppt
Functions.ppt
 
Functions and graphs
Functions and graphsFunctions and graphs
Functions and graphs
 
Chpt 2-functions-seqs v.5
Chpt 2-functions-seqs v.5Chpt 2-functions-seqs v.5
Chpt 2-functions-seqs v.5
 
03 convexfunctions
03 convexfunctions03 convexfunctions
03 convexfunctions
 
Calculus- Basics
Calculus- BasicsCalculus- Basics
Calculus- Basics
 
Functions for Grade 10
Functions for Grade 10Functions for Grade 10
Functions for Grade 10
 
Basic Calculus.docx
Basic Calculus.docxBasic Calculus.docx
Basic Calculus.docx
 
05-Functions-A.pdf
05-Functions-A.pdf05-Functions-A.pdf
05-Functions-A.pdf
 
Functions by mstfdemirdag
Functions by mstfdemirdagFunctions by mstfdemirdag
Functions by mstfdemirdag
 
monotonicity thoery & solved & execise Module-4.pdf
monotonicity thoery & solved & execise Module-4.pdfmonotonicity thoery & solved & execise Module-4.pdf
monotonicity thoery & solved & execise Module-4.pdf
 
Math - Operations on Functions, Kinds of Functions
Math - Operations on Functions, Kinds of FunctionsMath - Operations on Functions, Kinds of Functions
Math - Operations on Functions, Kinds of Functions
 
บทที่ 4 ฟังก์ชัน
บทที่ 4 ฟังก์ชันบทที่ 4 ฟังก์ชัน
บทที่ 4 ฟังก์ชัน
 
บทที่ 4 ฟังก์ชัน
บทที่ 4 ฟังก์ชันบทที่ 4 ฟังก์ชัน
บทที่ 4 ฟังก์ชัน
 
Functions 1 - Math Academy - JC H2 maths A levels
Functions 1 - Math Academy - JC H2 maths A levelsFunctions 1 - Math Academy - JC H2 maths A levels
Functions 1 - Math Academy - JC H2 maths A levels
 
Functions
FunctionsFunctions
Functions
 
Notes 3-7
Notes 3-7Notes 3-7
Notes 3-7
 
Chapter 1 (functions).
Chapter 1 (functions).Chapter 1 (functions).
Chapter 1 (functions).
 

More from Muhammad Farhan Javed

JOB ANALYSIS AND HUMAN RESOURCE PLANNING
JOB ANALYSIS AND HUMAN RESOURCE PLANNINGJOB ANALYSIS AND HUMAN RESOURCE PLANNING
JOB ANALYSIS AND HUMAN RESOURCE PLANNING
Muhammad Farhan Javed
 
Nbp internship-report-on-national-bank-of-pakistan-2012
Nbp internship-report-on-national-bank-of-pakistan-2012Nbp internship-report-on-national-bank-of-pakistan-2012
Nbp internship-report-on-national-bank-of-pakistan-2012
Muhammad Farhan Javed
 
BRAND PLATFORM (marketing management) M.Farhan Javed MBA2nd Federal Urdu Univ...
BRAND PLATFORM (marketing management) M.Farhan Javed MBA2nd Federal Urdu Univ...BRAND PLATFORM (marketing management) M.Farhan Javed MBA2nd Federal Urdu Univ...
BRAND PLATFORM (marketing management) M.Farhan Javed MBA2nd Federal Urdu Univ...
Muhammad Farhan Javed
 
Cost Accounting (cost of production report & cost of goods sold) on Honda com...
Cost Accounting (cost of production report & cost of goods sold) on Honda com...Cost Accounting (cost of production report & cost of goods sold) on Honda com...
Cost Accounting (cost of production report & cost of goods sold) on Honda com...
Muhammad Farhan Javed
 
CPR cost accountin project on dyl motorcycles ltd
CPR cost accountin project on dyl motorcycles ltdCPR cost accountin project on dyl motorcycles ltd
CPR cost accountin project on dyl motorcycles ltd
Muhammad Farhan Javed
 

More from Muhammad Farhan Javed (20)

Mcdonalds presentation 130621085419-phpapp02
Mcdonalds presentation 130621085419-phpapp02Mcdonalds presentation 130621085419-phpapp02
Mcdonalds presentation 130621085419-phpapp02
 
Eight principles of tqm
Eight principles of tqmEight principles of tqm
Eight principles of tqm
 
Profit maximization by firms
Profit maximization by firmsProfit maximization by firms
Profit maximization by firms
 
Communication
CommunicationCommunication
Communication
 
Basic banking account
Basic banking accountBasic banking account
Basic banking account
 
Unified theory of acceptance and use of technology
Unified theory of acceptance and use of technologyUnified theory of acceptance and use of technology
Unified theory of acceptance and use of technology
 
JOB ANALYSIS AND HUMAN RESOURCE PLANNING
JOB ANALYSIS AND HUMAN RESOURCE PLANNINGJOB ANALYSIS AND HUMAN RESOURCE PLANNING
JOB ANALYSIS AND HUMAN RESOURCE PLANNING
 
feasibility report on leather manufacturing unit in ppt
feasibility report on leather manufacturing unit in pptfeasibility report on leather manufacturing unit in ppt
feasibility report on leather manufacturing unit in ppt
 
Employeee absneteeism m.farhan brm final project report
Employeee absneteeism m.farhan brm final project reportEmployeee absneteeism m.farhan brm final project report
Employeee absneteeism m.farhan brm final project report
 
Contemparary issues leadership
Contemparary issues leadershipContemparary issues leadership
Contemparary issues leadership
 
Pricing Strategies
Pricing StrategiesPricing Strategies
Pricing Strategies
 
Risk Management
Risk ManagementRisk Management
Risk Management
 
Project Construction of 5 star hotel
Project Construction of 5 star hotelProject Construction of 5 star hotel
Project Construction of 5 star hotel
 
Nbp internship-report-on-national-bank-of-pakistan-2012
Nbp internship-report-on-national-bank-of-pakistan-2012Nbp internship-report-on-national-bank-of-pakistan-2012
Nbp internship-report-on-national-bank-of-pakistan-2012
 
BRAND PLATFORM (marketing management) M.Farhan Javed MBA2nd Federal Urdu Univ...
BRAND PLATFORM (marketing management) M.Farhan Javed MBA2nd Federal Urdu Univ...BRAND PLATFORM (marketing management) M.Farhan Javed MBA2nd Federal Urdu Univ...
BRAND PLATFORM (marketing management) M.Farhan Javed MBA2nd Federal Urdu Univ...
 
Cost Accounting (cost of production report & cost of goods sold) on Honda com...
Cost Accounting (cost of production report & cost of goods sold) on Honda com...Cost Accounting (cost of production report & cost of goods sold) on Honda com...
Cost Accounting (cost of production report & cost of goods sold) on Honda com...
 
CPR cost accountin project on dyl motorcycles ltd
CPR cost accountin project on dyl motorcycles ltdCPR cost accountin project on dyl motorcycles ltd
CPR cost accountin project on dyl motorcycles ltd
 
International Business Activities Of Coca Cola company
International Business Activities Of Coca Cola companyInternational Business Activities Of Coca Cola company
International Business Activities Of Coca Cola company
 
Pearl continental hotel
Pearl continental hotelPearl continental hotel
Pearl continental hotel
 
Information Technology
Information TechnologyInformation Technology
Information Technology
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 

Functions

  • 2. 2/20 Topics • Function Definition • Notation • Partial Functions • Special Functions • Composition • Injections, surjections, bijections • Inverses
  • 3. 3/20 • A function is a special kind of binary relation. • A binary relation f ⊆ A × B is a function if for each a ∈ A there is a unique b ∈ B Function Definition 1 2 3 α β γ x y
  • 4. 4/20 NOT Functions 1 2 3 α β γ f = {(1, α), (2, β)} “For each” violated Some x’s do not have corresponding y’s x y
  • 5. 5/20 NOT Functions Uniqueness violated for some x’s x y 1 2 3 α β γ f = {(1, α), (2, β), (3, β), (3, γ)} uniqueness violated for 3  appears twice
  • 6. 6/20 An (n+1)-ary relation f ⊆ A1 × A2 × … × An × B is a function if for each < a1, a2, …, an> ∈ A1 × A2 × … × An there is a unique b ∈ B. Functions with N-Dimensional Domains α β γ <1,1> <1,2> <1,3>
  • 7. 7/20 • We can use various notation for functions: for f = {(1, α),(2, β),(3, β)} Notation for Functions Notation (x, y) ∈ f f : x→y y = f(x) Example (2, β) ∈ f f : 2→β β = f(2) • In the notation, x is the argument or preimage and y is the image. We can also have the image of a set of arguments. • For functions with n-ary domains, use <x0, x1, …, xn> in place of x.
  • 8. 8/20 Function Domain and Range • f : A → B – A is the domain space • same as the domain (since all elements participate) • dom f, dom(f), or domain(f) – B is the range space • may or may not be the same as the range, which is: – {y | ∃x(y=f(x))} – All rhs values in pairs (all that get “hit”) πBf • ran f, ran(f), range(f) • f : D1 × D2 × … × Dn → Z • f : Dn → Z (when all domains are the same)
  • 9. 9/20 Remove the requirement that each a ∈ A must participate. Retain the uniqueness requirement. Partial Functions Partial Function: α β γ f = {(<1,2>, β),(<1,3>, β),(<1,3>, γ)} <1,3> not unique <1,1> <1,2> <1,3> α β γ <1,1> <1,2> <1,3> NOT a Partial Function: α β γ <1,1> <1,2> <1,3> Partial Function: (A Total Function is also a Partial Function.)
  • 10. 10/20 • Identity Function – IA : A → A – IA = {(x, x) | x ∈ A} • Constant Function – C : A → B – C = {(x, c) | x ∈ A ∧ c ∈ B } – Often A and B are the same • C : A → A • C= {(x, c) | x ∈ A ∧ c ∈ A} Special Functions
  • 11. Discussion #29 11/20 Composition of Functions • Composition is written “°” • Range space of f = domain space of g a c 1 2 4 f g b α β 3 f(a) = 2 g(2) = α g(f(a)) = α g°f(a) = α f(b) = 2 g(2) = α g(f(b)) = α g°f(b) = α f(c) = 4 g(4) = β g(f(c)) = β g°f(c) = β
  • 12. Discussion #29 12/20 Injection: “one-to-one” or “1-1” ∀x∀y(f(x) = f(y) ⇒ x = y) – For f : A → B, the elements in B are “hit” at most once Injection a b d 1 2 3 c Injective a b d 1 2 3 c NOT Injective x y x y
  • 13. 13/20 Surjection: “onto” ∀y∃x(y = f(x)) – For f : A → B, the elements in B are all “hit” at least once Surjection 1 2 4 a b c 3 Surjective NOT Surjective x y x y 1 2 4 a b c 3 {not “hit”
  • 14. 14/20 Bijection: “one-to-one and onto” or “1-1 correspondence” ∀x∀y(f(x) = f(y) ⇒ x = y) ∧ ∀y∃x(y = f(x)) – For f : A → B, every B element is “hit” once and only once Bijection 1 2 a b c 3 Bijective NOT Bijective x y x y 1 2 4 a b c 3 NOT Surjective NOT injective
  • 15. 15/20 Notes on Bijection 1. |A| = |B| – An “extra” B cannot be “hit” (not a surjection) – An “extra” A requires that at least one B must be “hit” twice (not an injection) 1. If f is a bijection, swapping the elements of the ordered pairs is a function – Called the inverse – Denoted f-1 – Is also a bijection – f-1 (f(x)) is the identity function, i.e. f-1 (f(x)) = x.
  • 16. 16/20 Notes on Bijection (continued …) 3. The inverse of an injection is a partial function. If f : A →B is an injection, then f-1 is a partial function 4. Restricting the range space of an injective function to the range yields a bijection Remove b a b d 1 2 3 c f a b d 1 2 3 c f-1

Editor's Notes

  1. Can skip
  2. Can skip