3 Functions Annotated
3 Functions Annotated
Functions
1
Outline
1 Introduction - Relations
2 Functions
4 Inverse functions
2
Introduction - Relations
Relations
What is a function?
Let X and Y be two sets. A function f from X to Y is a rule
which assigns to each element of X one element of Y .
This means that each object x ∈ X has an image y ∈ Y . We write
f ∶X →Y.
We may also denote the function by x � f (x), or y = f (x).1 This
last notation is very common.
1
The expression f (x) is read ”f of x”, to emphasize that the rule f operates on the variable x
5
What is a Function?
IR 11
f
7370 5)2
2 : >
-
73 5)
.
=
.
x > X
We can represent functions with a diagram as follows: -
-
4- 3 . 5 -3 ,
-1
;
1
,
0
,
0 .
5 .
1
,
#t ...
,
·
(3 s) ( 3 (0 s)]
-
= + 2 9 1
16 12 .
,
,
4 ,
0 0 .
23
, ,
,
( -
3) + (3) (o -
5)
&
Xs
~
=
5) (0 5) ~
I
(3)( -
3)
s
I
+
- ·
o
+
-
&
X + ·
Y2
(a + b) =
a + 2ab + 3
+. Not 2
the
6
Functions
Y = AL↵ K 1−↵
8
Domain and Range of a Function
Note that the domain and range depend on the function f . Consider the functions
f ∶ R → R given by f (x) = x and g ∶ R → R given by g(x) = 1�x.
9
The Graph of a Function
10
The Graph of a Function
11
The Graph of a Function
12
Injective, Surjective, and Bijective
Functions
Injective and Surjective Functions
2
We sometimes say f is one-to-one
13
Injective and Surjective Functions
Example 3
Determine which of the following functions are injective:
● f (x) = x3
● g(x) = 1 − x2
● h(x) = 2x + 5
● k(x) = sin x
17
Injective and Surjective Functions
Graph of x3
18
Injective and Surjective Functions
Graph of x3 − x
19
Bijective Functions
20
Composition of Functions
21
Composition of Functions
f (x) = x2 , g(x) = 2x − 1
√
1
2 f (x) = x, g(x) = x + 3
3 f (x) = 1
x+1 , g(x) = 1
x
5
The order of composition matters!
22
Inverse functions
Inverse Functions
IX ∶ X → X, IX (x) = x, and
IY ∶ Y → Y, IY (y) = y
We can denote the identity function by IdX or 1X .
Suppose f ∶ X → Y is a bijective function. Then there exists a
unique function g ∶ Y → X such that g ○ f = 1X and f ○ g = 1Y .
23
Inverse Functions
√
f (x) = x3 and g(x) = 3
x
25
Inverse Functions
26
Finding Inverses
27
Finding Inverses
Example 6
Find the inverse of the following functions:
1 f (x) = 3x + 1
f (x) =
1
x−1
2
1+x
3 f (x) =
x
f (x) = 1 −
1
1+x
4 .
28
29
29
29
29
29
29