SlideShare a Scribd company logo
1 of 8
Download to read offline
Introduction to set theory and to methodology and philosophy of
mathematics and computer programming
Function composition
An overview
by Jan Plaza
c 2017 Jan Plaza
Use under the Creative Commons Attribution 4.0 International License
Version of April 29, 2017
Definition. Let f and g be functions such that range(f) ⊆ domain(g).
The function composition of f and g , denoted g
func
◦ f ,
is the unique function that has the same domain as f,
and such that (g ◦ f)(x)=g(f(x)), for every x ∈ domain(f).
Note. “g ◦ f” is read “f composed with g” or “function composition of f and g”,
as if we were reading the expression “g ◦ f” from the right to the left.
While writing “f composed with g” in symbols, write from the right to the left.
Note. This definition does not tell what g
func
◦ f is when f or g is not a function
or when range(f) domain(g), and such cases are considered not iteresting.
Proposition. Let f and g be functions such that range(f) ⊆ domain(g),
i.e. such that the function composition g ◦ f is defined.
Then, (function composition) g
func
◦ f = (relation composition) g ◦ f .
Convention. Instead of
func
◦ we will write just ◦ . The context should tell whether the
relation composition or function composition is meant.
If f : X1 −→ Y1 and g : X2 −→ Y2 and Y1 ⊆ X2
then function composition g ◦ f is defined, and g ◦ f : X1 −→ Y2.
f
g
g ◦ f
X1 Y1
X2 Y2
Equivalently, if f : X −→ Y and g : Y −→ Z
then function composition g ◦ f is defined, and g ◦ f : X −→ Z.
f
g
g ◦ f
X
Y Z
Example
f
g
g ◦ f
1
2
3
10
11
12
13
14
20
22
24
f = { 1, 11 , 2, 12 , 3, 12 }
g = { 10, 20 , 11, 20 , 12, 22 , 13, 24 , 14, 24 }
g ◦ f = { 1, 20 , 2, 22 , 3, 22 }
Example
Let f : R −→ R where f(x)=2x.
Let g : R −→ R where g(x)=x + 1.
We have (f ◦ g)(x)=f(g(x))=2(x + 1) = 2x + 2.
We have (g ◦ f)(x)=g(f(x))=2x + 1.
Notice that f ◦ g=g ◦ f.
Example
Let f : R −→ R be defined as f(x) = sin x.
Let g : R 0 −→ R be defined as g(x) =
√
x.
1. Function composition g ◦ f is not defined
because range(f) = [−1, 1,] contains negative numbers, not in domain(g).
2. Relation composition g ◦ f is defined and results in a partial function on R;
g ◦ f : R −→ R such that
(g ◦ f)(x) =
√
sin x for x ∈ [2kπ, (2k + 1)π] where k ∈ Z.
3. Function composition f ◦ g is defined, and
it is the same as relation composition f ◦ g.
It results in a function f ◦ g : R 0 −→ R such that
(f ◦ g)(x) = sin(
√
x).
Fact
Let f, g be functions such that function composition g ◦ f is defined. Then:
1. domain(g ◦ f) = domain(f)
2. range(g ◦ f) ⊆ range(g)
Exercise
Let f, g be functions such that function composition g ◦ f is defined.
1. Disprove: domain(g ◦ f) = domain(g)
2. Disprove: range(g ◦ f) = range(g)

More Related Content

What's hot

mathematical functions
mathematical functions mathematical functions
mathematical functions Anshul gour
 
Inverse Functions
Inverse FunctionsInverse Functions
Inverse Functionstschmucker
 
5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.Jan Plaza
 
Epanaliptiko pros spiros_giannakaros_2021
Epanaliptiko pros spiros_giannakaros_2021Epanaliptiko pros spiros_giannakaros_2021
Epanaliptiko pros spiros_giannakaros_2021Christos Loizos
 
7.7 one to_one_functions_-_inverse_functions
7.7 one to_one_functions_-_inverse_functions7.7 one to_one_functions_-_inverse_functions
7.7 one to_one_functions_-_inverse_functionsarvin gutierrez
 
Functions and its Applications in Mathematics
Functions and its Applications in MathematicsFunctions and its Applications in Mathematics
Functions and its Applications in MathematicsAmit Amola
 
Operations on Functions
Operations on FunctionsOperations on Functions
Operations on Functionsswartzje
 
4.1 Inverse Functions
4.1 Inverse Functions4.1 Inverse Functions
4.1 Inverse Functionssmiller5
 
One to-one function (MATH 11)
One to-one function (MATH 11)One to-one function (MATH 11)
One to-one function (MATH 11)majoydrew
 
5.8 Permutations (dynamic slides)
5.8 Permutations (dynamic slides)5.8 Permutations (dynamic slides)
5.8 Permutations (dynamic slides)Jan Plaza
 
1.6 inverse function (optional)
1.6 inverse function (optional)1.6 inverse function (optional)
1.6 inverse function (optional)math123c
 

What's hot (20)

mathematical functions
mathematical functions mathematical functions
mathematical functions
 
Lar calc10 ch05_sec3
Lar calc10 ch05_sec3Lar calc10 ch05_sec3
Lar calc10 ch05_sec3
 
Functions 2
Functions 2Functions 2
Functions 2
 
Calc 5.3
Calc 5.3Calc 5.3
Calc 5.3
 
Functions
Functions Functions
Functions
 
Inverse Functions
Inverse FunctionsInverse Functions
Inverse Functions
 
Prosomoiwsh 1 xenos
Prosomoiwsh 1 xenosProsomoiwsh 1 xenos
Prosomoiwsh 1 xenos
 
5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.5.5 Injective and surjective functions. Dynamic slides.
5.5 Injective and surjective functions. Dynamic slides.
 
Functions
FunctionsFunctions
Functions
 
Epanaliptiko pros spiros_giannakaros_2021
Epanaliptiko pros spiros_giannakaros_2021Epanaliptiko pros spiros_giannakaros_2021
Epanaliptiko pros spiros_giannakaros_2021
 
7.7 one to_one_functions_-_inverse_functions
7.7 one to_one_functions_-_inverse_functions7.7 one to_one_functions_-_inverse_functions
7.7 one to_one_functions_-_inverse_functions
 
Inverse function
Inverse functionInverse function
Inverse function
 
Function in Mathematics
Function in MathematicsFunction in Mathematics
Function in Mathematics
 
Functions and its Applications in Mathematics
Functions and its Applications in MathematicsFunctions and its Applications in Mathematics
Functions and its Applications in Mathematics
 
Operations on Functions
Operations on FunctionsOperations on Functions
Operations on Functions
 
4.1 Inverse Functions
4.1 Inverse Functions4.1 Inverse Functions
4.1 Inverse Functions
 
One to-one function (MATH 11)
One to-one function (MATH 11)One to-one function (MATH 11)
One to-one function (MATH 11)
 
Functions
FunctionsFunctions
Functions
 
5.8 Permutations (dynamic slides)
5.8 Permutations (dynamic slides)5.8 Permutations (dynamic slides)
5.8 Permutations (dynamic slides)
 
1.6 inverse function (optional)
1.6 inverse function (optional)1.6 inverse function (optional)
1.6 inverse function (optional)
 

Similar to 5.2. Function composition

The Algebric Functions
The Algebric FunctionsThe Algebric Functions
The Algebric Functionsitutor
 
4 2 operations on functions
4 2 operations on functions4 2 operations on functions
4 2 operations on functionshisema01
 
Functions by mstfdemirdag
Functions by mstfdemirdagFunctions by mstfdemirdag
Functions by mstfdemirdagmstf mstf
 
Basic Calculus.docx
Basic Calculus.docxBasic Calculus.docx
Basic Calculus.docxjericranoco
 
Functions as Relations
Functions as Relations Functions as Relations
Functions as Relations Yassirdino
 
Functions
FunctionsFunctions
FunctionsSPSV
 
Operations on Functions.pdf
Operations on Functions.pdfOperations on Functions.pdf
Operations on Functions.pdfJetCarilloToledo
 
Best Approximation in Real Linear 2-Normed Spaces
Best Approximation in Real Linear 2-Normed SpacesBest Approximation in Real Linear 2-Normed Spaces
Best Approximation in Real Linear 2-Normed SpacesIOSR Journals
 
Composition and inverse of functions
Composition  and inverse of functionsComposition  and inverse of functions
Composition and inverse of functionsCharliez Jane Soriano
 
Proof methods-students
Proof methods-students Proof methods-students
Proof methods-students Yassirdino
 
Functions and graphs
Functions and graphsFunctions and graphs
Functions and graphsSujata Tapare
 
5.8 Permutations (handout)
5.8 Permutations (handout)5.8 Permutations (handout)
5.8 Permutations (handout)Jan Plaza
 
Composite Functions.ppt
Composite Functions.pptComposite Functions.ppt
Composite Functions.pptXiaodong Li
 
function on mathematics
function on mathematicsfunction on mathematics
function on mathematicsAkashDas124
 

Similar to 5.2. Function composition (20)

The Algebric Functions
The Algebric FunctionsThe Algebric Functions
The Algebric Functions
 
4 2 operations on functions
4 2 operations on functions4 2 operations on functions
4 2 operations on functions
 
composite functions
composite functionscomposite functions
composite functions
 
Functions JC H2 Maths
Functions JC H2 MathsFunctions JC H2 Maths
Functions JC H2 Maths
 
Functions by mstfdemirdag
Functions by mstfdemirdagFunctions by mstfdemirdag
Functions by mstfdemirdag
 
Basic Calculus.docx
Basic Calculus.docxBasic Calculus.docx
Basic Calculus.docx
 
______2
  ______2  ______2
______2
 
Functions as Relations
Functions as Relations Functions as Relations
Functions as Relations
 
Functions
FunctionsFunctions
Functions
 
Operations on Functions.pdf
Operations on Functions.pdfOperations on Functions.pdf
Operations on Functions.pdf
 
Best Approximation in Real Linear 2-Normed Spaces
Best Approximation in Real Linear 2-Normed SpacesBest Approximation in Real Linear 2-Normed Spaces
Best Approximation in Real Linear 2-Normed Spaces
 
Composition and inverse of functions
Composition  and inverse of functionsComposition  and inverse of functions
Composition and inverse of functions
 
Proof methods-students
Proof methods-students Proof methods-students
Proof methods-students
 
Operations on function.pptx
Operations on function.pptxOperations on function.pptx
Operations on function.pptx
 
Functions and graphs
Functions and graphsFunctions and graphs
Functions and graphs
 
Comp inverse
Comp inverseComp inverse
Comp inverse
 
5.8 Permutations (handout)
5.8 Permutations (handout)5.8 Permutations (handout)
5.8 Permutations (handout)
 
Composite Functions.ppt
Composite Functions.pptComposite Functions.ppt
Composite Functions.ppt
 
Pc 1.8 notes
Pc 1.8 notesPc 1.8 notes
Pc 1.8 notes
 
function on mathematics
function on mathematicsfunction on mathematics
function on mathematics
 

More from Jan Plaza

6.3 Equivalences versus partitions
6.3 Equivalences versus partitions6.3 Equivalences versus partitions
6.3 Equivalences versus partitionsJan Plaza
 
6.1 Partitions
6.1 Partitions6.1 Partitions
6.1 PartitionsJan Plaza
 
6.2 Reflexivity, symmetry and transitivity (dynamic slides)
6.2 Reflexivity, symmetry and transitivity (dynamic slides)6.2 Reflexivity, symmetry and transitivity (dynamic slides)
6.2 Reflexivity, symmetry and transitivity (dynamic slides)Jan Plaza
 
6.2 Reflexivity, symmetry and transitivity (handout)
6.2 Reflexivity, symmetry and transitivity (handout)6.2 Reflexivity, symmetry and transitivity (handout)
6.2 Reflexivity, symmetry and transitivity (handout)Jan Plaza
 
5.3 Basic functions. Dynamic slides.
5.3 Basic functions. Dynamic slides.5.3 Basic functions. Dynamic slides.
5.3 Basic functions. Dynamic slides.Jan Plaza
 
1.8 Separation schema
1.8 Separation schema1.8 Separation schema
1.8 Separation schemaJan Plaza
 
1.4 Abstract objects and expressions
1.4 Abstract objects and expressions1.4 Abstract objects and expressions
1.4 Abstract objects and expressionsJan Plaza
 
1.2 Axiom of pair
1.2 Axiom of pair1.2 Axiom of pair
1.2 Axiom of pairJan Plaza
 
1.11 Mathematical induction
1.11 Mathematical induction1.11 Mathematical induction
1.11 Mathematical inductionJan Plaza
 
1.7 The sets of numbers
1.7 The sets of numbers1.7 The sets of numbers
1.7 The sets of numbersJan Plaza
 
1.1 Notions of set and membership
1.1 Notions of set and membership1.1 Notions of set and membership
1.1 Notions of set and membershipJan Plaza
 
4.7 Powers of binary relations
4.7 Powers of binary relations4.7 Powers of binary relations
4.7 Powers of binary relationsJan Plaza
 
4.6 Relative product and composition
4.6 Relative product and composition4.6 Relative product and composition
4.6 Relative product and compositionJan Plaza
 
4.5 Inverse relation
4.5 Inverse relation4.5 Inverse relation
4.5 Inverse relationJan Plaza
 
4.4 Set operations on relations
4.4 Set operations on relations4.4 Set operations on relations
4.4 Set operations on relationsJan Plaza
 
4.1 Defining and visualizing binary relations
4.1 Defining and visualizing binary relations4.1 Defining and visualizing binary relations
4.1 Defining and visualizing binary relationsJan Plaza
 
3.7 Indexed families of sets
3.7 Indexed families of sets3.7 Indexed families of sets
3.7 Indexed families of setsJan Plaza
 
3.6 Families ordered by inclusion
3.6 Families ordered by inclusion3.6 Families ordered by inclusion
3.6 Families ordered by inclusionJan Plaza
 
3.2 Power sets
3.2 Power sets3.2 Power sets
3.2 Power setsJan Plaza
 

More from Jan Plaza (20)

6.3 Equivalences versus partitions
6.3 Equivalences versus partitions6.3 Equivalences versus partitions
6.3 Equivalences versus partitions
 
6.1 Partitions
6.1 Partitions6.1 Partitions
6.1 Partitions
 
6.2 Reflexivity, symmetry and transitivity (dynamic slides)
6.2 Reflexivity, symmetry and transitivity (dynamic slides)6.2 Reflexivity, symmetry and transitivity (dynamic slides)
6.2 Reflexivity, symmetry and transitivity (dynamic slides)
 
6.2 Reflexivity, symmetry and transitivity (handout)
6.2 Reflexivity, symmetry and transitivity (handout)6.2 Reflexivity, symmetry and transitivity (handout)
6.2 Reflexivity, symmetry and transitivity (handout)
 
5.3 Basic functions. Dynamic slides.
5.3 Basic functions. Dynamic slides.5.3 Basic functions. Dynamic slides.
5.3 Basic functions. Dynamic slides.
 
1.8 Separation schema
1.8 Separation schema1.8 Separation schema
1.8 Separation schema
 
1.4 Abstract objects and expressions
1.4 Abstract objects and expressions1.4 Abstract objects and expressions
1.4 Abstract objects and expressions
 
1.2 Axiom of pair
1.2 Axiom of pair1.2 Axiom of pair
1.2 Axiom of pair
 
1.11 Mathematical induction
1.11 Mathematical induction1.11 Mathematical induction
1.11 Mathematical induction
 
1.7 The sets of numbers
1.7 The sets of numbers1.7 The sets of numbers
1.7 The sets of numbers
 
1.6 Subsets
1.6 Subsets1.6 Subsets
1.6 Subsets
 
1.1 Notions of set and membership
1.1 Notions of set and membership1.1 Notions of set and membership
1.1 Notions of set and membership
 
4.7 Powers of binary relations
4.7 Powers of binary relations4.7 Powers of binary relations
4.7 Powers of binary relations
 
4.6 Relative product and composition
4.6 Relative product and composition4.6 Relative product and composition
4.6 Relative product and composition
 
4.5 Inverse relation
4.5 Inverse relation4.5 Inverse relation
4.5 Inverse relation
 
4.4 Set operations on relations
4.4 Set operations on relations4.4 Set operations on relations
4.4 Set operations on relations
 
4.1 Defining and visualizing binary relations
4.1 Defining and visualizing binary relations4.1 Defining and visualizing binary relations
4.1 Defining and visualizing binary relations
 
3.7 Indexed families of sets
3.7 Indexed families of sets3.7 Indexed families of sets
3.7 Indexed families of sets
 
3.6 Families ordered by inclusion
3.6 Families ordered by inclusion3.6 Families ordered by inclusion
3.6 Families ordered by inclusion
 
3.2 Power sets
3.2 Power sets3.2 Power sets
3.2 Power sets
 

Recently uploaded

Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptxJonalynLegaspi2
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 

Recently uploaded (20)

Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptx
 
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 

5.2. Function composition

  • 1. Introduction to set theory and to methodology and philosophy of mathematics and computer programming Function composition An overview by Jan Plaza c 2017 Jan Plaza Use under the Creative Commons Attribution 4.0 International License Version of April 29, 2017
  • 2. Definition. Let f and g be functions such that range(f) ⊆ domain(g). The function composition of f and g , denoted g func ◦ f , is the unique function that has the same domain as f, and such that (g ◦ f)(x)=g(f(x)), for every x ∈ domain(f). Note. “g ◦ f” is read “f composed with g” or “function composition of f and g”, as if we were reading the expression “g ◦ f” from the right to the left. While writing “f composed with g” in symbols, write from the right to the left. Note. This definition does not tell what g func ◦ f is when f or g is not a function or when range(f) domain(g), and such cases are considered not iteresting. Proposition. Let f and g be functions such that range(f) ⊆ domain(g), i.e. such that the function composition g ◦ f is defined. Then, (function composition) g func ◦ f = (relation composition) g ◦ f . Convention. Instead of func ◦ we will write just ◦ . The context should tell whether the relation composition or function composition is meant.
  • 3. If f : X1 −→ Y1 and g : X2 −→ Y2 and Y1 ⊆ X2 then function composition g ◦ f is defined, and g ◦ f : X1 −→ Y2. f g g ◦ f X1 Y1 X2 Y2
  • 4. Equivalently, if f : X −→ Y and g : Y −→ Z then function composition g ◦ f is defined, and g ◦ f : X −→ Z. f g g ◦ f X Y Z
  • 5. Example f g g ◦ f 1 2 3 10 11 12 13 14 20 22 24 f = { 1, 11 , 2, 12 , 3, 12 } g = { 10, 20 , 11, 20 , 12, 22 , 13, 24 , 14, 24 } g ◦ f = { 1, 20 , 2, 22 , 3, 22 }
  • 6. Example Let f : R −→ R where f(x)=2x. Let g : R −→ R where g(x)=x + 1. We have (f ◦ g)(x)=f(g(x))=2(x + 1) = 2x + 2. We have (g ◦ f)(x)=g(f(x))=2x + 1. Notice that f ◦ g=g ◦ f.
  • 7. Example Let f : R −→ R be defined as f(x) = sin x. Let g : R 0 −→ R be defined as g(x) = √ x. 1. Function composition g ◦ f is not defined because range(f) = [−1, 1,] contains negative numbers, not in domain(g). 2. Relation composition g ◦ f is defined and results in a partial function on R; g ◦ f : R −→ R such that (g ◦ f)(x) = √ sin x for x ∈ [2kπ, (2k + 1)π] where k ∈ Z. 3. Function composition f ◦ g is defined, and it is the same as relation composition f ◦ g. It results in a function f ◦ g : R 0 −→ R such that (f ◦ g)(x) = sin( √ x).
  • 8. Fact Let f, g be functions such that function composition g ◦ f is defined. Then: 1. domain(g ◦ f) = domain(f) 2. range(g ◦ f) ⊆ range(g) Exercise Let f, g be functions such that function composition g ◦ f is defined. 1. Disprove: domain(g ◦ f) = domain(g) 2. Disprove: range(g ◦ f) = range(g)