You are on page 1of 31

Chapter 4

Functions
Section 4.2: Graphs of Basic
Functions

Section 4.3: Graphing


Techniques

Course of Math131 Basic Science Department Eng. and CSIT


Section 4.2 Graphs of Basic Functions

• 4-2-1 Recognize and Classify Basic Functions


• 4-2-2 Graphing piecewise-defined functions

Course of Math131 Basic Science Department Eng. and CSIT


4.2.1 Recognizing Basic Functions

Constant Function:
• Its range is .
• Its domain is all real numbers.
• Its graph is a horizontal line passing through all the
points of the form .

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-3
Identity Function:

• Its domain is all real numbers.


• Its range is all real numbers
• Its graph is the straight line passing through (0,0) and (1,1)
• It is an increasing function

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-4
Square Function:

• Its domain is all real numbers.


• Its range is .
• is an even function, because
.
• is decreasing on and
increasing on .
• The graph of is symmetric with
respect to -axes, because it is
an even function.

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-5
Cube Function:

• Its domain is all real numbers.


• Its range all real numbers.
• is an odd function, because

• is increasing everywhere.

• The graph of is symmetric with


respect to origin.

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-6
• Because the number inside square root cannot be
negative, its domain is .

• The range is .

• is increasing.

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-7
Absolute Value Function:
• The domain is all real numbers.
• If x is non-negative then
If is negative then .
• We can also write it as
• is an even function, because

• Since , is always positive. So, the range is the set of non-


negative numbers, which is .

• The graph of is symmetric with


respect to axis.
• is decreasing on
and increasing on .

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-8
4.2.2 Piecewise-defined Functions
Example 1: Piecewise-defined Functions

For the following piecewise-defined function, find and .


 

Solution
 Since , to find we need to use the expression
. Therefore, .
 Since , to find we need to use the expression . Therefore, .

• Since 2 > 0, to find we need to use the expression .


Therefore, .

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-9
Try & Check
For the following piecewise-defined function,

evaluate and .

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-10
Graphing Piecewise Defined Functions
Example 2: Graphing Piecewise-defined Functions
Sketch the graph of the piecewise-defined function
 

Solution • First, sketch the graphs of and


separately.

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-11
Example 2: continued

  Now we graph

For , choose the left part of the graph of and include


For , choose the right part of and do not include

Combine them

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-12
Try & Check

Sketch the graph of the piecewise-defined function

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-13
Section 4.3 Graphing Techniques

4.3.1 Graphing functions using vertical or horizontal shifts


4.3.2 Graphing functions using reflection
4.3.3 Graphing a function by using multiple transformations

14
Course of Math131 Basic Science Department Eng. and CSIT
4.3.1 Graphing functions using vertical or horizontal shifts

The graphs of the functions that are obtained from the basic functions through
certain algebraic transformations can be obtained by shifting the graphs of
basic functions vertically or horizontally.

Vertical Shifting

• The graph of is same as the graph of


shifted upward units.
• The graph of is same as the graph of
shifted downward units

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-15
Example 1: Using Vertical Shifts in Graphing functions

Sketch the graph of and.

Solution

Once we know the graph of we can generate the graphs of and


by vertical shifting.

• For we shift the graph up by 2


units.

• For we shift the graph down by 2


units

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-16
Try & Check

Sketch the graph of and .

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-17
Horizontal Shifting
Let be a real number.
• The graph of is same as the graph of
shifted units to the left.
• The graph of is same as the graph of
shifted units to the right.

Example 2: Using Horizontal Shifts in Graphing functions


Sketch the graph of g and.
Solution
If then the graph of
is obtained by
shifting the graph left by 2 units.
The graph of h(x)is obtained by shifting the graph
right by 2 units.
Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-18
Try & Check

Sketch the graph of and.

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-19
4.3.1 Graphing functions using reflections
The graphs of some functions are reflections of the graphs of other functions
with respect to the -axis or -axis.

Reflection across the x-axis

The graph of is
the reflection of the graph of
across the -axis.

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-20
Example 3: Using Reflection across x-axis in Graphing functions

Sketch the graph of


Solution
If then .
Therefore, the graph of is
obtained by reflecting the graph
across the -axis.

Try & Check

Sketch the graph of .

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-21
Reflection across the y-axis

The graph of is
the reflection of the graph of
across the -axis.

Example 4:
Sketch the graph of .
Solution
If then . Therefore, the graph of
is obtained by reflecting the graph
across the -axis.

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-22
Vertical Stretching and Shrinking
If is on the graph of then is on the graph of .

 
If 0<𝑐<1 then the graph of 𝑦=𝑐𝑓(𝑥) is vertical shrinking
of the graph of 𝑦=𝑓(𝑥) by a factor of 𝑐.

If then the graph of is vertical stretching


of the graph of by a factor of .

Vertical Shrinking Vertical Stretching


Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-23
Example 5: Using Vertical Stretching in graphing functions

Sketch the graph of and roughly.


Solution
Once we draw the graph of we can generate and by vertical
stretching and shrinking, respectively.

The graph of is vertical stretching of the


graph of .
 
The graph of is vertical shrinking of the
graph of .

For better graphs, we can plot some specific points on the graph.

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-24
Horizontal Stretching and Shrinking

If is on the graph of then is on the graph of So,

If then the graph of is horizontal stretching


of the graph of by a factor of .
If then the graph of is horizontal shrinking of
the graph of by a factor of .

Horizontal Shrinking Horizontal Stretching


Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-25
Example 5: Using horizontal stretching or shrinking in graphing
functions.
Sketch the graph of and by using the graph of .

Solution
If then and .

The graph of is horizontal shrinking of


the graph of .
 
The graph of is horizontal stretching of
the graph of .

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-26
4.3.3 Graphing functions using multiple transformations

In some cases more than one transformation is needed to obtain the


graph of the new function from a basic function.

Below are some examples of different transformations and


corresponding operations on graphs.

𝑦 =𝑥 3
𝑦 =( 𝑥 − 1)3
Shifting 1 unit right Shifting 7 units upward

𝑦 =√ 𝑥 𝑦 =√ 𝑥 −1 𝑦 =√ − 𝑥 − 1 𝑦 =√ − 𝑥 − 1− 2
Shifting 1 unit right Reflected across -axis Shifting 2 units downward

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-27
Example 7: Using multiple transformations in graphing
functions.
Sketch the graph of the following functions using the graph of .
(a)

Solution
(a) Start with the and try to get step by step. In each step, use single
transformation.

Step1:The graph of is obtained by Step2:The graph of is obtained by


stretching the graph of vertically. shifting the graph of upward units.

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-28
Example 7: continued.

(b) Start with the , try to get step by step. In each step, use single
transformation.

First Step: obtain the graph of


by shifting the graph of right by
units.

Second Step: Obtain the graph of is by reflecting the graph of


across the -axis.

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-29
Try & Check

Sketch the graph of the following functions by using


appropriate transformations to a basic function.
(a) (b)

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-30
END OF LECTURE

Course
Course of of Math131
MATH 111 Basic Science
Basic Sciences Department
Department, Engineering Track Eng. and CSIT
R-31

You might also like