Functions LectureNotes
Functions LectureNotes
STROUD STROUD 2
1 2
Function: Definition
• Examples:
Here the action of the function f is described as ^2 – raising to the power 2. y x2 rule is single-valued for all x and hence is a function.
f ( x) x 2 y x is not single-valued and hence is not a function.
STROUD 3
STROUD 4
3 4
Representation of functions Identifying a graph of a function
There are four possible ways to represent a function:
• verbally (by a description in words) Simply apply the Vertical Line Test:
• numerically (by a table of values) A curve in the xy-plane is the graph of a function of x if and only if no vertical
line intersects the curve more than once.
• visually (by a graph)
• algebraically (by an explicit formula)
STROUD 5
STROUD 6
5 6
The functions in the following two examples are defined by different formulas in • Even function: If a function f satisfies f (− x) = f (x) for every number x in its
different parts of their domains. Such functions are called piecewise defined domain, then f is called an even function. For instance, the function f (x)=x2 is
functions. even because .
a. A function f is defined by
STROUD 7
STROUD 8
7 8
Inverse functions Inverse functions
• Definition: • Example
Let f be a one-to-one and onto function with domain
A and range B. Then its inverse function f 1 has
domain B and range A and is defined by
x y
for x in A and y in B.
• Note that the co-domain of the function becomes the domain of the inverse function.
Therefore, we can reverse the roles of x and y when considering the inverse function
and we get the following two cancellation equations.
STROUD 9
STROUD 10
9 10
Inverse functions
Graphs of inverses
• Example: Find the inverse function of f(x)=x3.
Solution: The principle of interchanging x and y to find the inverse function also gives
We know that and hence f1(x3 )=x. Then f1(x)= x1/3. us the method for obtaining the graph of f 1from the graph of f. Since f (a)= b
if and only if f 1(b)= a, the point (a, b) is on the graph of f if and only if the
• Example: Find the inverse function of f(x)= x3 + 2. point (b, a) is on the graph of f 1. We can get the point (b, a) from (a, b) by
Solution: reflecting about the line y = x.
11 12
Mathematical Models
Mathematical Models: Essential Functions The purpose of the model is to understand the phenomenon and perhaps to make
predictions about future behavior.
Modeling process.
STROUD 13
STROUD 14
13 14
A mathematical model is never a completely accurate representation of a physical When we say that y is a linear function of x, we mean that the graph of the function is
situation—it is an idealization. A good model simplifies reality enough to permit a line, so we can use the slope-intercept form of the equation of a line to write a
mathematical calculations but is accurate enough to provide valuable conclusions. formula for the function as
It is important to realize the limitations of the model. In the end, Mother Nature has the y = f (x) = mx + b
final say.
where m is the slope of the line and b is the y-intercept.
There are many different types of functions that can be used to model relationships
observed in the real world. In what follows, we discuss the behavior and graphs of these
functions and give examples of situations appropriately modeled by such functions.
STROUD 15
STROUD 16
15 16
Linear models: Example
Linear Models (a) As dry air moves upward, it expands and cools. If the ground temperature is 20C
A characteristic feature of linear functions is that they grow at a constant rate. and the temperature at a height of 1 km is 10C, express the temperature T (in °C) as a
function of the height h (in kilometers), assuming that a linear model is appropriate.
For instance, following figure shows a graph of the linear function f (x) = 3x – 2 and a
(b) Draw the graph of the function in part (a). What does the slope represent?
table of sample values. Note that the slope is 3 and the intercept is –2.
(c) What is the temperature at a height of 2.5 km?
Solution:
(a)
Because we are assuming that T is a linear function of h, we can write T = mh + b.
The slope of the line is therefore m = 10 – 20 = –10 and the required linear function is
T = –10h + 20.
STROUD 17
STROUD 18
17 18
The graph is sketched as shown. The slope is –10C/km, Then, we seek a line that “best-fit” the data points. This can be accurately achieved by
and this represents the rate of change of temperature with using linear regression method for the model y = mx + b.
respect to height.
Example:
(c)
At a height of h = 2.5 km, the temperature T = –10(2.5) + 20 = –5C.
19 20
Types of polynomials
Polynomials
• General polynomial formula • Constant polynomial functions
n 1 – f(x) = a
P( x) an x an 1 x
n
... a1 x a0
• Linear polynomial functions
– a0, a1, … ,an are constant coefficients – f(x) = m x + b
– n is the degree of the polynomial • Quadratic polynomial functions
– Standard form is for descending powers of x – f(x) = a x2 + b x + c
– anxn is said to be the “leading term”
• Cubic polynomial functions
• Note that each term is a power function
– f(x) = a x3 + b x2 + c x + d
– Degree 3 polynomial
• Quartic polynomial functions
– f(x) = a x4 + b x3 + c x2+ d x + e
– Degree 4 polynomial
STROUD 21
STROUD 22
21 22
– Odd degree
or
– Leading coefficient negative
STROUD 23
STROUD 24
23 24
Parts of polynomial graph Polynomial graphs
Turning point of a graph: a point at which the graph changes direction from
increasing to decreasing or decreasing to increasing. A polynomial of degree n
will have, at most, n x-intercepts and n − 1 turning points.
y-intercept: the point at which the function has an input value of zero.
x-intercepts: the points at which the output value is zero.
STROUD 25
STROUD 26
25 26
• A rational function is a function R(x) which is the quotient of two an x n an 1 x n1 ... a1 x a0
• Given R ( x)
polynomials P(x), Q(x). The domain consists of all values of x such that bm x m bm1 x m1 ... b1 x b0
Q(x) 0.
P ( x) • The long run (end) behavior is determined by the quotient of the leading
R( x) terms
Q( x)
an x n
bm x m
x2 2 x 5
• Example: R ( x) in the domain {x | x +2}
x2 – Leading term dominates for large values of x for polynomial
– Leading terms dominate for the quotient for extreme x
STROUD 27
STROUD 28
27 28
Rational functions: Example 1
Rational functions: Example 2
3x 2 8 x 5x
• Given R ( x ) 2 • Consider R ( x)
5x 2 x 1 2x2 6
• Graph • Which terms dominate as x gets large?
– for -50 < x < 50, -1 < y < 4
5x
• What happens to as x gets large?
STROUD 29
STROUD 2x2 30
29 30
STROUD 31
STROUD 32
31 32
Rational functions: Asymptotes Rational functions: Asymptotes
• A vertical asymptote happens when the function R(x) is not defined • Finding the roots of x2 9
R ( x)
– This happens when the denominator is zero the denominator x 5x 6
2
P( x)
• Thus, we look for the roots of the denominator R( x)
Q( x )
x2 5x 6 0
• Where does this happen for R(x)?
( x 6)( x 1) 0
x2 9 x 6 or x 1
R( x)
x 5x 6
2
STROUD 33
STROUD 34
33 34
Power functions
A function of the form f (x) = xa, where a is a constant, is called a power function.
Consider the following cases.
We already know the shape of the graphs of y = x (a line through the origin with
slope 1) and y = x2 (a parabola).
STROUD 35
STROUD 36
35 36
Power functions: Examples Power functions
Function Power Is it a Power The general shape of the graph of f (x) = xn depends on whether n is even or
odd.
Function? Yes/No
0 Yes
If n is even, then f (x) = xn is an even function and its graph looks similar to the
1 Yes parabola y = x2.
2 Yes
If n is odd, then f (x) = xn is an odd function and its graph looks similar to that
3 No of y = x3.
-1 Yes
Yes
STROUD 37
STROUD 38
37 38
whose domain is [0, ) and whose graph is the upper half of the parabola x = y2.
STROUD 39
STROUD 40
39 40
Power functions Power functions
STROUD 41
STROUD 42
41 42
STROUD 43
STROUD 44
43 44
Exponential functions Exponential functions
• 2x
The function f (x) = is called an exponential function because the variable, x, is • If x = 0, then b0 = 1, and if x = –n, where n is a positive integer, then
the exponent. It should not be confused with the power function g (x) = x2, in which
the variable is the base.
STROUD 45
STROUD 46
45 46
• Since the irrational number satisfies • It can be shown that there is exactly one number that is greater than all the numbers
• Similarly, if we use better approximations for we obtain better approximations for 21.8, 21.74, 21.733, 21.7321, 21.73206, …
STROUD 47
STROUD 48
47 48
Exponential functions
Exponential functions
• Notice that all of these graphs pass through the same point (0, 1) because b0 = 1 for
• The graphs of members of the family of functions y = bx are shown in the following b 0.
figure for various values of the base b. • Notice also that as the base b gets larger, the exponential function grows more rapidly
for x > 0.
• You can see (see figure below) that there are basically three kinds of exponential
functions y = bx.
• If 0 < b < 1, the exponential function decreases; if b = 1, it is a constant; and if b > 1, it
increases.
49 50
Example
Sketch the graph of the function y = 3 – 2x and determine its domain and range.
Solution:
First, we reflect the graph of y = 2x about the x-axis to get the graph of y = –2x (see the
figures below).
STROUD 51
STROUD 52
51 52
Exponential functions Exponential functions: Examples
y = 3 – 2x
The domain is and the range is ( , 3). Exponential model for population growth
STROUD 53
STROUD 54
53 54
Exponential functions: The number “e” Exponential functions: Natural exponential function
• The tangent lines to the graphs of y = 2x and y = 3x at the point (0, 1) are shown • The natural exponential function is expressed by the equation: y e x or y exp( x).
below. If we measure the slopes of these tangent lines at (0, 1), we find that m 0.7
for y = 2x and m 1.1 for y = 3x. The value of ex can be found to any level of precision desired from the series
expansion:
x 2 x3 x 4
e x 1 x
2! 3! 4!
55 56
Logarithmic functions Logarithmic functions
If b > 0 and b ≠ 1, the exponential function f (x) = bx is either increasing or decreasing Thus, if x > 0, then logb x is the exponent to which the base b must be raised to give x.
and so it is one-to-one by the Horizontal Line Test. It therefore has an inverse
function f –1, which is called the logarithmic function with base b and is denoted by For example, log10 0.001 = –3 because 10–3 = 0.001.
logb.
The cancellation equations, when applied to the functions f (x) = bx and f –1(x) = logb x,
become
If we use the formulation of an inverse function given by,
y = f (x) x= f –1(y)
we get
y = bx x=log 𝑦
STROUD 57
STROUD 58
57 58
The logarithmic function logb has domain (0, ) and range . Its graph is the Following figure shows the graphs of y = logb x with various values of the base b > 1.
reflection of the graph of y = bx about the line y = x.
Since logb 1 = 0, the graphs of all logarithmic functions pass through the point (1, 0).
The following figure shows the case where b > 1. (The most important logarithmic
functions have base b > 1.)
STROUD 59
STROUD 60
59 60
Logarithmic functions Logarithmic functions
The following properties of logarithmic functions follow from the corresponding Example
properties of exponential functions. Use the laws of logarithms to evaluate log2 80 – log2 5.
Solution:
Using Law 2, we have
= log2 16
=4
because 24 = 16.
STROUD 61
STROUD 62
61 62
(If you have trouble working with the “ln” notation, just replace it by loge. Then the
equation becomes loge x = 5; so, by the definition of logarithm, e5 = x.)
STROUD 63
STROUD 64
63 64
Logarithmic functions: Graph and growth of natural logarithm
Logarithmic functions: Natural logarithms The graphs of the exponential function y = ex and its inverse function, the natural
logarithm function, are shown in the following figure.
The following formula shows that logarithms with any base can be expressed in terms
of the natural logarithm. Because the curve y = e x crosses the y-axis with a slope of 1, it follows that the
reflected curve y = ln x crosses the x-axis with a slope of 1.
In common with all other logarithmic functions with base greater than 1, the natural
logarithm is an increasing function defined on (0, ) and the y-axis is a vertical
asymptote
Example
Evaluate log8 5 correct to six decimal places.
Solution:
Formula 10 gives
log8 5 =
The graph of y = ln x is the reflection
of the graph of y = ex about the line y = x.
0.773976
STROUD 65
STROUD 66
65 66
Sketch the graph of the function y = ln(x – 2) – 1. There are three main trigonometric functions names sine, cosine, and tangent.
Solution: These functions take and angle given either in radians or degrees, and in calculus
We start with the graph of y = ln x as given in the following figure. the convention is that radian measure is always used represent angles.
For example, when we use the function f(x) = sin (x), it is understood that sin(x)
We shift it 2 units to the right to get the graph of y = ln(x – 2) and then we shift it 1 means the sine of the angle whose radian measure is x.
unit downward to get the graph of y = ln(x – 2) – 1. (See Figure 14.)
Thus, the graphs of the sine and cosine functions are as shown below.
Notice that for both the sine and cosine functions the domain is ( , ) and
the range is the closed interval [–1, 1]. Thus, for all values of x, we have
–1 sin x 1 –1 cos x 1
STROUD 67
STROUD 68
67 68
Trigonometric functions Trigonometric functions
Also, the zeros of the sine function occur at the integer multiples of ; that is, The tangent function is related to the sine and cosine functions by the equation
sin x = 0 when x = n where n is an integer. sin
tan
An important property of the sine and cosine functions is that they are periodic functions cos
and have period 2.
and its graph is shown in the figure. It is undefined
This means that, for all values of x, whenever cos x = 0, that is, when x = /2, 3 /2, . . . .
Its range is ( , ).
Note:
Note that the tangent function has period :
- Any function whose output repeats itself over a regular interval is called a periodic
function, the regular interval being called the period of the function. tan(x + ) = tan x for all x. y = tan x
- Every periodic function possesses an amplitude that is given as the difference between
the maximum value and the average value of the output taken over a period. The remaining three trigonometric functions (cosecant, secant, and cotangent) are
the reciprocals of the sine, cosine, and tangent functions.
STROUD 69
STROUD 70
69 70
71 72
Hyperbolic functions: Introduction Hyperbolic functions: Summary of equations
2 4 6 3 5 7
and so: cosh x 1 x x x ... and sinh x x x x x ...
2! 4! 6! 3! 5! 7!
STROUD 73
STROUD 74
73 74
The values of the hyperbolic sine, cosine and tangent can be found using a
calculator.
To find the value of sinh-11.475 it is required to find the value of x such
If your calculator does not possess these facilities, then their values can be that sinh x = 1.475. That is:
found using the exponential key instead. 1
ex 2.950 so that e2 x 2.950e x 1 0
Hence:
ex
For example:
STROUD 75
STROUD 76
75 76
Relationship between trigonometric and hyperbolic functions
Log form of the inverse hyperbolic functions
e y x x 2 1 cos jx cosh x
So that
j sin x sinh jx
y sinh-1 x ln x x 2 1 for x .
Similarly:
Similarly: cosh jx cos x
y cosh-1 x ln x 2
x 1 for x 1.
And further:
sin jx j sinh x
and
tanh jx j tan x
1 1 x
y tanh -1 x ln for 1 x 1.
2 1 x tan jx j tanh x
STROUD 77
STROUD 78
77 78
The following figure shows the graphs of three functions. Note that in part (c), f (a) is
In general, we use the following definition to represent the limit of a function. not defined and in part (b), f (a) L.
However, in each case, regardless of what happens at a, it is true that limxa f (x) = L.
This says that the values of f (x) approach L as x approaches a. In other words, the in all three cases
values of f (x) tend to get closer and closer to the number L as x gets closer and closer
to the number a (from either side of a) but x a.
STROUD 79
STROUD 80
79 80
The limit of a function The limit of a function
Example
The function H is defined by
Guess the value of
Solution:
H (t) approaches 0 as t approaches 0 from the left and H (t) approaches 1 as t
Notice that the function f (x) = (x – 1)(x2 – 1) is not defined when x = 1, but that approaches 0 from the right.
doesn’t matter because the definition of limxa f (x) says that we consider values of x
that are close to a but not equal to a. We indicate this situation symbolically by writing
The tables below give values of f (x) for values of x that approach 1.
and
The notation t 0– indicates that we consider only values of t that are less than 0.
Likewise, t 0+ indicates that we consider only values of t that are greater than 0.
81 82
The limit of a function: One-sided limits The limit of a function: One-sided limits
Similarly, if we require that x be greater than a, we get “the right-hand limit of f (x) as
x approaches a is equal to L” and we write
Thus, the notation x a+ means that we consider only x greater than a. These
definitions are illustrated in the following figure..
Notice that Definition 2 differs from Definition 1 only in that we require x to be less
than a.
STROUD 83
STROUD 84
83 84
The limit of a function The limit of a function: Exercise
The graph of a function g is shown in the following figure. Use it to state the values (if
By comparing Definition 1 with the definitions of one-sided limits, we see that the they exist) of the following:
following is true.
STROUD 85
STROUD 86
85 86
Again, the symbol is not a number, but the expression limxa f (x) = is often read
as “the limit of f (x), as x approaches a, is infinity”.
Graphical representation:
STROUD 87
STROUD 88
87 88
The limit of a function: Example
The limit of a function: Example cont’d
Find the vertical asymptotes of f (x) = tan x. This shows that the line x = /2 is a vertical asymptote. Similar reasoning shows that
the lines x = /2 + n, where n is an integer, are all vertical asymptotes of f (x) = tan x.
Solution:
Because
y = tan x
STROUD 89
STROUD 90
89 90
The limit of a function as x approaches a can often be found simply by calculating the Notice that Definition 1 implicitly requires three things if f is continuous at a:
value of the function at a. Functions with this property are called continuous at a.
1. f (a) is defined (that is, a is in the domain of f )
We will see that the mathematical definition of continuity corresponds closely with the
meaning of the word continuity in everyday language. (A continuous process is one that
2. exists
takes place gradually, without interruption or abrupt change.)
3.
STROUD 91
STROUD 92
91 92
Continuity of a function Continuity of a function: Example 1
In fact, the change in f (x) can be kept as small as we please by keeping the change in x Following is a graph of a function f. At which numbers is f discontinuous? Why?
sufficiently small.
Physical phenomena are usually continuous. For instance, the displacement or velocity
of a vehicle varies continuously with time, as does a person’s height. But
discontinuities do occur in such situations as electric currents.
Solution:
Geometrically, you can think of a function that is continuous at every number in an It looks as if there is a discontinuity when a = 1 because the graph has a break there.
interval as a function whose graph has no break in it: the graph can be drawn without The official reason that f is discontinuous at 1 is that f (1) is not defined.
removing your pen from the paper.
STROUD 93
STROUD 94
93 94
The graph also has a break when a = 3, but the reason for the discontinuity is different. Where are each of the following functions discontinuous?
Here, f (3) is defined, but limx3 f (x) does not exist (because the left and right limits
are different). So, f is discontinuous at 3.
What about a = 5? Here, f (5) is defined and limx5 f (x) exists (because the left and
right limits are the same).
But
So, f is discontinuous at 5.
• Solution:
(a) Notice that f (2) is not defined, so f is discontinuous at 2.
Later we’ll see why f is continuous at all other numbers.
STROUD 95
STROUD 96
95 96
Continuity of a function: Example 2 cont’d cont’d Continuity of a function: Example 2 cont’d
= 3 exists.
STROUD 97
STROUD 98
97 98
Continuity of a function
Continuity of a function Instead of always using Definitions 1, 2, and 3 to verify the continuity of a function, it
is often convenient to use the next theorem, which shows how to build up complicated
continuous functions from simple ones.
It follows from Theorem 4 and Definition 3 that if f and g are continuous on an interval,
then so are the functions f + g, f – g, cf, fg, and (if g is never 0) f/g. The following
theorem was stated as the Direct Substitution Property.
STROUD 99
STROUD 100
99 100
Continuity of a function Continuity of a function
As an illustration of Theorem 5, observe that the volume of a sphere varies continuously
with its radius because the formula V (r) = r 3 shows that V is a polynomial function
of r.
Likewise, if a ball is thrown vertically into the air with a velocity of 50 ft/s, then the
height of the ball in feet t seconds later is given by the formula h = 50t – 16t2.
Again, this is a polynomial function, so the height is a continuous function of the
elapsed time.
Another way of combining continuous functions f and g to get a new continuous function
It turns out that most of the familiar functions are continuous at every number in their
is to form the composite function f g. This fact is a consequence of the following
domains. From the appearance of the graphs of the sine and cosine functions, we would theorem.
certainly guess that they are continuous.
101 102
Intuitively, Theorem 8 is reasonable because if x is close to a, then g(x) is close to b, The Intermediate Value Theorem states that a continuous function takes on every
and since f is continuous at b, if g(x) is close to b, then f (g(x)) is close to f (b). intermediate value between the function values f (a) and f (b). It is illustrated by the
following figure.
Note that the value N can be taken on once or more than once.
An important property of continuous functions is expressed by the following theorem,
whose proof is found in more advanced books on calculus.
STROUD 103
STROUD 104
103 104
Continuity of a function
Practice problems (from the textbook)
It is important that the function f in Theorem 10 be continuous. The Intermediate Value Questions from 1.1 Exercises: 1,2,3,9,11,22,31,46,73,79.
Theorem is not true in general for discontinuous functions.
Questions from 1.2 Exercises: 2,3, 5, 8, 11, 12, 15, 21, 23, 26.
Questions from 1.5 Exercises: 1,3,4,11, 14, 28, 29, 32, 40, 45, 48.
We can use a graphing calculator or computer to illustrate the use of the Intermediate
Value Theorem. Questions from 1.8 Exercises: 3, 4, 5, 6, 10, 11, 16, 17, 25, 33, 59, 62.
Questions from 6.1 Exercises: 2, 3, 7, 10, 15, 17, 20, 21, 23, 25, 29, 35.
Following figure shows the graph of f in the Questions from 6.2 Exercises: 1, 2, 4, 13, 14, 17, 18, 20, 21, 64.
viewing rectangle [–1, 3] by [–3, 3] and Questions from 6.3 Exercises: 1, 2, 3, 9, 10, 13, 19, 20, 25, 42.
you can see that the graph crosses the Questions from 6.7 Exercises: 1, 5, 7, 9, 19, 20, 21, 23, 49, 50.
x-axis between 1 and 2.
STROUD 105
STROUD 106
105 106