Lesson 1 Functions
Lesson 1 Functions
Learning Competencies: At the end of the lesson, the learner should be able to
1. Represents real-life situations using functions, including piecewise functions.
2. Evaluates a function.
3. Performs addition, subtraction, multiplication, division, and composition of
functions.
4. Solves problems involving functions.
Definition 1: Relations
A relation is a rule that relates the value from a set of values (called the domain) to a
second set of values (called the range).
The element of the domain can be imagined as input to a machine that applies a rule to
these inputs to generate one or more outputs.
In this lesson we will revisit the concept of function and relation which shows the
relationship of two quantities.
Any of the following sets below is a relation because they consist of ordered pairs.
A={(−2,5),(−1,0) ,(2 ,−3) }
B={(−1,0),(0 ,−3) ,(2 ,−3),(3,0),(4,5) }
C={(3,0), (4,5)}
D={(−2,5),(−1,0) ,(0 ,−3),(1 ,−4) ,(2 ,−3) ,(3,0),(4,5) }
There are of course many more relations that we could form from the list of
ordered pairs above, but we just wanted to list a few possible relations to give some
examples. Note as well that we could also get other ordered pairs from the equation and
add those into any of the relations above if we wanted to.
Now, at this point you are probably asking just why we care about relations and
that is a good question. Some relations are very special and are used at almost all
levels of mathematics. The following definition tells us just which relations are these
special relations.
Definition 2: Functions
A function is a relation where each element in the domain is related to only one value in
the range by some rule.
The elements of the domain can be imagined as input to a machine that applies a rule
so that each input corresponds to one and only one output.
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 .
Take note, all functions are relations but not all relations are functions. Let us
look at the example below to help us figure this out.
Solution: A is a function.
From these ordered pairs we have the following sets of xcomponents (i.e. the
first number from each ordered pair or the xpart) and ycomponents (i.e. the second
number from each ordered pair or the y part). Recall that all relations are ordered pairs
( x , y ).
x components : {−1,0,2,3,4 } y components :{0 ,−3,5 }
For the set of y components, notice that the “−3 ”occurred in two ordered pairs
but we only listed it once.
x y
−1 0
0
2 −3
3
4 5
To see why this relation is a function simply pick any value from the set of x
components. Now, go back up to the relation and find every ordered pair in which this
number is the xcomponent and list all the ycomponents from those ordered pairs. The
list of y components will consist of exactly one value. ∎
This is not a function because, because the value of x repeats. From the set of x
components let’s choose 6. Now, if we go up to the relation we see that there are two
ordered pairs with 6 as a xcomponent: (6 , 10) and (6 ,−4). The list of y components
associated with 6 is then : 10and −4. ∎
Function as an Equation
A function could also be an equation for which any x can be plugged into the
equation which will yield exactly one y out of the equation.
An example of this would be the equation
y=2 x +3
Usually we equate
y=f (x )
and as such can be written as f (x)=2 x +3.
Consider this situation, at a given day, the price of a certain gasoline per liter is
Php53. If you were to fill up a car with 15.5 liters of gasoline. How much would it
cost?
Example 3: John wants to buy xamounts of eggs from a wholesale dealer so that he
can sell them with a markup. The dealer prices them with Php 4.50 per egg, and a
fixed delivery fee of Php70. Create a model function that will determine the total
cost should John decides to buyx amount of eggs.
Solution:
Our goal is to create a model function, so we will
Functions are often defined using more than one formula, where each individual formula
describes the function on a subset of the domain.
Definition 3: Piecewise Functions
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.). Due to this diversity, there is no ”parent
function” for piecewise defined functions.
x if x ≥ 0
Example: f ( x )={−x if x< 0
Example 5: The fee to park in the parking lot of a restaurant costs ₱ 55.00
for the first three hours and an extra ₱ 15.00 for each hour (or a
fraction of it) after that. If you park for more than ten hours
within the day, you instead pay a flat rate of ₱ 170.00.
Represent your parking fee using the function p(t) where t is
the number of hours you parked in the restaurant.
Solution:
To write a piecewise function model, let’s take note that p(t) represents the
parking fee wheret is the number of hours. And we have 3 different functions.
Example 1: Given the function f ( x )=3 x +1, find the value of the output with each given input.
a. x=2
Solution: f ( x )=3 x +1
f ( 2 ) =3 ( 2 )+1 Substitute 2 to x
f ( 2 ) =6+1
f (2)=7
b. x=−1
Solution:f ( x )=3 x +1
f (−1 ) =3 (−1 )+ 1 Substitute −1 to x
f (−1 ) =−3+1
f (−1)=−2
c. x=3 t
Solution: f ( x )=3 x +1
f ( 3 t )=3 ( 3 t ) +1 Substitute 3 t to x
f (3 t)=9t +1 ∎
Example 2: From example 3 in Lesson 1 1.2, suppose John wants to buy 200 pieces of
eggs, what will be the total cost?
Solution:
Using the function previously E( x )=4.50 x +70 , we have:
Solution:
Since passenger A covered only 3 km, we will use the first case of the piecewise
function. F (x)=8 → since it satisfies the condition x ≤ 4
F (3)=8→ passenger A will have a fare of Php 8
Passenger B on the other hand covered 6 km, which means we will have to use the
second case of the piecewise function.
Example 4: A certain chocolate bar costs ₱ 45.00per piece. However, if you buy
more than 15 pieces, they will be marked down to a price of ₱ 36.00
per piece. Use a piecewise function to represent the cost in
terms of the number of chocolate bars bought. How much will
it cost for 20pieces of chocolate bar?
Solution:
This was the problem from lesson 1, activity 2 and it has a function
Solution:
( f + g)( x)=f (x)+ g ( x)
( f + g)( x)=( x 2−3 x+ 4)+(−2 x 2 +4 x −3)
( f + g)( x)=x 2−2 x 2−3 x+ 4 x +4−3
( f + g )( x )=−x2 + x +1 ∎
Subtraction of Functions
Supposef and g are functions andx is in both the domain of f and the domain of g. The
difference of f and g, denoted by f −g, is the function defined by the formula
( f −g ) ( x )=f ( x )−g(x )
Solution:
(h ∙ j)(x)=h ( x )− j(x)
(h ∙ j)(x)=( x2 +3 ) ∙(2 x−5) substitute corresponding functions
(h ∙ j)( x)=( x2 ∙2 x ) + ( x 2 ∙−5 ) + ( 3 ∙2 x )+ ( 3∙−5 ) apply FOIL METHOD
( h ∙ j ) ( x ) =2 x 3−5 x 2+ 6 x−15 ∎
Division of Functions
Supposef and g are functions andx is in both the domain of f and the domain of g. The
f
quotient of f and g, denoted by , is the function defined by the formula
g
f f ( x)
()
g
( x )=
g (x)
( fg ) ( x )= gf ((x)x)
2
factors
f ( x+ 3)( x−2)
() g
( x )=
x +3
Cancel common factors
( fg ) ( x )=x−2 ∎
Type equation here .
1.5.3 COMPOSITION OF FUNCTIONS
Composition of Functions
Supposef and g are functions andx is in both the domain of f and the domain of g. The
composite of f and g, denoted by f ∘ g, is the function defined by the formula
( f ∘ g )( x )=f [ g ( x ) ]
Example 5: Suppose f ( x )=2 x +1and g ( x )=√ x+1, determine if ( f ∘ g )( x ) is the same with
( g ∘ f )( x ) .
Solution:
Solve for ( f ∘ g )( x )
( f ∘ g )( x )=f [ g ( x ) ]
¿ f [ √ x+ 1 ]
Compare ( f ∘ g )( x ) and ( g ∘ f )( x )
?
( f ∘ g )( x )=¿ ( g ∘ f )( x )
?
2 √ x +1+1= √ 2 x+ 2
2 √ x +1+1 ≠ √2 x+ 2
Summary:
You have learned in this lesson that a relation is a rule that relates
the value from a set of values (called the domain) to a second set of values
(called the range). While a function is a relation where each element in the
domain is related to only one value in the range by some rule. Functions can be
represented as set of ordered pairs, mapping, equation and graphs. And a
piecewise function is a function defined by a multiple of sub-functions, each of
which applies to a different domain.