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

Sample Space and Event,Probability,The Axioms of Probability,Bayes Theorem
Sample Space and Event,Probability,The Axioms of Probability,Bayes TheoremSample Space and Event,Probability,The Axioms of Probability,Bayes Theorem
Sample Space and Event,Probability,The Axioms of Probability,Bayes TheoremBharath kumar Karanam
 
Areas and Definite Integrals.ppt
Areas and Definite Integrals.pptAreas and Definite Integrals.ppt
Areas and Definite Integrals.pptLaeGadgude
 
Calculus in Machine Learning
Calculus in Machine Learning Calculus in Machine Learning
Calculus in Machine Learning Gokul Jayan
 
Expected value of random variables
Expected value of random variablesExpected value of random variables
Expected value of random variablesAfrasiyab Haider
 
7.5 graphing square root and cube root functions
7.5 graphing square root and cube root functions7.5 graphing square root and cube root functions
7.5 graphing square root and cube root functionshisema01
 
4.1 implicit differentiation
4.1 implicit differentiation4.1 implicit differentiation
4.1 implicit differentiationdicosmo178
 
CHAIN RULE AND IMPLICIT FUNCTION
CHAIN RULE AND IMPLICIT FUNCTIONCHAIN RULE AND IMPLICIT FUNCTION
CHAIN RULE AND IMPLICIT FUNCTIONNikhil Pandit
 
The Definite Integral
The Definite IntegralThe Definite Integral
The Definite IntegralSilvius
 
Relation Hasse diagram
Relation Hasse diagramRelation Hasse diagram
Relation Hasse diagramRachana Pathak
 
Basic Rules Of Differentiation
Basic Rules Of DifferentiationBasic Rules Of Differentiation
Basic Rules Of Differentiationseltzermath
 
linear equation and gaussian elimination
linear equation and gaussian eliminationlinear equation and gaussian elimination
linear equation and gaussian eliminationAju Thadikulangara
 
Lesson 11: Limits and Continuity
Lesson 11: Limits and ContinuityLesson 11: Limits and Continuity
Lesson 11: Limits and ContinuityMatthew Leingang
 
Math functions, relations, domain & range
Math functions, relations, domain & rangeMath functions, relations, domain & range
Math functions, relations, domain & rangeRenee Scott
 

What's hot (20)

Limit and continuity
Limit and continuityLimit and continuity
Limit and continuity
 
Sample Space and Event,Probability,The Axioms of Probability,Bayes Theorem
Sample Space and Event,Probability,The Axioms of Probability,Bayes TheoremSample Space and Event,Probability,The Axioms of Probability,Bayes Theorem
Sample Space and Event,Probability,The Axioms of Probability,Bayes Theorem
 
Areas and Definite Integrals.ppt
Areas and Definite Integrals.pptAreas and Definite Integrals.ppt
Areas and Definite Integrals.ppt
 
Sets
SetsSets
Sets
 
Lesson 10: The Chain Rule
Lesson 10: The Chain RuleLesson 10: The Chain Rule
Lesson 10: The Chain Rule
 
Calculus in Machine Learning
Calculus in Machine Learning Calculus in Machine Learning
Calculus in Machine Learning
 
Expected value of random variables
Expected value of random variablesExpected value of random variables
Expected value of random variables
 
Set theory
Set theorySet theory
Set theory
 
7.5 graphing square root and cube root functions
7.5 graphing square root and cube root functions7.5 graphing square root and cube root functions
7.5 graphing square root and cube root functions
 
4.1 implicit differentiation
4.1 implicit differentiation4.1 implicit differentiation
4.1 implicit differentiation
 
CHAIN RULE AND IMPLICIT FUNCTION
CHAIN RULE AND IMPLICIT FUNCTIONCHAIN RULE AND IMPLICIT FUNCTION
CHAIN RULE AND IMPLICIT FUNCTION
 
The Definite Integral
The Definite IntegralThe Definite Integral
The Definite Integral
 
Introduction to differential equation
Introduction to differential equationIntroduction to differential equation
Introduction to differential equation
 
Relation Hasse diagram
Relation Hasse diagramRelation Hasse diagram
Relation Hasse diagram
 
Basic Rules Of Differentiation
Basic Rules Of DifferentiationBasic Rules Of Differentiation
Basic Rules Of Differentiation
 
linear equation and gaussian elimination
linear equation and gaussian eliminationlinear equation and gaussian elimination
linear equation and gaussian elimination
 
Lesson 11: Limits and Continuity
Lesson 11: Limits and ContinuityLesson 11: Limits and Continuity
Lesson 11: Limits and Continuity
 
Math functions, relations, domain & range
Math functions, relations, domain & rangeMath functions, relations, domain & range
Math functions, relations, domain & range
 
The integral
The integralThe integral
The integral
 
Double integration
Double integrationDouble integration
Double integration
 

Similar to Functions

9-Functions.pptx
9-Functions.pptx9-Functions.pptx
9-Functions.pptxjaffarbikat
 
Functions and graphs
Functions and graphsFunctions and graphs
Functions and graphsSujata Tapare
 
Chpt 2-functions-seqs v.5
Chpt 2-functions-seqs v.5Chpt 2-functions-seqs v.5
Chpt 2-functions-seqs v.5ShahidAkbar22
 
03 convexfunctions
03 convexfunctions03 convexfunctions
03 convexfunctionsSufyan Sahoo
 
Calculus- Basics
Calculus- BasicsCalculus- Basics
Calculus- BasicsRabin BK
 
Functions for Grade 10
Functions for Grade 10Functions for Grade 10
Functions for Grade 10Boipelo Radebe
 
Basic Calculus.docx
Basic Calculus.docxBasic Calculus.docx
Basic Calculus.docxjericranoco
 
Functions by mstfdemirdag
Functions by mstfdemirdagFunctions by mstfdemirdag
Functions by mstfdemirdagmstf mstf
 
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.pdfRajuSingh806014
 
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 FunctionsChuckie Balbuena
 
บทที่ 4 ฟังก์ชัน
บทที่ 4 ฟังก์ชันบทที่ 4 ฟังก์ชัน
บทที่ 4 ฟังก์ชันThipayarat Mocha
 
บทที่ 4 ฟังก์ชัน
บทที่ 4 ฟังก์ชันบทที่ 4 ฟังก์ชัน
บทที่ 4 ฟังก์ชันThipayarat Mocha
 
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 levelsMath Academy Singapore
 
Functions
FunctionsFunctions
FunctionsSPSV
 
Chapter 1 (functions).
Chapter 1 (functions).Chapter 1 (functions).
Chapter 1 (functions).Eko Wijayanto
 

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

Mcdonalds presentation 130621085419-phpapp02
Mcdonalds presentation 130621085419-phpapp02Mcdonalds presentation 130621085419-phpapp02
Mcdonalds presentation 130621085419-phpapp02Muhammad Farhan Javed
 
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 technologyMuhammad Farhan Javed
 
JOB ANALYSIS AND HUMAN RESOURCE PLANNING
JOB ANALYSIS AND HUMAN RESOURCE PLANNINGJOB ANALYSIS AND HUMAN RESOURCE PLANNING
JOB ANALYSIS AND HUMAN RESOURCE PLANNINGMuhammad Farhan Javed
 
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 pptMuhammad Farhan Javed
 
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 reportMuhammad Farhan Javed
 
Project Construction of 5 star hotel
Project Construction of 5 star hotelProject Construction of 5 star hotel
Project Construction of 5 star hotelMuhammad 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-2012Muhammad 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 ltdMuhammad Farhan Javed
 
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 companyMuhammad 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

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
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Ữ Â...Nguyen Thanh Tu Collection
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationNeilDeclaro1
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 

Recently uploaded (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
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Ữ Â...
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 

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