0% found this document useful (0 votes)
626 views

0.4 Combinations of Functions

This document discusses combinations of functions, which involve putting together simpler functions to describe more complex situations. It provides two examples: 1) A sales tax function that has different tax rates (0%, 12%, 6%) depending on the item purchased. 2) A wind chill index function that calculates an equivalent temperature based on the actual temperature and wind speed, using a multi-line definition. It then discusses composing functions, where one function is the input to another, and provides an example of evaluating compositions of several simple functions. It also discusses how compositions can shift and stretch graphs of functions.

Uploaded by

benalyn ignacio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
626 views

0.4 Combinations of Functions

This document discusses combinations of functions, which involve putting together simpler functions to describe more complex situations. It provides two examples: 1) A sales tax function that has different tax rates (0%, 12%, 6%) depending on the item purchased. 2) A wind chill index function that calculates an equivalent temperature based on the actual temperature and wind speed, using a multi-line definition. It then discusses composing functions, where one function is the input to another, and provides an example of evaluating compositions of several simple functions. It also discusses how compositions can shift and stretch graphs of functions.

Uploaded by

benalyn ignacio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

0.

4 Combinations of Functions Contemporary Calculus


1

0.4 COMBINATIONS OF FUNCTIONS


Multiline Definitions of Functions -- Putting Pieces Together
Sometimes a physical or economic situation behaves differently depending on circumstances, and a more
complicated function may be needed to describe the situation.

Sales Tax: Some states have different rates of sale tax depending on the type of item purchased. A "luxury
item" may be taxed at 12%, food may have no tax, and all other items may have a 6% tax. We could describe
this situation by using a multiline function, a function whose defining rule consists of several pieces. Which
piece of the rule we need to use will depend on what we buy. In this example we could define the tax T on an
item which costs x to be

⎧⎪ 0 if x is the cost of a food


T(x) = ⎨⎪ 0.12x if x is the cost of a luxury item
⎩ 0.06x if x is the cost of any other item.
To find the tax on a $2 can of stew, we would use the first piece of the rule and find that the tax is 0. To find
the tax on a $30 pair of earrings, we would use the second piece of the rule and find that the tax is $3.60 . The
tax on a $20 book requires using the third rule, and the tax is $1.20 .

Wind Chill Index: The rate at which a person's body loses heat depends on the temperature of the surrounding air
and on the speed of the air. You lose heat more quickly on a windy day than you do on a day with little or no wind.
Scientists have experimentally determined this rate of heat loss as a function of temperature and wind speed, and
the resulting function is called the Wind Chill Index, WCI . The WCI is the temperature on a still day (no wind) at
o
which your body would lose heat at the same rate as on the windy day. For example, the WCI value for 30 F air
o o
moving at 15 miles per hour is 9 F: your body loses heat as quickly on a 30 F day with a 15 mph wind as it
o
does on a 9 F day with no wind.

If T is the Fahrenheit temperature of the air and v is the speed of the wind in miles per hour, then the WCI is a
multiline function of the wind speed v (and of the temperature T):

⎧⎪ T if 0 ≤ v ≤ 4
10.45 + 6.69 v – 0.447v
WCI = ⎨ 91.4 – 22 (91.5 – T) if 4 ≤ v ≤ 45
⎪⎩
1.60T – 55 if v > 45
The WCI value for a still day (0 ≤ v ≤ 4 mph) is just the air temperature. The WCI values for wind speeds
above 45 mph are the same as the WCI value for a wind speed of 45 mph. The WCI values for wind speeds
between 4 mph and 45 mph decrease as the wind speeds increase.

This WCI function depends on two variables, the temperature and the wind speed. However, if the temperature is
constant, then the resulting formula for the WCI will only depend on the speed of the wind. If the air temperature
o
is 30 F (T = 30), then the formula for the Wind Chill Index is
0.4 Combinations of Functions Contemporary Calculus
2

$ 30 o if 0 " v " 4 mph (


& &
WCI30 = %62.19 #18.70 v + 1.25v if 4 " v " 45 mph )
& 0 &
'#7 if 45 " v mph *

The graphs of the the Wind Chill Indices are shown


o o
on Fig. 1 for temperatures of 40 F, 30 F and
! o
20 F . (From UMAP Module 658, Windchill by
William Bosch and L.G. Cobb, 1984. )

Practice 1: A motel charges $50 per night for a


room during the tourist season from June 1
through September 15, and $40 per night
otherwise. Define a multiline function which
describes these rates.

⎪⎧ 2 if x < 0
Example 1: Define f(x) = ⎨⎪ 2x if 0 ≤ x < 2
⎩ 1 if 2 < x
Evaluate f(–3), f(0), f(1), f(4) and f(2). Graph y = f(x) for –1 ≤ x ≤ 4 .

Solution: To evaluate the function for different values of x, we must first decide which
line of the rule applies. If x = –3 < 0, then we need to use the first line of the rule,
and f(–3) = 2. When x = 0 or x = 1, we need the second line of the function
definition, and then f(0) = 2(0) = 0 and f(1) = 2(1) = 2. At x = 4 the
third line is needed, and f(4) = 1. Finally, at x = 2, none of the lines apply:
the second line requires x < 2 and the third line requires 2 < x, so f(2) is
undefined. The graph of f(x) is given in Fig. 2. Note the "hole" above
x = 2 since f(2) is not defined by this rule for f.

⎧⎪ x if x < –1
2 if –1 ≤ x < 1
Practice 2: Define g(x) = ⎨ –x if 1 < x ≤ 3 Graph y = g(x) for –3 ≤ x ≤ 6 and
⎩⎪ 1 if 4 < x.

evaluate g(–3), g(–1), g(0), g(1/2), g(1), g(π/3), g(2), g(3), g(4) and g(5) .

Practice 3: Write a multiline function definition for the function


whose graph is given in Fig. 3 .
0.4 Combinations of Functions Contemporary Calculus
3

We can think of a multiline function definition as a machine


which first examines the input value to decide which line of
the function rule to apply (Fig. 4).

Composition of Functions –– Functions of Functions


Basic functions are often combined with each other to describe more complicated situations. Here we will
consider the composition of functions, functions of functions.

Definition: The composite of two functions f and g , written f°g , is f° g(x) ≡ f( g(x) ).

The domain of the composite function f °g(x) = f( g(x) ) consists of those x–values for which g(x) and

f( g(x) ) are both defined –– we can evaluate the composition of two functions at a point x only if each step in
the composition is defined.

If we think of our functions as machines, then composition is simply


a new machine consisting of an arrangement of the original
machines. The composition f°g of the function machines f and g

shown in Fig. 5(a) is an arrangement of the machines so that the


original input x goes into machine g , the output from machine g
becomes the input into machine f , and the output from machine f is
our final output. The composition of the function machines
f°g(x) = f( g(x) ) is only valid if x is an allowable input into g (x

is in the domain of g) and if g(x) is then an allowable input into f .


The composition g °f involves arranging the machines so the original

input goes into f , and the output from f then


becomes the input for g (Fig. 5(b) ).
0.4 Combinations of Functions Contemporary Calculus
4

Example 2:
2
For f(x) = x – 2 , g(x) = x , and h(x) = { 3xx – 1 if x < 2
if 2 ≤ x ,

evaluate f°g(3), g °f(6), f °h(2) and h °g(–3). Find the equations and domains of f°g(x) and g °f(x).

2
Solution: f°g(3) = f( g(3) ) = f( 3 ) = f( 9 ) = 9–2 = 7 ≈ 2.646
2
g°f(6) = g( f(6) ) = g( 6 – 2 ) = g( 4 ) = g( 2 ) = 2 = 4
f°h(2) = f( h(2) ) = f( 2 – 1 ) = f( 1 ) = 1–2 = –1 which is undefined
h°g(–3) = h( g(–3) ) = h( 9 ) = 9 – 1 = 8.

2 2
f°g(x) = f( g(x) ) = f( x ) = x – 2 , and the domain of f°g is those x–values for which
2
x – 2 ≥ 0 so the domain of f°g is all x such that x ≥ 2 or x ≤ – 2 .

g°f(x) = g( f(x) ) = g( x – 2 )={ x–2 }2 = x – 2 , but we can evaluate the first piece, f, of the
composition only if f(x) = x – 2 is defined, so the domain of g °f is all x ≥ 2.
x 2x if x ≤ 1
Practice 4: For f(x) = x–3 , g(x) = 1+x , and h(x) = 5 – x { if 1 < x.
Evaluate f°g(3), f °g(8), g °f(4), f °h(1), f°h(3), f°h(2) and h°g(–1). Find the equations for f °g(x) and g°f(x).

Shifting and Stretching Graphs


Some compositions are relatively common and easy, and you should
recognize the effect of the composition on the graphs of the functions.
Example 3: Fig. 6 shows the graph of y = f(x).
Graph (a) 2 + f(x), (b) 3 .f(x), and (c) f(x – 1) .

Solution: All of the new graphs are shown below in Fig. 7 .


(a) Adding 2 to all of the values of f(x) rigidly shifts the graph of f(x) 2 units upward.
(b) Multiplying all of the values of f(x) by 3 leaves all of the roots of f fixed: if x is a root of f then f(x) = 0
and 3f(x) = 3(0) = 0 so x is also a root of 3.f(x). If x is not a root of f, then the graph of 3f(x) looks like
the graph of f(x) stretched vertically by a factor of 3.
(c) The graph of f(x–1) is the graph of f(x) rigidly shifted 1 units to the right.

We could also get these results by examining the graph of y = f(x), creating a table of values for f(x)
0.4 Combinations of Functions Contemporary Calculus
5

and the new functions, and then graphing the new functions.

x f(x) 2 + f(x) 3f(x) x–1 f(x–1)


–1 –1 1 –3 –2 f(–2) not defined
0 0 2 0 –1 f(0–1) = –1
1 1 3 3 0 f(1–1) = 0
2 1 3 3 1 f(2–1) = 1
3 2 4 6 2 f(3–1) = 1
4 0 2 0 3 f(4–1) = 2
5 –1 1 –3 4 f(5–1) = 0

If k is a positive constant, then


• the graph of y = k + f(x) will be the graph of y = f(x) rigidly shifted up by k units,
• the graph of y = kf(x) will have the same roots as the graph of f(x) and will be the graph of y = f(x)
vertically stretched by a factor of k,
• the graph of y = f(x – k) will be the graph of y = f(x) rigidly shifted right by k units,
• the grah of y = f(x + k) will be the graph of y = f(x) rigidly shifted left by k units.
Practice 5: Fig. 8 is the graph of g(x).
Graph (a) 1+g(x), (b) 2g(x), (c) g(x–1) and (d) –3g(x).

Iteration of Functions

There are applications which feed the output from a function machine
back into the same machine as the new input. Each time through the
machine is called an iteration of the function.

5/x + x
Example 4: Suppose f(x) = 2 , and we start with the

input x = 4 and repeatedly feed the output from f


back into f (Fig. 9). What happens?

Solution: Iteration Input Output


5/4 + 4
1 4 f(4) = 2 = 2.625
5/2.625 + 2.625
2 2.625 f( f(4) ) = 2 = 2.264880952
3 2.264880952 f( f( f(4) ) ) = 2.236251251
4 2.236251251 2.236067985
5 2.236067985 2.236067977
6 2.236067977 2.236067977

Once we have obtained the output 2.236067977, we will just keep getting the same output. You might
recognize this output value as 5 . This algorithm always finds ± 5 . If we start with any positive input, the
0.4 Combinations of Functions Contemporary Calculus
6

values will eventually get as close to 5 as we want. Starting with any negative value for the input will
eventually get us to – 5 . We cannot start with x = 0, since 5/0 is undefined.

Practice 6: What happens if we start with the input value x = 1 and iterate the function
9/x + x
f(x) = 2 several times? Do you recognize the resulting number? What do you think will
A/x + x
happen to the iterates of g(x) = 2 ? (Try several positive values of A.)

Two Useful Functions: Absolute Value and Greatest Integer

These two functions have useful properties which let us describe situations in which an object abruptly changes
direction or jumps from one value to another value. Their graphs will have corners and breaks.

Absolute Value Function: | x |

The absolute value function of a number x, y = f(x) = | x | , is the distance between the number x and 0. If x
is greater than or equal to 0, then | x | is simply x – 0 = x . If x is negative, then | x | is 0 – x = –x = –1.x
which is positive since –1.(negative number) = a positive number. On some calculators and in some computer
programming languages, the absolute value function is represented by ABS(x) .

Definition of | x | : |x|= { x–x if x ≥ 0


if x < 0 or |x|= x2 .

The domain of y = f(x) = | x | consists of all real numbers. The range of f(x) = | x | consists of all numbers
larger than or equal to zero, all non–negative numbers. The graph of y = f(x) = | x |
(Fig. 10) has no holes or breaks, but it does have a sharp corner at x = 0. The
absolute value will be useful later for describing phenomena such as reflected light
and bouncing balls which change direction abruptly or whose graphs have corners.

The absolute value function has a number of properties which we will use later.

Properties of | |: For all real numbers a and b:


(a) | a | ≥ 0 . | a | = 0 if and only if a = 0.
(b) | ab | = | a | | b |
(c) | a + b | ≤ | a | + | b |

Taking the absolute value of a function has an interesting effect on the graph of the function. Since

|x|= { x–x if x ≥ 0
if x < 0 , then for any function f(x) we have | f(x) | = {f(x)
–f(x)
if f(x) ≥ 0
if f(x) < 0.
0.4 Combinations of Functions Contemporary Calculus
7

In other words, if f(x) ≥ 0, then | f(x) | = f(x) so the graph of | f(x) | is the same as the graph of f(x). If
f(x) < 0, then | f(x) | = –f(x) so the graph of | f(x) | is just the graph of f(x) "flipped" about the
x–axis, and it lies above the x–axis. The graph of | f(x) | will always be on or above the x–axis.

Example 5: Fig. 11 shows the graph of f(x). Graph (a) | f(x) | , (b) | 1 + f(x) |
and (c) 1 + | f(x) |.

Solution: The graphs are given in Fig. 12. In (b) we shift the graph of f
up 1 unit before taking the absolute value. In (c) we take the absolute
value before shifting the graph up 1 unit.

Practice 7: Fig. 13 shows the graph of g(x). Graph (a) | g(x) | , (b) | g(x – 1) | ,
and (c) g( | x | ).

Greatest Integer Function: [ x ] or INT( x )

The greatest integer function of a number x , y = f(x) = [ x ] , is the largest integer which is less than or equal
to x . The value of [ x ] is always an integer and [ x ] is always less than or equal to x. For example, [ 3.2 ]
= 3, [ 3.9 ] = 3, and [ 3 ] = 3. If x is positive, then [ x ] truncates x (drops the fractional part of x) to get [ x
]. If x is negative, the situation is different: [ –4.2 ] ≠ –4 since –4 is not less than or equal to –4.2 : [ –4.2 ] =
– 5, [ –4.7 ] = –5 and [ –4 ] = –4. On some calculators and in many programming languages the square
brackets [ ] are used for grouping objects or for lists, and the greatest integer function is represented by INT(x)
.

Definition of [ x ]: [x] = the largest integer which is less than or equal to x

⎧⎪ x if x is an integer
= ⎨
⎩⎪ largest integer strictly
less than x
if x is NOT an integer.
0.4 Combinations of Functions Contemporary Calculus
8

The domain of The f(x) = [ x ] is all real numbers. The range of f(x) = [ x
] is only the integers. The graph of y = f(x) = [ x ] is shown in Fig. 14.
It has a jump break, a step, at each integer value of x, and f(x) = [ x ] is
called a step function. Between any two consecutive integers, the graph is
horizontal with no breaks or holes. The greatest integer function is useful
for describing phenomena which change values abruptly such as postage
rates as a function of the weight of the letter ("26¢ for the first ounce and
13¢ additional for each additional half ounce"). It can also be used for functions whose graphs are "square
waves" such as the on and off of a flashing light.

Example 6: Graph f(x) = INT(1 + .5 sin(x) ).

Solution: One way to create this graph


is to first graph y = 1 + 0.5sin(x) , the
thin curve in Fig. 15, and then apply the
greatest integer function to y to get the
thicker "square wave" pattern.

2
Practice 8: Sketch the graph of y = INT( x ) for –2 ≤ x ≤ 2 .

A Really "Holey" Function


The graph of the greatest integer function has a break or jump at each integer value, but how many breaks can
a function have? The next function illustrates just how broken or "holey" the graph of a function can be.

" 2 if x is a rational number


Define h(x)!=!#
$ 1 if x is an irrational number

Then h( 3 ) = 2, h( 5/3 ) = 2 and h( –2/5) = 2 since 3,

! 5/3 and –2/5 are all rational numbers. h( π ) = 1, h( 7


) = 1 , and h( 2 ) = 1 since π, 7 and 2 are all
irrational numbers. These and some other points are
plotted in Fig. 16 .

In order to analyze the behavior of h(x) the following


fact about rational and irrational numbers is useful.

Fact: "Every interval contains both rational and irrational numbers" or, equivalently,

"If a and b are real numbers and a < b, then there is


0.4 Combinations of Functions Contemporary Calculus
9

(i) a rational number R between a and b (a < R < b), and

(ii) an irrational number I between a and b (a < I < b)."

The Fact tells us that between any two places where the y = h(x) = 1 (because x is rational) there is a place where
y = h(x) is 2 because there is an irrational number between any two distinct rational numbers. Similarly,
between any two places where y = h(x) = 2 (because x is irrational) there
is a place where y = h(x) = 1 because there is a rational number between any two distinct irrational numbers.
The graph of y = h(x) is impossible to actually draw since every two points on the graph are separated by a hole.
This is also an example of a function which your computer or calculator can not graph because in general it can
not determine whether an input value of x is irrational.

Example 7: Sketch the graph of

" 2 if x is a rational number


g(x) = #
$ x if x is an irrational number

Solution: A sketch of the graph of y = g(x) is shown in Fig. 17 .


!
When x is rational, the graph of y = g(x) looks like the "holey"
horizontal line y = 2. When x is irrational, the graph of y = g(x)
looks like the "holey" line y = x.

" 2 if x is a rational number


Practice 9: Sketch the graph of r(x) = #
$ x if x is an irrational number

PROBLEMS !

1. If T is the Celsius temperature of the air and v is the speed of the wind in kilometers per hour, then

# T if 0 " v " 6.5


%
% 10.45 + 5.29 v - 0.279v
WCI = $ 33 - (33 - T) if 6.5 " v " 72 .
% 22
%& 1.6T -19.8 if 72 < v
o
Determine the Wind Chill Index (a) for a temperature of 0 C and a wind speed of 49 km/hr and
o
(b) for a temperature of 11 C and a wind speed of 80 km/hr.
! Write a multiline function definition for the WCI if the temperature is 11 C.
(c)
o
0.4 Combinations of Functions Contemporary Calculus
10

2. Use the graph of y = f(x) in Fig. 18 to evaluate f(0), f(1), f(2), f(3), f(4)
and f(5). Write a multiline function definition for f.

3. Use the graph of y = g(x) in Fig. 19 to evaluate g(0), g(1), g(2), g(3),
g(4) and g(5). Write a multiline function definition for g.

4. Use the values given in the table and h(x) = 2x + 1 to determine the values
of f°g , g °f and h °g.

x f(x) g(x) f°g(x) g°f(x) h°g(x)

–1 2 0
0 1 2
1 –1 1
2 0 2

5. Use the graphs in Fig. 20 and the equation h(x) = x – 2 to


determine the values of
(a) f( f( 1 ) ), f( g( 2 ) ), f( g( 0 ) ), f( g( 1 ) )
(b) g( f( 2 ) ), g( f( 3 ) ), g( g( 0 ) ), g( f( 0 ) )
(c) f( h( 3 ) ), f( h( 4 ) ), h( g( 0 ) ), h( g( 1 ) )

6. Use the graphs in Fig. 21 and the equation


h(x) = 5 – 2x to determine the values of
(a) h( f( 0 ) ), f( h( 1 ) ), f( g( 2 ) ), f( f( 3 ) )
(b) g( f( 0 ) ), g( f( 1 ) ), g( h( 2 ) ), h( f (3 ) )
(c) f( g( 0 ) ), f( g( 1 ) ), f( h( 2 ) ), h( g( 3 ) )

⎪⎧ 3 if x < 1 ⎧ x2 –3 if x < 0


7. f(x) = ⎨⎪ x–2 if 1 ≤ x < 3 g(x) = ⎨⎩ INT( x ) if 0 ≤ x h(x) = x – 2.
⎩ 1 if 3 ≤ x
(a) Evaluate f(x), g(x), and h(x) for x = –1, 0, 1, 2, 3, and 4 .
(b) Evaluate f( g( 1 ) ), f( h( 1 ) ), h( f( 1 ) ), f( f( 2 ) ), g( g( 3.5 ) ) .
(c) Graph f(x), g(x) and h(x) for –5 ≤ x ≤ 5 .

⎧⎪ x+1 if x< 1 |x+1| if x < 0


8. f(x) = ⎨⎪ 1
⎩ 2–x
if 1 ≤ x < 3
if 3 ≤ x
g(x) = 2x { if 0 ≤ x h(x) = 3.
(a) Evaluate f(x), g(x), and h(x) for x = –1, 0, 1, 2, 3, and 4 .
(b) Evaluate f( g( 1 ) ), f( h( 1 ) ), h( f( 1 ) ), f( f( 2 ) ), g( g( 3.5 ) ) .
(c) Graph f(x), g(x) and h(x) for –5 ≤ x ≤ 5 .
0.4 Combinations of Functions Contemporary Calculus
11

9. You are planning to take a one week vacation in Europe, and the tour brochure says that Monday and
Tuesday will be spent in England, Wednesday in France, Thursday and Friday in Germany, and Saturday
and Sunday in Italy. Let L(d) be the location of the tour group on day d and write a multiline function
definition for L(d).

10. A state has just adopted the following state income tax system: no tax on the first $10,000 earned,
1% of the next $10,000 earned, 2% of the next $20,000 earned, and 3% of all additional earnings. Write a
multiline function definition for T(x), the state income tax due on earnings of x dollars.

11. Write a multiline function definition for the curve y = f(x) in Fig. 22.

12. Define B(x) to be the area of the rectangle whose lower left corner is at the
origin and whose upper right corner is at the point (x, f(x) ) for the function
f in Fig. 23. Then, for example, B(3)=6. Evaluate B(1), B(2), B(4) and B(5)

13. Define B(x) to be the area of the rectangle whose lower left corner is at the

origin and whose upper right corner is at the point (x, 1/x ).
a) Evaluate B(1), B(2) and B(3).
b) Show that B(x) = 1 for all x > 0.

14. For f(x) = | 9 – x | and g(x) = x – 1 ,


(a) evaluate f°g( 1 ), f°g( 3 ), f °g( 5 ), f°g( 7 ), f°g( 0 )
(b) evaluate f °f( 2 ), f °f( 5 ), f °f( –2 ). Does f°f(x) = |x| for all values of x ?

15. Fig. 24 is the graph of g(x). Graph (a) g(x) – 1,


(b) g( x–1 ), (c) | g(x) |, and (d) [ g(x) ] .

16. Fig. 25 is the graph of f(x). Graph (a) f(x) – 2,


(b) f( x – 2 ), (c) | f(x) |, and (d) [ f(x) ] .

17. (a) Let f(x) = 3x + 2 and g(x) = 2x + A. Find a value for A so that
f( g(x) ) = g( f(x) ).
(b) Let f(x) = 3x + 2 and g(x) = Bx – 1. Find a value for B so that
f( g(x) ) = g( f(x) ).

18. (a) Let f(x) = Cx + 3 and g(x) = Cx – 1. Find a value for C so that
f( g(x) ) = g( f(x) ).
(b) Let f(x) = 2x + D and g(x) = 3x + D. Find a value for D so that
f( g(x) ) = g( f(x) ).
0.4 Combinations of Functions Contemporary Calculus
12

19. Graph y = f(x) = x – INT(x) for –1 ≤ x ≤ 3. This function is called the "fractional part of x" and is an
example of a "sawtooth" graph.

INT(10x + 0.5)
20. f(x) = INT(x + 0.5) rounds off x to the NEAREST integer. g(x) = 10 rounds off x to

the nearest tenth, the first decimal place. What function will round off x to (a) the nearest hundredth (2
decimal places)? (b) the nearest thousandth (3 decimal places)?

21. Modify the function in example 6 to produce a "square wave" graph with a "long on, short off, long
on, short off" pattern.

22. Some versions of the computer language BASIC contain a "signum" or "sign" function defined by
⎪⎧ 1if x > 0
SGN( x ) = ⎨⎪ 0if x = 0 .
⎩ –1if x < 0

(a) Graph SGN( x ) (b) Graph SGN( x – 2 ) (c) Graph SGN( x – 4 )


(d) Graph SGN( x – 2 ) SGN( x – 4 ) (e) Graph 1 – SGN( x – 2 ) SGN( x – 4 )
(f) For a < b, describe the graph of 1 – SGN( x – a ) SGN( x – b )

23. Define g(x) to be the slope of the line tangent to the graph of y = f(x)
in Fig. 26 at (x,y).
(a) Estimate g(1), g(2), g(3) and g(4).
(b) Graph y = g(x) for 0 ≤ x ≤ 4 .

24. Define h(x) to be the slope of the line tangent to the graph of y = f(x)
in Fig. 27 at (x,y).
(a) Estimate h(1), h(2), h(3) and h(4).
(b) Graph y = h(x) for 0 ≤ x ≤ 4 .

C25. Pressing the COS (cosine) button on your calculator several times will produce
iterates of f(x) = cos(x). What number will the iterates approach if you start with
x = 1 and press the COS button 20 or 30 times? What happens if you start with
x = 2 or x = 10? (Be sure your calculator is in radian mode.)

C26. Let f(x) = 1 + sin(x). What happens if you start with x = 1 and repeatedly feed the output from f
back into f ? What happens if we start with x = 2 and examine the iterates of f ? (Be sure your
calculator is in radian mode.)

2
x +1
C27. Starting with x = 1, do the iterates of f(x) = 2x approach a number? What happens if you

start with x = .5 or x = 4?
0.4 Combinations of Functions Contemporary Calculus
13

x
C28. Let f(x) = 2 + 3 . (a) What are the iterates of f if you start with x = 2? 4? 6?

(b) Find a number c so that f(c) = c. This value of c is called a fixed point of f.
x
(c) Find a fixed point of g(x) = 2 + A.

x
C29. Let f(x) = 3 + 4. (a) What are the iterates of f if you start with x = 2? 4? 6?
x
(b) Find a number c so that f(c) = c. (c) Find a fixed point of g(x) = 3 + A.

Some iterative procedures are geometric rather than numerical.

30. Start with an equilateral triangle with sides of length 1 (Fig, 28a).
(i) Remove the middle third of each line segment.
(ii) Replace the removed portion with 2 segments with the same length as the removed segment.
The first two iterations of this procedure are shown in Fig. 28b and Fig. 28c. Repeat steps (i) and (ii)
several more times, each time removing the middle third of each line segment and replacing it with two new
segments. What happens to the length of the shape with each iteration? (The result of iterating over and
over with this procedure is called Koch's Snowflake, named for Helga von Koch)

" 3- x if x is a rational number


31. (Optional) Sketch the graph of p(x) = #
$ 1 if x is an irrational number

" x2 if x is a rational number


32. (Optional) Sketch the graph of q(x) = #
! $ x+ 1 if x is an irrational number

!
0.4 Combinations of Functions Contemporary Calculus
14

Section 0.4 PRACTICE Answers

Practice 1: C(x) is the cost for one night on date x .


" $50 if x is between June 1 and September 15
C(x) = #
$ $40 if x is any other date

Practice 2: x g(x) x g(x)


–3 –3 π/3 –π/3
! –1 2 2 –2
0 2 3 –3
1/2 2 4 undefined
1 undefined 5 1

⎪⎧ 1 if x ≤ –1
Practice 3: f(x) = ⎨⎪ 1 – x if –1 < x ≤ 1
⎩ 2 if 1 < x

Practice 4: f°g(3) = f(2) = 2/–1 = –2 f°g(8) = f(3) is undefined g°f(4) = g(4) = 5


f°h(1) = f(2) = 2/–1 = –2 f°h(3) = f(2) = –2 f°h(2) = f(3) is undefined
x x
h°g(–1) = h(0) = 0 f°g(x) = f( 1 + x ) = ( 1+x )/( 1+x – 3) , g °f(x) = g( x–3 ) = 1 + x–3

Practice 5: See Fig. 30.

9/x + x
Practice 6: f(x) = 2 .
9/1 + 1 9/5 + 5
f(1) = 2 = 5, f(5) = 2 = 3.4, f(3.4) ≈ 3.023529412,

f(3.023529412) ≈ 3.000091554, and f(3.000091554) ≈ 3.000000001 .


These values are approaching 3, the square root of 9.
6/x + x
Putting A = 6, then f(x) = 2 .
6/1 + 1 6/3.5 + 3.5
f(1) = 2 = 3.5, f(3.5) = 2 = 2.607142857,

f(2.607142857) ≈ 2.45425636, f(2.45425636) ≈ 2.449494372,


f(2.449494372) ≈ 2.449489743 .
f(2.449489743) ≈ 2.449489743 (the output is the same as the input for 9 decimal places)
These values are approaching 2.449489743, the square root of 6.
A/x + x
For any positive value A, the iterates of f(x) = (starting with any positive x) will approach A .
2

!
0.4 Combinations of Functions Contemporary Calculus
15

Practice 7: Fig. 31 shows some of the intermediate steps and final graphs.

2
Practice 8: Fig. 32 shows the graph of y = x
2
and the graph (thicker) of y = INT( x ) .

Practice 9: Fig. 33 shows the "holey" graph of y = x with a hole


at each rational value of x and the "holey" graph of
y = sin(x) with a hole at each irrational value of x.
Together they form the graph of r(x) .
(This is a very crude image since we can’t really see
the individual holes which have zero width.)

You might also like