Lesson-1 Functions A
Lesson-1 Functions A
Chapter 1: Functions
❖Lesson 1: Functions as Models
Objective:
At the end of this lesson, leaners
should be able to…
❑ represent real-life situations using
functions, including piecewise
functions
M11GM-Ia-1
A. Review of Basic Reference
❑ Two Dimensional Coordinates or Cartesian System
As indicated in Figure 1, The plane is then referred to as the real plane.
The x and y-axes divide the plane into four regions, called quadrants.
In each of the quadrants, the signs of the coordinates of point are
completely determined as given in the Table 1.
Quadrant (x, y)
Y Table 1
y-axis I (+ , +)
Quadrant II Quadrant I
II (- , +)
A (0, b) B (a, b)
x-axis coordinates
III (- , -)
-X X
origin
D (0, 0) C (a, 0) IV (+ , -)
(x , y)
Quadrant III Quadrant IV
(Independent, Dependent)
Figure 1 -Y (Input, Output)
(Domain, Range)
2
Relation: a set of ordered pairs,
x and y. the set of first members,
the x values of the ordered pairs,
is called the domain of the
relation.
The set of second members, the
y values of the ordered pairs, is
called the range of the relation.
3
Function: a relation in which
each element of the domain
is paired with exactly one
element in the range.
Functions can be denoted by
f(x) “ read as f of x” and
y = f(x) 4
Domain: set of all admissible
values of x that make the
function defined under the set of
real numbers.
Range: set of all possible
resulting values of y.
:corresponding values of the
dependent variable y.
5
Chapter 1. Functions
A. Review of Functions from Junior High
➢ The following table shows how relations and functions are the same and
how they are different.
Relations Functions
A relation is a rule A function is a relation
that relates values where each element in
from a set of values the domain is related
(called domain) to a to only one value in
second set of values the range by some
(called the range) rule.
6
Relations Functions
The elements of the The elements of the
domain can be domain can be
imagined as input imagined as input to
to a machine that a machine that
applies a rule to applies a rule so
these inputs to that each input
generate one or corresponds to only
more outputs. one output.
7
Relations Functions
A relation A function is a set
of ordered pairs
is also a set (x, y) such that no
of ordered two ordered pairs
have the same x-
pairs (x, y) value but
different y-values.
8
Chapter 1. Functions A. Review of Functions from Junior High
Definition of a Function
A function f is a rule that assigns to each
element x in a set A exactly one element,
called f(x), in a set B.
12
■ Temperature is a function of date.
13
■ Cost of mailing a package is a function of
weight.
14
What REAL
LIFE situations
that Functions
can be apply?
15
In mathematics, a function is originally the
idealization of how a varying quantity
depends on another quantity. ... If the
function is called f, this relation is denoted
y = f (x) (read f of x), the element x is the
argument or input of the function, and y is
the value of the function, the output, or
the image of x by f.
16
25
Evaluate
f when
x = 25?
5
A Function f is a rule that
associates with each input a
unique [“exactly one”] output.
If the input is written “x”, then
the output is written “f(x).
18
1. The Function as a machine
Mathematical relations will
represent as machines
with an input and output,
and that the output is
related to the input by
some rule.
19
Machine diagram 1
f(x) = x² + 4
Figure
20 1
Machine diagram 2
f(3) = 3² + 4 = 13
Figure
21 2
Machine diagram 3
Input x-2 square & output f(x-2)
f(x-2) = x²-3x+6
Figure
22 3
Machine diagram 4
f(x+1) = (x+1)² - 𝒙 + 𝟏
Figure
23 4
Machine diagram 5
INPUT: Any
Input a letter from the output f(a)
alphabet
a OUTPUT: If
vowel, 5; if
5
input consonant, 9 output
f(a) = 5
Figure 5
24
Machine diagram 6
(b) g = { (1, 3), (1, 4), (2, 5), (2, 6), (3, 7)}
(c)
(a) (b)
Figure 1
(d) (e)
a) 𝒚 = 𝟐𝒙 + 𝟏 𝒅) 𝒚 = 𝒙+𝟏
𝟐
𝒃) 𝒚 = 𝒙 − 𝟐𝒙 + 𝟐
𝟐𝒙+𝟏
𝒄) 𝟐
𝒙 + 𝟐
𝒚 = 𝟏 e) y=
𝒙−𝟏
36
Solution: All are relations. All are
functions except (c). Equation
(c) is not a function because we
can find an x-value that
corresponds to more y-value.
e.g. if x=0, then y can be +1 or -1
𝟐 𝟐
𝒄) 𝒙 + 𝒚 = 𝟏
37
❑ Functions versus Relation
(x , y)
(Independent, Dependent)
Y
(Input, Output) y-axis
Quadrant II Quadrant I
(Domain, Range) A (0, b) B (a, b)
x-axis
coordinates
-X X
D (0, 0) C (a, 0)
origin
Cartesian plane
38
-Y
❑ Functions each x has ❑ Relations one, some, or
only one y all x’s can have more than
one y
Ex. (1 , 4) (2 , 4) (3 , 6) Ex. (3 , 2) (3 , 1) (7 , 6)
f f
1 3 1 3
2 5 2 5
3 9 3 9
4 17 4 17
5 33 5 33
39
Functions as representations of real-life situations
C (x) = 40x
41
Example 7. One hundred meters of
fencing is available to enclose a
rectangular area next to a river
(see figure a). Give a function A that can
represent the area that can be
enclosed, in terms of x.
river
y
Figure a x
42
Solution. The area of the rectangular is A = xy. We
will write this as a function of x.
Since only 100 m of fencing is available,
then x + 2y = 100 or river
(𝟏𝟎𝟎−𝒙) y y
y=
𝟐 x
Figure a
y = 50-0.5x
from area formula of the rectangle A= xy
Piecewise Function – a
function defined by
two or more functions
over a specified
domain. 45
What do they look like?
f(x) = x+1 ,x0
2
x–1 ,x0
You can EVALUATE piecewise
functions.
You can GRAPH piecewise
functions.
Evaluating Piecewise Functions
Evaluating piecewise
functions is just like
evaluating functions
that you are already
familiar with.
Let’s calculate f(2).
x2 + 1 , x 0
f(x) = x–1, x0
You are being asked to find y
when x = 2. Since 2 is 0, you
will only substitute into the
second part of the function.
f(2) = 2 – 1 = 1
Let’s calculate f(-2).
f(x) =
2,x0
x +1
x–1 ,x0
You are being asked to find y
when x = -2. Since -2 is 0, you
will only substitute into the
first part of the function.
f(-2) =(-2) + 1 = 5
2
Graphing Piecewise Functions:
x2 + 1 , x 0
f(x) = x–1 , x0
f(x) = -x , -2 x 1
to
read?
x2 – 2 ,x1
52
Piecewise Functions: real life applications
A user is charged P300
Example 8.
monthly for a particular mobile
plan, which includes 100 free text
messages. Message in excess of 100
are charged P1 each. Represent the
amount a consumer pays each
month as function of the number of
message m sent in a month.
53
Example: A user is charged P300 monthly for a
particular mobile plan, which includes 100 free
text messages. Message in excess of 100 are
charged P1 each. Represent the amount a
consumer pays each month as function of the
number of message m sent in a month.
Solution. Let t(m) represent the amount paid
by the consumer each month. It can be
expressed by the piecewise function
300 ,if 0 < m ≤ 100
t(m) =
300 + m ,if m > 100
54
Example 9. 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 d in
kilometers.
55
Example 9. 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 d in kilometers.
Solution:
Let x be the number of days
1000 if 0 ≤ x ≤ 3
f(x) =
1000 + 400 (x-3 ) if x > 3
58
A courier company charges ₱100
per package weighing 2 kg or
less. They charge ₱15 for each
additional kilogram or fraction of
a kilogram up to 5 kg. Write a
piecewise function that gives the
cost C for shipping a package
weighing k kilograms.
59
A courier company charges ₱100 per package
weighing 2 kg or less. They charge ₱15 for each
additional kilogram or fraction of a kilogram up
to 5 kg. Write a piecewise function that gives the
cost C for shipping a package weighing k
kilograms.
100 if 0 < k ≤ 2
115 if 2 < k ≤ 3
C(k) = 130 if 3 < k ≤ 4
145 60
if 4 < k ≤ 5
The given problem involved certain pieces of input
use of one formula to figure the output; other
pieces use another. It shows a sequence of
interval. It is called a piecewise function. The
function consists of a set of different intervals of x
to define y. Thus, the function that gives the cost C
of a package is as follows:
100 if 0 < k ≤ 2
115 if 2 < k ≤ 3
C=
130 if 3 < k ≤ 4
145 if 4 < k ≤ 5
61
A truck driver earns $21.00 per hour
for the first 40 hours worked in one
week. The driver earns time-and-a-
half, or $31.50, for each hour
worked in excess of 40. the pair of
function rules below represent the
drivers wage, w(h), as a function of
the hours worked in one week, h.
62
A truck driver earns $21.00 per hour for the first
40 hours worked in one week. The driver earns
time-and-a-half, or $31.50, for each hour worked
in excess of 40. the pair of function rules below
represent the drivers wage, w(h), as a function of
the hours worked in one week, h.
21h if 0 < h ≤ 40
w(h) =
31.5(h - 40)+840 if h> 40
63
❖ Activity No. 1: Applications of functions
Note: Individual work to evaluate learner mastery of the topics.
f(x) =
x
700 | | , x ∈ℕ
4 67
∈ (mathematics) means that it is an
element in the set of… For
eg...x ∈ ℕ denotes that x is within the set
of natural numbers. The relation "is
an element of", also called set
membership, is denoted by the symbol
"∈"
ℕ - natural number
the positive integers (whole numbers) 1, 2, 3,
etc., and sometimes zero as well.
68
A cell phone plan costs $39 a month. The
plan includes 2 gigabytes (GB) of free data
and charges $15 per gigabyte for any
additional data used. The monthly charges
are a function of the number of gigabytes of
data used, given by
39 if 0 ≤ x ≤ 2
C(x) =
39 + 15(x-2) if x > 2
70
A certain chocolate bar costs P35.00
per piece. However, if you buy
more than 10 pieces, they will be
marked down to a price of P32.00
per piece. Use a piecewise function
to represent the cost in terms of
the number of chocolate bars
bought. 71
A certain chocolate bar costs P35.00 per piece.
However, if you buy more than 10 pieces, they
will be marked down to a price of P32.00 per
piece. Use a piecewise function to represent the
cost in terms of the number of chocolate bars
bought.
Solution: Let n=no. of chocolate
35n , if 0 ∠ n ≤ 10
f(n)=
32n , if n > 10
72
❑A function f is a rule that assigns to each
element x in a set A exactly one element, called
f(x), in a set B.
73