SlideShare a Scribd company logo
2
Most read
6
Most read
7
Most read
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

PDF
5.1 Defining and visualizing functions. Dynamic slides.
PDF
5.1 Defining and visualizing functions. A handout.
PDF
1.8 Separation schema
PDF
4.1 Defining and visualizing binary relations
PDF
4.4 Set operations on relations
PPTX
9 the basic language of functions x
PDF
Solution Manual for Contemporary Engineering Economics 5th edition by Chan S....
PDF
2.9 Cartesian products
5.1 Defining and visualizing functions. Dynamic slides.
5.1 Defining and visualizing functions. A handout.
1.8 Separation schema
4.1 Defining and visualizing binary relations
4.4 Set operations on relations
9 the basic language of functions x
Solution Manual for Contemporary Engineering Economics 5th edition by Chan S....
2.9 Cartesian products

What's hot (20)

PPTX
13 graphs of factorable polynomials x
PPT
Section 3.3 quadratic functions and their properties
PPT
25 surface area
PDF
3.2 Power sets
PPTX
12 graphs of second degree functions x
PPTX
Relasi dan Fungsi
PPTX
17 conic sections circles-x
PDF
4.5 Inverse relation
PPT
28 work and line integrals
PDF
Cours integrale riemann
PPTX
21 properties of division and roots x
PDF
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)
PPTX
2.3 continuous compound interests
PPTX
23 looking for real roots of real polynomials x
PPTX
20 methods of division x
PDF
metric spaces
PDF
Generating functions (albert r. meyer)
PDF
Section 8.2
PPT
Rate of change and tangent lines
13 graphs of factorable polynomials x
Section 3.3 quadratic functions and their properties
25 surface area
3.2 Power sets
12 graphs of second degree functions x
Relasi dan Fungsi
17 conic sections circles-x
4.5 Inverse relation
28 work and line integrals
Cours integrale riemann
21 properties of division and roots x
Lesson 14: Derivatives of Logarithmic and Exponential Functions (slides)
2.3 continuous compound interests
23 looking for real roots of real polynomials x
20 methods of division x
metric spaces
Generating functions (albert r. meyer)
Section 8.2
Rate of change and tangent lines
Ad

Similar to 5.2. Function composition (20)

PDF
Functions 2
PPTX
The Algebric Functions
PPTX
4 2 operations on functions
PPTX
composite functions
PDF
Functions JC H2 Maths
PPTX
3_Operations_onfffffffffffffffffffffff_Functions.pptx
PPT
Operations on Functions
PPTX
The _Operations_on_Functions_Addition subtruction Multiplication and Division...
PDF
5.8 Permutations (dynamic slides)
PPTX
3_Operations_on_Functions0000000000.pptx
PPTX
3_Operations_on_Functions...........pptx
PPT
Functions by mstfdemirdag
DOCX
Basic Calculus.docx
DOCX
PPTX
Functions
PDF
Functions as Relations
PPT
Functions
PDF
Operations on Functions.pdf
PDF
Best Approximation in Real Linear 2-Normed Spaces
PPTX
Composition and inverse of functions
Functions 2
The Algebric Functions
4 2 operations on functions
composite functions
Functions JC H2 Maths
3_Operations_onfffffffffffffffffffffff_Functions.pptx
Operations on Functions
The _Operations_on_Functions_Addition subtruction Multiplication and Division...
5.8 Permutations (dynamic slides)
3_Operations_on_Functions0000000000.pptx
3_Operations_on_Functions...........pptx
Functions by mstfdemirdag
Basic Calculus.docx
Functions
Functions as Relations
Functions
Operations on Functions.pdf
Best Approximation in Real Linear 2-Normed Spaces
Composition and inverse of functions
Ad

More from Jan Plaza (20)

PDF
6.3 Equivalences versus partitions
PDF
6.1 Partitions
PDF
6.2 Reflexivity, symmetry and transitivity (dynamic slides)
PDF
6.2 Reflexivity, symmetry and transitivity (handout)
PDF
5.8 Permutations (handout)
PDF
5.7 Function powers
PDF
5.6 Function inverse. A handout.
PDF
5.6 Function inverse. Dynamic slides.
PDF
5.5 Injective and surjective functions. A handout.
PDF
5.5 Injective and surjective functions. Dynamic slides.
PDF
5.3 Basic functions. A handout.
PDF
5.3 Basic functions. Dynamic slides.
PDF
1.4 Abstract objects and expressions
PDF
1.2 Axiom of pair
PDF
1.11 Mathematical induction
PDF
1.7 The sets of numbers
PDF
1.6 Subsets
PDF
1.1 Notions of set and membership
PDF
4.7 Powers of binary relations
PDF
4.6 Relative product and composition
6.3 Equivalences versus partitions
6.1 Partitions
6.2 Reflexivity, symmetry and transitivity (dynamic slides)
6.2 Reflexivity, symmetry and transitivity (handout)
5.8 Permutations (handout)
5.7 Function powers
5.6 Function inverse. A handout.
5.6 Function inverse. Dynamic slides.
5.5 Injective and surjective functions. A handout.
5.5 Injective and surjective functions. Dynamic slides.
5.3 Basic functions. A handout.
5.3 Basic functions. Dynamic slides.
1.4 Abstract objects and expressions
1.2 Axiom of pair
1.11 Mathematical induction
1.7 The sets of numbers
1.6 Subsets
1.1 Notions of set and membership
4.7 Powers of binary relations
4.6 Relative product and composition

Recently uploaded (20)

PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Cell Types and Its function , kingdom of life
PDF
RMMM.pdf make it easy to upload and study
PPTX
Institutional Correction lecture only . . .
PDF
Computing-Curriculum for Schools in Ghana
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Classroom Observation Tools for Teachers
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Presentation on HIE in infants and its manifestations
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
VCE English Exam - Section C Student Revision Booklet
Cell Types and Its function , kingdom of life
RMMM.pdf make it easy to upload and study
Institutional Correction lecture only . . .
Computing-Curriculum for Schools in Ghana
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Complications of Minimal Access Surgery at WLH
Pharmacology of Heart Failure /Pharmacotherapy of CHF
2.FourierTransform-ShortQuestionswithAnswers.pdf
GDM (1) (1).pptx small presentation for students
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Classroom Observation Tools for Teachers
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Presentation on HIE in infants and its manifestations

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)