Basic Concept of Functions
Basic Concept of Functions
S M Mahmudul Hasan
Assistant Professor
Department of Mathematical
and Physical Sciences
smmahmudul.hasan@ewubd.edu
+8801403041207
• What is Function?
Functions
• Function Notation.
• Ways to Represent a Function.
1
6/11/2023
Relation
Let A and B be two non-empty sets. If each element of A is related
to one or more elements of B, then it is called a Relation.
Example: 𝑦 = 𝑥 i.e., 𝑦 = ± 𝑥 is a relation.
For 𝑥 = 1, 4, 9, … … … we get, 𝑦 = ±1, ±2, ±3, … … …
i.e., 𝑥, 𝑦 = 1, 1 , 1, −1 , 4, 2 , 4, −2 , 9, 3 , 9, −3 … … …
𝑥 𝑦
1
1 -1
2
4
-2
3
9
-3
Some Definitions-
A relation between two variables x and y is a set of ordered pairs
In general, any ordered pair in the coordinate plane can be written in the form (𝒙, 𝒚).
Independent variable
(𝒙, 𝒚)
Dependent variable
2
6/11/2023
Example
Is this a relation?
Input 3 –6 0 9 –1
Output –4 5
Function
Let A and B be two non-empty sets. If each element of A is related to unique
element of B, then it is called a function from the set A to B.
3 9
-3
3
6/11/2023
Function
Input Multiply input by 7 and Output
then subtract 2
Answer:
a) 5 × 7 − 2 = 35 − 2 = 33
b) −2 × 7 − 2 = −14 − 2 = −16
c) 𝑥 × 7 − 2 = 7𝑥 − 2
4
6/11/2023
Function Notation
• When we know that a relation is a function, the “y” in the equation can be
replaced with f(x).
Function Notation
Name of
Output Input
Function
5
6/11/2023
Identification Objectives
of Function • To determine if a relation is a function
𝐴 𝐵 • To identify function algebraically and graphically
𝑎
𝑏 3
𝑐
6
6/11/2023
Is a relation a function?
• When a relation is provided, concentrate on the x-coordinates.
Example 1
YES
7
6/11/2023
Example 2
{ (1 , 5 ), ( 1 , 0 ), ( 2 , 3 ), ( 3 , 4 ), (1 , 5 ), ( 2 , 1 )}
NO
•Is this still a relation?
YES
Example 3
Which relation mapping represents a function?
𝐴 𝐵 𝐴 𝐵
𝑎 𝑎
1. 3 𝑏 2. 𝑏 3
𝑐 𝑐
8
6/11/2023
Conclusion
Identifying functions
Look at the following
table:
For each input there is
Input Output
EXACTLY one output
5 12
10 22
You can notice that there is
15 32
NO REPEATATION in the
20 42 input column
25 52
9
6/11/2023
Identifying functions
Look at the following table:
Also Known As
Take a pencil and move it from left to right (–x to x); if it crosses more than one
point, it is not a function.
10
6/11/2023
Would this
graph be a
−𝑥 𝑥 function?
−𝑦
YES
No two points are on
the same vertical line.
Would this
graph be a
function?
NO
Two points are on the
same vertical line.
11
6/11/2023
Functions
Onto Function
One-to-one Correspondence
Into Function
𝐴 𝐵
Constant Function
𝑎 1 Identity Function
𝑏 2 Even Function
𝑐 3 Odd Function
𝑑 4
12
6/11/2023
One-to-one Function
Let 𝑓: 𝐴 ⟶ 𝐵 be a function. If distinct element of A has distinct images in B then
the function is called one-to-one function.
𝑎 1 𝑎 1
𝑒 2 𝑒 2
𝑖 3 𝑖 3
𝑜 4 𝑜 4
5 5
13
6/11/2023
Onto Function
Let 𝑓: 𝐴 ⟶ 𝐵 be a function. If all elements of the set B are images of the
elements of A then the function is called onto function.
𝐴 𝐵 𝐴 𝐵
𝑎 1 𝑎 1
𝑒 2 𝑒 2
𝑖 3 𝑖 3
𝑜 4 𝑜 4
𝑢 5
𝑎 1 𝑎 1 𝑎 1
𝑏 2 𝑏 2 𝑏 2
3
𝑐 4 𝑐 3 𝑐 3
𝑑 𝑑 4
One-to-one but not Onto but not one-to- One-to-one and onto
onto one
𝑎 1 𝑎 1
𝑏 2 𝑏 2
3
𝑐 3 𝑐 4
𝑑 4
Neither one-to-one nor onto Not a
function
14
6/11/2023
One-to-one correspondence
The function 𝑓: 𝐴 ⟶ 𝐵 is a one to one correspondence, if it is both one-to-
one and onto.
Such function is also called bijection.
𝐴 𝐵
𝑎 1
𝑏 2
𝑐 3
𝑑 4
Onto-to-one correspondance
Into Function
The function 𝑓: 𝐴 → 𝐵 is said to be into function if 𝑓 𝐴 ≠ 𝐵 that is the co-
domain of the function is not equal to the range of the function (hence, 𝐶𝑜𝑑 ≠
𝑅 ).
𝐴 𝐵
𝑎 1 Cod(f) = {1, 2, 3, 4, 5}
𝑒 2
𝑖 3 Range(f) = {1, 2, 5}
𝑜 4
5 Cod f ≠ Range f
Into function
15
6/11/2023
Constant function
Constant Function: A constant function is a function that has the same output value
no matter what your input value is. Symbolically, 𝑦 = 𝑓 𝑥 = 𝑘, where 𝑘 is a
constant, a single value that does not change.
Example: 𝑦 = 𝑓 𝑥 = 3 𝑦
=3
𝑥 𝑥 −2 −1 0 1 2
𝑦 𝑓(𝑥) 3 3 3 3 3
Identity function
Identity Function: Identity function is a function which gives the same value as
inputted. Symbolically, 𝑦 = 𝑓 𝑥 = 𝑥.
Identity Function
𝑥 𝑓(𝑥) 𝑥
Input Output
Graph: 𝑦 = 𝑓 𝑥 = 𝑥
𝑥 𝑥 −2 −1 0 1 2
𝑦 𝑓(𝑥) −2 −1 0 1 2
The range of the identity function is also the set of real numbers.
16
6/11/2023
1. 𝑓 𝑥 = −3𝑥 + 4
2. 𝑓 𝑥 = 2𝑥 − 4𝑥
3. 𝑓 𝑥 = 2𝑥 − 3𝑥 − 4𝑥 + 4
Inverse
Functions Objectives
D of 𝑓 R of 𝑓 • To be able to find inverse of functions
𝑓
𝑦=𝑓 𝑥
𝑥
𝑓
R of 𝑓 D of 𝑓
17
6/11/2023
𝑎 𝑓 1 1 𝑓 𝑎
𝑏 2 2 𝑏
𝑐 3 3 𝑐
18
6/11/2023
Existence of Inverse
This means that for each y-value there is only one x-value.
Solve for 𝑦
Rewrite 𝑦 as 𝑓 𝑥
19
6/11/2023
𝑥 = 6𝑦 − 12 Interchange 𝒙 and 𝒚
𝑥 + 12 = 6𝑦
𝑦= Solve for 𝒚
𝑦 =
∴𝑓 𝑥 =± Replace 𝒚 with 𝒇 𝟏 𝒙
20
6/11/2023
Composition Function
• A composite function is a combination of two functions.
• The output or results of one of the functions is used as the input to the other
function.
• The composition of the function f with the function g is written as 𝑓(𝑔(𝑥)), which is
read as ‘f of g of x.’
• In other words: 𝑓 ∘ 𝑔 𝑥 = 𝑓 𝑔 𝑥
Example
Evaluate Composites of Functions
f ( x) 3x 2 x 4
g ( x) 2 x 1
a) ( f g )( x ) b) ( g f )( x)
f ( g ( x )) g ( f ( x))
f ( 2 x 1)
g (3 x 2 x 4)
3(2 x 1) 2 ( 2 x 1) 4
2(3 x 2 x 4) 1
3(4 x 2 4 x 1) 2 x 1 4
12 x 2 12 x 3 2 x 5 6x2 2x 8 1
12 x 2 14 x 8 6x2 2x 7
21
6/11/2023
( f g )( x) g f x x,
f g x f g x g f x g f x
1 2 g 7 x 2
f x
7 7 1 2
1 2
7 x 2
7 x 2 7 7
7 7 2 2
x
x22 7 7
x x
They are inverses of one another since the
composition of each yields a value of x.
22
6/11/2023
0
0
2.25
1.5
𝒇 𝒙 = 𝒙𝟐
2 4
3.2 10.24
⋮ ⋮
The domain of a function is the set of The range of a function is the set of
possible inputs. possible outputs.
23
6/11/2023
Problem 1: Find the domain and range for the function f ( x) x 2 x 1, where x {0,1, 2, 3}.
Given that, f ( x) x 2 x 1
When x 0, f (0) 02 0 1 1
x 1, f (1) 12 1 1 1
x 2, f (2) 2 2 2 1 3
x 3, f (3) 32 3 1 7
1 x
Problem 2: Find the domain and range for the function f ( x) .
5 x
For Domain: 1 x
Clearly, f ( x) is not defined when x 5.
5 x
domain of f ( x) R {5} set of all real numbers except 5.
For Range:
1 x
Let y f ( x ) or , x(1 y ) 5 y 1
5 x
5 y 1
or , 1 x 5 y xy x
1 y
or , x xy 5 y 1 So, x is not defined for y 1.
24
6/11/2023
For Domain:
For Range:
Given that, y = 2𝑥 + 5
2𝑥 + 5 ≥ 0 2𝑥 = 𝑦 − 5
Domain
2𝑥 ≥ −5 𝑦 −5
𝑥= , y≥0
2
𝑥≥−
∴ 𝑅 = 0, ∞
∴ 𝐷 = − ,∞
R
R a
a R n
n a g
g n e
e g
e
25
6/11/2023
Piecewise Objectives
Functions To introduce the concept of piecewise functions.
To evaluate piecewise functions from a graph.
To evaluate piecewise functions from a function.
26
6/11/2023
Look at the graph to the right. Notice if you apply the vertical line
test it passes. Thus, it is a function.
The pieces look very different so how can a function model the
graph?
27
6/11/2023
28
6/11/2023
When asked to evaluate from a function, how Notice -2 falls in the first domain
do you know which equation to use? because it is less than 0.
Remember the number inside the Thus, use the first equation to
parentheses for 𝑓(−2) is the 𝑥. evaluate.
𝑓 𝑥 = 2𝑥 + 3
The right column in the piecewise function is
𝑓 −2 = 2 −2 + 3
the domain for each equation.
= −4 + 3
Find the domain in which the 𝑥 falls and use
that equation to evaluate the function. = −1
Therefore, 𝑓 −2 = −1
29
6/11/2023
This one is tricky. Notice the first domain is less than 0 and the second
domain is greater than or equal to 1. Because we need to evaluate
when 𝑥 is 0, no function exists for this domain.
Your turn:
2𝑥 + 1, 𝑥< 0
𝑓(𝑥) 2𝑥 + 2, 𝑥≥0
=
f(-2) = ? f(4) = ?
f(0) = ? f(-1) = ?
30
6/11/2023
Function
KEY WORDS
Table
Graph
31
6/11/2023
Definition of Function
63
Definition of Function
64
32
6/11/2023
66
33
6/11/2023
Example 1
67
Example 2
68
34
6/11/2023
Graphs of functions
69
70
35
6/11/2023
71
Example 3
Use vertical line test to determine which of the
following(s) is/are function(s).
(a) (b)
72
36
6/11/2023
73
Example 4
74
37
6/11/2023
Example 5
75
76
38
6/11/2023
EXAMPLE 6
78
39
6/11/2023
79
40
6/11/2023
EXAMPLE 7
41
6/11/2023
42
6/11/2023
COMPOSITION OF FUNCTIONS
43
6/11/2023
EXAMPLE 8
EXAMPLE 9
Sketch the graph of
Solution (a):
44
6/11/2023
Solution (b):
Solution (c):
45
6/11/2023
Home Assignment-1
x2 y2 4
1. Draw the graph of the equation and use
vertical line test to determine whether the equation
defines a function or not.
Date of submission:
Before Next Class
46