01 Functions - Compatibility Mode
01 Functions - Compatibility Mode
1.1 Function
1
Four Ways to Represent a Function
Functions arise whenever one quantity depends on
another. Consider the following four situations.
2
Four Ways to Represent a Function
B. The human population of the world P depends on the
time t. The table gives estimates of the world population
P(t) at time t, for certain years. For instance,
P(1950) 2,560,000,000
3
Four Ways to Represent a Function
C. The cost C of mailing a large envelope depends on the
weight w of the envelope. Although there is no simple
formula that connects w and C, the post office has a rule
for determining C when w is known.
4
Four Ways to Represent a Function
Figure 1 shows a graph generated by seismic activity
during the Northridge earthquake that shook Los
Angeles in 1994. For a given value of t, the graph
provides a corresponding value of a.
7
Four Ways to Represent a Function
If x is in the domain of the function f, then x enters the
machine, it’s accepted as an input and the machine
produces an output f(x) according to the rule of the
function.
8
Four Ways to Represent a Function
Another way to picture a function is by an arrow diagram as in
Figure 3.
10
Four Ways to Represent a Function
Since the y-coordinate of any point (x, y) on the graph is
y = f(x), we can read the value of f(x) from the graph as
being the height of the graph above the point x
(see Figure 4).
Figure 4
11
Four Ways to Represent a Function
The graph of f also allows us to picture the domain of f on
the x-axis and its range on the y-axis as in Figure 5.
Figure 5
12
Example 1
The graph of a function f is shown in Figure 6.
(a) Find the values of f(1) and f(5).
(b) What are the domain and range of f ?
Figure 6
The notation for intervals is given in Appendix A.
13
Example 1 – Solution
(a) We see from Figure 6 that the point (1, 3) lies on the
graph of f, so the value of f at 1 is f(1) = 3. (In other
words, the point on the graph that lies above x = 1 is 3
units above the x-axis.)
{y | –2 y 4} = [–2, 4]
14
Representations of Functions
15
Representations of Functions
There are four possible ways to represent a function:
16
Representations of Functions
The graph of a function is a curve in the xy-plane. But the
question arises: Which curves in the xy-plane are graphs of
functions? This is answered by the following test.
The reason for the truth of the Vertical Line Test can be
seen in Figure 13.
Figure 13 17
Representations of Functions
If each vertical line x = a intersects a curve only once, at
(a, b), then exactly one functional value is defined by
f(a) = b.
18
Representations of Functions
For example, the parabola x = y2 – 2 shown in Figure 14(a)
is not the graph of a function of x because, as you can see,
there are vertical lines that intersect the parabola twice.
The parabola, however, does contain the graphs of two
functions of x.
x = y2 – 2
Figure 14(a)
19
Representations of Functions
Notice that the equation x = y2 – 2 implies y2 = x + 2, so
.
Thus the upper and lower halves of the parabola are the
graphs of the functions and
[See Figures 14(b) and (c).]
20
Representations of Functions
We observe that if we reverse the roles of x and y, then the
equation x = h(y) = y2 – 2 does define x as a function of y
(with y as the independent variable and x as the dependent
variable) and the parabola now appears as the graph of the
function h.
21
Piecewise Defined Functions
22
Example 7
A function f is defined by
1 – x if x –1
f(x) =
x2 if x > –1
Solution:
Remember that a function is a rule. For this particular
function the rule is the following:
On the other hand, if x > –1, then the value of f(x) is x2.
24
Example 7 – Solution cont’d
If x > –1, then f(x) = x2, so the part of the graph of f that lies
to the right of the line x = –1 must coincide with the graph
of y = x2, which is a parabola. This enables us to sketch the
graph in Figure 15.
Figure 15
For example,
|3 – | = – 3
26
Piecewise Defined Functions
In general, we have
27
Example 8
Sketch the graph of the absolute value function f(x) = |x|.
Solution:
From the preceding discussion we know that
x if x 0
|x| =
–x if x < 0
28
Example 8 – Solution cont’d
Figure 16
29
Example 10
In Example C at the beginning of this section we
considered the cost C(w) of mailing a large envelope with
weight w.
0.88 if 0 < w 1
1.05 if 1 < w 2
C(w) = 1.22 if 2 < w 3
1.39 if 3 < w 4
30
Example 10 cont’d
Figure 18
You can see why functions similar to this one are called
step functions—they jump from one value to the next.
31
Symmetry
32
Symmetry
If a function f satisfies f(–x) = f(x) for every number x in its
domain, then f is called an even function. For instance,
the function f(x) = x2 is even because
An even function
Figure 19
33
Symmetry
This means that if we have plotted the graph of f for x 0,
we obtain the entire graph simply by reflecting this portion
about the y-axis.
34
Symmetry
The graph of an odd function is symmetric about the origin
(see Figure 20).
An odd function
Figure 20
Solution:
(a) f(–x) = (–x)5 + (–x) = (–1)5x5 + (–x)
= –x5 – x = –(x5 + x)
= –f(x)
So g is even.
37
Symmetry
The graphs of the functions in Example 11 are shown in
Figure 21. Notice that the graph of h is symmetric neither
about the y-axis nor about the origin.
Figure 21
38
Increasing and Decreasing
Functions
39
Increasing and Decreasing Functions
The graph shown in Figure 22 rises from A to B, falls from
B to C, and rises again from C to D. The function f is said to
be increasing on the interval [a, b], decreasing on [b, c],
and increasing again on [c, d].
Figure 22
40
Increasing and Decreasing Functions
Notice that if x1 and x2 are any two numbers between
a and b with x1 < x2, then f(x1) < f(x2).
41
Increasing and Decreasing Functions
In the definition of an increasing function it is important to
realize that the inequality f(x1) < f(x2) must be satisfied for
every pair of numbers x1 and x2 in I with x1 < x2.
Figure 23
42
Polynomials (多項式函數)
43
Polynomials
A function P is called a polynomial if
is a polynomial of degree 6.
44
Polynomials
A polynomial of degree 1 is of the form P(x) = mx + b and
so it is a linear function.
45
Polynomials
Its graph is always a parabola obtained by shifting the
parabola y = ax2. The parabola opens upward if a > 0 and
downward if a < 0. (See Figure 7.)
Figure 8 47
Power Functions (冪函數)
48
Power Functions
A function of the form f(x) = xa, where a is a constant, is
called a power function. We consider several cases.
49
Power Functions
51
Power Functions
Notice from Figure 12, however, that as n increases, the
graph of y = xn becomes flatter near 0 and steeper when
|x| 1. (If x is small, then x2 is smaller, x3 is even smaller,
x4 is smaller still, and so on.)
56
Rational Functions
A rational function f is a ratio of two polynomials:
Figure 14 57
Rational Functions
The function
Figure 16 58
Algebraic Functions (代數函數)
59
Algebraic Functions
A function f is called an algebraic function if it can be
constructed using algebraic operations (such as addition,
subtraction, multiplication, division, and taking roots)
starting with polynomials. Any rational function is
automatically an algebraic function.
60
Trigonometric Functions (三角函數)
61
Trigonometric Functions
In calculus the convention is that radian measure is always
used (except when otherwise indicated).
62
Trigonometric Functions
Thus the graphs of the sine and cosine functions are as
shown in Figure 18.
Figure 18 63
Trigonometric Functions
Notice that for both the sine and cosine functions the domain
is ( , ) and the range is the closed interval [–1, 1].
|sin x| 1 |cos x| 1
64
Trigonometric Functions
Also, the zeros of the sine function occur at the integer
multiples of ; that is,
65
Trigonometric Functions
The tangent function is related to the sine and cosine
functions by the equation
67
Exponential Functions (指數函數)
68
Exponential Functions
The exponential functions are the functions of the form
f(x) = ax, where the base a is a positive constant.
Figure 20
69
Exponential Functions
Exponential functions are useful for modeling many natural
phenomena, such as population growth (if a > 1) and
radioactive decay (if a < 1).
70
Logarithmic Functions (對數函數)
71
Logarithmic Functions
The logarithmic functions f(x) = logax, where the base a is a
positive constant, are the inverse functions of the exponential
functions. Figure 21 shows the graphs of four logarithmic
functions with various bases.
Figure 21
72
Example 5
Classify the following functions as one of the types of
functions that we have discussed.
(a) f(x) = 5x
(b) g(x) = x5
(c)
(d) u(t) = 1 – t + 5t 4
73
Example 5 – Solution
(a) f(x) = 5x is an exponential function.
(The x is the exponent.)
74
Transformations of Functions
(函數轉換)
75
Transformations of Functions
By applying certain transformations to the graph of a given
function we can obtain the graphs of certain related
functions.
78
Transformations of Functions
The graph of y = –f(x) is the graph of y = f(x) reflected about
the x-axis because the point (x, y) is replaced by the
point (x, –y).
80
Transformations of Functions
Figure 3 illustrates these stretching transformations when
applied to the cosine function with c = 2.
Figure 3
81
Transformations of Functions
For instance, in order to get the graph of y = 2 cos x we
multiply the y-coordinate of each point on the graph of
y = cos x by 2.
82
Example 1
Given the graph of use transformations to graph
and
Solution:
The graph of the square root function , is shown in
Figure 4(a).
Figure 4 83
Example 1 – Solution cont’d
Figure 4
This tells us how to get the graph of y = |f(x)| from the graph
of y = f(x): The part of the graph that lies above the x-axis
remains the same; the part that lies below the x-axis is
reflected about the x-axis.
85
Combinations of Functions
(函數組合)
86
Combinations of Functions
Two functions f and g can be combined to form new
functions f + g, f – g, fg, and f/g in a manner similar to the
way we add, subtract, multiply, and divide real numbers.
The sum and difference functions are defined by
(f + g)(x) = f(x) + g(x) (f – g)(x) = f(x) – g(x)
If the domain of f is A and the domain of g is B, then the
domain of f + g is the intersection A ∩ B because both
f(x) and g(x) have to be defined.
For example, the domain of is A = [0, ) and the
domain of is B = ( , 2], so the domain of
is A ∩ B = [0, 2].
87
Combinations of Functions
Similarly, the product and quotient functions are defined by
88
Combinations of Functions
There is another way of combining two functions to obtain a
new function. For example, suppose that y = f(u) =
and u = g(x) = x2 + 1.
90
Combinations of Functions
The domain of f g is the set of all x in the domain of g such
that g(x) is in the domain of f.
Solution:
We have
(f g)(x) = f(g(x)) = f(x – 3) = (x – 3)2
92
Combinations of Functions
Remember, the notation f g means that the function g is
applied first and then f is applied second. In Example 6,
f g is the function that first subtracts 3 and then squares;
g f is the function that first squares and then subtracts 3.
(f g h)(x) = f(g(h(x)))
93
Exponential Functions
One reason for the importance of the exponential function
lies in the following properties.
94
Example 1
Sketch the graph of the function y = 3 – 2x and determine
its domain and range.
Solution:
First we reflect the graph of y = 2x in Figure 5(a) about the
x-axis to get the graph of y = –2x in Figure 5(b).
(c) y = 3 – 2x
Figure 5
97
Inverse Functions and Logarithms
If a horizontal line intersects the
graph of f in more than one point,
then we see from Figure 2 that
there are numbers x1 and x2
such that f(x1) = f(x2).
This function is not one-to-one
This means that f is not one-to-one. because f(x1) = f(x2).
Figure 2
98
Example 1
Is the function f(x) = x3 one-to-one?
Solution 1:
If x1 ≠ x2, then x13 ≠ x23 (two different numbers can’t have
the same cube).
Therefore, by Definition 1, f(x) = x3 is one-to-one.
Solution 2:
From Figure 3 we see that no
horizontal line intersects the
graph of f(x) = x3 more than once.
Therefore, by the Horizontal f(x) = x3 is one-to-one.
Line Test, f is one-to-one. Figure 3
99
Inverse Functions and Logarithms
One-to-one functions are important because they are
precisely the functions that possess inverse functions
according to the following definition.
Figure 5
Note that
101
Inverse Functions and Logarithms
For example, the inverse function of f(x) = x3 is f –1(x) = x1/3
because if y = x3, then
Caution
Do not mistake the –1 in f –1 for an exponent. Thus
102
Example 3
If f(1) = 5, f(3) = 7, and f(8) = –10, find f –1(7), f –1(5), and
f –1(–10).
Solution:
From the definition of f –1 we have
103
Example 3 – Solution cont’d
Figure 6
104
Inverse Functions and Logarithms
The letter x is traditionally used as the independent
variable, so when we concentrate on f –1 rather than on f,
we usually reverse the roles of x and y in Definition 2 and
write
105
Inverse Functions and Logarithms
The first cancellation equation says that if we start with x,
apply f, and then apply f –1, we arrive back at x, where we
started (see the machine diagram in Figure 7).
Figure 7
106
Inverse Functions and Logarithms
For example, if f(x) = x3, then f –1(x) = x1/3 and so the
cancellation equations become
f –1(f(x)) = (x3)1/3 = x
f(f –1(x)) = (x1/3)3 = x
These equations simply say that the cube function and the
cube root function cancel each other when applied in
succession.
107
Inverse Functions and Logarithms
Now let’s see how to compute inverse functions.
If we have a function y = f(x) and are able to solve this
equation for x in terms of y, then according to Definition 2
we must have x = f –1(y).
If we want to call the independent variable x, we then
interchange x and y and arrive at the equation y = f –1(x).
108
Inverse Functions and Logarithms
The principle of interchanging x and y to find the inverse
function also gives us the method for obtaining the graph of
f –1 from the graph of f.
Figure 8 109
Inverse Functions and Logarithms
Therefore, as illustrated by Figure 9:
Figure 9
110
Logarithmic Functions
111
Logarithmic Functions
If b > 0 and b ≠ 1, the exponential function f(x) = bx is either
increasing or decreasing 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 logb.
112
Logarithmic Functions
Thus, if x > 0, then logb x is the exponent to which the
base b must be raised to give x.
113
Logarithmic Functions
The logarithmic function logb has domain (0, ) and
range . Its graph is the reflection of the graph of y = bx
about the line y = x.
Figure 12
115
Logarithmic Functions
The following properties of logarithmic functions follow from
the corresponding properties of exponential functions.
116
Example 6
Use the laws of logarithms to evaluate log2 80 – log2 5.
Solution:
Using Law 2, we have
= log2 16
=4
because 24 = 16.
117
Inverse Trigonometric Functions
118
Inverse Trigonometric Functions
When we try to find the inverse trigonometric functions, we
have a slight difficulty: Because the trigonometric functions
are not one-to-one, they don’t have inverse functions.
119
Inverse Trigonometric Functions
You can see from Figure 17 that the sine function y = sin x
is not one-to-one (use the Horizontal Line Test).
Figure 17
Figure 18 120
Inverse Trigonometric Functions
The inverse function of this restricted sine function f exists
and is denoted by sin–1 or arcsin. It is called the inverse
sine function or the arcsine function.
f –1(x) = y f(y) = x
we have
121
Inverse Trigonometric Functions
Thus, if –1 x 1, sin–1x is the number between –/2 and
/2 whose sine is x.
122
Example 12
Evaluate (a) sin–1 and (b) tan(arcsin ).
Solution:
(a) We have
123
Example 12 – Solution cont’d
Figure 19
124
Inverse Trigonometric Functions
The cancellation equations for inverse functions become, in
this case,
125
Inverse Trigonometric Functions
The inverse sine function, sin–1, has domain [–1, 1] and
range [–/2, /2], and its graph, shown in Figure 20, is
obtained from that of the restricted sine function (Figure 18)
by reflection about the line y = x.
y = sin x, x
y = sin–1 x = arcsin x
Figure 18
Figure 20
126
Inverse Trigonometric Functions
The inverse cosine function is handled similarly. The
restricted cosine function f(x) = cos x, 0 x , is
one-to-one (see Figure 21) and so it has an inverse
function denoted by cos–1 or arccos.
y = cos x, 0 x
Figure 21 127
Inverse Trigonometric Functions
The cancellation equations are
y = cos –1 x = arccos x
Figure 22
128
Inverse Trigonometric Functions
The tangent function can be made one-to-one by restricting
it to the interval (–/2, /2). Thus the inverse tangent
function is defined as the inverse of the function
f(x) = tan x, –/2 x /2. (See Figure 23.) It is denoted by
tan–1 or arctan.
y = tan x,
Figure 23 129
Inverse Trigonometric Functions
The remaining inverse trigonometric functions are
summarized here.
130