1.3 Functions and Their Graphs
1.3 Functions and Their Graphs
1.3 Functions and Their Graphs
3
2
9
4
,
x
y
0 1 2 1 2
1
2
3
4
x
y
y x
2
To find out, we could plot more points. But how would we then connect them? The
basic question still remains: How do we know for sure what the graph looks like
between the points we plot? The answer lies in calculus, as we will see in Chapter 4.
There we will use the derivative to find a curves shape between plotted points. Mean-
while we will have to settle for plotting points and connecting them as best we can.
EXAMPLE 3 Evaluating a Function from Its Graph
The graph of a fruit fly population p is shown in Figure 1.26.
(a) Find the populations after 20 and 45 days.
(b) What is the (approximate) range of the population function over the time interval
Solution
(a) We see from Figure 1.26 that the point (20, 100) lies on the graph, so the value of the
population p at 20 is Likewise, p(45) is about 340.
(b) The range of the population function over is approximately [0, 345]. We
also observe that the population appears to get closer and closer to the value
as time advances.
p = 350
0 t 50
ps20d = 100.
0 t 50?
Computers and graphing calculators
graph functions in much this wayby
stringing together plotted pointsand
the same question arises.
4100 AWL/Thomas_ch01p001-072 8/19/04 10:50 AM Page 22
Copyright 2005 Pearson Education, Inc., publishing as Pearson Addison-Wesley
1.3 Functions and Their Graphs 23
Representing a Function Numerically
We have seen how a function may be represented algebraically by a formula (the area
function) and visually by a graph (Examples 2 and 3). Another way to represent a function
is numerically, through a table of values. Numerical representations are often used by en-
gineers and applied scientists. From an appropriate table of values, a graph of the function
can be obtained using the method illustrated in Example 2, possibly with the aid of a com-
puter. The graph of only the tabled points is called a scatterplot.
EXAMPLE 4 A Function Defined by a Table of Values
Musical notes are pressure waves in the air that can be recorded. The data in Table 1.2 give
recorded pressure displacement versus time in seconds of a musical note produced by a
tuning fork. The table provides a representation of the pressure function over time. If we
first make a scatterplot and then connect the data points (t, p) from the table, we obtain the
graph shown in Figure 1.27.
TABLE 1.2 Tuning fork data
Time Pressure Time Pressure
0.00091 0.00362 0.217
0.00108 0.200 0.00379 0.480
0.00125 0.480 0.00398 0.681
0.00144 0.693 0.00416 0.810
0.00162 0.816 0.00435 0.827
0.00180 0.844 0.00453 0.749
0.00198 0.771 0.00471 0.581
0.00216 0.603 0.00489 0.346
0.00234 0.368 0.00507 0.077
0.00253 0.099 0.00525
0.00271 0.00543
0.00289 0.00562
0.00307 0.00579
0.00325 0.00598
0.00344 -0.041
-0.035 -0.248
-0.248 -0.348
-0.354 -0.309
-0.320 -0.141
-0.164
-0.080
0.6
0.4
0.2
0.2
0.4
0.6
0.8
1.0
t (sec)
p (pressure)
0.001 0.002 0.004 0.006 0.003 0.005 0.007
Data
FIGURE 1.27 A smooth curve through the plotted points
gives a graph of the pressure function represented by
Table 1.2.
The Vertical Line Test
Not every curve you draw is the graph of a function. A function can have only one value
(x) for each x in its domain, so no vertical line can intersect the graph of a function more
than once. Thus, a circle cannot be the graph of a function since some vertical lines inter-
sect the circle twice (Figure 1.28a). If a is in the domain of a function , then the vertical
line will intersect the graph of in the single point (a, (a)).
The circle in Figure 1.28a, however, does contain the graphs of two functions of x; the
upper semicircle defined by the function and the lower semicircle de-
fined by the function (Figures 1.28b and 1.28c). gsxd = - 21 - x
2
sxd = 21 - x
2
x = a
4100 AWL/Thomas_ch01p001-072 8/19/04 10:50 AM Page 23
Copyright 2005 Pearson Education, Inc., publishing as Pearson Addison-Wesley
24 Chapter 1: Preliminaries
1 1 0
x
y
(a) x
2
y
2
1
1 1 0
x
y
1 1
0
x
y
(b) y 1 x
2
(c) y 1 x
2
FIGURE 1.28 (a) The circle is not the graph of a function; it fails the vertical line test. (b) The upper semicircle is the graph of a function
(c) The lower semicircle is the graph of a function gsxd = - 21 - x
2
. sxd = 21 - x
2
.
Piecewise-Defined Functions
Sometimes a function is described by using different formulas on different parts of its do-
main. One example is the absolute value function
whose graph is given in Figure 1.29. Here are some other examples.
EXAMPLE 5 Graphing Piecewise-Defined Functions
The function
is defined on the entire real line but has values given by different formulas depending on
the position of x. The values of are given by: when when
and when The function, however, is just one function whose
domain is the entire set of real numbers (Figure 1.30).
EXAMPLE 6 The Greatest Integer Function
The function whose value at any number x is the greatest integer less than or equal to x is
called the greatest integer function or the integer floor function. It is denoted or,
in some books, [x] or [[x]] or int x. Figure 1.31 shows the graph. Observe that
:2.4; = 2, :1.9; = 1, :0; = 0, : -1.2; = -2,
:2; = 2, :0.2; = 0, : -0.3; = -1 : -2; = -2.
:x; ,
x 7 1. y = 1 0 x 1,
x 6 0, y = x
2
y = -x
sxd =
-x, x 6 0
x
2
, 0 x 1
1, x 7 1
x = e
x, x 0
-x, x 6 0,
2 1 0 1 2
1
2
x
y
y x
y x
2
y 1
y f (x)
FIGURE 1.30 To graph the
function shown here,
we apply different formulas to
different parts of its domain
(Example 5).
y = sxd
x
y
x
y x
y x
y
3 2 1 0 1 2 3
1
2
3
FIGURE 1.29 The absolute value
function has domain
and range [0, qd .
s - q, qd
4100 AWL/Thomas_ch01p001-072 8/19/04 10:50 AM Page 24
Copyright 2005 Pearson Education, Inc., publishing as Pearson Addison-Wesley
1.3 Functions and Their Graphs 25
EXAMPLE 7 The Least Integer Function
The function whose value at any number x is the smallest integer greater than or equal to
x is called the least integer function or the integer ceiling function. It is denoted
Figure 1.32 shows the graph. For positive values of x, this function might represent, for ex-
ample, the cost of parking x hours in a parking lot which charges $1 for each hour or part
of an hour.
EXAMPLE 8 Writing Formulas for Piecewise-Defined Functions
Write a formula for the function whose graph consists of the two line segments
in Figure 1.33.
Solution We find formulas for the segments from (0, 0) to (1, 1), and from (1, 0) to
(2, 1) and piece them together in the manner of Example 5.
Segment from (0, 0) to (1, 1) The line through (0, 0) and (1, 1) has slope
and y-intercept Its slope-intercept equation is
The segment from (0, 0) to (1, 1) that includes the point (0, 0) but not the point (1, 1) is the
graph of the function restricted to the half-open interval namely,
Segment from (1, 0) to (2, 1) The line through (1, 0) and (2, 1) has slope
and passes through the point (1, 0). The corresponding point-
slope equation for the line is
The segment from (1, 0) to (2, 1) that includes both endpoints is the graph of
restricted to the closed interval namely,
Piecewise formula Combining the formulas for the two pieces of the graph, we obtain
sxd = e
x, 0 x 6 1
x - 1, 1 x 2.
y = x - 1, 1 x 2.
1 x 2,
y = x - 1
y = 0 + 1(x - 1), or y = x - 1.
m = s1 - 0d>s2 - 1d = 1
y = x, 0 x 6 1.
0 x 6 1, y = x
y = x. b = 0. m = s1 - 0d>s1 - 0d = 1
y = sxd
<
x
=
.
x
y
1 1 2 2 3
2
1
1
2
3
y x
y
x
y
1
1
0 2
(1, 1) (2, 1)
y f (x)
FIGURE 1.33 The segment on the
left contains (0, 0) but not (1, 1).
The segment on the right contains
both of its endpoints (Example 8).
FIGURE 1.32 The graph of the
least integer function lies
on or above the line so it
provides an integer ceiling for x
(Example 7).
y = x,
y =
<
x
=
1
2
2
3
2 1 1 2 3
y x
y x
x
y FIGURE 1.31 The graph of the
greatest integer function
lies on or below the line so
it provides an integer floor for x
(Example 6).
y = x,
y = :x;
4100 AWL/Thomas_ch01p001-072 8/19/04 10:50 AM Page 25
Copyright 2005 Pearson Education, Inc., publishing as Pearson Addison-Wesley