SlideShare a Scribd company logo
Function and Relation
Prepared by: Angela Clarito
Relation
● It is a Rule that pairs each element in one set.
● It is a set of ordered pairs, x and y.
● A relation R on a set X is a subset of X x X. If (a,b) ∊ R,
we write x R y. Reads as “ x is related to y”.
Relation
● A = {(1,1),(1,2),(1,3),(2,1),(2,2),(2,3))
X y
2
1 1
2
3
R
Types of Relations
Reflexive
Irreflexive
Symmetric
Asymmetric
Antisymmetric
Transitive
Reflexive Relation
● A relation R on a set is called reflexive if (a,a) ∊ R for every
element a ∊ A. In other words, ∀ a((a,a) ∊ R).
● A relation will be known as reflexive relative if every element of
set A is related to itself. The word reflexive means that in a set,
the image of every element has its own reflection.
Example:
Let A = {1,2,3,4}
R={(1,1),(2,2),(3,3),(4,4)}
Irreflexive Relation
● A relation R on a set A is called irreflexive if ∀a ∊ A,
(a,a) ∉ R.
Example:
Let A = {1,2,3,4}
R={(1,2),(1,3),(1,4),(2,1),(2,3),(2,4),(3,1),(3,2),
(3,4),(4,1),(4,2),(4,3)}
Symmetric Relation
● A relation R on a set A is called symmetric if (b,a) ∊ R
holds when (a,b) ∊ R for all a, b ∊ A.
● In other words, relation R on a set A is symmetric if
∀a ∀b((a,b) ∊ R → (b,a) ∊ R.
Example:
Let A = {1,2,3,4}
R={(1,2),(2,1),(1,3),(3,1),(1,4),(4,1)}
Antisymmetric Relation
● A relation R on a set A is called antisymmetric if ∀a
∀b((a,b) ∊ R ^ (b,a) ∊ R → (a=b)) whenever we have
(a,b) in R, we will never have (b,a) in R until or unless
(a=b).
Example:
Let A = {1,2}
R1
={(1,1),(2,1),(2,2)}
R2
={(1,1),(1,2),(2,1),(2,2)}
Asymmetric Relation
● A relation R on a set A is called asymmetric if ∀a
∀b((a,b) ∊ R ^ (b,a) ∉ R) whenever we have (a,b) in R,
we will never have (b,a) in R until or unless (a=b).
Example:
Let A = {1,2,3,4}
R={(1,2),(1,3),(1,4),(2,3),(2,4)}
Transitive Relation
● A relation R on a set A is called transitive if ∀a ∀b
∀c(((a,b) ∊ R ^ (b,c) ∊ R) → (a,c) ∊ R)
Example:
Let A = {1,2,3}
R={(1,3),(1,2),(3,2)}
Function
● It is a Rule that pairs each x-coordinate to exactly one element
from y-coordinates.
● It is a set of ordered pairs (relation) where x-coordinate should
not be repeated.
● Are sometimes called as mappings or transformations.
● A function f from A to B , denoted f: A → B, assign each
element of A exactly on element of B.
Relation
● A = {(1,1),(1,2),(1,3),(2,1),(2,2),(2,3))
X y
2
1 1
2
3
R
Terminologies
Domain
Codomain
Image
Preimage
Range
Domain
Is the set x.
Codomain
Is the set y .
Range
The values in set y that is paired. .
Preimage
The value in y that is paired to the
value in x.
Image
The value in x that is paired to the
value in y.
Answer the following
for f: X → Y
Domain
Codomain
Range
Image(s)
Preimage
f(y) = ?
Types of Functions
Injective
Surjective
Bijective
Inverse
Composition
Injective (One to one) Functions
Each Value in the range corresponds to exactly one element in
then domain.
∀ a ∀ b (( a ≠ b) → f (a) ≠ f (b)))
∀ a ∀ b ((f (a) = f (b)) → (a = b))
∀ reads as “for all”
≠ reads as “not equal to”
CONTRAPOSITIVE
Injective (One to one) Functions
Surjective (Onto) Functions
Each element in the codomain maps to at least one element in the
domain.
∀ y ∃ x (f(x) = y)
∃ reads as “ there exists”
Surjective (Onto) Functions
Bijective (One to one correspondence)
Functions
Functions that are both one-to-one and onto, or both surjective
and injective.
∀ y ∃ x (f(x) = y)
∃ reads as “ there exists”
Bijective (One to one correspondence)
Functions
Problem:
Let f be a function from X = { a, b, c, d } to Y = { 1, 2, 3 } defined by
f(a) = 3, f(b) = 2, f(c) = 2 and f(d) = 3. Is f: X → Y either one-to one
or onto?
Examples of Different Types of
Correspondences
One-to-one, not onto Onto, not one-to-one
One-to-one, onto Neither one-to-one, onto
Not a Function
Inverse Function
● Given any function, f, the inverse of the function f-1,
is a relation
that is formed by interchanging each (x, y) of f to a (y, x) of f-1,
.
● The function f would be denoted as f-1,
and read as “f inverse”.
NOTE:
A one-to-one correspondence is called invertible because we can define
an inverse of this function. A function is not invertible if it is not a one-to
one correspondence, because inverse of such a function does not exist.
Inverse Function
Composition of Function
● The composition of two functions g: A → B and f: B → C, denoted
by f о g, is defined by (f о g) (a) = f(g(a)) or (g о f) (a) = g(f(a))
This means that
First, function g is applied to element A, mapping it into an element of B.
Then, function f is applied to this element of B, mapping it into an element
of C.
Therefore, the composite function maps from A to C.
Composition of Function
Thank You!

More Related Content

Similar to Function and Relation.pdf

relations (1).pdf
relations (1).pdfrelations (1).pdf
relations (1).pdf
DrNeelamArya
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
Himanshu Dua
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
Himanshu Dua
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
Himanshu Dua
 
237654933 mathematics-t-form-6
237654933 mathematics-t-form-6237654933 mathematics-t-form-6
237654933 mathematics-t-form-6
homeworkping3
 
Introductions to Relations
Introductions to RelationsIntroductions to Relations
Introductions to Relations
Lets Educate India
 
Relations & functions.pps
Relations  &  functions.ppsRelations  &  functions.pps
Relations & functions.ppsindu psthakur
 
function
functionfunction
function
som allul
 
WEEK-2-FUNCTION-AND-RELATION-EVALAUTION-OF-A-FUNCTIONS.pptx
WEEK-2-FUNCTION-AND-RELATION-EVALAUTION-OF-A-FUNCTIONS.pptxWEEK-2-FUNCTION-AND-RELATION-EVALAUTION-OF-A-FUNCTIONS.pptx
WEEK-2-FUNCTION-AND-RELATION-EVALAUTION-OF-A-FUNCTIONS.pptx
ExtremelyDarkness2
 
LANGUAGE-OF-RELATIONS-AND-FUNCTIONS.pptx
LANGUAGE-OF-RELATIONS-AND-FUNCTIONS.pptxLANGUAGE-OF-RELATIONS-AND-FUNCTIONS.pptx
LANGUAGE-OF-RELATIONS-AND-FUNCTIONS.pptx
JasonTagapanGulla
 
5.1 Defining and visualizing functions. Dynamic slides.
5.1 Defining and visualizing functions. Dynamic slides.5.1 Defining and visualizing functions. Dynamic slides.
5.1 Defining and visualizing functions. Dynamic slides.
Jan Plaza
 
Sets and relations
Sets and relationsSets and relations
Sets and relations
SURBHI SAROHA
 
4.1 Inverse Functions
4.1 Inverse Functions4.1 Inverse Functions
4.1 Inverse Functions
smiller5
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relations
nszakir
 
7.4 inverse functions
7.4 inverse functions7.4 inverse functions
7.4 inverse functionshisema01
 
LCV-MATH-1.pptx
LCV-MATH-1.pptxLCV-MATH-1.pptx
LCV-MATH-1.pptx
RheaMaeSenajon
 
Inverse function
Inverse function Inverse function
Inverse function
RidhimaPangtey
 

Similar to Function and Relation.pdf (20)

relations (1).pdf
relations (1).pdfrelations (1).pdf
relations (1).pdf
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
L08a
L08aL08a
L08a
 
237654933 mathematics-t-form-6
237654933 mathematics-t-form-6237654933 mathematics-t-form-6
237654933 mathematics-t-form-6
 
Introductions to Relations
Introductions to RelationsIntroductions to Relations
Introductions to Relations
 
Relations & functions.pps
Relations  &  functions.ppsRelations  &  functions.pps
Relations & functions.pps
 
function
functionfunction
function
 
WEEK-2-FUNCTION-AND-RELATION-EVALAUTION-OF-A-FUNCTIONS.pptx
WEEK-2-FUNCTION-AND-RELATION-EVALAUTION-OF-A-FUNCTIONS.pptxWEEK-2-FUNCTION-AND-RELATION-EVALAUTION-OF-A-FUNCTIONS.pptx
WEEK-2-FUNCTION-AND-RELATION-EVALAUTION-OF-A-FUNCTIONS.pptx
 
LANGUAGE-OF-RELATIONS-AND-FUNCTIONS.pptx
LANGUAGE-OF-RELATIONS-AND-FUNCTIONS.pptxLANGUAGE-OF-RELATIONS-AND-FUNCTIONS.pptx
LANGUAGE-OF-RELATIONS-AND-FUNCTIONS.pptx
 
5.1 Defining and visualizing functions. Dynamic slides.
5.1 Defining and visualizing functions. Dynamic slides.5.1 Defining and visualizing functions. Dynamic slides.
5.1 Defining and visualizing functions. Dynamic slides.
 
Sets and relations
Sets and relationsSets and relations
Sets and relations
 
Calc 5.3
Calc 5.3Calc 5.3
Calc 5.3
 
4.1 Inverse Functions
4.1 Inverse Functions4.1 Inverse Functions
4.1 Inverse Functions
 
Chapter 2: Relations
Chapter 2: RelationsChapter 2: Relations
Chapter 2: Relations
 
7.4 inverse functions
7.4 inverse functions7.4 inverse functions
7.4 inverse functions
 
LCV-MATH-1.pptx
LCV-MATH-1.pptxLCV-MATH-1.pptx
LCV-MATH-1.pptx
 
Lemh101
Lemh101Lemh101
Lemh101
 
Inverse function
Inverse function Inverse function
Inverse function
 

More from AngelaClarito1

History of Operating System (1).pptx
History of Operating System (1).pptxHistory of Operating System (1).pptx
History of Operating System (1).pptx
AngelaClarito1
 
Permutation and combination.pptx
Permutation and combination.pptxPermutation and combination.pptx
Permutation and combination.pptx
AngelaClarito1
 
Lecture-4.1-Operating-System.pptx
Lecture-4.1-Operating-System.pptxLecture-4.1-Operating-System.pptx
Lecture-4.1-Operating-System.pptx
AngelaClarito1
 
Introduction to Java.pptx
Introduction to Java.pptxIntroduction to Java.pptx
Introduction to Java.pptx
AngelaClarito1
 
Lecture_1___Introduction_to_OOP.pdf.pdf
Lecture_1___Introduction_to_OOP.pdf.pdfLecture_1___Introduction_to_OOP.pdf.pdf
Lecture_1___Introduction_to_OOP.pdf.pdf
AngelaClarito1
 
JAVA.1st lesson.pptx
JAVA.1st lesson.pptxJAVA.1st lesson.pptx
JAVA.1st lesson.pptx
AngelaClarito1
 
01 IT Vocabulary.pptx
01 IT Vocabulary.pptx01 IT Vocabulary.pptx
01 IT Vocabulary.pptx
AngelaClarito1
 

More from AngelaClarito1 (7)

History of Operating System (1).pptx
History of Operating System (1).pptxHistory of Operating System (1).pptx
History of Operating System (1).pptx
 
Permutation and combination.pptx
Permutation and combination.pptxPermutation and combination.pptx
Permutation and combination.pptx
 
Lecture-4.1-Operating-System.pptx
Lecture-4.1-Operating-System.pptxLecture-4.1-Operating-System.pptx
Lecture-4.1-Operating-System.pptx
 
Introduction to Java.pptx
Introduction to Java.pptxIntroduction to Java.pptx
Introduction to Java.pptx
 
Lecture_1___Introduction_to_OOP.pdf.pdf
Lecture_1___Introduction_to_OOP.pdf.pdfLecture_1___Introduction_to_OOP.pdf.pdf
Lecture_1___Introduction_to_OOP.pdf.pdf
 
JAVA.1st lesson.pptx
JAVA.1st lesson.pptxJAVA.1st lesson.pptx
JAVA.1st lesson.pptx
 
01 IT Vocabulary.pptx
01 IT Vocabulary.pptx01 IT Vocabulary.pptx
01 IT Vocabulary.pptx
 

Recently uploaded

FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 

Function and Relation.pdf

  • 1. Function and Relation Prepared by: Angela Clarito
  • 2. Relation ● It is a Rule that pairs each element in one set. ● It is a set of ordered pairs, x and y. ● A relation R on a set X is a subset of X x X. If (a,b) ∊ R, we write x R y. Reads as “ x is related to y”.
  • 3. Relation ● A = {(1,1),(1,2),(1,3),(2,1),(2,2),(2,3)) X y 2 1 1 2 3 R
  • 6. Reflexive Relation ● A relation R on a set is called reflexive if (a,a) ∊ R for every element a ∊ A. In other words, ∀ a((a,a) ∊ R). ● A relation will be known as reflexive relative if every element of set A is related to itself. The word reflexive means that in a set, the image of every element has its own reflection. Example: Let A = {1,2,3,4} R={(1,1),(2,2),(3,3),(4,4)}
  • 7. Irreflexive Relation ● A relation R on a set A is called irreflexive if ∀a ∊ A, (a,a) ∉ R. Example: Let A = {1,2,3,4} R={(1,2),(1,3),(1,4),(2,1),(2,3),(2,4),(3,1),(3,2), (3,4),(4,1),(4,2),(4,3)}
  • 8. Symmetric Relation ● A relation R on a set A is called symmetric if (b,a) ∊ R holds when (a,b) ∊ R for all a, b ∊ A. ● In other words, relation R on a set A is symmetric if ∀a ∀b((a,b) ∊ R → (b,a) ∊ R. Example: Let A = {1,2,3,4} R={(1,2),(2,1),(1,3),(3,1),(1,4),(4,1)}
  • 9. Antisymmetric Relation ● A relation R on a set A is called antisymmetric if ∀a ∀b((a,b) ∊ R ^ (b,a) ∊ R → (a=b)) whenever we have (a,b) in R, we will never have (b,a) in R until or unless (a=b). Example: Let A = {1,2} R1 ={(1,1),(2,1),(2,2)} R2 ={(1,1),(1,2),(2,1),(2,2)}
  • 10. Asymmetric Relation ● A relation R on a set A is called asymmetric if ∀a ∀b((a,b) ∊ R ^ (b,a) ∉ R) whenever we have (a,b) in R, we will never have (b,a) in R until or unless (a=b). Example: Let A = {1,2,3,4} R={(1,2),(1,3),(1,4),(2,3),(2,4)}
  • 11. Transitive Relation ● A relation R on a set A is called transitive if ∀a ∀b ∀c(((a,b) ∊ R ^ (b,c) ∊ R) → (a,c) ∊ R) Example: Let A = {1,2,3} R={(1,3),(1,2),(3,2)}
  • 12. Function ● It is a Rule that pairs each x-coordinate to exactly one element from y-coordinates. ● It is a set of ordered pairs (relation) where x-coordinate should not be repeated. ● Are sometimes called as mappings or transformations. ● A function f from A to B , denoted f: A → B, assign each element of A exactly on element of B.
  • 13. Relation ● A = {(1,1),(1,2),(1,3),(2,1),(2,2),(2,3)) X y 2 1 1 2 3 R
  • 16. Domain Is the set x. Codomain Is the set y . Range The values in set y that is paired. .
  • 17. Preimage The value in y that is paired to the value in x. Image The value in x that is paired to the value in y.
  • 18. Answer the following for f: X → Y Domain Codomain Range Image(s) Preimage f(y) = ?
  • 21. Injective (One to one) Functions Each Value in the range corresponds to exactly one element in then domain. ∀ a ∀ b (( a ≠ b) → f (a) ≠ f (b))) ∀ a ∀ b ((f (a) = f (b)) → (a = b)) ∀ reads as “for all” ≠ reads as “not equal to” CONTRAPOSITIVE
  • 22. Injective (One to one) Functions
  • 23. Surjective (Onto) Functions Each element in the codomain maps to at least one element in the domain. ∀ y ∃ x (f(x) = y) ∃ reads as “ there exists”
  • 25. Bijective (One to one correspondence) Functions Functions that are both one-to-one and onto, or both surjective and injective. ∀ y ∃ x (f(x) = y) ∃ reads as “ there exists”
  • 26. Bijective (One to one correspondence) Functions
  • 27. Problem: Let f be a function from X = { a, b, c, d } to Y = { 1, 2, 3 } defined by f(a) = 3, f(b) = 2, f(c) = 2 and f(d) = 3. Is f: X → Y either one-to one or onto?
  • 28. Examples of Different Types of Correspondences
  • 29. One-to-one, not onto Onto, not one-to-one
  • 30. One-to-one, onto Neither one-to-one, onto
  • 32. Inverse Function ● Given any function, f, the inverse of the function f-1, is a relation that is formed by interchanging each (x, y) of f to a (y, x) of f-1, . ● The function f would be denoted as f-1, and read as “f inverse”. NOTE: A one-to-one correspondence is called invertible because we can define an inverse of this function. A function is not invertible if it is not a one-to one correspondence, because inverse of such a function does not exist.
  • 34. Composition of Function ● The composition of two functions g: A → B and f: B → C, denoted by f о g, is defined by (f о g) (a) = f(g(a)) or (g о f) (a) = g(f(a)) This means that First, function g is applied to element A, mapping it into an element of B. Then, function f is applied to this element of B, mapping it into an element of C. Therefore, the composite function maps from A to C.