SlideShare a Scribd company logo
Functions as Relations
Dr. Yassir Dinar
Spring 2020
Dr. Yassir Dinar Functions as Relations Spring 2020 1 / 10
Functions as Relations
These slides cover the following topics
The definition of a function
Examples of infinite functions
Relations which are not functions
Domain and range of real functions
Identical functions
Dr. Yassir Dinar Functions as Relations Spring 2020 2 / 10
Functions as Relations
Definition 1.1
A function f (or mapping ) from A to B is a relation from A to B
such that
(i) the domain of f is A and
(ii) if (x, y) ∈ f and (x, z) ∈ f, then y = z.
In this case B is called the codomain of f. If A = B, we say f is a
function on A.
• The notation f : A → B reads“f is a function from A to B” or “f
maps A to B”.
• If (x, y) ∈ f, we write y = f(x). We read it as y is the image of f at
x (or value of f at x) and that x is a pre-image of y.
• Functions whose domains and codomains are subsets of R are referred
to as real functions
Dr. Yassir Dinar Functions as Relations Spring 2020 3 / 10
Relations and functions
Example 1.2
Let A = {1, 2, 3} and B = {4, 5, 6}, which of the following relations is a function
from A to B:
1 S = {(1, 5), (2, 5), (3, 4)}.
2 T = {(1, 4), (3, 6)}.
3 P = {(1, 4), (2, 5), (3, 6), (2, 6)}.
Solution.
1 Dom(S) = A and the numbers 1,2 and 3 appears as first coordinates
only once. Then S is a function.
2 2 ∈ A and 2 /∈ Dom(T), therefore T is not a function.
3 Dom(P) = A but (2, 5) ∈ P and (2, 6) ∈ P where 5 = 6. Therefore,
P is not a function.
Dr. Yassir Dinar Functions as Relations Spring 2020 4 / 10
Infinite Functions: Example I
Example 1.3
Show that the relations g = {(a, b) : b + 2a − 7 = 0} from N to Z is a function.
Solution.
(i) Let a ∈ N. Then b = −2a + 7 ∈ Z and (a, b) ∈ g. Hence,
Dom(g) = N.
(ii) Assume (a, n) ∈ g and (a, m) ∈ g. Then by definition of g,
m = −2a + 7 = n.
From (i) and (ii) we conclude that g is a function from N to Z.
• Note that since g is a function we can write g : N → Z given by
b = g(a) = −2a + 7.
Dr. Yassir Dinar Functions as Relations Spring 2020 5 / 10
Infinite Functions: Example II
Example 1.4
Define F = {(x, y) : x2
+ 4y2
= 16}. Show that F is a function from [0, 4] to
[0, ∞).
Solution.
(i) Assume x ∈ [0, 4]. Then x2 ≤ 16. Hence y = 16−x2
4 belongs to
[0, ∞). Then x2 + 4y2 = x2 + 4( 16−x2
4 )2 = 16. Thus (x, y) ∈ F
and Dom(F) = [0, 4].
(ii) Assume (t, z) ∈ F and (t, w) ∈ F. Then t2 + 4z2 = 16 = t2 + 4w2.
Hence z2 = w2. Since z and w nonnegative, it follows that z = w.
We conclude from (i) and (ii) that F is a function.
• Since F is a function, we can write F : [0, 4] → [0, ∞) given by
y = F(x) = 16−x2
4 .
Dr. Yassir Dinar Functions as Relations Spring 2020 6 / 10
Relations which are not functions
Example 1.5
Define F = {(x, y) : x2
+ 4y2
= 16}. Show that F is not a function when
1 F is a relation from R to R.
2 F is a relation from [−4, 4] to R.
3 F is a relation from [0, 4] to [0, 1].
Solution.
1 Note that 10 ∈ R but 10 /∈ Dom(F) since 102 + 4y2 ≥ 100, ∀y ∈ R.
Hence F is not a function.
2 Dom(F) = [−4, 4] Prove it!. For (x, y) and (x, z) in F we have
4y2 = 4z2. Hence y = ±z. So F is not a function. Counterexample
both (2,
√
3) and (2, −
√
3) are in F.
3 Dom(F) = [0, 4]. Counterexample 2 /∈ Dom(F) since otherwise
(2,
√
3) ∈ F but
√
3 /∈ codomain(F).
Dr. Yassir Dinar Functions as Relations Spring 2020 7 / 10
Domain and Range of Real Functions I
Example 1.6
Assume that the domain of the following function is the larges possible subset of
R, Find the domain and range.
f(x) =
x2
+ 5x + 6
x + 2
Solution.
From the definition Dom(f) ⊆ R − {−2}. Assume x ∈ R − {−2}.
Then y = x2+5x+6
x+2 = x + 3 ∈ R. Hence, x ∈ Dom(f) and
Dom(f) = R − {−2}.
Assume b ∈ Rng(f). Then there exists a ∈ R − {−2} such that
f(a) = b. This implies that b − 3 = a. But a = −2. Hence, b = 1.
Therefore, Rng(f) ⊆ R − {1}. Assume b ∈ R − {1}. set a = b − 3.
Hence, a = −2. Then a ∈ R − {−2} and f(a) = b − 3 + 3 = b.
Hence b ∈ Rng(f). Therefore, Rng(f) = R − {1}.
Dr. Yassir Dinar Functions as Relations Spring 2020 8 / 10
Domain and Range of Real Functions II
Example 1.7
Assume that the domain of the following function is the larges possible subset of
R, Find the domain and range.
g(x) =
√
x − 3
Solution.
From the definition, Dom(g) ⊆ [3, ∞). Assume x ∈ [3, ∞). Then
y =
√
x − 3 ∈ R and x ∈ Dom(g). Hence, Dom(g) = [3, ∞).
Assume y ∈ Rng(g). Then there exist x ≥ 3 such that y =
√
x − 3.
Hence y ≥ 0 and Rng(g) ⊆ [0, ∞). Assume b ∈ [0, ∞). Set
a = b2 + 3. Then a ∈ [3, ∞) and
g(a) =
√
a − 3 = b2 + 3 − 3 = b.
Hence b ∈ Rng(g). Therefore, Rng(g) = [0, ∞).
Dr. Yassir Dinar Functions as Relations Spring 2020 9 / 10
Equal functions
Definition 1.8
Two functions f and g are equal if they are equal as sets.
Theorem 1.9
Two function f and g are equal if and only if
(i) Dom(f) = Dom(g) and
(ii) for all x ∈ Dom(f), f(x) = g(x).
Prove it!
Example 1.10
The function f(x) = x2
+5x+6
x+2 and g(x) = x + 3 are not equal as real values
functions since Dom(f) = R − {−2} while Dom(g) = R. If we redefine both of
them with domain [0, ∞), then they are equal.
Dr. Yassir Dinar Functions as Relations Spring 2020 10 / 10

More Related Content

PDF
Chapter 1 functions
PDF
Proof methods-students
PDF
Relations between two sets
DOC
Up1 math t 2012
DOC
Concept map function
PPTX
F.Komposisi
PPSX
Introduction to Function, Domain and Range - Mohd Noor
PPSX
X std maths - Relations and functions (ex 1.4)
Chapter 1 functions
Proof methods-students
Relations between two sets
Up1 math t 2012
Concept map function
F.Komposisi
Introduction to Function, Domain and Range - Mohd Noor
X std maths - Relations and functions (ex 1.4)

What's hot (19)

PDF
Notes up to_ch7_sec3
PPTX
Foil method
PPT
125 7.7
PDF
Chepter 1 function 2013
PDF
Number theory lecture (part 1)
PPTX
Relation and function_xii
PPTX
Addition and subtraction of polynomial functions
DOC
20120523123639 relationsfunctionsclass 11
PDF
Introductory Mathematical Analysis for Business Economics International 13th ...
PPT
2.5 notes
PDF
Number theory
PPT
Chap4
PDF
Basic galois field arithmatics required for error control codes
PDF
Functions JC H2 Maths
PPT
Chapter2 functionsandgraphs-151003144959-lva1-app6891
PDF
Number theory
PDF
Number theory lecture (part 2)
PPTX
Sifat Limit Fungsi Aljabar dan Contoh Soal
Notes up to_ch7_sec3
Foil method
125 7.7
Chepter 1 function 2013
Number theory lecture (part 1)
Relation and function_xii
Addition and subtraction of polynomial functions
20120523123639 relationsfunctionsclass 11
Introductory Mathematical Analysis for Business Economics International 13th ...
2.5 notes
Number theory
Chap4
Basic galois field arithmatics required for error control codes
Functions JC H2 Maths
Chapter2 functionsandgraphs-151003144959-lva1-app6891
Number theory
Number theory lecture (part 2)
Sifat Limit Fungsi Aljabar dan Contoh Soal
Ad

Similar to Functions as Relations (20)

PPTX
REPRESENTATION OF FUNCTIONS.pptx
PPTX
General Mathematics_Grade 11Representation of Functions
PPT
Evaluating function 1
PPTX
1_Representation_of_Functions.......pptx
PPTX
1_Representation0000000of_Functions.pptx
PPTX
1 representation of_functions
PPTX
1_Representation_of_Functions.pptx
PPTX
9-Functions.pptx
PDF
functions-1.pdf
PPT
Relations and Functions
PPTX
01 FUNCTIONS.pptx
PPT
Storyboard math
PPS
Functions and graphs
PPTX
Relations & functions.pps
PDF
Algebra 2 Section 0-1
PPTX
1_Representation_of_Functions.pptxshjsjsj
PPT
Module 1 Lesson 1 Remediation Notes
PPSX
Algebra 4
PPT
Relations and functions
PDF
3.1 Functions and Function Notation
REPRESENTATION OF FUNCTIONS.pptx
General Mathematics_Grade 11Representation of Functions
Evaluating function 1
1_Representation_of_Functions.......pptx
1_Representation0000000of_Functions.pptx
1 representation of_functions
1_Representation_of_Functions.pptx
9-Functions.pptx
functions-1.pdf
Relations and Functions
01 FUNCTIONS.pptx
Storyboard math
Functions and graphs
Relations & functions.pps
Algebra 2 Section 0-1
1_Representation_of_Functions.pptxshjsjsj
Module 1 Lesson 1 Remediation Notes
Algebra 4
Relations and functions
3.1 Functions and Function Notation
Ad

Recently uploaded (20)

PPT
The World of Physical Science, • Labs: Safety Simulation, Measurement Practice
PDF
Mastering Bioreactors and Media Sterilization: A Complete Guide to Sterile Fe...
PPT
POSITIONING IN OPERATION THEATRE ROOM.ppt
PDF
Sciences of Europe No 170 (2025)
PPTX
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
PDF
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
PDF
SEHH2274 Organic Chemistry Notes 1 Structure and Bonding.pdf
PPTX
The KM-GBF monitoring framework – status & key messages.pptx
PDF
Placing the Near-Earth Object Impact Probability in Context
PPTX
2. Earth - The Living Planet earth and life
PPTX
7. General Toxicologyfor clinical phrmacy.pptx
PPTX
G5Q1W8 PPT SCIENCE.pptx 2025-2026 GRADE 5
PPTX
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
PDF
Cosmic Outliers: Low-spin Halos Explain the Abundance, Compactness, and Redsh...
PPTX
2Systematics of Living Organisms t-.pptx
PDF
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
PPTX
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
PPTX
neck nodes and dissection types and lymph nodes levels
PPTX
Introduction to Cardiovascular system_structure and functions-1
PPTX
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
The World of Physical Science, • Labs: Safety Simulation, Measurement Practice
Mastering Bioreactors and Media Sterilization: A Complete Guide to Sterile Fe...
POSITIONING IN OPERATION THEATRE ROOM.ppt
Sciences of Europe No 170 (2025)
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
SEHH2274 Organic Chemistry Notes 1 Structure and Bonding.pdf
The KM-GBF monitoring framework – status & key messages.pptx
Placing the Near-Earth Object Impact Probability in Context
2. Earth - The Living Planet earth and life
7. General Toxicologyfor clinical phrmacy.pptx
G5Q1W8 PPT SCIENCE.pptx 2025-2026 GRADE 5
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
Cosmic Outliers: Low-spin Halos Explain the Abundance, Compactness, and Redsh...
2Systematics of Living Organisms t-.pptx
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
neck nodes and dissection types and lymph nodes levels
Introduction to Cardiovascular system_structure and functions-1
cpcsea ppt.pptxssssssssssssssjjdjdndndddd

Functions as Relations

  • 1. Functions as Relations Dr. Yassir Dinar Spring 2020 Dr. Yassir Dinar Functions as Relations Spring 2020 1 / 10
  • 2. Functions as Relations These slides cover the following topics The definition of a function Examples of infinite functions Relations which are not functions Domain and range of real functions Identical functions Dr. Yassir Dinar Functions as Relations Spring 2020 2 / 10
  • 3. Functions as Relations Definition 1.1 A function f (or mapping ) from A to B is a relation from A to B such that (i) the domain of f is A and (ii) if (x, y) ∈ f and (x, z) ∈ f, then y = z. In this case B is called the codomain of f. If A = B, we say f is a function on A. • The notation f : A → B reads“f is a function from A to B” or “f maps A to B”. • If (x, y) ∈ f, we write y = f(x). We read it as y is the image of f at x (or value of f at x) and that x is a pre-image of y. • Functions whose domains and codomains are subsets of R are referred to as real functions Dr. Yassir Dinar Functions as Relations Spring 2020 3 / 10
  • 4. Relations and functions Example 1.2 Let A = {1, 2, 3} and B = {4, 5, 6}, which of the following relations is a function from A to B: 1 S = {(1, 5), (2, 5), (3, 4)}. 2 T = {(1, 4), (3, 6)}. 3 P = {(1, 4), (2, 5), (3, 6), (2, 6)}. Solution. 1 Dom(S) = A and the numbers 1,2 and 3 appears as first coordinates only once. Then S is a function. 2 2 ∈ A and 2 /∈ Dom(T), therefore T is not a function. 3 Dom(P) = A but (2, 5) ∈ P and (2, 6) ∈ P where 5 = 6. Therefore, P is not a function. Dr. Yassir Dinar Functions as Relations Spring 2020 4 / 10
  • 5. Infinite Functions: Example I Example 1.3 Show that the relations g = {(a, b) : b + 2a − 7 = 0} from N to Z is a function. Solution. (i) Let a ∈ N. Then b = −2a + 7 ∈ Z and (a, b) ∈ g. Hence, Dom(g) = N. (ii) Assume (a, n) ∈ g and (a, m) ∈ g. Then by definition of g, m = −2a + 7 = n. From (i) and (ii) we conclude that g is a function from N to Z. • Note that since g is a function we can write g : N → Z given by b = g(a) = −2a + 7. Dr. Yassir Dinar Functions as Relations Spring 2020 5 / 10
  • 6. Infinite Functions: Example II Example 1.4 Define F = {(x, y) : x2 + 4y2 = 16}. Show that F is a function from [0, 4] to [0, ∞). Solution. (i) Assume x ∈ [0, 4]. Then x2 ≤ 16. Hence y = 16−x2 4 belongs to [0, ∞). Then x2 + 4y2 = x2 + 4( 16−x2 4 )2 = 16. Thus (x, y) ∈ F and Dom(F) = [0, 4]. (ii) Assume (t, z) ∈ F and (t, w) ∈ F. Then t2 + 4z2 = 16 = t2 + 4w2. Hence z2 = w2. Since z and w nonnegative, it follows that z = w. We conclude from (i) and (ii) that F is a function. • Since F is a function, we can write F : [0, 4] → [0, ∞) given by y = F(x) = 16−x2 4 . Dr. Yassir Dinar Functions as Relations Spring 2020 6 / 10
  • 7. Relations which are not functions Example 1.5 Define F = {(x, y) : x2 + 4y2 = 16}. Show that F is not a function when 1 F is a relation from R to R. 2 F is a relation from [−4, 4] to R. 3 F is a relation from [0, 4] to [0, 1]. Solution. 1 Note that 10 ∈ R but 10 /∈ Dom(F) since 102 + 4y2 ≥ 100, ∀y ∈ R. Hence F is not a function. 2 Dom(F) = [−4, 4] Prove it!. For (x, y) and (x, z) in F we have 4y2 = 4z2. Hence y = ±z. So F is not a function. Counterexample both (2, √ 3) and (2, − √ 3) are in F. 3 Dom(F) = [0, 4]. Counterexample 2 /∈ Dom(F) since otherwise (2, √ 3) ∈ F but √ 3 /∈ codomain(F). Dr. Yassir Dinar Functions as Relations Spring 2020 7 / 10
  • 8. Domain and Range of Real Functions I Example 1.6 Assume that the domain of the following function is the larges possible subset of R, Find the domain and range. f(x) = x2 + 5x + 6 x + 2 Solution. From the definition Dom(f) ⊆ R − {−2}. Assume x ∈ R − {−2}. Then y = x2+5x+6 x+2 = x + 3 ∈ R. Hence, x ∈ Dom(f) and Dom(f) = R − {−2}. Assume b ∈ Rng(f). Then there exists a ∈ R − {−2} such that f(a) = b. This implies that b − 3 = a. But a = −2. Hence, b = 1. Therefore, Rng(f) ⊆ R − {1}. Assume b ∈ R − {1}. set a = b − 3. Hence, a = −2. Then a ∈ R − {−2} and f(a) = b − 3 + 3 = b. Hence b ∈ Rng(f). Therefore, Rng(f) = R − {1}. Dr. Yassir Dinar Functions as Relations Spring 2020 8 / 10
  • 9. Domain and Range of Real Functions II Example 1.7 Assume that the domain of the following function is the larges possible subset of R, Find the domain and range. g(x) = √ x − 3 Solution. From the definition, Dom(g) ⊆ [3, ∞). Assume x ∈ [3, ∞). Then y = √ x − 3 ∈ R and x ∈ Dom(g). Hence, Dom(g) = [3, ∞). Assume y ∈ Rng(g). Then there exist x ≥ 3 such that y = √ x − 3. Hence y ≥ 0 and Rng(g) ⊆ [0, ∞). Assume b ∈ [0, ∞). Set a = b2 + 3. Then a ∈ [3, ∞) and g(a) = √ a − 3 = b2 + 3 − 3 = b. Hence b ∈ Rng(g). Therefore, Rng(g) = [0, ∞). Dr. Yassir Dinar Functions as Relations Spring 2020 9 / 10
  • 10. Equal functions Definition 1.8 Two functions f and g are equal if they are equal as sets. Theorem 1.9 Two function f and g are equal if and only if (i) Dom(f) = Dom(g) and (ii) for all x ∈ Dom(f), f(x) = g(x). Prove it! Example 1.10 The function f(x) = x2 +5x+6 x+2 and g(x) = x + 3 are not equal as real values functions since Dom(f) = R − {−2} while Dom(g) = R. If we redefine both of them with domain [0, ∞), then they are equal. Dr. Yassir Dinar Functions as Relations Spring 2020 10 / 10