Handout - Functions and Operations o Functions
Handout - Functions and Operations o Functions
GENERAL MATHEMATICS
Session 1: Functions and Operation on Functions
Recall
A relation is a set of ordered pairs. The domain of a relation is the set of first coordinates. The range is the set
of second coordinates.
Ex. (2, 10)
Domain Range
A function is a relation in which each element of the domain corresponds to exactly one element of the range.
This is denoted by y = f (x).
Concept of Function
A function is a set of ordered pairs (x, y) such that no two ordered pairs have the same x-value but different y-
values. Using functional notation, we can write f(x) = y, read as “f of x is equal to y.” In particular, if (1, 2) is an
ordered pair associated with the function f, then we say that f(2)=1.
On the other hand, the vertical line test can be used to identify if the graph is a function. A graph represents a
function if and only if each vertical line intersects the graph at most once.
x 0 1 2 3 4 5
y 1 3 5 7 9 11
EXAMPLE 6.
A school’s fair committee wants to sell t-shirts for their school fair. They found a supplier that sells t-shirts at
a price of P175.00 a piece but can charge P15, 000 for a bulk order of 100 shirts and P125.00 for each excess t-
shirt after that. Use a piecewise function to represent the cost in terms of the number of t-shirts purchased.
.
175𝑥 , 𝑖𝑓 0 < 𝑥 ≤ 99
𝑓(𝑥) = { 15,000 , 𝑖𝑓 𝑥 = 100
15000 + 125(𝑥 − 100), , 𝑖𝑓 𝑥 > 100
EXAMPLE 7.
The fee to park in the parking lot of a shopping mall costs P40.00 for the first two hours and an extra P10.00
for each hour (or a fraction of it) after that. If you park for more than twelve hours, you instead pay a flat rate of
P200.00. Represent your parking fee using the function p (t) where t is the number of hours you parked in the
mall.
a. Write the piecewise function
40 , 𝑖𝑓 0 < 𝑡 ≤ 2
p (t)={40 + 10(𝑡 − 2) , 𝑖𝑓 2 < 𝑡 ≤ 12
200 , 𝑖𝑓 𝑡 > 12
b. Find p (3) and p (13)
p (3) = 40 +10(3-2) p(13) = 200
=40+10
p (3) =50
EVALUATING FUNCTIONS
EXAMPLE 8.
Evaluate the following functions at x=-4
3
a. f(x) = x-10 b. g(x) = -2x2-9x+21 c. h(x) = √ 𝑥 2 + 𝑥 + 15 𝑥 2+1
d. p(x) = 𝑥−4
f (-4) = -4-10 g (-4) = -2(-4)2-9(-4)+21 3
h (-4) = √ (−4)2 − 4 + 15 (−4)2 +1
f (-4) = -14 g (-4) = 25 3 p (-4) = −4−4
h (-4) = √ 27 17
h (-4) = 3 p (-4) = − 8
EXAMPLE 9.
a. Given 𝑝(𝑡) = −8𝑡 − 5, evaluate the function 𝑝(3𝑡 − 1). (t = 3t – 1)
Solution:
𝑝(𝑡) = −8𝑡 − 5,
𝑝(3𝑡 − 1) = − 8(3𝑡 − 1) − 5
𝑝(3𝑡 − 1) = − 24𝑡 + 8 − 5
𝑝(3𝑡 − 1) = − 24𝑡 + 3
b. Given 𝑓 (𝑥) = −𝑥 2 + 𝑥 − 3, evaluate the function 𝑓(2𝑥 − 2). (x = 2x – 2)
Solution:
𝑓 (𝑥) = −𝑥 2 + 𝑥 − 3
𝑓 (2𝑥 − 2) = −(2𝑥 − 2)2 + (2𝑥 − 2) − 3
𝑓 (2𝑥 − 2) = −(4𝑥 2 − 8x + 4) + (2x − 2) − 3
𝑓 (2𝑥 − 2) = −4𝑥 2 + 8x − 4 + 2x − 2 − 3
𝑓 (2𝑥 − 2) = −4𝑥 2 + 10x − 9
OPERATIONS ON FUNCTIONS
Definition:
Let f and g be functions.
EXAMPLE 11.
Given 𝑓 (𝑥) = 𝑥 2 − 4𝑥 + 3, and 𝑔(𝑥) = 3𝑥 − 1.
Find a.(𝑓 ∘ 𝑔)(𝑥), b. (𝑔 ∘ 𝑓)(𝑥), and c. (𝑔 ∘ 𝑓)(3)
c.(g∘f)(3) = g(f(3))
= g(0)
= 3(0)-1
(g∘f)(3) = -1
.
Seatwork:
1. Given 𝑓(𝑥) = 6𝑥 2 − 10 and𝑔(𝑥) = 7𝑥 + 11. Find(𝑓 + 𝑔)(𝑥), (𝑓 − 𝑔)(𝑥), (𝑓 ∙ 𝑔)(𝑥), (𝑓/𝑔)(𝑥), and (g ∘
f)(x).
2. Randy wants to determine the relationship of internet usage in the café and the hourly surfing rate. He has
the following information:
• The cost of one-hour internet surfing is PHP 15.00
• He wants to determine the number of hours of internet surfing he could use with PHP 30.00 in his
pocket.
• He wants to completely utilize 4 hours of internet surfing.
• He ascertains to pay PHP 90.00.
3. A hotel has a special promo for their non-air conditioned room (good for two people). It charges Php 1500
for a maximum stay of two nights and Php 500 for each additional night’s stay. The total cost T is a function of
the number of nights x that a guest stays.
Write a piecewise function.
Find T(2), T(3), and T(5).