Professional Documents
Culture Documents
Unctions: Course Material
Unctions: Course Material
FUNCTIONS
This section introduces concepts on functions, their notations,
and graphs. This discusses in detail the several types of function
such as the linear, quadratic and piecewise function. This also
tackles how to sketch the graph.
A rich variety of illustrative examples with a step by step solution are also provided especially in
sketching the graphs of different types of functions.
At the end of this module, you are expected to construct mathematical models of real-life situations
using pattern based thinking.
The set containing all the values of the first set is called the domain of the relation. The elements of the
domain can be imagined as input to a machine that applies a rule to these inputs to generate one or more
outputs.
1 1
2 4
3 9
4 16
5 25
Situation 1:
Here is a table showing the ordered pair, domain, and range from figure 1.
Situation 2:
Two students named Gemille and Jasmine go to the vending machine to buy for their morning
break. Gemille buys French fries, popcorn, lemon juice while Jasmine buys burger, fruit salad, and
water.
2. One-to-many relationship
Figure 2. Relationship between the student and their food for
morning break
Here, Gemille and Jasmine are the x-values or the domain
while the lists of foods next to them are the y-values or the
range. This example gives us a one-to-many relationship
wherein you have one x-value, but it has two or more y-
values.
Ordered
Pairs
Domain
Range
Situation 3:
Let us say there are two slots right next to each other in the
vending machine that both hold burgers. You can choose
either A3 or E3 and both codes will let you buy a burger.
3. Many–to-one relationship
Can you determine the ordered pair in the 3 about the domain and range? Try it!
Ordered Pairs
Domain
Range
A function is a relation where each element in the domain is related to only one value in the range by
some rule.
In terms of ordered pairs, A function is a set of ordered pairs (x; y) such that no two ordered pairs
have the same xvalue but different y-values.
Figure 2
Figure 3 gives us a combination of one-to-one relationship
and one-to-many relationship. There is an arrow drawn from
C3 to fruit salad. That means when you enter C3, you get a
cup of fruit salad. That is fine. There are two arrows drawn
from D4 to a water bottle and an Orange. You will never have
a function that has two arrows coming from the same input
Figure 3 value. A function must give only one output value for each
input value. Hence, it is not a function.
EXAMPLE:
Which of the following relations describe y as a function of x?
a. 𝑅 = {(−2,1),(1,3),(1,4),(3,−1)}
b. 𝑆 = {(−2,1),(1,3),(2,3),(3,−1)}
Solution
A quick scan of the points in R reveals that the x- coordinate 1 is matched with two different y-
coordinates: namely 3 and 4. Hence, R is not a function of x.
Graph of S
Graph of R
If the vertical line intersects the graph more than once, this suggests that a single x-value is being
associated with more than one value of y. This condition causes the relation to be “disqualified” or not
considered as a function.
Functions are often denoted by any letter in the English alphabet of Greek character. Most used are
𝑓, 𝑔, ℎ, 𝐹, 𝐺, 𝐻, 𝜙, 𝜃.
Functions are written as
𝑓(𝑥) = 𝑦
where 𝑓 is the function, 𝑥 is the independent variable and 𝑦 is the dependent variable. Usually, 𝑦 is
expressed as an equation that represents the relation of the independent variable to the dependent
variable.
A relation is any set of ordered pairs (x, y). The set of all first components of ordered pairs called
the domain of the relation and set of all second components is called range.
Example 1. Find the domain and range of the following functions in ordered pair notation.
1. 𝑓 = {(1,3), (2,4), (5, 7), (6, 8)}
Solution:
Domain: {1, 2, 5, 6}
Range: {3, 4, 7, 8}
2. 𝑔 = {(−2,4), (−1,1), (−2, 0), (1, 5), (2, −2)}
Solution:
Domain: {−2, −1, −2, 1, 2}
Range: {4, 1, 0, 5, −2}
Examples:
Find the domain and range of the following functions in ordered pairs.
1. 𝑓 = {(1,3), (3,7), (5,11), (7,15)}
Domain:
Range:
2. 𝑔 = {(3,5), (4,7), (5,9), (6,11), (7,13)}
Domain:
Range:
Linear function is a function of first-degree polynomial that are of the form 𝑓(𝑥) = 𝑎𝑥 + 𝑏 , where
𝑎,𝑏,𝑎𝑟𝑒 𝑐𝑜𝑛𝑠𝑡𝑎𝑛𝑡𝑠 𝑎𝑛𝑑 𝑎 ≠ 0.
Domain: ℝ Range: ℝ
Polynomial function is any function 𝑓(𝑥) of the form 𝑓(𝑥) = 𝑐𝑛𝑥𝑛 + 𝑐𝑛−1𝑥𝑛−1 + ⋯+ 𝑐1𝑥 + 𝑐0.
Domain: ℝ Range: ℝ
Piecewise Function
A piecewise function is a function in which more than one formula is used to define the output. Each
formula has its own domain, and the domain of the function is the union of all these smaller domains.
A piecewise defined function is a function defined by at least two equations ("pieces"), each of which
applies to a different part of the domain. Piecewise defined functions can take on a variety of forms.
Their "pieces" may be all linear, or a combination of functional forms (such as constant, linear,
quadratic, cubic, square root, cube root, exponential, etc.).
THE BOOK LOUNGE PH | 8
Guide in writing Piecewise Function
Identify the intervals for which different rules apply
Determine formulas that describe how to calculate an output from an input in each interval.
Use braces and if-statements to write the functions.
Examples: Read each problem carefully. Write a function relation to each problem and solve for x if
possible.
a. An air conditioning salesperson receives a base salary of P18,850 per month plus a commission.
The commission is 2% of the sales up to and including P100,000 for the month and 5% of the sales
over P100,000 for the month. Write a piecewise function that relates the salesperson's total
monthly income based on the sales of the month.
Determine the salesperson's monthly income if his sales were P143,000.00 for the month.
• Write a piecewise function that relates the salesperson's total monthly income based on the
sales of the month.
• Determine the salesperson monthly income if his sales were P143,000.00 for the month.
Solution:
Write a piecewise function that relates the salesperson's total monthly income based on the sales of
the month.
Identify the intervals for which different rules apply.
1. If the sales per month is less than or equal to P100,000.00
2. If the sales per month is greater than P100,000.00
Determine formulas that describe how to calculate an output from an input in each interval.
1.If the sales per month is less than or equal to P100,000.00 a salesperson will receive.
✔ the base salary P18,850.00
✔ 2% of the commission (multiply 2% to the total sales) Then,
𝑓1(𝑥) = 𝑃18,850 + 2%(𝑥) (add the base pay and commission)
𝑓1(𝑥) = 𝑃18,50𝟎 + 0.02𝑥 (2% = 0.02)
2. If the sales per month is greater than P100,000.00, a salesperson will receive;
✔ the base salary P18,850.00 plus
✔ 2% of the sales up to and including P100,000 for the month
✔ 5% of the sales over P100,000 for the month. Then
𝑓2(𝑥) = 𝑃18,850 + 2%(𝑃100,000.00) + 5%(𝑥
− 𝑃100,000.00)
𝑓2(𝑥) = 𝑃18,850 + 𝑃2,000.00 + 0.05𝑥 – 𝑃5,000.00
𝑓2(𝑥) = 𝑃18,850 + 𝑃2,000.00 + 0.05𝑥 – 𝑃5,000.00
𝑓2(𝑥) = 𝑷𝟏𝟓, 𝟖𝟓𝟎 + 𝟎. 𝟎𝟓𝒙
Determine the salesperson monthly income if his sales were P143,000.00 for the month.
Since sales is more than P100,000.00, we will use the 2nd formula.
A salesperson will receive P23,000.00 income if he will be able to acquire P143,000 total sales in a
month.
b. A museum charges P50.00 per person for a guided tour with a group of 1-9 people or a fixed
P500.00 fee for a group of 10 or more people.
• Write a function relating the number of people, 𝑛, to the cost C.
• How much would it cost if a group of 8 people entered the museum?
Solution:
Write a function relating the number of people, 𝒏, to the cost C.
Identify the intervals for which different rules apply.
1. If a group of 1-9 people enters the museum
2. If a group of 10 or more people
Determine formulas that describe how to calculate an output from an input in each interval.
1. If a group of 1 – 9 people enters the museum, they will play
P50.00 each
Then,
𝑓1(𝑥) = 𝑃50.00𝑥
2. If a group of 10 or more people.
Then
𝑓2(𝑥) = 𝑃500.00
Use braces and if-statements to write the functions.
f x1( )
f x( )
f2( )x
y = Fair
x = Kilometers
Notice that when x is between 1 and 4, the value of 𝑓(𝑥) does not change into P8.00. This is
because we used the 1st formula. While in x is more than 4, we used the second formula.
Solutions: At the very beginning, when 𝑥 = 0, Laurel has not bought any new hats yet, but she
already owns 3 hats, so 𝑦 = 3. Hence, if 𝑥 = 0, then 𝑦 = 3 or 𝑓(0) = 3.
After the first month, when 𝑥 = 1, Laurel owns 3 hats, plus the 1 hat she just bought. She now owns
𝑦 = 3 + 1 hat or 𝑓 (1) = 3 + 1.
After the second month, when 𝑥 = 2, Laurel owns 3 hats, plus the 2 new hats she bought after she
started collecting hats. She now owns 𝑦 = 3 + 2 hats or 𝑓(2) = 3 + 2.
Notice that the number of months is also the number of hats added to the original number. So based
on the recognized pattern, we have f x x ( ) 3 = + where 𝑥 represents the number of months.
To answer the previous question, how many hats Laurel owns after 10 months, we can use
evaluating a function to give the answer.
If 𝑥 = 10, then 𝑓(10) = 10 + 3 = 13.
b. At Joe's pizzeria, a pizza costs P250 with the first topping, and then an additional P75 for each
additional topping. If x represents the number of toppings on a pizza, what function represents the
cost of a pizza with at least one topping? How much would it cost me if will buy a pizza with 5
toppings?
b. At the very beginning, when Joe buys a pizza, it already has 1 topping. It means, when Joe pays
P250.00, 𝑥 = 1. Hence, if 𝑥 = 1, then 𝑦 = 250 or 𝑓(1) = 𝑃250. After an additional topping, when
𝑥 = 2, Joe needs to play P250, plus P75.00 for the additional topping. Hence, if 𝑥 = 2, then 𝑦 = 𝑃250
+ 𝑃75.00 or 𝑓(2) = 𝑃250 + 𝑃75.00.
After 2 additional toppings, when 𝑥 = 3, Joe needs to play P250, plus two P75.00 for the additional
toppings
Hence, if 𝑥 = 3, then 𝑦 = 𝑃250 + (𝑃75.00 ∙ 2) or 𝑓(2) = 𝑃250 + (𝑃75.00 ∙ 2).
If you will add another topping, notice that the multiplier of P75.00 changes based on the number of
additional topping. Now we can write the function.
𝑓(𝑥) = 𝑦 = 𝑃250 + (𝑃75.00 ∙ 𝑎𝑑𝑑𝑖𝑡𝑖𝑜𝑛𝑎𝑙 𝑡𝑜𝑝𝑝𝑖𝑛𝑔)
Note that x represents the number of toppings, therefore, to compute the number of additional
topping, we need to subtract 1 on the total for the number of additional topping, we need to subtract
1 on the total number.
Simplifying it. 𝑓(𝑥) = 𝑦 = 𝑃250 + [𝑃75.00(𝑥 – 1)] 𝑓(𝑥) = 𝑦 = 𝑃250 + 𝑃75.00𝑥 − 𝑃75.00 𝑓(𝑥) = 𝑦 =
𝑃75.00𝑥 + 𝑃175.00 where x represents the number of toppings.
To answer the previous question, how much would it cost if Joe will buy a pizza with 3 toppings, we
can use evaluating a function to give the answer. If 𝑓(𝑥) = 𝑃75.00𝑥 + 𝑃175.00 and 𝑥 = 5, then
𝑓(5) = 𝑦 = 𝑃75.00(5) + 𝑃175.00 𝑓(5) = 𝑦 = 𝑃375.00 + 𝑃175.00 𝑓(5) = 𝑦 = 𝑃550.00
● Operation of Functions
Let f and g be functions in x,