1a Function2

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 31

Danilo Leah

Diagram A David Mirasol


function
CJ Rowena

Genalyn
Diagram B Vincent Grace
Not a
Heidie
function

Arman
Diagram C Julius Ann function
Glenn
Remember:
 Every element in the domain is mapped to a single element
in the range.
There is no duplication of the first coordinates in the set of
ordered pairs.
The graph of the relation can only be intersected once when
a vertical line is drawn anywhere in the graph.

Now, if these three features are present, then the given relation
is said to be a function.
Relations can be represented by

 ordered pairs
 table of values
 mapping diagram
 graph
 rule or equations
Functions can often be used to model real situations.

Example 1.
Give a function C that can represent the cost of buying x shirts, if
one shirt costs ₱400.

Solution

Since each shirt costs ₱400, then the cost function is C(x) = 400x
Functions can often be used to model real situations.
Example 2

If distance (D) is a function of time (t), give a function D that can represent
the distance a car travels in t time, if every hour the car travels 60
kilometers.

Solution

function is given by 𝑫(𝒕) = 𝟔𝟎t


Since every hour, the car travels 60 kilometers, therefore the distance
Functions can often be used to model real situations.
Example 3

If height (H) is a function of age (a), give a function H that can


represent the height of a person in a age, if every year the height is
added by 2 inches.

Solution

function is 𝑯(𝒂) = 𝟐 + 𝒂
Since every year the height is added by 2 inches, then the height
Functions can often be used to model real situations.
Example 4

Give a function B that can represent the amount of battery charge of a


cellular phone in h hour, if 12% of battery was loss every hour.

Solution

function is 𝑩(𝒉) = 𝟏𝟎𝟎% − 12%h


Since every hour losses 12% of the battery, then the amount of battery
Functions can often be used to model real situations.
Example 5
One hundred meters of fencing is available to enclose a rectangular area next to
a river. Give a function A that can represent the area that can be enclosed, in terms
of x.

Solution
The area of the rectangular enclosure is A = xy. Write this as a function of x as
A(x) = xy. Recall that the formula for the perimeter of a rectangle is defined as
P=2l+2w. In this problem, we only need to enclose the three sides of the rectangular
area since the frontal side is a river. Therefore, the perimeter becomes P=x+2y or
x+2y=P. Then, x+2y=100 or y = (100 – x)/2 = 50 – 0.5x. Thus, A(x) = x(50 – 0.5x) or
A(x) = 50x – 0.5x2
TOPIC:
Piecewise Functions
In real life, however, functions are represented by a
combination of equations, each corresponding to a
part of the domain.

These are called piecewise functions.


What do they look like?

x2 + 1 , x  0
f(x) = x–1, x0
Piecewise Function
• is a function defined by two or more functions over
a specified domain.
• Each formula has its own domain, and the domain
of the function is the union of all these smaller
domains.
f
How to write the formula given a piecewise
function?
1)Identify the intervals for which the rule applies.
2)Determine the formulas that describe how to
calculate an output in each interval.
3)Use braces and “if – statements” to write the
function.
Illustrative Example 1

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 ₱175 a piece but can charge
₱15, 000 for a bulk order of 100 shirts and ₱125 for
each excess t – shirt after that. Represent the cost
of t – shirt using the function f(x) where x is the
number of t – shirts purchased.
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 ₱175 a piece but can charge
₱15, 000 for a bulk order of 100 shirts and ₱125 for each excess t – shirt after
that. Represent the cost of t – shirt using the function f(x) where x is the number
of t – shirts purchased.

STEP 1 Identify the intervals for which the rule applies.


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 ₱175 a piece but can charge
₱15, 000 for a bulk order of 100 shirts and ₱125 for each excess t – shirt after
that. Represent the cost of t – shirt using the function f(x) where x is the number
of t – shirts purchased.
STEP 2 Determine the formulas that describe how to calculate an output in each interval.
STEP 3 Use braces and “if – statements” to write the function.
Answer:
For less than 100 t-shirts purchased
175x, if 0 < x < 100
f(x) =
15000, if x = 100 For exactly 100 t-shirts purchased

15000+125(x – 100 ), if x > 100 For more than 100 t-shirts purchased
Illustrative Example 2

A user is charged ₱250.00 monthly for a particular


mobile plan, which includes 200 free text messages.
Messages in excess of 200 are charged ₱1.00 each.
Represent the monthly cost for text messaging using the
function t(m), where m is the number of messages sent in a
month.
A user is charged ₱250.00 monthly for a particular mobile plan, which
includes 200 free text messages. Messages in excess of 200 are charged ₱1.00
each. Represent the monthly cost for text messaging using the function t(m),
where m is the number of messages sent in a month.

STEP 1 Identify the intervals for which the rule applies.


A user is charged ₱250.00 monthly for a particular mobile plan, which
includes 200 free text messages. Messages in excess of 200 are charged ₱1.00
each. Represent the monthly cost for text messaging using the function t(m),
where m is the number of messages sent in a month.

STEP 2 Determine the formulas that describe how to calculate an output in each interval.
STEP 3 Use braces and “if – statements” to write the function.

Answer:

250, 𝑖𝑓 0 < 𝑚 ≤ 200


For sending messages of not exceeding 200

250 + (𝑚 - 200), 𝑖𝑓 𝑚 > 200


t(m) =
In case the messages sent were more than 200
Illustrative Example 3

A certain chocolate bar costs ₱50.00 per piece.


However, if you buy more than 5 pieces they will mark down
the price to ₱48.00 per piece. Use a piecewise function f(n)
to represent the cost in terms of the number of chocolate
bars bought.
A certain chocolate bar costs ₱50.00 per piece. However, if you buy more
than 5 pieces they will mark down the price to ₱48.00 per piece. Use a piecewise
function f(n) to represent the cost in terms of the number of chocolate bars
bought.

STEP 1 Identify the intervals for which the rule applies.


A certain chocolate bar costs ₱50.00 per piece. However, if you buy more
than 5 pieces they will mark down the price to ₱48.00 per piece. Use a piecewise
function f(n) to represent the cost in terms of the number of chocolate bars
bought.

STEP 2 Determine the formulas that describe how to calculate an output in each interval.
STEP 3 Use braces and “if – statements” to write the function.

Answer:

50n, 𝑖𝑓 0 < n ≤ 5
For buying 5 chocolate bars or less
f(n) =
48n, 𝑖𝑓 n > 5 For buying more than 5 chocolate bars
Illustrative Example 4

The cost of hiring a catering service to serve food for a


party is ₱250.00 per head for 50 persons or less, ₱200.00
per head for 51 to 100 persons, and ₱150.00 per head for
more than 100. Use a piecewise function C(h) to represent
the total cost of the number of attendees to the party.
The cost of hiring a catering service to serve food for a party is ₱250.00 per
head for 50 persons or less, ₱200.00 per head for 51 to 100 persons, and
₱150.00 per head for more than 100. Use a piecewise function C(h) to represent
the total cost of the number of attendees to the party.

STEP 1 Identify the intervals for which the rule applies.


The cost of hiring a catering service to serve food for a party is ₱250.00 per
head for 50 persons or less, ₱200.00 per head for 51 to 100 persons, and
₱150.00 per head for more than 100. Use a piecewise function C(h) to represent
the total cost of the number of attendees to the party.

STEP 2 Determine the formulas that describe how to calculate an output in each interval.
STEP 3 Use braces and “if – statements” to write the function.

Answer:
For the service to at least 50 persons
250h, if 0 < h ≤ 50
C(h) = 200h, if 51 ≤ h ≤ 100 For the service to 51 to 100 persons

150h, if h > 100 For the service to more than 100 persons
EXERCISES:
1. The fee to park in the parking lot of a shopping mall costs Php.
40.00 for the first two hours and an extra Php. 10.00 for each
hour after that. If you park for more than twelve hours, you
instead pay a flat rate of Php. 200.00. Represent your parking
fee using the function p(t) where t is the number of hours you
parked in the mall.
2. The cost of hiring a catering service to serve food for a party is
₱150 per head for 20 persons or less, ₱130 per head for 21 to
50 persons, and ₱110 for 51 to 100 persons. For more than
100 persons, the cost is at Php100 per head. Represent the
total cost C as a function of the number of attendees h to the
party using equation.
EXERCISES:

The fee to park in the parking lot of a shopping mall costs ₱ 40.00
for the first two hours and an extra ₱10.00 for each hour after that. If
you park for more than twelve hours, you instead pay a flat rate of
₱200.00. Represent your parking fee using the function p (t) where t
is the number of hours you parked in the mall.
40 , if 0 < t ≤ 2
Solution
p(t) = 40 + 10 (t-2), if 2 < t < 12

200 , if t > 12
EXERCISES:
2. The cost of hiring a catering service to serve food for a party is
₱150 per head for 20 persons or less, ₱130 per head for 21 to 50
persons, and ₱110 for 51 to 100 persons. For more than 100
persons, the cost is at Php100 per head. Represent the total cost
C as a function of the number of attendees h to the party using
equation.
150h , if 0 < h ≤ 20
Solution 130h, if 21 ≤ h ≤ 50
C(h) =
110h, if 51 ≤ h ≤ 100

100h , if h > 100

You might also like