Lesson 1. Functions
Lesson 1. Functions
1
L E S S O N
FUNCTIONS
C
alculus is the study of change. It is often important to know when a quantity is increasing, when it
is decreasing, and when it hits a high or low point. Much of the business of finance depends on pre-
dicting the high and low points for prices. In science and engineering, it is often essential to know pre-
cisely how fast quantities such as temperature, size, and speed are changing. Calculus is the primary tool for
calculating such changes.
Numbers, which are the focus of arithmetic, do not change. The number 5 will always be 5. It never goes
up or down. Thus, we need to introduce a new sort of mathematical object, something that can change. These
objects, the centerpiece of calculus, are functions.
Functions
A function is a way of matching up one set of numbers with another. The first set of numbers is called the
domain. For each of the numbers in the domain, the function assigns exactly one number from the other set,
the range.
Calc2e_01_15-22.qxd 11/18/11 12:35 AM Page 16
PARENTHESES HINT
It is true that in algebra, everyone is taught “parentheses mean multiplication.” This means that 5(2 + 7) =
5(9) = 45. If x is a variable, then x(2 + 7) = x(9) = 9x. However, if f is the name of a function, then f (2 + 7) =
f (9) = the number to which f takes 9. The expression f (x) is pronounced “f of x” and not “f times x.” This can
certainly be confusing. But, as you gain experience, it will become second nature. Mathematicians use paren-
theses to mean several different things and expect everyone to know the difference. Sorry!
15
Calc2e_01_15-22.qxd 11/18/11 12:35 AM Page 17
– FUNCTIONS –
Solution
Replace each occurrence of t with –4. Plugging Variables
into Functions
h(–4) = (–4)3 – 2(–4)2 + 5
Example
When multiplying, an even number of negatives Simplify f(w) if f(x) = x + 2x 2 + 2.
results in a positive number, whereas an odd num-
ber of negatives results in a negative number. Solution
Replace each occurrence of x with w.
f(w) = w + 2w 2 + 2
Practice That is all we can say without knowing more about w.
6. Find the value of h1642 when (a + b)2 ≠ a2 + b2. Remember to FOIL (first, out-
3 side, inside, last) to get (a + b)2 = a2 + 2ab + b2.
h1x2 2x 2 x.
Simplify.
g1a 52 a2 7a 11
Calc2e_01_15-22.qxd 11/18/11 12:35 AM Page 18
– FUNCTIONS –
Example 8
f 1x a2 f 1x2 13. g (2 x) − g (x) when g (t ) = − 6t
Simplify if f 1x2 x2 . t
a
f ( x + a) − f ( x )
14. when f (x) = −x 2 + 5
a
Solution
h1x a2 h1x2
Start with what needs to be simplified. 15. when h(x) = –2x + 1
f 1x a2 f 1x2
a
a g (x + 2) − g (x)
16. when g (x) = x 3
2
Use f 1x2 x2 to evaluate f 1x a2 and f 1x2 .
1x a2 2 x2
a
Composition of Functions
Multiply out 1x a2 2 . Now that we can plug anything into functions, we can
plug one function in as the input of another function.
x2 2xa a2 x2
This is called composition. The composition of func-
a
tion f with function g is written f g . This means to
Cancel the x2 and the x2 . plug g into f like this:
2xa a2 ( f o g )(x ) = f (g (x))
a It may seem that f comes first in ( f o g )(x) , read-
Factor out an a. ing from left to right, but actually, the g is closer to the
12x a2a
x. This means that the function g acts on the x first.
a
Example
Cancel an a from the top and bottom. If f(x) = x + 2x and g1x2 4x 7, then what is the
2x a composition ( f o g )(x) ?
Solution
Practice Start with the definition of composition.
(f ° g)(x) = f(g(x))
Simplify the following.
Use g1x2 4x 7 .
9. f 1y2 when f 1x2 x2 3x 1
( f o g )(x) = f (4 x + 7)
10. f 1x a2 when f 1x2 x 3x 1
2
– FUNCTIONS –
Using f 1x2
1
, g1x2 x3 2x2 1 , and h(x) = x
Use f(x) = x + 2x. x
– x , simplify the following compositions.
(g o f )(x) = g ( x + 2 x)
17. (f ° g)(x)
Replace each occurrence of x in g with x + 2x.
(g o f )(x) = 4( x + 2 x) + 7 18. (g ° f )(x)
21. (h ° h)(w)
This shows that the order in which you com-
22. (g ° h)(16)
pute a composition matters! In general, ( f ° g)(x)
≠ (g ° f )(x). 23. (h ° f ° g)(x)
We can form the composition of more than two func- 24. (f ° h ° f )(2x)
tions. Just apply the functions, one at a time, working
your way from the one closest to x outward.
Domains
Example
If f (x) = x + 1 , g(x) = 2 – x, and h(x) = 4x, then When an expression is used to describe a function f (x),
2x − 3 it is convenient to think of the domain as the set of all
what is (f ° g ° h)(x)?
numbers that can be substituted into the expression
and get a meaningful output. This set is called the
Solution
domain. The range of the function is the set of all pos-
Start with the definition of composition.
sible numbers produced by evaluating f at the numbers
(f ° g ° h)(x) = f (g(h(x))) in its domain.
Use h(x) = 4x. In the beginning of the lesson, we considered the
(f ° g ° h)(x) = f (g(4x)) function:
Compute g(4x) by replacing each occurrence of x in g f(x) = x
with 4x.
However, we left out a crucial piece of information: the
g(4x) = 2 – 4x
domain. The domain of this function consisted of only
Next, substitute this into the composition. the numbers 1, 4, 9, 25, and 100. Thus, we should have
(f ° g ° h)(x) = f (g(4x)) = f (2 – 4x). written
Replace every occurrence of x in f with 2 – 4x. f(x) = x if x 1, 4, 9, 25, or 100
(f ° g ° h)(x) = f (2 – 4x) = (2 − 4 x) + 1 Usually, the domain of a function is not given
2(2 − 4 x) − 3
Simplify. explicitly like this. In such situations, it is assumed that
3 − 4x the domain is as large as it possibly can be, meaning that
(f ° g ° h)(x) =
1 − 8x
Calc2e_01_15-22.qxd 11/18/11 12:35 AM Page 20
– FUNCTIONS –
it contains all real numbers that, when plugged into the Solution
function, produce another real number. Specifically, To avoid dividing by zero, we need x2 5x 6 0,
including a number in the domain cannot violate one so 1x 321x 22 0, thus x 3 and x 2 .
of the following two fundamental prohibitions: To avoid an even root of a negative number,
■ Never divide by zero. 4 x 0, so x 4 . Thus, the domain of k is
■ Never take an even root of a negative number. x 4 , x 3 , x 2 .
A nice way of representing certain collections of
Example real numbers is interval notation, as follows:
What is the domain of f 1x2
3
?
x2 COLLECTION OF INTERVAL
REAL NUMBERS NOTATION
Solution a<x<b (a,b)
We must never let the denominator x 2 be zero, so
a≤x<b [a,b)
x cannot be 2. Therefore, the domain of this function
consists of all real numbers except 2. a<x≤b (a,b]
The prohibition against even roots (like square a≤x≤b [a,b]
roots) of negative numbers is less severe. An even root
of a negative number is an imaginary number. Useful x>a (a,∞)
26. h(x) = x + 1
Calc2e_01_15-22.qxd 11/18/11 12:35 AM Page 21
– FUNCTIONS –
1 4
2 2x
27. k1t2 31. k1x2
2t 5 x8
28. g1x2 x2 5x 6 8u
32. g (u) =
(u + 3) 4 + 3u
(z − 1)(z + 2)
29. j(z ) =
z2 +1
3
30. h1x2 2 x