Main PPT Lesson-2
Main PPT Lesson-2
range = {-6,-2,3,5,9}
The range is the set of all y values in the relation
Example 1
Output –2
–2
–2 77
7
1 2
2 4
3 6
4 8
10
5
Domain (set of all x’s) Range (set of all y’s)
This relation can be written {(1,6), (2,2), (3,4), (4,8), (5,10)}
Ways of Presenting Relations
1. By a set of ordered pairs
ex. a. ( 2, 4 ) ,( -1, 3 ), ( 6,1 ), ( 5, 8 ), ( -3, 7 )
2. By arrow diagram/Mapping
a. 2 4
b.
1
-1 3 -2
3
6 1
-1
5 8
3. Table x y 4. Graph
2 4
-1 3
6 1
5 8
A relation may be viewed as
ordered pairs, mapping design,
table, equation, or written in
sentences
1 to 1
Relations and Functions
many to many
1 to many
Types of relations
1. One to one relation
Ex. a. Mother to father relation
b. ( 2, 4 ) ,( -1, 3 ), ( 6,1 ), ( 5, 8 ), ( -3, 7 )
2. One to many relation
Ex. a. Teacher to students relation
b. ( 3, 2 ), ( 3, -1 ), ( 3, 0 ), ( 3, -2 )
3. Many to one relation
Ex. A children to a father relation
1
3 -2
-1
One to one and many to one relations are functions.
Functions
1 2
2 4
3 6
4 8
10
5
Set A is the domain Set B is the range
This is a function ---it
meets our conditions Must use all the x’s
The x value can only be assigned to one y
Let’s look at another relation and decide if it is a function.
The second condition says each x can have only one y, but it CAN be the same y
as another x gets assigned to.
1
2
2
4
3
6
4 8
5 10
1 2
2 4
3
4 6
8
5 10
1
x y
5
1 5
2
6 2 6
3 7
3
7 4 6
4 (1, 5), (2, 6), (3, 7), (4, 6)
Are these relations or functions?
Not a Function but a
x y Relation
x y
1 5 1 5
1 6
6
1 7
2 7 2 5
Are these relations or functions?
x y Not a function
But a relation
1 5 x y
• 5
2 6 • 6
• 11
3 8
• 8
11
Exercise 1 :00
{(0, 5), (1, 4), (2, 3), ( 3, 2), (4, 1), (5, 0)}
{(–1, 7), (1, 0), ( 2, 3), (0, 8), (0, 5), (–2, 1)}
NO
Exercise 3 :40
3 –1 2 2
1 2 –1 3
0 3 3 –2
0
Choice 1
Exercise 4
Which mapping represents a function?
A. B.
B
Example 5
Which situation represents a function?
a. The items in a store to their prices on a certain date
b. Types of fruits to their colors
YES
Vertical Line Test
Would this graph be
a function?
NO
Graphs of Functions
y
b y
c y
a.
x
x x
d
a & d are not function while b & c are functions
f x 2x 3x 6
2
This means
The left side DOES NOT
the right
This means MEAN f times x like
hand side is
the right hand brackets usually do, it
a function
side has the simply tells us what is on
called f
variable x in it the right hand side.
Function Notation
f(x) means function of x and is read “f of x.”
f(x) = 2x + 1 is written in function notation.
f 2 22 32 6
not something you work. It 2
says that the right hand side is
the function f and it has x in it.
f 2 2 2 3 2 6
2
f 2 24 3 2 6 8 6 6 20
f 2 20
Don’t forget order of operations---powers, then
multiplication, finally addition & subtraction
Find f (k).
This means to find the function f and instead of
having an x in it, put a k in it.
f x 2 x 3x 6
2
f k 2k 3k 6
2
f k 2 k 3k 6 2k 3k 6
2 2
f k 2k 3k 6
2
f x 2 x 3x 6
in it, put a 2k in it.
2
f 2k 2 4k 32k 6 8k 6k 6
2 2
f 2k 8k 6k 6
2
g(-2) = – 3x2
g(-2) = (-2) – 3
2
g(-2) = 1
Let's try a new function g x x 2 x
2
g 4 4 2 4 16 8 24
2
So g 1 g 4 1 24 23
Evaluating Functions
Given f(x) = 2 x 2 3 x , the following.
a. f(3) c. f(3x)
f(3) = 2x2 – 3x
f(3) = 2(3)2 – 3(3) f(3x) = 2x2 – 3x
f(3) = 2(9) - 9 f(3x) = 2(3x)2 – 3(3x)
f(3) = 9 f(3x) = 2(9x2) – 3(3x)
b. 3f(x) f(3x) = 18x2 – 9x
3f(x) = 3(2x2 – 3x)
3f(x) = 6x2 – 9x
Try this!
1. If f(x) = 2x - 3. find x, if f(x) = 14. If f(x) = 5𝑥, evaluate f(5)
For each function, evaluate f(0), f(1.5), f(-4),
f(0) = 3
f(1.5) = 4
f(-4) = 4
For each function, evaluate f(0), f(1.5), f(-4),
f(0) = 1
f(1.5) = 3
f(-4) = 1
49
Operations on
Functions
A. Functions expressed in ordered pairs.
Ex. If f = {(0, 1), (2, 3), (4, 1)}
g = {(0, 3), (1, 2), (2, -1), (-2, 5) }
• f + g = {(0, 4), (2, 2)}
• f . g = {(0, 3), (2, -3)}
• f - g = {(0, -2), (2, 4)}
How to perform operation on functions
expressed in ordered pairs?
Operations on Functions
Adding
f x g x f g x
f x g x f g x
Subtracting
Multiplication
f x g x f g x
Division
f x f
x g ( x ) 0
g x g
B. Functions in equation form
The sum f + g
f g x f x g x
find the sum of two functions, add them together.
You should simplify by finding like terms.
f x 2 x 3
2
g x 4 x 1
3
( f g )( x) 2 x 3 4 x 1
2 3 Combine
like terms
4x 2x 4
3 2
The difference f - g
f g x f x g x
subtract the first from the second. CAUTION: Make sure
you distribute the – to each term of the second function.
You should simplify by combining like terms.
f x 2 x 3
2
g x 4 x 1
3
f g 2x 3 4x 1
2
3
Distribute
negative
2 x 3 4 x 1 4 x 2 x 2
2 3 3 2
The product f • g
f g x f x g x
To find the product of two functions, put parenthesis
around them and multiply each term from the first
function to each term of the second function.
f x 2 x 3
2
g x 4 x 1
3
f g 2x 3 4x 1
2
3
FOIL
8x 2 x 12x 3
5 2 3
The quotient f /g
f f x
x
g g x
To find the quotient of two functions, put the first one
over the second.
f x 2 x 32
g x 4 x 1
3
g x 2 x x 1
2
Find f g x f ( x ) g ( x )
3x 7x 2x x 1
2 2
3x 7x 2x x 1
2 2
3 2x 7 1x 1
2
5x 6x 1
2
Given f x 3x 7 x
2
Find g x 2 x x 1
2
f g x
Given f x 3x 7 x2
Find g x 2 x x 1
2
f g x
3x 7 x 2 x x 1
2 2
3x 7 x 2 x x 1
2 2
3 2x 7 1x 1
2
x 8x 1
2
Given f x 3x 2 x 1
2
g x x 4
Find f g x f x g x
3x 2 x 1 x 4
2
3x 3
2 x x 12 x 8 x 4
2 2
3x 2 x 12 x x 8 x 4
3 2 2
3x 14 x 9 x 4
3 2
f x 3x 2 x 1
2
Given
g x x 4
Find f x f x
g x
g
f x 3x 2 x 1
2
Given
g x x 4
Find f x f x
g x
g
3x 2 x 1
2
x 4 0
x4
Examples:
1.f(x) = 3x + 1, g(x) = 2x – 3,
h(x) = 2x2 + 4x – 1
Find f + g, f –g, f . g, h + f, g + h.
a. f + g = f(x) + g(x) b. f – g = f(x) – g(x)
= (3x + 1) + (2x - 3) = (3x + 1) – (2x – 3)
f + g = 5x – 2 = 3x +1) - 2x + 3
c. f . g = f(x) . g(x) f – g = x + 4
= (3x +1)(2x -3)
= 6x2 – 9x + 2x – 3
= 6x2 – 7x - 3 d. h +f = h(x) . f(x)
= (2x2 + 4x – 1)(2x -3)
= 4x3 + 8x2 - 2x – 6x2 -12x +3
= 4x3 + 2x2 -14x +3
Composition of
Functions
A composite function
f g
x
g
g(x)
domain of g
f range of f
range of g
f(g(x))
domain of f
65
A different way to look at it…
x f g x
f
g Machine
x
gFunction
Function
Machine
66
Composition of functions
• Composition of functions is the successive application
of the functions in a specific order.
g(f(x))= g(3x+1)
= (3x+1)-5
g(f(x)) = 3x - 4
Composition of Functions
Given two Functions. f(x) = 2x + 1
g(x) = x – 3
a.f(g(x))=2(x – 3)+1
f(g(x))=2x – 6+1= 2x – 5
so [f ○ g](x)= 2x – 5
b. g(f(x))=(2x + 1) – 3 = 2x – 2
so [g ○ f ](x) = 2x -2
1.f(x) = 3x + 1, g(x) = 2x – 3, h(x) = 2x2 + 4x – 1
Find f o g, g o f, f o g(-1), g o g, h o f, g o f(2),
f o h(0),
Remember that f o g = f(g(x))
a. fo g = f(g(x))
= f(2x – 3) , substitute the equation g(x)
= 3(2x – 3) + 1, substitute g(x) in f & simplify
= 6x -9 + 1
= 6x - 8 c. f(g(-1)) = f{2(-1) – 3}
Therefore f o g = 6x -8 = f(-2-3)
b. g o f = g(f(x)) = f(-5)
= g(3x +1) =3(-5) + 1
= 2(3x + 1) - 3 = -15 + 1
= 6x +2 – 3 F(g(-1)) = -14
= 6x - 1
Try this!
2
1. Given h(x) = (2𝑥 + 3) and k(x) = 𝑥, find
k(h(x))
Total number of miles to travel = 440 miles The length of time/ number of hours needed to
Number of miles already travelled = 275 miles travel the remaining distance to reach the
Rate of Speed = 55 miles per hour destination.
Example No. 2
You are driving to visit a friend in another state who lives 440 miles away.
You are driving 55 miles per hour and have already driven 275 miles. Write
and solve an equation to find how much longer in hours you must drive to
reach your destination.
• Oronce, Orlando A.. (2016). General Mathematics. Pasig City: Rex Printing Company, Inc.
• Verzosa, D.M.B., Crisologo, L.A.A., Hao, L.C. et al. (2016). Teaching Guide for Senior High
School General Mathematics. Quezon City: Commission on Higher Education