Functions Autosaved
Functions Autosaved
Solution.
Since each meal costs 𝑃40, then the cost
function is 𝐶(𝑥) = 40𝑥.
Example
One hundred meters of fencing is available to
enclose a rectangular area next to a river (see figure).
Give a function 𝐴 that can represent the area that
can be enclosed, in terms of 𝑥.
Solution.
The area of the rectangular enclosure is 𝐴 =
𝑥𝑦. We will write this as a function of 𝑥. Since
only 100 m of fencing is available, then
𝑥 + 2𝑦 = 100 or
𝑦 = (100 – 𝑥)/2.
= 50 – 0.5𝑥
Thus,
𝐴(𝑥) = 𝑥(50 – 0.5𝑥)
= 50𝑥 – 0.5𝑥 2
Piecewise functions.
Some situations can only be described by
more than one formula, depending on the
value of the independent variable.
Example
A user is charged 𝑃300 monthly for a particular
mobile plan, which includes 100 free text
messages. Messages in excess of 100 are
charged 𝑃2 each. Represent the monthly cost for
text messaging using the function 𝑡(𝑚), where
𝑚 is the number of messages sent in a month.
Solution.
The cost of text messaging can be expressed by
the piecewise function:
300 , 𝑖𝑓 0 < 𝑚 ≤ 100
𝑡 𝑚 =ቊ
300 + 2(𝑚 − 100) , 𝑖𝑓 𝑚 > 100
Example
A jeepney ride costs P8.00 for the first 4
kilometers, and each additional integer
kilometer adds P1.50 to the fare. Use a
piecewise function to represent the jeepney
fare in terms of the distance (𝑑) in
kilometers.
Solution.
The input value is distance and the output is the
cost of the jeepney fare. If 𝐹(𝑑) represents the
fare as a function of distance, the function can be
represented as follows:
8 , 𝑖𝑓 0 < 𝑑 ≤ 4
𝐹 𝑑 =ቊ
8 + 1.50(𝑑 − 4) , 𝑖𝑓 𝑑 > 4
Practice and Application
1. For which values of 𝑘 is the set of order pairs
{(2,4), (𝑘, 6), (4, 𝑘)} a function?
2. Which of the following statements represents a function?
(a) Students to their current age.
(b) Countries to its capital.
(c) A store to its merchandise.
3. Which of the following letters will pass the vertical line
test? V W X Y Z
1
4. Give the domain of 𝑦 = 2 in set builder notation.
𝑥 −4
Evaluating Functions
You have learned that a function can be
presented in a form of an equation. The
number assigned to a given variable
determines the value of the function at that
number. This process is known as evaluating
functions. When you evaluate function, it
means that you are going to solve for the
function value given a particular value of the
variable used in the equation.
Example
Let 𝑓 be a function defined by 𝑓(𝑥) = 5𝑥 − 1.
Find he following:
a. 𝑓(3)
b. 𝑓(−4)
c. 𝑓(1/2)
d. 𝑓 (−1/5)
𝑓 3 =5 3 −1 𝑓 −4 = 5 −4 − 1
𝑓 3 = 15 − 1 𝑓 −4 = −20 − 1
𝑓 3 = 14 𝑓 −4 = −21
1 1 1 1
𝑓 =5 −1 𝑓 − =5 − −1
2 2 5 5
1 5 1 5
𝑓 = −1 𝑓 −5 = −5 −1
2 2
1 3 1
𝑓 = 𝑓 − = −1 − 1
5
2 2
= −2
Example
2
𝑥 + 2 , 𝑖𝑓 𝑥 < 0
If 𝑓 𝑥 = ቊ Find
5𝑥 + 2 , 𝑖𝑓 𝑥 ≥ 0
a. 𝑓(−3) b. 𝑓(4)
Solution.
To find f(-3), we let x = -3 . Since -3 is less
than 0, we use the first line of the function.
Thus,
𝑓 𝑥 = 𝑥
+2 2
2
−3 = (−3) +2
=9+2
= 11
To find 𝑓(4), we let 𝑥 = 4 . Since 4 is greater than
0, we use the second line of the function. Thus,
𝑓 𝑥 = 5𝑥 + 2
𝑓 4 = 5(4) + 2
= 20 + 2
𝑓 4 = 22
A tricycle ride in Antipolo City costs P8.00 for the
first kilometer, and each additional kilometer adds
P1.50 to the fare. Use a piecewise function to
represent the jeepney fare in terms of the distance
(d) in kilometers. Find how much you pay if your
destination is 5km from your starting point.
Solution.
8 , 𝑖𝑓 0 < 𝑑 ≤ 1
𝐹 𝑑 =ቊ
8 + 1.50(𝑑 − 1) , 𝑖𝑓 𝑑 > 1
To find how much you pay, since 5km is greater than 1, we
use the second line of the function. Thus,
F(d)= 8+1.50(d-1)
F(5)= 8+1.50(4)
= 8+6.00
F(5)= 14.00
Definition
Sum and Subtraction of Functions
Let 𝒇 and 𝒈 be any two functions