MATH 25 Module
MATH 25 Module
eforMATH25
FUNDAMENTAL
CALCULUS
Authors
DianeCarmelizaN.Cuares
ma
AnthonyL.Cueno
Mar j
o-AnneA.Fernando
I
vyCar olB.Lomerio
GilyV.Magal
ona
Contri
butor
s
Gimell
eB.Gami l
la Juli
anG.Iqui
nJr.
JoeyR.Joson AzraMayB.Kabiri
JcobC.Malagui
t ArdeeC.Manalo
AngeloE.Maras
igan YanceeH.Olave
Pier
reLanceA.Tan MonicaC.Torr
es
Module for
MATH 25. FUNDAMENTAL CALCULUS
Authors
Diane Carmeliza N. Cuaresma
Anthony L. Cueno
Marjo-Anne A. Fernando
Ivy Carol B. Lomerio
Gily V. Magalona
Editor
Rolando G. Panopio
Contributors
Jessa Camille C. Duero Ardee C. Manalo
Wielson M. Factolerin Angelo E. Marasigan
Gimelle B. Gamilla Yancee H. Olave
Julian G. Iquin Jr. Kemuel M. Quindala III
Joey R. Joson Mary Grace P. Recreo
Azra May B. Kabiri Pierre Lance A. Tan
Jcob C. Malaguit Monica C. Torres
All rights reserved. No part of this module may be reproduced in any form by any electronic or
mechanical terms without permission from the authors and the publisher.
Contents
Preface
Appendices
This study module is intended for students of MATH 25: Fundamental Calculus. This is
designed for dependent study of the course. Contents of this module are lifted from known
Calculus resources. Each chapter introduces or reiterates topics in Calculus, gives examples to
aid students on how to implement the concepts introduced and concludes with a set of exer-
cises that students can try, the answers to these exercises can be found in the Appendix section.
There are four parts in this module. The first three parts deal with functions of single
variable while the last part deals with functions of several variables. The functions given in the
entire module are limited to algebraic functions, sine functions, cosine functions, exponential
and logarithmic functions.
The first chapter introduces the notion of Limits. This concept maybe new to some stu-
dents. The concept of limits plays an important role in understanding Calculus. Definition
of the derivative and the integral of a function in the subsequent sections uses the concept of
limits. Students are advised to have a thorough understanding of the limits before proceeding
to the next sections.
The second chapter introduces the concept of derivative of functions, while the third chapter
introduced the integral of functions. Both chapters start with definition using limits, rules on
finding the derivative and the integral, and then its applications.
The last chapter deals with calculus of functions of several variables. The chapter starts
with the introduction of the three-dimensional space. Then, followed by the partial derivatives
and its applications, and concluded with multiple integral and its applications.
CONTENTS
Chapter 1
In this chapter, we will learn the very basic of Calculus, the limits. We will take up here
what limits of functions are and how they are obtained.
Basically, limits give us an idea of what happens to the resulting values of a function as the
values of its inputs get closer and closer to a particular number.
As an example, consider the experiment conducted in which different weights x are attached
at the center of a rubber string and the corresponding vertical displacements y are measured.
1
2 CHAPTER 1. LIMITS AND CONTINUITY
Based on the obtained data, what do you think is the maximum displacement for this type
of rubber string? What happens to the displacement y as the weight attached x gets closer
and closer to 1.5 kg? In calculus, we say that the limit of y as x approaches 1.5 is 10 and the
maximum possible displacement is 10.
Activity 1.1.1
Consider the function f defined by
x2 − 9
f (x) = .
x−3
Using a calculator, find f (x) for each given value of x.
What happens to f (x) as x gets closer and closer to 3 from the left?
What happens to f (x) as x gets closer and closer to 3 from the right?
In general, what can we say about f (x) as x gets closer and closer to 3?
In this case, we say that the limit of f (x) as x approaches 3 is 6 and we write
x2 − 9
lim = 6.
x→3 x − 3
Limit of a Function
Let f be a function defined at every number on some open interval
containing a except possibly at a itself.
If f (x) approaches a number L as x gets closer and closer to a from the left
and from the right of a, then L is the limit of f (x) as x approaches a. We
write this as
lim f (x) = L.
x→a
This means that to have an idea of the limit of f (x) as x approaches a, we observe the value
of f (x) at numbers close to a and from both sides of a.
1.1. INTUITIVE NOTION OF LIMITS 3
Example 1.1.1. Consider the function g defined by g(x) = 1 + 2x. We use the following table
to observe the values of g(x) as x gets closer and closer to 2 from both sides of 2.
x 1.9 1.99 1.999 1.9999 · · · 2.0001 2.001 2.01 2.1
g(x) 4.8 4.98 4.998 4.9998 · · · 5.0002 5.002 5.02 5.2
Notice that as x gets closer and closer to 2 from the left, g(x) approaches 5. The same thing
happens to g(x) when x gets closer and closer to 2 from the left. Hence, we say that the limit
of g(x) as x gets closer and closer to 2 is 5 and we write
lim (1 + 2x) = 5.
x→2
Now, let us compare the results that we obtained from Activity 1.1.1 and Example 1.1.1. In
Activity 1.1.1, we have considered the function f which is undefined at 3 and concluded that
lim f (x) = 6. While in Example 1.1.1, we say that lim g(x) = 5 where g is defined at 2. From
x→3 x→2
these two results, we can say that the limit of a function as x approaches a may exist in both
cases whether the function is defined or undefined at a.
The next example shows that we can also use graphs of functions to have an idea of its
limit.
From this, we can see that f (x) approaches 1 as x gets closer and closer to 3 from the left.
4 CHAPTER 1. LIMITS AND CONTINUITY
Also, f (x) approaches 1 as x gets closer and closer to 3 from the right.
Hence, we say that the limit of f (x) as x gets closer and closer to 3 is 1 and we write
lim f (x) = 1.
x→3
For the next activity, we will again use the graph of a function to determine the behavior
of f (x) as x gets closer and closer to a particular value.
Activity 1.1.2
Consider the graph of f given below.
What happens to f (x) as x gets closer and closer to 3 from the left?
What happens to f (x) as x gets closer and closer to 3 from the right?
In general, can we say something about f (x) as x gets closer and closer
to 3?
Since f (x) approaches 3 as x gets closer and closer to 3 from the left but approaches 2 as
x gets closer and closer to 3 from the right, we say that lim f (x) does not exist.
x→3
Non-Existence of Limits
Suppose that f (x) approaches a number L as x gets closer and closer to a
from the left of a. If f (x) approaches a number M not equal to L as x gets
closer and closer to a from the right of a, then we say that lim f (x) does not
x→a
exist.
1.1. INTUITIVE NOTION OF LIMITS 5
As x gets closer and closer to 0 from the left, f (x) is 1 . However, f (x) approaches 0 as x
gets closer and closer to 0 from the right. Hence, we can say that lim f (x) does not exist.
x→0
We will see more examples and discussions of non-existence of limits in Sections 1.3 and
1.4.
Assessment 1.1
Concepts
Answer the following questions briefly.
1. What does lim f (x) = L mean?
x→a
Computations
A. Use a calculator to complete the tables to estimate the limit or to show
if the limit does not exist.
1. lim e
x→−1
2. lim (x + 3)
x→2
B. Use the graphs to determine if the limit exists or does not exist. If it
exists, find the limit.
1. lim f (x)
x→−1
2. lim g(x)
x→0
3. lim h(x)
x→−1
4. lim j(x)
x→0
In this section, we will learn how to find the limit of a function using rules on evaluating
limits. We start with the following activity.
Activity 1.2.1
Consider the functions f , g and h defined by
Using a calculator, find the value of f (x), g(x) and h(x) for each given
value of x.
◦ Using the same process, what is lim g(x)? what is lim g(x)?
x→2 x→−1
In our activity, we can say that the limit of a constant is the constant itself; the limit of x
as x approaches a number a is a; and the limit of a sum is the sum of the limits. We list these,
together with other rules on evaluating limits, on the next page.
1.2. RULES ON EVALUATING LIMITS 9
lim k = k.
x→a
We will better understand the rules given above if we apply them to specific functions as in
the next examples.
Example 1.2.1. Evaluate the following limits and state the rules used.
√
1. lim (2x − 7) 2. lim x2 x+1
x→3 x→−5 3. lim
x→0 1−x
10 CHAPTER 1. LIMITS AND CONTINUITY
Solution
1. We apply the first four rules so that
lim (2x − 7) = lim 2x − lim 7 (L4)
x→3 x→3 x→3
= 2 · lim x − lim 7 (L3)
x→3 x→3
= 2(3) − 7 (L1) and (L2)
= −1.
= (−5)2 (L2)
= 25.
Time to Think!
1. Suppose lim f (x) = −1, lim g(x) = 9 and lim h(x) = 0.
x→2 x→2 x→2
2. Suppose lim f (x), lim g(x) and lim h(x) exist. How do we evaluate
x→a x→a x→a
lim [f (x) ± g(x) ± h(x)] and lim [f (x) · g(x) · h(x)]?
x→a x→a
1.2. RULES ON EVALUATING LIMITS 11
Can we use the rule for evaluating limit of quotients? The answer is no since lim (x + 2) = 0.
x→−2
However, we can cancel the common factor of x2 − 4 and x + 2 so that
x2 − 4 (x + 2) (x − 2)
lim = lim
x→−2 x + 2 x→−2 x+2
= lim (x − 2)
x→−2
Similar to the previous example, lim (x − 1) = 0. Hence, we cannot use the rule for evaluating
x→1
limit of quotients to find the limit. However,
√ we can manipulate the function by rationalizing
the numerator; that is, we multiply x + 1 to both the numerator and the denominator. We
have
√ √ √
x−1 x−1 x+1
lim = lim ·√
x→1 x − 1 x→1 x − 1 x+1
x−1
= lim √
x→1 (x − 1) ( x + 1)
1
= lim √
x→1 x+1
lim 1
x→1
= √ (L6)
lim x+1
x→1
lim 1
x→1
= √ (L4)
lim x + lim 1
x→1 x→1
lim 1
x→1
=q (L8)
lim x + lim 1
x→1 x→1
1
=√ (L1) and (L2)
1+1
1
= .
2
12 CHAPTER 1. LIMITS AND CONTINUITY
Assessment 1.2
Concepts
Answer the following questions briefly.
1. How do we evaluate the limit of a constant, sum, product, quotient,
power, and root?
f (x)
2. How do we evaluate lim if lim g(x) = 0?
x→a g(x) x→a
Computations
Evaluate if the limit exists and state the rules used.
1. lim (π + e)
x→0
2. lim a2 + b2
c→1
x
3. lim +4
x→−1 2
4. lim x2 − 5x + 11
x→2
1 2 1
2y 2 − 5y + 8
5. lim y −
y→0 2 4
6. lim y 3 − 6y + 3 y2 + 9
y→3
u2 + 2
7. lim1
u→ 2 u3 − 1
s2 − 2s + 3
8. lim
s→4 s2 − 1
y 2 + 2y − 8
9. lim
y→−4 y 2 − 16
t3 − t2
10. lim
t→0 t2
u4 − u3 + u − 1
11. lim
u→−1 u3 + 1
2v 2 + v − 6
12. lim3 2
v→ 2 4v − 4v − 3
√
13. lim 4 + 3w − w2
w→2
√
3
14. lim1 4t2 − 1
t→ 2
√
15. lim 49 − α2
α→7
27y 3 + 1
16. lim
y→−1/3 3y + 1
1.2. RULES ON EVALUATING LIMITS 13
s
125y 3 − 8
17. lim
y→2/5 25y 2 − 4
√
4 z−3
18. lim
z→9/16 16z − 9
29 − x
19. lim √
x→29 5 − x−4
√
33x−2
20. lim
x→8/27 27x − 8
14 CHAPTER 1. LIMITS AND CONTINUITY
We have learned from Chapter 1.1 that lim f (x) does not exist. Although the limit of a
x→3
function at a particular point does not exist, we can still study the “one-sided” behavior of the
function values and call it one-sided limits.
One-Sided Limits
Let f be a function defined at every number in some open interval (b, a). If
f (x) approaches a number L as x gets closer and closer to a from the left,
then L is the limit of f (x) as x approaches a from the left. We write this as
lim f (x) = L.
x→a−
We can observe from the graph that f (x) approaches 3 as x gets closer and closer to 3 from
the left. Hence, lim− f (x) = 3. Furthermore, f (x) approaches 2 as x gets closer and closer to
x→3
3 from the right. Hence, lim+ f (x) = 2.
x→3
1.3. ONE-SIDED LIMITS 15
Based from our previous knowledge in Section 1.1, since the limit from right at 1 is not equal
to the limit from the left at 1 then the limit does not exist.
√
Example 1.3.2. Consider the function f defined by f (x) = x + 1. Evaluate lim f (x),
x→−1−
lim f (x) and lim f (x).
x→−1+ x→−1
However, the function is not defined for x < −1. So, lim − f (x) does not exist. Again, since
x→−1
the limit from right at 1 is not equal to the limit from the left at 1 then the limit does not
exist.
1
Example 1.3.3. Consider the function g defined by g(x) = . Evaluate lim− g(x),
1−x x→1
lim g(x) and lim g(x).
x→1+ x→1
1
Solution Evaluating lim− , we have a zero denominator. Now, let us get a number on the
x→1 1 − x
left of 1 that is very close to 1, say 0.5. Since 1 − 0.5 = 0.5 ≥ 0, then denominator approaches
0 through positive numbers. Thus,
1
lim− = +∞.
x→1 1−x
16 CHAPTER 1. LIMITS AND CONTINUITY
1
Evaluating lim+ , we have another zero denominator. We get a number on the right
x→1 1 − x
of 1 that is very close to 1, say 1.5. Since 1 − 1.5 = −0.5 ≤ 0, then denominator approaches 0
through negative numbers. Thus,
1
lim+ = −∞.
x→1 1−x
Since, the limit from right at 1 is not equal to the limit from the left at 1, then the limit
does not exist.
Time to think!
In the domain of a square root function, at which point does the limit of
the function does not exist? How about in a rational function with a linear
denominator?
Since the limit of g(x) as x gets closer and closer to 2 from the left and from the right both
exist and are equal to 3, then
lim g(x) = 3.
x→2
Assessment 1.3
Concepts
In terms of one-sided limits, what are the instances in which lim f (x) fails
x→a
to exist?
Computations
1. Consider the graph of f below.
4 y
2
x
−6 −4 −2−2 2 4 6
−4
a. lim− f (x)
x→0
b. lim+ f (x)
x→0
c. lim f (x)
x→0
d. lim− f (x)
x→1
e. lim+ f (x)
x→1
f. lim f (x)
x→1
18 CHAPTER 1. LIMITS AND CONTINUITY
a. lim− g(x)
x→0
b. lim+ g(x)
x→0
c. lim g(x)
x→0
d. lim− g(x)
x→2
e. lim+ g(x)
x→2
f. lim g(x)
x→2
g. lim− g(x)
x→5
h. lim+ g(x)
x→5
i. lim g(x)
x→5
j. lim g(x)
x→−∞
k. lim g(x)
x→+∞
a. lim g(x)
x→−1−
b. lim g(x)
x→−1+
c. lim g(x)
x→−1
d. lim− g(x)
x→2
e. lim+ g(x)
x→2
f. lim g(x)
x→2
1.3. ONE-SIDED LIMITS 19
a. lim− g(x)
x→2
b. lim+ g(x)
x→2
c. lim g(x)
x→2
d. lim− g(x)
x→4
e. lim+ g(x)
x→4
f. lim g(x)
x→4
x
5. Find lim if it exists.
x→0 |x|
√
x−1
6. Find lim+ if it exists.
x→1 x−1
7. Consider the function
(√
x − k, if x < 1
f (x) =
k − x, if x ≥ 1
Activity 1.4.1
1
Consider lim . From our previous discussion, we know that this limit
x→5 x − 5
does not exist. However, let us try filling out the table below:
x f (x)
4.9
4.99
4.999
4.9999
5.0001
5.001
5.01
5.1
In our world today, we readily accept the concept of infinity, in symbol ∞: we accept that
the set of natural numbers is infinite, we believe that time is infinite. However, this is not the
case during the ancient times. They had difficulty in accepting that something is infinite, be-
cause perhaps it is untangible. The closest they had come to accepting the concept of infinity is
accepting that something is “potentially infinite” (aperion). It would be years before the world
accepts the concept of infinity. Many classical mathematicians studied the concept of infinity.
Galileo Galilei proved that there are as much square numbers as integers: an intriguing finding
since there are integers that are not squares. Galileo abandoned his work on infinities due to
some difficulties in performing arithmetic on infinities. Another mathematician, who is the
most prominent when it comes to studying infinities, is Georg Cantor. Cantor established, in
addition to Galileo’s previous work, that there is as much rational number as natural numbers,
and while finding a pattern to pair up the natural numbers to the decimals/irrationals, he
established that the irrationals present a higher form of infinity than the natural numbers. You
can read more on this during your free time.
The concept of infinity is one of the things that set mathematics apart from the other sci-
ences. Mathematicians are able to study something that they cannot touch. They are able to
perform operations and draw conclusions on something that extend beyond what they can see.
This makes mathematics awesome and beautiful!
Operations on Infinities
(I1) ∞ ± k = ∞ for any real number k
(I2) ∞ + ∞ = ∞
Infinite Limits
Let f be a function defined on some open interval containing a except pos-
sibly at a. If f (x) increases without bound as x gets closer and closer to a,
then the limit of f (x) as x gets closer and closer to a is +∞. We write this
as
lim f (x) = +∞.
x→a
Time to Think!
What do we mean by infinite limits? Can we give a real problem where
infinite limits can be of help?
22 CHAPTER 1. LIMITS AND CONTINUITY
1
Example 1.4.1. The function j(x) = has infinite limit as x approaches 1.
x−1
Notice that the limit is +∞ as x approaches 1 from the right, and −∞ as x approaches 1 from
the left.
Time to think!
Think of a function that increases without bound as x approaches 5 from
the left, and decreases without bound as x approaches 5 from the right.
Example 1.4.2. The function f (x) = ln(x) has infinite limit as x approaches 0 from the right.
1.4. LIMITS INVOLVING INFINITIES 23
Now, in cases where the graphs of the functions are not available to us, we can utilize the
following rules:
f (x)
lim = +∞.
x→a g(x)
f (x)
lim = −∞.
x→a g(x)
Solution
1
1. We can notice that we will have . But we know that (x − 3)2 ≥ 0. Thus,
0
1
lim = +∞
x→3 (x − 3)2
−3
2. Notice that we will have . But we know that (x − 2)2 ≥ 0. However, unlike the first
0
example, the numerator is −3 < 0. Thus,
−3
lim = −∞
x→2 (x − 2)2
It is important to note that when a function has an infinite limit, then the limit of the
function does not exist. Having a limit of +∞ or −∞ only tells us the behavior of the function
as x gets closer and closer to a certain value. Thus, it is only telling us that f (x) increases
without bound, or decreases without bound, as x gets closer and closer to a certain value, say
a.
Activity 1.4.2
A business manager determines that n months after production begins on a
new phone, the number of units produced will be p thousand, where
4n2 + 7n
p(n) = .
(n + 1)2
How many cellphones are produced after 10 months? after 100 months?
after 1000 months?
Limits at Infinity
Let f be a function defined on some open interval (a, +∞). If f (x) ap-
proaches a number L as x increases infinitely, then L is the limit of f (x) as
x increases without bound. We write this as
lim f (x) = L.
x→+∞
Similarly, let f be a function defined on some open interval (−∞, b). If f (x)
approaches a number L as x decreases infinitely, then L is the limit of f (x)
as x decreases without bound. We write this as
lim f (x) = L.
x→−∞
Limits at infinity helps us in looking at the long-term behavior of a function. For exam-
ple, this can help biologists determine the population of a bacterial colony after an indefinite
1.4. LIMITS INVOLVING INFINITIES 25
number of time. This can also help conservationists predict if the population of an endangered
species will increase or die out.
The graphs of functions can greatly help us in estimating limits at infinity. Let us have a
look at some of these examples.
Example 1.4.4. What is the limit of the function f defined by f (x) = 1 + e−x as x increases
without bound? To have an idea of the limit, consider the graph of f below.
Hence, we say that the limit of f (x) as x increases without bound is 1 and write this as,
lim f (x) = 1.
x→+∞
We note that even though f (x) > 1 for all x, the limit is 1.
26 CHAPTER 1. LIMITS AND CONTINUITY
Notice that the value of g(x) becomes closer to 0 as x increases. In this case, we say that
the limit of g(x) as x increases without bound is 0 and we write
lim g(x) = 0.
x→+∞
In cases where the graph of the function is not available to us, how do we evaluate the limit
of a function at infinity?
1. divide each term in P (x) and Q(x) by xk , where k > 0 is the highest
power of x in the denominator Q(x), and
2. evaluate the limit using the rules we discussed in the previous section
and these additional rules:
(L11)
A
lim =0
x→+∞ xk
(L12)
A
lim =0
x→−∞ xk
1.4. LIMITS INVOLVING INFINITIES 27
For our discussions, we will limit ourselves with evaluating limits at infinity of the form
given above. However, there are rules for other types of functions. These are free for your own
exploration.
3x5 3x + 1
1. lim 3. lim
x→−∞ x + 2x5 x→−∞ x2
x2 + x + 1 4x2
2. lim 4. lim
x→+∞ x3 + x2 x→+∞ x2 + x
Solution
3x5
3x5 x5
lim = lim
x→−∞ x + 2x 5 x→−∞ x 2x5
+
x5 x5
3
= lim
x→−∞ 1
+2
x4
lim 3
x→−∞
=
1
lim + lim 2
x→−∞ x4 x→−∞
3
=
0+2
3
=
2
x2 x 1
x2 + x + 1 3
+ 3+ 3
lim = lim x 3 x 2 x
x→+∞ x3 + x2 x→+∞ x x
3
+ 3
x x
1 1 1
+ 2+ 3
= lim x x x
x→+∞ 1
1+
x
1 1 1
lim + lim 2 + lim 3
x→+∞ x x→+∞ x x→+∞ x
=
1
lim 1 + lim
x→+∞ x→+∞ x
0+0+0
=
1+0
=0
28 CHAPTER 1. LIMITS AND CONTINUITY
3x 1
3x + 1 2
+ 2
lim = lim x 2 x
x→−∞ x2 x→−∞ x
x2
3 1
+ 2
= lim x x
x→−∞ 1
3 1
lim + lim 2
x→−∞ x x→−∞ x
=
lim 1
x→−∞
0+0
=
1
=0
4x2
2
4x x2
lim = lim
x→+∞ x2 + x x→+∞ x2 x
2
+ 2
x x
4
= lim
x→+∞ 1
1+
x
lim 4
x→+∞
=
1
lim 1 + lim
x→+∞ x→+∞ x
4
=
1+0
=4
Time to think!
When getting the limit of a rational function as x increases or decreases
without bound, what can you say about the limit if the degree of the nu-
merator is greater than the degree of the denominator? How about when
the degree of the numerator is less than the degree of the denominator?
1.4. LIMITS INVOLVING INFINITIES 29
Assessment 1.4
Concepts
Answer the following questions briefly.
1. What does lim f (x) = +∞ mean?
x→a
Computations
Evaluate the following limits.
1
1. lim 2x − 2
x→0 x
x2 − 1
2. lim
x→1 (x − 1)3
1 1
3. lim −
x→0 x4 x2
x2 + x − 6
4. lim
x→2 (x − 2)3
1 − x1
5. lim
x→0 x
1
6. lim x2 − x −
x→∞ x+1
x3 + 1
7. lim
x→∞ 1 − x3
x2 + x − 6
8. lim
x→∞ x3 − 8
x2
9. lim
x→−∞ 1 − 14
x
2
x +1 x+1
10. lim − 2
x→−∞ x+1 x −1
30 CHAPTER 1. LIMITS AND CONTINUITY
Problem Solving
1. The annual debt of a certain company, founded on January 2000, is
D(t) = 5t2 + 163t + 2625 thousands of pesos where t is the year since
it was established. Its annual income, on the other hand is given by
I(t) = 29t2 + 255t + 3815 thousands of pesos. What was the debt-to-
income-ratio of the company at the first year of its operation? In the
long run, what is the expected debt-to-income-ratio of the company?
Express your answer in percentage (%).
200(t + 1)
I(t) = ,
t2 + 20
t days after the imposition of a lockdown. How many were infected at
the day of lockdown? After 3 days? After 10 days? What will be the
number of infected individuals as time progresses?
kx2 − x
P (x) =
14x2 + 100
where k > 0. Find the value of k so that the long-term ratio will be
at least 75% as production keeps on increasing.
Informally, a continuous function is one whose graph can be drawn without lifting the “pen”
from the paper, one whose graph has no “holes or gaps”. To help us understand just what it
means for a function to be continuous, consider the activity below.
Activity 1.5.1
Take a look at the function f whose graph is given below.
Utilizing our observation from the previous activity, what properties will ensure that f does
not have a “hole or gap” at a number a, that is, f is continuous at a? The answer is summarized
below.
Continuity at a Number
A function f is continuous at a number a if the following are satisfied:
i. f (a) exists,
The following are examples of continuous and discontinuous functions at some given points.
1. Is g continuous at 1?
i. g(1) = 1
ii. lim g(x) = 1
x→1
Therefore, g is continuous at 1.
2. Is g continuous at 0?
Since lim− g(x) = 5 and lim+ g(x) = +∞ then lim g(x) does not exist. Therefore, g is
x→0 x→0 x→0
not continuous at 0.
is continuous at −3 and 0.
Solution
1. At x = −3, we have
i. m(−3) = (−3)2 − 4 = 5
1.5. CONTINUITY OF FUNCTIONS 33
Therefore, m is discontinuous at 3.
Example 1.5.3. Determine if the function f defined by f (x) = x2 +3x−1 is continuous at −1.
Solution We have
Therefore, f is continuous at −1. We can verify the continuity of f at −1 by checking its graph
which is given below.
34 CHAPTER 1. LIMITS AND CONTINUITY
Observe that the graph of f is without “holes or gaps” at −1. In fact, the function is
continuous at any value of x.
9 − x2
Example 1.5.4. Determine if the function g defined by g(x) = is continuous at 3.
3−x
Solution Since g(3) does not exist, then g is discontinuous at 3. We can verify this using the
graph of g which is given below.
The last two examples may have already given us an intuition on the continuity of two
types of function, namely, polynomial and rational functions. In fact, this observation can be
summarized below.
What we have tackled so far is the continuity of some algebraic functions at some given
points. In the next discussions, we will study the continuity of some common transcendental
functions.
Consider the exponential function defined by h(x) = ex and its graph below.
1.5. CONTINUITY OF FUNCTIONS 35
As we can see from its graph, h is without “holes” or “gaps” at any point. Hence, we can say
that h is continuous anywhere in its domain.
This time we examine the continuity of the logarithmic functions defined by i(x) = ln x and
j(x) = log x. Recall that the graphs of these functions are as follows.
Similar to our observation with the exponential function, the appearance of the graphs of i and
j suggest that they are both nowhere discontinuous, that is, their graphs are without “gaps”
or “holes” anywhere in their domain.
Consider the sine function defined by f (x) = sin x and its graph which is given below.
It is evident that f is seamless, no “gaps” or “holes”, all throughout its domain. Therefore, we
can say that f is continuous at all points in its domain, that is, the set of real numbers.
Now lets take a look at the cosine function defined by g(x) = cos x. We are familiar from
our previous math lessons that its graph is as follows.
36 CHAPTER 1. LIMITS AND CONTINUITY
Notice that as with the sine function, the cosine function also exhibits continuity at all points
in its domain, that is, at every real number.
As we may have observed, most common transcendental functions are continuous at every
number in their respective domains. We summarize these significant observations below.
The continuity of the above transcendental functions has a huge implication on the limits
of these functions. For instance, since f defined by f (x) = sin x is continuous at every number
a, then
Essentially, the task of evaluating the limit of f (x) as x gets closer and closer to a in the
domain of f is tantamount to simply getting the function value at a. This holds true for the
other transcendental functions whose continuity we discussed previously.
Limit of Compositions
(L13) If lim g(x) exists and f is continuous at lim g(x), then
x→a x→a
Knowing the above statement and the fact that the following transcendental functions are
continuous on their respective domains, we have the following set of rules on evaluating limits.
1.5. CONTINUITY OF FUNCTIONS 37
We can apply the above rules together with the other rules discussed previously to evaluate
the following limits.
= e(2(3)−5)
= e.
Now, we focus our discussion on the continuity of a function on open and closed intervals.
Continuity on an Interval
A function f is continuous on
i. an open interval I if it is continuous at every number in I.
In the case of closed interval [a, b], if at least one of the conditions is not satisfied, then the
function is discontinuous on [a, b]. In essence, continuity on an interval means that the graph
of f is “one piece” throughout the interval.
We study the conditional function given below for its continuity on some open and closed
intervals. In here, we will understand better the connection of continuity at a point to continuity
on intervals.
is continuous on the intervals (−2, 0), (−3, 1), (−1, +∞), [−2, 0] and [−2, 3].
Solution Before we proceed, note that to efficiently examine the continuity of f on any given
interval, it is vital to identify at which points it is discontinuous. Please verify that the only
points of discontinuity of f are at −2 and 0.
1. On (−2, 0), f is continuous on (−2, 0) since it is continuous at every number on (−2, 0).
4. On [−2, 0],
5. On [−2, 3], note that f is discontinuous on (−2, 3) since (−2, 3) contains 0. Thus, f is
discontinuous on [−2, 3].
In the next example, we will consider a rational function and study its continuity on given
intervals.
x−1
Example 1.5.7. Discuss the continuity of the function g defined by g(x) = on the open
x+2
interval (−2, 1) and on the closed interval [−2, 1].
Solution The rational function g is continuous at every number except at −2. Hence, g is
continuous on (−2, 1) but not on [−2, 1] since g(−2) does not exist. The graph of g is shown
below.
Continuity is one of the most significant concepts in calculus. This property greatly gives
an idea of how a function behaves and there are a number of applications that use functions
possessing this very nice property.
40 CHAPTER 1. LIMITS AND CONTINUITY
Assessment 1.5
Concepts
Answer the following questions briefly.
1. When is a function continuous at a point?
Computations
1. the graph of f
2. the graph of g
1.5. CONTINUITY OF FUNCTIONS 41
3. the graph of h
4. the graph of i
1. f (x) = 5x2 + 3x − 5 at x = 2
x2 + 1
2. g(x) = at x = 0
x
√
3. h(x) = 9 − x2 at x = 3
C. Identify all the values of x for which each of the given functions is not
continuous.
1. f (x) = x4 − 2x + 7
x+1
2. g(x) = 2
x −x
√
3. h(x) = 1 + 2x
(
Ax − 3 x<2
D. Find the value of the constant A so that m(x) =
3 − x + 2x2 x≥2
is continuous at every number.
42 CHAPTER 1. LIMITS AND CONTINUITY
2. lim ex+2
x→2
ex
3. lim
x→0 3
4. lim ln x2 + 2
x→1
√
2 2
5. lim ln x −3
x→2
Activity 2.1.1
Consider the graph of the function f below.
1. What do you call the line joining points A and B, which is a line passing
through two points of a curve?
43
44 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
←→
3. As h approaches 0, in how many points will the line AB intersects the
graph of f ? What do we call this line?
The slope of the tangent line to the graph of f at the point (x0 , f (x0 )) is a geometric
interpretation of the derivative of a function f at a number x0 . The following is the formal
definition of the derivative of a function.
dy
Note that there are other notations for derivative, some of which are , D1 f , ẏ and y 0 .
dx
Now, let us use the definition to find the derivative of some functions. However, we will
limit our discussion to polynomial functions of degree at most two.
2.1. DERIVATIVE OF A FUNCTION 45
Example 2.1.1. Consider the function f (x) = 2. Find f 0 (x) using the definition.
Solution By definition,
f (x + h) − f (x)
f 0 (x) = lim
h→0 h
2−2
= lim
h→0 h
0
= lim
h→0 h
= lim 0
h→0
= 0.
If the derivative of a function f at a number x0 exists then this derivative is the slope of the
tangent line to the graph of f at the point (x0 , f (x0 )). We illustrate this in the next example.
Example 2.1.2. Determine the slope of the tangent line to the graph of f (x) = 1−2x2 at x = 2.
Solution By definition,
f (2 + h) − f (2)
f 0 (2) = lim
h→0 h
(1 − 2(2 + h)2 ) − (1 − 2(2)2 )
= lim
h→0 h
(1 − 2 [(2)2 + 2(2)h + h2 ]) − (−7)
= lim
h→0 h
(1 − 8 − 8h − 2h2 )) − (−7)
= lim
h→0 h
−8h − 2h2
= lim
h→0 h
= lim (−8 − 2h)
h→0
= −8.
The slope of the tangent line to the graph of f at x = 2 is the derivative of f at x = 2, which
is f 0 (2) = −8.
It is important to note that polynomial functions, such as in Examples 2.1.1 and 2.1.2, are
differentiable anywhere. Moreover, a rational function is differentiable at every number in its
domain.
We know that if the derivative of a function f at a number x0 exists, then this derivative
is the slope of the tangent line to the graph of f at the point (x0 , f (x0 )). Hence, if a function
f is differentiable at a number x0 , then the graph of f has a non-vertical tangent line at the
point (x0 , f (x0 )) and at all points as x approaches x0 . Therefore, geometrically, the graph of
a function which is differentiable at a given point has no break or cusps (pointed part) at that
given point.
46 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
Activity 2.1.2
Graph the following functions and use this to answer the guide questions.
f (x) = 1 − x2
g(x) = |x|
(
1 − x2 , if x < 0
h(x) =
|x|, if x ≥ 0.
Guide Questions:
In our activity, we can observe the following theorem about the relationship of continuity
and differentiability.
Using the previous theorem, we can also conclude that if a function f is not continuous at
x = c then f is not differentiable at x = c.
(
x + 1, if x ≤ 1
Example 2.1.3. Consider the function f (x) = This function is not con-
1 − x, if x > 1.
tinuous at x = 1, since lim f (x) does not exist. As shown below, the one-sided limits are not
x→1
equal:
lim f (x) = lim− (x + 1) = 1 + 1 = 2
x→1− x→1
lim+ f (x) = lim+ (1 − x) = 1 − 1 = 0
x→1 x→1
f (1 + h) − f (1)
Now, observe that lim− exists:
h→0 h
f (1 + h) − f (1) [(1 + h) + 1] − 2
lim− = lim−
h→0 h h→0 h
h
= lim−
h→0 h
= lim− 1
h→0
= 1
2.1. DERIVATIVE OF A FUNCTION 47
f (1 + h) − f (1)
However, lim+ does not exist:
h→0 h
f (1 + h) − f (1) [1 − (1 + h)] − 2
lim+ = lim+
h→0 h h→0 h
−h − 2
= lim+
h→0
h
2
= lim+ −1 −
h→0 h
= −∞
f (1 + h) − f (1)
Hence, f 0 (1) = lim does not exist. Therefore, f is not differentiable at
h→0 h
x = 1. This example illustrates that if f is not continuous at x = c, then it is not differentiable
at x = c.
From our previous theorem, we already know that differentiability implies continuity. How-
ever, the converse of the theorem is not always true. If a function is continuous at x = c then
f is not necessarily differentiable at x = c.
(
4, if x ≤ 2
Example 2.1.4. Consider the function g(x) = We can easily verify that
x + 2, if x > 2.
this function is continuous at x = 2. We have
i. g(2) = 4
lim g(x) = 4.
x→2
and
g(2 + h) − g(2) [(2 + h) + 2] − 4
lim+ = lim−
h→0 h h→0 h
h
= lim+
h→0 h
= lim+ 1
h→0
= 1
Assessment 2.1
Concepts
Answer the following questions briefly.
1. What are the physical and geometric interpretations of derivatives?
Computations
1. f (x) = 4x + 1
2. g(x) = 3 − 2x
3. k(x) = x2 − x
4. i(x) = 1 − 3x2
√
5. j(x) = x
√
6. f (x) = 3 x
1
7. g(x) =
x
1
8. j(x) =
x+1
2.1. DERIVATIVE OF A FUNCTION 49
B. Determine the slope of the tangent line to the graph of the following
functions at the given point.
1. f (x) = 3 − 4x at x = 2
2. g(x) = x2 + 2x − 1 at x = −1
3. k(x) = 3x2 + x at x = 0
1
4. i(x) = at x = 1
2x − 1
1−x
5. j(x) = at x = −3
x+2
C. Determine if each of the following functions is differentiable at the
given point.
(
−2 if x ≤ −1
1. f (x) = at x = −1
3x + 1 if x > −1
(
2x + 5 if x ≤ −1
2. g(x) = at x = −1
1 − 2x if x > −1
(
−x2 if x ≤ 0
3. k(x) = at x = 0
x2 if x > 0
(
x2 if x < 1
4. i(x) = at x = 1
2x − 1 if x ≥ 1
(
−3x − 1 if x < 1
5. j(x) = at x = 1
x2 − 4 if x > 1
1. f (x) = x3 − 2x + 3
2. g(x) = 3x8 − x + 1
1
3. h(x) =
x−1
x2
4. i(x) = 2
x −9
x+2
5. j(x) = 2
x +4
50 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
Note that rule (D4) can be extended for differentiation of a sum or difference of a finite
number functions, i.e. if f (x) = f1 (x)±f2 (x)±· · ·±fn (x), then f 0 (x) = f10 (x)±f20 (x)±· · ·±fn0 (x).
2.2. BASIC DIFFERENTIATION RULES 51
Example 2.2.1. Find the derivative of the following functions and state the basic differentia-
tion rules used.
√
1. f (x) = π 5. y = 5x + x − 7ex
1
2. g(x) =
x 6. y = (2x4 + 1)(cos x − 2x7 )
π
3. h(x) =
x
5 ln x − x2
4. y = 2x2 + 7. y =
x2 sin x
Solution
0 d 1
h (x) = π (D3)
dx x
−1
=π
x2
−π
= 2
x
dy d d
2x2 + 5x−2
= (D4)
dx dx dx
d d
2
x−2
=2 x +5 (D3)
dx dx
= 2(2)x2−1 + 5(−2)x−2−1 (D2)
10
= 4x − 3
x
52 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
√ 1
5. Note that x = x 2 . Thus,
dy d d 1 d
= (5x) + x2 − (7ex ) (D4)
dx dx dx dx
d d 1 d
= 5 (x) + x 2 − 7 (ex ) (D3)
dx dx dx
1−1 1 1 −1 x
= 5(1)x + x 2 − 7e (D2), (D7)
2
1 −1
= 5 + x 2 − 7ex
2
1
= 5 + √ − 7ex
2 x
6. Using (D5),
dy d d
= (2x4 + 1) (cos x − 2x7 ) + (cos x − 2x7 ) (2x4 + 1) (D5)
dx dx
dx
4 d d 7
7 d 4
d
= (2x + 1) (cos x) − 2x + (cos −2x ) 2x + (1) (D4)
dx dx dx dx
d d
= (2x4 + 1) − sin x − 2 x7 + (cos x − 2x7 ) 2 x4 + 0
(D1), (D3), (D11)
dx dx
4 7−1
+ (cos x − 2x ) 2(4)x4−1
7
= (2x + 1) − sin x − 2(7)x (D2)
= (2x4 + 1)(− sin x − 14x6 ) + (cos x − 2x7 )(8x3 )
7. Using (D6),
d d
d (sin x) (ln x − x2 ) − (ln x − x2 ) (sin x)
= dx dx (D6)
dx (sin x)2
d d 2 d
(sin x) (ln x) − (x ) − (ln x − x2 ) (sin x)
dx dx dx
= 2 (D4)
sin x
1
(sin x) − (2)x2−1 − (ln x − x2 ) (cos x)
x
= 2 (D2), (D8), (D10)
sin x
1
(sin x) − 2x − (ln x − x2 ) (cos x)
x
=
sin2 x
2.2. BASIC DIFFERENTIATION RULES 53
Time to Think!
√ 7
1. Suppose f 0 (x) = x2 , g 0 (x) = 2x and h0 (x) = − .
x
We now discuss one of the many applications of derivatives which is rate of change. The rate
of change of a quantity refers to how that (dependent) quantity changes as another (indepen-
dent) quantity changes. In other words, it is a change in one variable relative to a corresponding
change in another. Graphically, the rate of change is represented by the slope of a line. Recall
that if the derivative of a function f at a number x0 exists, then this derivative is the slope of
the tangent line to the graph of f at the point (x0 , f (x0 )). Hence, f 0 (x0 ) is the rate of change
of f at x0 .
One of the most common example of rate of change is speed. Average speed is equal to
the total distance divided by the total time travelled. Instantaneous speed, on the other hand,
refers to speed at a particular instance. We consider the following illustration.
Suppose your jeepney ride from Olivarez Plaza to UPLB Gate, which 1.6 km in total, took
30 minutes. What is the average speed of the jeepney? What is the speed of the jeepney when
you were 0.5 km from Olivarez Plaza? What is the speed of the jeepney 25 minutes after you
left Olivarez Plaza?
Notice that to compute for the average speed, we just need the total distance and time
travelled. Hence,
1.6
average speed = = 3.2 km/hr.
0.5
However, to determine the speed when you were 0.5 km from Olivarez Plaza or the speed 25
minutes after you left, which are both speed at a particular instance, we need the speedometer
reading.
Now, suppose that the function y = f (x) describes the distance y km travelled by the jeepney
when it has travelled x hours from Olivarez Plaza. Then, f 0 (x0 ) will give the instantaneous
speed of the jeepney when it has travelled x0 hours from Olivarez Plaza. With this, we do not
need the speedometer reading anymore.
To further understand derivatives as rates of change, consider the following activity.
54 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
Activity 2.2.1
Consider a square of side x in. If f (x) in2 is the area of the square, then
f (x) = x2 . Initially, suppose that the square has side of length 2.8 in. So,
the initial area is f (2.8) = 2.82 = 7.84 in2 .
Answer the following questions and summarize your answers in the table
below.
Suppose we add 0.1 in to the initial length of the side of the square.
What is now be the area? What is the rate of change in area?
Suppose we again add 0.09 in to the length of the side of the square.
What is now be the area? What is the rate of change in area?
Suppose we again add 0.009 in to the length of the side of the square.
What is now be the area? What is the rate of change in area?
Suppose we again add 0.0009 in to the length of the side of the square.
What is now be the area? What is the rate of change in area?
Suppose we again add 0.0001 in to the length of the side of the square.
What is now be the area? What is the rate of change in area?
With this, what can you observe with the rates of change?
What is the rate of change in area at the instant that the side measures
3 in?
Notice that as the change in x gets closer and closer to 0, the rates of change approach 6.
In fact, in the activity, the average rate of change approaches 6, which is the derivative of f at
x = 3 since f 0 (x) = 2x and f 0 (3) = 6.
So now, if we want to know the rate of change in area at the instant that the side measures
4, we do not need to make a similar observation anymore as in the activity. This can be directly
computed using derivatives.
2.2. BASIC DIFFERENTIATION RULES 55
Note that if the rate of change is positive, then it means that the quantity that is being
measured is increasing at that instant. If the rate of change is negative, then it is decreasing
at that instant. In the case that the rate of change is zero, then it is constant at that instant.
To better understand this concept, we consider the following examples.
Example 2.2.2. Find the instantaneous rate of change of the area of a square when the side
measures 5 in.
Solution As in Activity 2.2.1, we have f 0 (5) = 2(5) = 10. Therefore, the area of the square is
increasing at a rate of 10 in2 per inch change in the length of the side when the length of the
side is 5 in.
Example 2.2.3. A sick person’s body temperature T (d) degrees Celsius d days after getting
sick is given by T (d) = −0.1d2 − 0.2d + 39, where 0 ≤ d ≤ 3. Find the rate of change of the
person’s body temperature when 0 < d < 3. What is the rate of change of the person’s body
temperature two days after getting sick?
Solution The rate of change of a sick person’s body temperature d days after getting sick is
T 0 (d) = −0.2d − 0.2 degrees Celcius per day. After two days, that is when d = 2, T 0 (2) = −0.6.
Hence, the person’s body temperature is decreasing at a rate of 0.6 degrees Celcius per day
after two days of being sick.
Example 2.2.4. The total cost in pesos of manufacturing x number of bags is given by
220
C(x) = 750 + + 2x2 . Find the rate of change in the total cost of production when 50
x
bags are produced.
220
Solution The rate of change in the total cost of production is C 0 (x) = − 2 + 4x. When
x
0 220 499780
50 bags are produced, that is when x = 50, C (50) = − 2 + 4(50) = ≈ 200. This
50 2500
means that the rate of change in the total cost of production when 50 bags are produced is
approximately PhP 200 per bag.
56 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
Example 2.2.5. When x number of computer sets are sold, the revenue is found to be
R(x) = (x + 1)(4x + 25) thousand pesos. What is the rate of change in revenue when 5
computer sets are sold?
Solution Note that R0 (x) = (x + 1)(4) + (4x + 25)(1). When x = 5, R0 (5) = (5 + 1)(4) +
(4(5) + 25)(1) = 69. Hence, the rate of change in the total revenue when 5 computer sets are
sold is PhP 69, 000 per computer set.
Assessment 2.2
Concepts
Answer the following questions briefly.
1. How do we compute for the derivative of a constant, sum, product,
quotient and power?
Computations
Find the derivative of the following functions using the basic differentiation
rules.
1. f (x) = 1
2. f (x) = π 2
1
14. h(x) = + sin x (cos x + 2x)
x4
√ √
15. h(x) = (ln x + 2 log x) cos x + 5x + 5
2x + cos x
16. y = √
ex − 2
sin x − x13 + 3
17. y = √
x+π
4x5 + π 2
18. y =
cos x + x14
ln x + 2 log x
19. y = √ √
5x + 5
4x2 ex
20. y =
ex + x2 + π
Problem Solving
2. Boyle’s law states that the pressure P of a given mass of an ideal gas
is inversely proportional to is volume V at a constant temperature, i.e.
k
P = , where k is a constant. Find the instantaneous rate of change
V
of P with respect to V when P = 10 pascals and V = 3 cubic meters.
3. A stone in dropped into a still lake and concentric circular ripples were
formed. Find the instantaneous rate of change of the area A of the
disturbed region with respect to the radius r when r is 10 centimeters.
In the given example, we will find and interpret the second order derivative of f .
00
Example 2.3.1. If f (x) = x3 + 3x2 − x + 3, find and interpret f .
0
Solution With our knowledge in differentiation, we know that f (x) = 3x2 + 6x − 1 and getting
0 00
the derivative of f results to the second order derivative f (x) = 6x + 6. Recalling what we
00
learned from Section 2.1, we can interpret f as the slope of the tangent line to the curve
0 0
y = f (x) at the point (x, f (x)). In other words, it is the rate of change of the slope of the
original curve y = f (x).
Generally, the second order derivative is the rate of change of a rate of change. Let us take
a look at the following example.
Example 2.3.2. An efficiency study of the morning shift at NIS electronic factory shows that
an average worker who arrives on the job at 9:00 AM will have produced
after t hours.
b. At what rate is the worker’s rate of production changing with respect to time at 12:00
noon?
Solution
2.3. HIGHER-ORDER DERIVATIVES 59
a. The worker’s rate of production at any time t is the first derivative Q0 given by
Therefore, the rate of production at 12:00 noon, that is, after 3 hours is
b. The rate of change of the rate of production is the second derivative Q00 given by
If the function s(t) gives the position of the object at time t with respect to a reference
point, then the rate of change of s(t) with respect to t is its velocity v(t) and the rate change
of velocity is its acceleration a(t). That is, v(t) = s0 (t) and a(t) = v 0 (t) = s00 (t)
Example 2.3.3. Suppose s defined by s(t) = t2 + 2t + 6 is the position of a car moving along
a straight line at time t where t is in minutes.
Solution
ds
a. The velocity of the car is given by v(t) = = 2t + 2 while its acceleration is given by
dt
d2 s
a(t) = v 0 (t) = = 2, at any time t.
dt2
b. Basically, we are asked to find values/s of t when v(t) = 0. Notice that v = 0 when
t = −1. Since there is no such negative time, then the car is always moving.
c. We find value/s of t such that a(t) = 0. However, we can see from our previous compu-
tation that the acceleration is constant, which is 2, and will never be 0. Hence, the car
will not have a constant velocity at any time.
60 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
Another variation of velocity and acceleration problem is discussed in the next example.
Example 2.3.4. A soccer ball is tossed vertically in the air from the ground. Suppose its
position function s, in ft, is defined by s(t) = 9.8t − 4.9t2 where t is in seconds.
Solution
a. The highest height the ball can reach is measured from the moment just before it goes
down, that is, before it changes direction from going up to going down. Basically, it is on
its highest position when it is at rest, that is, when v(t) = 0. So,
ds
v(t) = = 9.8 − 9.8t which means v(t) = 0 when t = 1
dt
Hence, the soccer ball can go as high as 4.9 ft above the ground.
b. The acceleration of the ball at any time t is given by a(t) = −9.8. Hence, a0 (2) = −9.8,
that is, the acceleration of the ball at t = 2 is −9.8.
Solution
1. We have
In this example, notice that the 6th derivative is 0. In fact, for a polynomial function of
degree n, its (n + 1)th derivative is 0.
2. We have
0
f (x) = ex
00
f (x) = ex
000
f (x) = ex
f (4) (x) = ex
One nice property of the exponential function f (x) = ex is that its nth derivative is itself,
for any positive number n.
d4 π
1. [ln(x)]; 2 2. Dx5 [sin(x)];
dx4 2
Solution
d 1 d 1
1. [ln(x)] = ⇒ at x = 2, [ln(x)] =
dx x dx 2
d2 −1 d2 −1 −1
2
[ln(x)] = 2 ⇒ at x = 2, 2
[ln(x)] = 2 =
dx x dx 2 4
d3 2 d3 2 2
3
[ln(x)] = 3 ⇒ at x = 2, 3
[ln(x)] = 3 =
dx x dx 2 8
d4 −6 d4 −6 −6
4
[ln(x)] = 4 ⇒ at x = 2, 4
[ln(x)] = 4 =
dx x dx 2 16
62 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
π π
2. Dx [sin(x)] = cos(x) ⇒ at x = , Dx [sin(x)] = cos =0
2 2
2 π 2
π
Dx [sin(x)] = − sin(x) ⇒ at x = , Dx [sin(x)] = − sin = −1
2 2
π π
Dx3 [sin(x)] = − cos(x) ⇒ at x = , Dx3 [sin(x)] = − cos =0
2 2
4 π 4
π
Dx [sin(x)] = sin(x) ⇒ at x = , Dx [sin(x)] = sin =1
2 2
π π
Dx5 [sin(x)] = cos(x) ⇒ at x = , Dx5 [sin(x)] = cos =0
2 2
Time to Think
1. What is the general concept in getting the nth order derivative of a
function?
Assessment 2.3
Concepts
How do we compute for the nth order derivative of a function?
Computations
A. Find the nth order derivative of the following functions.
1. f (x) = x4 + 3x − 2, n = 4, n = 5
2. g(x) = 2x7 − 5x − 24, n = 7, n = 8
3. h(x) = 3x3 − x2 − 4, n = 3, n = 4
1
4. f (x) = , n = 4
x
1
5. g(x) = 2 , n = 4
x
√
3
6. y = x , n = 3
7. y = log x, n = 4
8. y = cos x, n = 3
2.3. HIGHER-ORDER DERIVATIVES 63
Problem Solving
2. With the use of a rattan ball, two teams of kids are playing sipa in a
barangay open field. Now, a kid accidentally kicked the ball vertically.
Ignoring wind resistance, the height in feet of the ball after t seconds
is given by the function h(t) = −5t2 + 20t + 3.
6. A ball is thrown vertically upward, and its distance (in meters) from
the ground at t seconds is given by the function h(t) = −5t2 + 10t.
7. A rock is dropped from the top of a building, and its distance (in
feet) from the ground at t seconds is given by the function h(t) =
−16t2 + 1600.
The rise and fall on the graph indicates the increase and decrease, respectively, in the
number of bacteria present. We now give the formal definition of increasing and decreasing
functions.
Activity 2.4.1
Consider the graph of the function f which is defined on the interval
(0, 3).
Draw tangent lines to the curve at any point in the interval (0, 1).
1. What can you say about the slope of the tangent lines?
2. Is f increasing or decreasing in this interval?
Draw tangent lines to the curve at any point in the interval (1, 2).
1. What can you say about the slope of the tangent lines?
2. Is f increasing or decreasing in this interval?
Draw tangent lines to the curve at any point in the interval (2, 3).
1. What can you say about the slope of the tangent lines?
2. Is f increasing or decreasing in this interval?
We learned in Section 2.1 that the derivative of the function f at x = a gives the slope of
the tangent line to the graph of f at the point (a, f (a)). Now, how do we use derivatives to
determine whether a function is increasing or decreasing on a given interval?
Theorem
If f 0 (x) > 0 for all x in a given interval I, then f is increasing on I.
If f 0 (x) < 0 for all x in I, then f is decreasing on I.
2.4. CURVE SKETCHING 67
Example 2.4.1. Consider the function f defined by f (x) = x2 . Since f 0 (x) = 2x, then
f 0 (x) < 0 if x < 0. Hence, f is decreasing on the interval (−∞, 0). Similarly, since f 0 (x) > 0 if
x > 0, then f is increasing on (0, +∞). We can verify this using the graph of f given below.
The number where a function possibly changes from increasing to decreasing or from de-
creasing to increasing is called a critical number of f . It is obtained when the first derivative
is zero or does not exist.
Critical Number
If c is a number in the domain of f such that f 0 (c) = 0 or f 0 (c) does not
exist, then c called a critical number of f .
Example 2.4.2. Find all critical numbers of the function f defined by f (x) = 2x3 − 9x2 + 2.
then, determine the intervals on which f is increasing or decreasing.
t f0 Conclusion
(−∞, 0) −1 + f is increasing
(0, 3) 1 − f is decreasing
(3, +∞) 4 + f is increasing
Time to Think!
1. How many critical numbers can a quadratic polynomial function have?
Activity 2.4.2
Consider the graph of a function f in the figure below.
What can you say about f (1) with respect to the function values in
(0, 2)?
What can you say about f (3) with respect to the function values in
(2, 4)?
What can you say about f (4) with respect to the function values in
(3, 5)?
2.4. CURVE SKETCHING 69
We say that f (3) is a relative maximum value of f , and f (1) and f (4) are relative minimum
values of f .
Relative Extrema
A function f has a relative maximum at c if f (c) ≥ f (x), for all x in some
open interval containing c. We say that f (c) is a relative maximum value of
f.
A function f has a relative minimum at c if f (c) ≤ f (x), for all x in some
open interval containing c. We say that f (c) is a relative minimum value of
f.
Collectively, we refer to the relative maximum and relative minimum values
as relative extrema.
The question now is how do we determine the possible points where a relative extremum
occurs.
(a) relative maximum value if f 0 (x) changes sign from positive to negative
at c,
(b) relative minimum value if f 0 (x) changes sign from negative to positive
at c, and
Example 2.4.3. Consider again the function f defined by f (x) = x2 whose graph is given in
Example 2.4.1. Using the graph, we can observe that a relative minimum occurs at 0. Also,
as discussed in Example 2.4.1, f 0 changes sign from negative to positive at 0. So, by the First
Derivative Test, a relative minimum indeed occurs at 0.
The above example shows us that with Calculus, we do not need the graph to determine
where a relative extremum occurs.
Example 2.4.4. Find the relative extrema of the function f in Example 2.4.2.
Solution Since f 0 changes sign from positive to negative at x = 0, then a relative maximum
occurs at x = 0. The relative maximum value is f (0) = 2. On the other hand, f 0 changes sign
from negative to positive at x = 3. Hence, a relative minimum occurs at x = 3 and the relative
minimum value is f (3) = −25. So far, we have the following:
70 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
Time to Think!
1
Why does the function f (x) = have no relative extrema?
x
The first derivative of a function gives us an idea of how the function behaves, i.e, if a
function is increasing or decreasing on a given interval. However, this is not enough to sketch
its graph. We need more information that will be provided by the second derivative. First, we
define concavity and point of inflection.
Concavity
If the graph of a function f lies above all of its tangent lines on an interval
I, then the graph is concave upward on I.
If the graph of a function f lies below all of its tangent lines on an interval
I, then the graph is concave upward on I.
The following figure shows the relationship between increasing and decreasing function and
concavity.
2.4. CURVE SKETCHING 71
We can determine the concavity of the graph of a function using its second derivative.
Theorem
If f 00 (x) > 0 for all x in an interval I, then the graph of f is concave upward
on I.
This theorem also tells us that there is a possible change in concavity at the values of x
such that f 00 (x) = 0. Such point is called a point of inflection.
Point of Inflection
If f is continuous at the number c and the graph of f changes its concavity
at c, then (c, f (c)) is called a point of inflection of the graph of f .
Aside from the concavity and points of inflection of the graph of a function, the second
derivative can also be used to determine the occurence of a relative extrema of the function.
72 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
Example 2.4.5. Consider the function f in Example 2.4.2. Find the possible points of inflec-
tion and determine on which intervals the graph is concave upward or downward. Also, verify
the relative extrema using the second derivative test.
Solution The possible points of inflection are the values of x for which f 00 (x) = 0.
Notice also that f 0 (0) = 0 and f 00 (0) < 0. By the Second Derivative Test, a relative maximum
value occurs at x = 0. Similarly, a relative minimum value occurs at x = 3 since f 0 (3) = 0 and
f 00 (3) > 0.
With the results above, we can now sketch the graph of f .
2.4. CURVE SKETCHING 73
Curve Sketching
1. Determine the critical numbers and possible points of inflection of the
function.
4. Determine the sign of the first and second derivatives on these intervals.
1
Example 2.4.6. Sketch the graph of the function f defined by f (x) = x4 − x3 + x2 .
4
Solution We first find the critical numbers and possible points of inflection of f .
f 0 (x) = x3 − 3x2 + 2x = 0
x(x2 − 3x + 2) = 0
x(x − 1)(x − 2) = 0
x = 0, x = 1 or x = 2
f 00 (x) = 3x2 − 6x + 2 = 0
√
3
x=1±
3
√
3
The critical numbers are 0, 1 and 2, and the possible points of inflection occur at 1 − and
√ 3
3
1+ . We divide the real number line at these numbers and set up the sign table. We have
3
the following:
Assessment 2.4
Concepts
Answer the following questions briefly.
1. How do we determine if a function is increasing or decreasing on an
interval I?
3. How do we use the First Derivative Test to find the relative extrema
of a function?
4. How do we use the Second Derivative Test to find the relative extrema
of a function?
Computations
Sketch the graph of the given functions. Show all your computations for the
function’s derivatives, critical numbers and points of inflection. Summarize
your results in a table consisting of the relevant intervals and their corre-
sponding conclusions on the function.
1. f (x) = −x2 − 4x
2. g(x) = x3 − x + 1
3. h(x) = x1/3
1
4. p(x) = x
6. r(x) = ln x
76 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
2.5 Optimization
A company produces and sells 500 units of earphones per month at a price of PhP 150. By
reducing the price by PhP 10, the company found out that they can sell 550 units per month.
At what price will the company attain maximum revenue?
This is an example of an optimization problem that can occur in business and economics.
Optimization is a technique in finding the maximum or minimum values of a function. In this
section, we will learn how to solve such problems using derivatives.
Consider again the function f whose graph is given in Activity 2.4.2. We said that f (3)
is a relative maximum value and f (1) and f (4) are relative minimum values of f . What if,
instead of the whole domain of f , we just consider one interval, say [0, 4]? Notice that on this
interval, f (3) and f (1) are the largest and smallest function values, respectively. We call them
the absolute extrema of f on the interval [0, 4].
Absolute Extrema
A function f has an absolute maximum at c on the interval I if
f (c) ≥ f (x), for all x in I. We say that f (c) is the absolute maximum value
of f on I.
Note that absolute extrema and relative extrema are different. An absolute maximum (or
minimum) occurs at c provided that f (c) is the largest (or smallest) value of f on the domain.
On the other hand, a relative maximum (or minimum) occur at c if f (c) is the largest (or
smallest) value on some interval that contains c. This means that there may be function values
larger (or smaller) than f (c) on other intervals.
2.5. OPTIMIZATION 77
If we look at the graph of f , we see that a relative maximum occurs at 3 and a relative
minimum occurs at 1. Also, −1 is a relative minimum value since it is the smallest function
value.
If we talk about absolute extrema, we see that there is no absolute maximum value since
f (x) increases without bound as x approaches −1 from the right. On the other hand, we
see that −1 is the absolute minimum value since there are no other function values less than
−1.
In solving optimization problems, our goal is to find the absolute maximum or minimum
value of the function that describes the situation. In the following discussions, we will see that
continuity of functions is a sufficient property which is helpful in finding its absolute extrema on
a given interval. Here, we consider a closed interval, say [a, b], where a function f is continuous.
The Extreme Value Theorem assures us that if f is continuous on [a, b], then there are
absolute extreme values of f on [a, b]. We summarize the steps in finding these values below.
Example 2.5.2. Determine the absolute extrema of the function f defined by f (x) = x2 −2x+1
on the closed interval [0, 2].
Solution Notice that f is a polynomial function, so it is continuous on any interval and so, on
[0, 3]. By the Extreme Value Theorem, an absolute extrema occurs on this interval. First, we
find the values of x that will make f 0 (x) = 0.
f 0 (x) = 2x − 2 = 0
2(x − 1) = 0
x=1
Note that x = 1 is in the interval [0, 3]. We compute for the function values at this point
and at the endpoints of the interval.
The smallest and largest function values are 0 and 4, respetively. Hence, the absolute
minimum value is 0 which occurs at 1 and the absolute maximum value is 4 which occurs at
3.
Solution Since g is a polynomial function, then it is continuous on the interval [−1, 2]. Thus,
we can use the Extreme Value Theorem. We first find the values of x that will make g 0 (x) = 0.
g 0 (x) = x3 − 4x2 + 3x = 0
x(x2 − 4x + 3) = 0
x(x − 1)(x − 3) = 0
x = 0, x = 1 or x = 3
We only consider x = 0 and x = 1 since x = 3 is not in the interval [−1, 2]. Now, we
compute the function values at these points and at the endpoints.
5 37 2
g(0) = 0 g(1) = g(−1) = g(2) = −
12 12 3
37 2
The largest function value is and the smallest function value is − . Hence, the absolute
12 3
37 2
maximum value is which occurs at −1 and the absolute minimum value is − which occurs
12 3
at 2.
5
In this example, note that 0 and are also relative extrema of g. However, we are interested
12
with the absolute extrema only.
2.5. OPTIMIZATION 79
Example 2.5.4. A farmer has 2400 ft of fencing material and wants to fence off a rectangular
field that borders a river. He needs no fence along the river. What are the dimensions of the
field that will give the maximum area?
Solution First, we need a function that describes the area A of the rectangular field. Let x be
the length of the side perpendicular to the river and y be the length of the side parallel to the
river.
Since the fencing material is 2400 ft, then 2x + y = 2400. So, y = 2400 − 2x. Also, the area is
given by A = xy. Substituting y, we have A(x) = x(2400 − 2x) = 2400x − 2x2 . Moreover, x
should be at most 1200 ft for the fence to enclose the rectangular field. Hence, x ∈ [0, 1200].
Notice that A is a polynomial function and so it is continuous on [0, 1200]. Hence, we can
use the Extreme Value Theorem. We first find the values of x that will make A0 (x) = 0.
A0 (x) = 2400 − 4x = 0
4(600 − x) = 0
x = 600
Note that x = 600 is in the interval [0, 1200]. We compute the function values at x = 600 and
at the endpoints, x = 0 and x = 1200.
Hence, the absolute maximum value of A on [0, 1200] is 720000 and it occurs when x = 600.
Also, when x = 600, y = 1200.
Therefore, the dimension of the field that has the largest area is 600 by 1200 ft.
Example 2.5.5. A company found out that the sales of their product is dependent on the
amount spent on advertising. If x thousand pesos are spent, the company sells S number
of units, where S(x) = −x3 + 15x2 + 432x + 100. Also, the company must not spend more
than PhP 27, 000. How much should be spent on advertising to attain the maximum sales level?
Solution Note that the company should spend a maximum of PhP 27000. So, x ∈ [0, 27]. Since
S is a polynomial function, it is continuous on this interval and so we can use the Extreme
Value Theorem. We first find the values of x that will make S 0 (x) = 0.
We disregard x = −8 since it is not in the interval [0, 27]. We compute the function values
at x = 18 and at the endpoints, x = 0 and x = 27.
S(18) = 6904 S(0) = 100 S(27) = 3016
Hence, the maximum number of units that can be sold is 6904 and this will be attained
when the company spends PhP 18000 on advertising.
In the previous example, what if the company does not have any limit on the amount spent
on advertising, i.e. x ∈ [0, +∞)? How do we find the relative extrema in this case?
Time to Think!
Theorem Let f be a function that is continuous on an open interval I
containing c. If f (c) is a relative extremum of f and c is the only number in
I for which f has a relative extremum, then f (c) is the absolute extremum
of f on I.
Assessment 2.5
Concepts
Answer the following questions briefly.
1. What is the difference between a relative minimum value and an ab-
solute minimum value of a function?
Computations
Find the absolute extrema
π of the following functions on the given intervals.
π
1. f (x) = sin x on − 2 , 2
3. h(x) = 64 − 3x + x2 on [−6, 4]
4. j(x) = x2 − 6x + 11 on [0, 6]
Problem Solving
V = −aT 3 + bT 2 − cT + 1
Activity 2.6.1
Write the following as composite functions.
Suppose you want to differentiate the given functions in Activity 2.6, what will be your
guess? As we have recognized, the functions we want the derivatives of are compositions. In
this section we will learn how to differentiate composite functions.
In Section 2.2, we discussed basic differentiation rules which include product rule which
is used when differentiating a product and quotient rule which is used when differentiating a
quotient. This time, we will introduce a rule in getting the derivative of a composition which
we call Chain Rule.
y −→ u −→ x.
dy du
du dx
Note that in the formula, the dus appear to cancel in the numerator and denominator of
the two “fractions”. This is useful in remembering the formula.
dy
Example 2.6.1. Find if y = h(x) = (2x + 5)11 .
dx
Solution We let y = u11 and u = 2x + 5. Then
dy dy du
= · = 11u10 · (2) = (2) · 11(2x + 5)10 = 22(2x + 5)10 .
dx du dx
1 dy
Example 2.6.3. If y = ln , find .
x dx
1
Solution Let y = ln u and u = . Then,
x
dy dy du 1 −1 1 1 1 1
= · = ·− 2 = 1 ·− 2 =x·− 2 =− .
dx du dx u x x
x x x
There are also instances where we need to use the product or quotient rule for differentiation
along with the Chain Rule just like in the example that follows.
98
3x
Example 2.6.4. Evaluate Dx .
2 − 4x2
Solution Let
98
3x 3x
y= and u = so that y = u98 .
2 − 4x2 2 − 4x2
Then,
dy dy du
= ·
dx du dx
3(2 − 4x2 ) − 3x(−8x)
= 98u97 ·
(2 − 4x2 )2
97
3(2 − 4x2 ) + 24x2
3x
= 98 ·
2 − 4x2 (2 − 4x2 )2
84 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
Remember that in using the Chain Rule, we work from outside to the inside. We differentiate
the “outside” function and multiply by the derivative of the “inside” function. We elaborate
this better in the following examples where we encounter longer chain of functions.
Solution
1. Applying the Chain Rule, we have
1 d
f 0 (x) = · (5x + 9)11
(5x + 9)11 dx
1 d
= · 11(5x + 9)10 · (5x + 9)
(5x + 9)11 dx
1
= · 11(5x + 9)10 · (5).
(5x + 9)11
Time to Think
1. How do you determine the derivative of a composite function?
We now study another application of derivatives. Suppose air is being pumped into a balloon
which is spherical in shape. Note that the volume V of the balloon is a function of its radius r.
Suppose that after each second, r increases by 1 cm. Consequently, V will also increase. Since
r increases as time t passes by, then r is a function of t. Since V is a function of r, then V is
also a function of t. By Chain Rule,
dV dV dr
= ,
dt dr dt
2.6. THE CHAIN RULE 85
dV dr
where and are the instantaneous rates of change of V and r, respectively, with respect
dt dt
to time. In this particular example, we see that the rate of change of V is related to the rate
of change of r. These are called related rates. We summarize below the steps in solving
problems involving related rates.
(iii) Write an equation that gives the relation of the variables. Obtain the
derivative with respect to time.
Example 2.6.6. A bacterial cell is spherical in shape. If its radius is increasing at the rate of
0.02 µm per day, find the rate of increase of the volume at the time the radius is 1.6 µm.
Solution
(i) Let V and r be the volume and radius of bacterial cell, respectively. Since the radius is
dr
increasing at the rate of 0.02 µm per day, = 0.02.
dt
dV
(ii) We need to find when r = 1.6.
dt
4
(iii) Since the bacterial cell is spherical in shape, V = πr3 . By Chain Rule,
3
dV dV dr dr
= = 4πr2 .
dt dr dt dt
(v) Therefore, the volume of the bacterial cell is increasing at the rate of 0.2048π µm3 per
day.
86 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
Example 2.6.7. If p pesos is the price of a certain commodity, the demand x is found to be
3524 − p2
x=
17
units. How fast is the demand changing when the price is 17 pesos and is decreasing at a rate
of 50 centavos per day?
Solution
dp 1
(i) Since the price is decreasing at the rate of 50 centavos per day, =− .
dt 2
dx
(ii) We need to find when p = 17.
dt
(iii) By Chain Rule,
dx −2p dp
= .
dt 17 dt
(iv) Substituting what is given, we have
dx −2(17) 1
= − = 1.
dt 17 2
(v) Therefore, the demand for the commodity is increasing at a rate of 1 unit per day.
Assessment 2.6
Concepts
Answer the following questions briefly.
1. How do we compute for the derivative of a function composition?
Computations
Evaluate the following.
√
1. Dx (3x2 + sin x)( 3 x4 + 1)
" 3 #
2x2 + 7x6
2. Dx
x3 − 9
3. Dx [cos(9x5 + 2)]
5. Dx [(cos 6x)(7x8 )]
hp i
6. Dx 3 15
sin (x )
2.6. THE CHAIN RULE 87
" √
3
!#
x2
7. Dx sin
5x + 1
hp i
8. Dx 3
sin(x3 ) + cos(x−2 )
"r #
4 cos3 x
9. Dx
sin2 x
3x5
10. Dx tan (Hint: What is tan x in terms of sin x and cos x?)
5
1
11. Dx cos3 (3x − 15)
3
√
12. Dx sin x − 19x
√
13. Dx sin x 3x
" √3
!#
3x2 + 1
14. Dx cos
2x − 3
h p i
15. Dx (x3 + 2x−1 + 5) 3 sin(x2 )
Problem Solving
1. A circular oil spill in the Laguna Lake spreads in such a way that its
radius is increasing at the rate of 20 ft/hr. How fast is the area of the
oil spill changing when the diameter is 400 feet?
where each piece is worth p pesos. How fast is the supply changing
when the price is 40 pesos per unit and is increasing at the rate of 50
cents per month?
5. Camille is flying a kite and plays out a string at 2 cm per second. The
kite moves horizontally at an altitude of 5 m. If there is no sag in the
string, at what rate is the kite moving when 13 m of string has been
played out?
88 CHAPTER 2. DIFFERENTIATION OF FUNCTIONS OF A SINGLE VARIABLE
Chapter 3
One way to answer this problem is to come up with a general formula for the cost c(x)
for producing x units of the commodity. This means that we need to find a function c whose
derivative is given by
c0 (x) = 3x2 − 24x + 41.
In this scenario, the derivative of a function is given but the function itself is unknown. To
find this function, we need to reverse the process of differentiation. We call this reverse process
as antidifferentiation.
In this section, we will discuss the method of antidifferentiation and use it to solve problems
involving rates of change. We start the discussion with the following activity.
Activity 3.1.1
Consider the three functions F , G, and H given by
F (x) = x3 − 2x2
G(x) = x3 − 2x2 + 2
and
H(x) = x3 − 2x2 − 10
What is the general form of the functions with the same derivative?
89
90 CHAPTER 3. INTEGRATION OF FUNCTIONS OF A SINGLE VARIABLE
Actually, there are infinitely many functions whose derivative is equal to f where
Antiderivative
A function F is an antiderivative of f if and only if
F 0 (x) = f (x)
The next example shows how to verify if a function is an antiderivative of a given function.
we need to show that the derivative of F is f . So, by applying the rules of differentiation we
have
0 d 4 d 3 d 1 2 d d
F (x) = (x ) + (3x ) − x + (x) + (10)
dx dx dx 2 dx dx
d 4 d 1 d 2 d d
= (x ) + 3 (x3 ) − (x ) + (x) + (10)
dx dx 2 dx dx dx
1
= 4x3 + 3 · 3x2 − · 2x + 1 + 0
2
3 2
= 4x + 9x − x + 1
= f (x)
Therefore, F is an antiderivative of f .
We can also use the same method to verify that the functions G and H given by
1
G(x) = x4 + 3x3 − x2 + x
2
3.1. ANTIDIFFERENTIATION AND THE INDEFINITE INTEGRAL 91
and
1
H(x) = x4 + 3x3 − x2 + x + 1
2
are also antiderivatives of f .
Observe that G and H can be obtained by adding constants to F (x). Actually, all antideriva-
tives of f can be obtained in the same manner; that is, the general form of all antiderivatives
of f is
F (x) + C
where C is any real number. We call this the indefinite integral of f .
Indefinite Integral
Let F be an antiderivative of a continuous function f . Then the family of
all antiderivatives of f is called the indefinite integral of f written as
Z
f (x)dx = F (x) + C
where C takes any real value. We call the process of finding the indefinite
integral as antidifferentiation or (indefinite) integration.
Z Z
In the equation f (x)dx = F (x) + C, we call as the integral symbol, f (x) as the
integrand, C as the constant of integration, and dx denotes that x is the variable of
integration. We read the equation as “The (indefinite) integral of f (x) with respect to x is
F (x) plus C ”.
Our next activity will lead us to rules that will aid us in finding the indefinite integral of a
given function.
Activity 3.1.2
For each item, find an antiderivative of f ; that is, find a function whose
derivative is f .
Then base on your answers, write the indefinite integral for each item by
completing the following.
Z
1. kdx = where k is any constant
Z
2. xn dx = where n 6= −1
Z
3. ex dx =
Z
1
4. dx =
x
Z
5. sin xdx =
Z
6. cos xdx =
We use our first two results to find the indefinite integrals in the next example.
Solution
Z
1. 5dx = 5x + C
x11+1 x12
Z
11
2. x dx = +C = +C
11 + 1 12
√
3. Since we can write 3 x as x1/3 , we have
√
Z Z
3
xdx = x1/3 dx
x1/3+1
= +C
1/3 + 1
x4/3
= +C
4/3
3x4/3
= + C.
4
Now, we present all of our results from Activity 3.1.2 together with other results analogous
to some rules of differentiation.
(II2) Z
The Power Rule:
xn+1
xn dx = + C where n 6= −1
n+1
Z
(II3) ex dx = ex + C
Z
1
(II4) dx = ln |x| + C
x
Z
(II5) sin xdx = − cos x + C
Z
(II6) cos xdx = sin x + C
94 CHAPTER 3. INTEGRATION OF FUNCTIONS OF A SINGLE VARIABLE
(II7) Z
The Constant Multiple
Z Rule:
kf (x)dx = k f (x)dx
(II8) Z
The Sum and Difference
Z Rule: Z
[f (x) ± g(x)] dx = f (x)dx ± g(x)dx
Similar to differentiation, the sum and difference rule can be applied to antidifferentiation
of sum of any finite number of functions.
Solution
1. We have
Z Z Z Z
x x
(e + cos x − sin x)dx = e dx + cos xdx − sin xdx (II8)
There are instances when we need to perform operations before applying the rules of inte-
gration.
Solution
1. We first perform multiplication in the integrand.
√
Z Z
2
(x − 4) xdx = (x2 − 4)x1/2 dx
Z
= (x5/2 − 4x1/2 )dx
x5/2+1 x1/2+1
= −4· +C (II2)
5/2 + 1 1/2 + 1
x7/2 4x3/2
= − +C
7/2 3/2
2x7/2 8x3/2
= − +C
7 3
2. We first perform division in the integrand.
Z 3 Z
x +1 2 1
dx = x + dx
x x
Z Z
2 1
= x dx + dx (II8)
x
x2+1
= + ln |x| + C (II2), (II4)
2+1
x3
= + ln |x| + C
3
However, the methods used in Example 3.1.5 may not be practical in finding other integrals
such as Z
(2x − 1)21 dx.
Expanding the integrand in this case requires a very long computation. Instead of doing this,
we will determine the integral by using substitution in the next example.
96 CHAPTER 3. INTEGRATION OF FUNCTIONS OF A SINGLE VARIABLE
Z
Example 3.1.6. To find (2x − 1)21 dx, we let u = 2x − 1. This means that du = 2dx and
du
dividing both sides of the equation by 2, we have = dx. Hence,
2
Z Z
21 du
(2x − 1) dx = u21 ·
2
Z
1
= u21 du
2
1 u21+1
= · +C
2 21 + 1
1 u22
= · +C
2 22
u22
= +C
44
(2x − 1)22
= + C.
44
Integration by Substitution
Z
To find an integral of the form f (g(x))g 0 (x)dx,
Z
3 +x2
Example 3.1.7. To find (3x2 + 2x)ex dx, we let u = x3 + x2 . This means that du =
(3x2 + 2x)dx. Hence,
Z Z
2 x3 +x2
(3x + 2x)e dx = eu du
= eu + C
3 2
= ex +x + C.
3.1. ANTIDIFFERENTIATION AND THE INDEFINITE INTEGRAL 97
Z
Example 3.1.8. To find x3 cos x4 dx, we let u = x4 . This means that du = 4x3 dx and
du
dividing both sides of the equation by 4, we have = x3 dx. Hence,
4
Z Z
du
x3 cos x4 dx = cos u ·
4
Z
1
= cos udu
4
1
= sin u + C
4
1
= sin x4 + C.
4
Now that we are familiar with the basic integration rules and integration by substitution,
let us solve some problems involving rates of change.
Example 3.1.9. A publisher estimates that the total cost of producing their new book in-
creases at the rate of 3x2 − 24x + 41 pesos per book when x books are printed. Given that the
cost of printing 12 books is 4,500 pesos, what is the cost of printing 34 books?
Solution Let c(x) be the cost in pesos of producing x books. Since, the rate of change in the
total cost is given by the derivative of c,
Now, it is given that the cost of producing 12 books is 4,500; that is, c(12) = 4, 500. So, we
have
Example 3.1.10. The population of a certain bird species is growing at a rate given by
0.49e−0.027t
where t is the number of years since the records started to be kept. What will be the population
of the species after 10 years if it is 500 initially?
Solution Let p(t) be the population of the species t years after records began to be kept. Then
p0 (t) = 0.49e−0.027t .
Then we integrate both sides of the equation so that
Z
p(t) = 0.49e−0.027t dt
Z
= 0.49 e−0.027t dt.
du
Now, let u = −0.027t so that du = −0.027dt or = dt. This means that
−0.027
Z
du
p(t) = 0.49 eu ·
−0.027
Z
0.49
= eu du
−0.027
490 u
= − e +C
27
490 −0.027t
= − e +C
27
So,
490 −0.027t 13, 990
p(t) = − e +
27 27
and
490 −0.027(10) 13, 990
p(10) = − e +
27 27
≈ 504.3
Example 3.1.11. Suppose that the slope of the line tangent to the graph of a function f at
the point (x, f (x)) is x(x2 + 1)10 . Find f (x) given that the graph of f passes through the origin.
Solution Since f 0 (x) gives the slope of the line tangent to the graph of f at (x, f (x)), we have
f 0 (x) = x(x2 + 1)10 .
So by integrating both sides of the equation, we have
Z
f (x) = x(x2 + 1)10 dx.
du
Let u = x2 + 1 so that du = 2xdx or = xdx. This means that
2
Z
du
f (x) = u10 ·
2
Z
1
= u10 du
2
1 u10+1
= · +C
2 10 + 1
u11
= +C
22
(x2 + 1)11
= + C.
22
Now, since the graph passes through the origin, we say that f (0) = 0. Thus,
(02 + 1)11
+C = 0
22
1
+C = 0
22
1
C = −
22
Therefore,
(x2 + 1)11 1
f (x) = − .
22 22
100 CHAPTER 3. INTEGRATION OF FUNCTIONS OF A SINGLE VARIABLE
Assessment 3.1
Concepts
Answer the following questions briefly.
1. When is a function F an antiderivative of a function f ?
Computations
B. Find the following by applying the basic integration rules. State the
rules used.
Z
1. (3x5 + 4x3 − x)dx
Z
2. (x4 + 2x3 − x2 + 3x − 8)dx
Z 3
x + 3x2 − 1
3. dx
x
Z 2
x + 2x − 4
4. √ dx
x
√
Z
5. 3 sin x + ex − 3 x dx
Z
6. cos x (tan x − sec x + 2) dx
3.1. ANTIDIFFERENTIATION AND THE INDEFINITE INTEGRAL 101
Problem Solving
1. Suppose that the slope of the line tangent to the graph of a function
f at the point (x, f (x)) is x2 − 3x. Find f (x) given that the graph of
f intersects the y-axis at the point (0, 1).
2. Suppose that the slope of the line tangent to the graph of a function
g at the point (x, g(x)) is cos x. Find g(x) given that the graph of g
passes through the point (π, 2).
3. For each of the following items, find f (x) such that the slope of the
line tangent to the graph of f at the point (x, f (x)) is G(x) and that
the graph of f passes through the point P .
√
a. G(x) = −2x cos(2 − x2 ); P ( 2, 0)
ln x
b. G(x) = √ ; P (1, 0.5)
4 x
4. A ball is rolling along a straight line from wall A to wall B. The distance
of the walls is 8 feet.The velocity of the ball is given by v(t) = 4 cos t
in feet per minute. Initially, the ball is 4 feet away from wall A. Where
is the ball in t minutes?
If making 10 pies costs 1800 pesos, what is the cost of making 100
pies?
3.2. INTEGRATION BY PARTS 103
We now introduce another method to evaluate integrals which is the Integration by Parts
(IBP). This method is useful when the integrand is a product of two functions.
d
[f (x)g(x)] = f (x)g 0 (x) + g(x)f 0 (x).
dx
From this, we have
d
f (x)g 0 (x) = [f (x)g(x)] − g(x)f 0 (x).
dx
Integrating both sides, we get
Z Z Z
0 d
f (x)g (x)dx = [f (x)g(x)]dx − g(x)f 0 (x)dx.
dx
Let u = f (x) and v = g(x). Then, du = f 0 (x)dx and dv = g 0 (x)dx. Rewriting the equation
above in terms of u and v, we arrive at the IBP formula.
Integration by Parts
Z Z
udv = uv − vdu.
Z
Example 3.2.1. Evaluate x cos xdx.
Z Z
x cos xdx = udv
Z
= uv − vdu
Z
= x sin x − sin xdx
= x sin x − (− cos x) + C
= x sin x + cos x + C.
Z
Notice that after using IBP, we were left with sin xdx which is simplier to evaluate com-
pared to the given.
Now, let us try to have a different set of choices for u and dv. Let u = cos x and dv = xdx.
x2
Then, du = − sin xdx and v = . Thus,
2
Z Z
x cos xdx = udv
Z
= uv − vdu
2 Z 2
x x
= cos x − (− sin x)dx
2 2
x2
Z 2
x
= cos x + sin xdx.
2 2
See here that the integral becomes more complicated than the given. Hence, we have the
wrong choices for u and dv.
Z
Example 3.2.2. Evaluate x ln xdx.
1 x2
Solution Let u = ln x and dv = xdx. Then, du = dx and v = . So,
x 2
Z Z
x ln xdx = udv
Z
= uv − vdu
2 Z 2
x x 1
= ln x − dx
2 2 x
2 Z
x 1
= ln x − xdx
2 2
2
1 x2
x
= ln x − +C
2 2 2
x2 ln x x2
= − + C.
2 4
3.2. INTEGRATION BY PARTS 105
Z
2
Example 3.2.3. Evaluate x3 ex dx.
dw
Solution We use substitution first. Let w = x2 . So, dw = 2xdx and = xdx. Thus,
2
Z Z Z Z
3 x2 2 x2 w dw 1
x e dx = x e xdx = we = wew dw.
2 2
w w
Let u = w and dv = e dw. Then, du = dw and v = e . Hence,
Z Z
3 x2 1
x e dx = wew dw
2
Z
1
= udv
2
Z
1
= uv − vdu
2
Z
1 w w
= we − e dw
2
1 1
= (wew ) − (ew ) + C
2 2
2 x2 x2
xe e
= − + C.
2 2
Z
Example 3.2.4. Evaluate x2 ex dx.
Z
= x e − 2 xex dx
2 x
Z
Notice that in xex dx, we have another product of two functions. With this, we perform
another IBP. Let ū = x and dv̄ = ex dx. Then, dū = dx and v̄ = ex . So,
Z Z
2 x 2 x
x e dx = x e − 2 ūdv̄
Z
2 x
= x e − 2 ūv̄ − v̄dū
Z
2 x x x
= x e − 2 xe − e dx
= x2 ex − 2 (xex − ex ) + C
= x2 ex − 2xex + 2ex + C.
106 CHAPTER 3. INTEGRATION OF FUNCTIONS OF A SINGLE VARIABLE
Integration by Parts is just one of the many integration techniques there are. Other tech-
niques are free for your own exploration.
Assessment 3.2
Concepts
Answer the following questions briefly.
1. How do you know that you made the correct choice for u and dv?
2. How do you know that you made the incorrect choice for u and dv?
Computations
Evaluate the following indefinite integrals.
Z
1. x2 sin xdx
Z
2. 4xex dx
Z
3. x2 e2x dx
Z
4. 2x cos (2x)dx
Z
5. x ln (x2 )dx
Z
6. x3 sin (x2 )dx
3.3. THE DEFINITE INTEGRAL 107
To introduce the topic, we start with an activity. Our goal is to approximate the area of
the region bounded above by the graph of f given by f (x) = x2 + 1 and bounded below by the
x-axis from x = 0 to x = 2.
14
For later comparison, we note that the exact area of of the region is A = or 4.66.
3
Activity 3.3.1
Consider the region given above. Approximate its area using the area of
two rectangles.
◦ Find the total area of the rectangular regions. Indicate the compu-
tations in the table below.
◦ In the third column, find the height of each rectangle given by the
value of f at your chosen numbers.
◦ Finally, in the last row, find the total area of the reactangles. Is this
sum equal to the actual area of the region? Why?
Approximate the area of the region using the area of three rectangles
◦ Find the total area of the rectangular regions. Indicate the computa-
tions in the table below.
Subinterval Point Height of the Width of the Area of the
(xi ) Rectangle (f (xi )) Rectangle (∆x) Rectangle
[0, 0.67] x1 =
[0.67, 1.34] x2 =
[1.34, 2] x3 =
Total Area: (f (x1 )∆x + f (x2 )∆x + f (x3 )∆x)
◦ In the third column, find the height of each rectangle given by the
value of f at your chosen numbers.
◦ Finally, in the last row, find the total area of the reactangles. Is this
sum equal to the actual area of the region? Why?
Based on your observation in Activity 3.2.1, we say that as n increases without bound, the
sum approaches the actual area A = 4.66. In limits,
Definite Integral
Let f be continuous on [a, b]. Subdivide the interval [a, b] into n subintervals
of equal length ∆x. If xi is any number from the ith subinterval Z for i = b
1, 2, . . . , n. Then, the definite integral of f on [a, b], denoted by f (x)dx,
a
is given by
Z b
f (x)dx = lim [f (x1 ) + f (x2 ) + · · · + f (xn )]∆x,
a n→∞
Activity 3.3.1 somehow gave us a glimpse of how evaluation of definite integrals using limits
is cumbersome. Fortunately, we can evaluate them using antiderivatives.
2
2
x3
Z
2
(x + 1)dx = + x
0 3 0
3 3
2 0
= +2 − +0
3 3
14
=
3
= 4.66.
3.3. THE DEFINITE INTEGRAL 111
Example 3.3.2. We use the integration rule for sine and cosine function so that
Z π/2 π/2
(cos x − sin x)dx = sin x − (− cos x)
0 0
π/2
= sin x + cos x
0
π π
= sin + cos − (sin 0 + cos 0)
2 2
= (1 + 0) − (0 + 1)
= 0.
To simplify our evaluations, we consider the following rules for definite integrals.
Z 1 Z 0 Z 1
|x| dx = (−x)dx + xdx
−1 −1 0
Z 0 Z 1
= − xdx + xdx
−1 0
0 1
x2 x2
= − +
2 2 0
2−1
(−1)2
2
02
0 1
= − − + −
2 2 2 2
= 1.
Note that in the case of the previous example, there is no need to substitute for the original
variable x since the upper and lower limits of integration are already in terms of the variable
u.
Z 4
Example 3.3.5. Evaluate x ln xdx.
e
Solution Since the integrand is a product of two functions, we use integration by parts. Let
1 x2
u = ln x and dv = xdx. Then, du = dx and v = . So,
x 2
4 4 Z 4 2
x2
Z
x 1
x ln xdx = ln x − dx
e 2 e 2 x
2 e
1 4
2 Z
4 e
= ln 4 − ln e − xdx
2 2 2 e
4
e2 1 x2
= 8 ln 4 − −
2 2 2
e
e2
2
e2
4
= 8 ln 4 − − −
2 4 4
2
e
= 8 ln 4 − − 4
4
≈ 5.2431.
As discussed in Activity 3.3.1, definite integrals can be used to compute the area of plane
regions. We discuss this application in Section 3.4.
Assessment 3.3
Concepts
Answer the following questions briefly.
1. How do you compute definite integrals using antiderivatives?
3. What is the relationship between the definite integral and the area of
a plane region?
114 CHAPTER 3. INTEGRATION OF FUNCTIONS OF A SINGLE VARIABLE
Computations
A. Evaluate the following definite integrals.
Z 1
1. (x + 1)(x + 2)(x + 4)dx
0
3
27x3 − 125
Z
2. dx
0 3x − 5
Z 64 √
2x x+x
3. √
3
− dx
1 x2 2x
Z 1 2x
e − e4x
4. dx
−1 e2x
Z −π/6
5. 1 − 2 sin x cot x + 3 cos x dx
−π/4
Z b
is given by AR = f (x)dx. We state this result below.
a
we have 4
4 √ 4
2x3/2 2(4)3/2 2(1)3/2
Z Z
1/2 14
AR = xdx = x dx = = − = .
1 1 3 1 3 3 3
Activity 3.4.1
Consider the regions R1 and R2
We can generalize your computation in Activity 3.4.1 for regions between two curves.
3.4. AREA OF A PLANE REGION 117
In Z b
AR = [f (x) − g(x)] dx,
a
we can think of the integrand f (x) − g(x) as the height of a vertical strip inside R drawn from
the upper boundary down to the lower boundary. See figure below.
√
Example 3.4.2. To find the area of the region R enclosed by the graph of y = x and the
lines given by y = 2, x = 0, and x = 2,
we have
2
2 √
√ 2x3/2 2(2)3/2 2(0)3/2
Z
4 2
AR = 2 − x dx = 2x − = 2(2) − − 2(0) − =4− .
0 3 0 3 3 3
118 CHAPTER 3. INTEGRATION OF FUNCTIONS OF A SINGLE VARIABLE
√
Example 3.4.3. To find the area of the region R enclosed by the graphs of y = x2 and y = x,
we have
1
1
√ 2x3/2 x3 2(1)3/2 13 2(0)3/2 03
Z
2 1
AR = ( x − x )dx = − = − − − = .
0 3 3 0 3 3 3 3 3
Note that the method used above is also applicable for cases in which the region is not lying
entirely above the x-axis.
Example 3.4.4. To find the area of the region R enclosed by the graphs of y = 2 − x2 and
y = x,
we have,
Z 1
(2 − x2 ) − x dx
AR =
−2
1
x3 x2
= 2x − −
3 2 −2
3
(1)2 (−2)3 (−2)2
(1)
= 2(1) − − − 2(−2) − −
3 2 3 2
9
= .
2
3.4. AREA OF A PLANE REGION 119
Example 3.4.5. To find the area of the region R bounded by the graphs of y = sin x and
y = cos x from x = 0 to x = π/2,
Since sin x ≤ cos x when 0 ≤ x ≤ π/4, i.e. the upper boundary is y = cos x and the lower
boundary is y = sin x, the area of R1 is
Z π/4
AR1 = (cos x − sin x) dx
0
π/4
= sin x + cos x
0
h π πi
= sin + cos − [sin 0 + cos 0]
√ 4 4
= 2 − 1.
But when π/4 ≤ x ≤ π/2, cos x ≤ sin x, i.e. i.e. the upper boundary is y = sin x and the
120 CHAPTER 3. INTEGRATION OF FUNCTIONS OF A SINGLE VARIABLE
Example 3.4.6.
√ Set-up the integral that will give the area of the region R enclosed by the
graphs of y = x, y = x − 2 and the x-axis.
Solution Note that we need to divide the region into two subregions as shown below because
there are different lower boundaries to the left and to the right of x = 2.
So, Z 2 √
Z 4 √
AR = x − 0 dx + x − (x − 2) dx
0 2
Is there a way to compute for the area of the region in previous example without dividing
it? Notice that if we use horizontal strips instead of vertical strips, the boundary on both ends
of the strip will not change. See figure below.
3.4. AREA OF A PLANE REGION 121
In this case, instead of x, we use y as the variable of integration. We compute for the area
of plane region using the rule provided below.
Again, we can think of the integrand f (y) − g(y) as the length of the horizontal strip inside
R drawn from the left boundary to the right boundary. See figure below.
Example 3.4.7. Set-up the integral that will give the area of the region R in the previous
example using horizontal strips.
Hence, Z 2
(y + 2) − y 2 dy.
AR =
0
Verify using the rules on evaluating definite integrals that the values of the integrals in the
last two examples are equal.
Example 3.4.8. To find the area of the region bounded by x = ey , the line x = e, and the
x-axis,
we have,
Z 1
(e − ey )dy = ey − ey |10
0
= e − e1 − 0 − e0
= 1.
Assessment 3.4
Concepts
Answer the following questions briefly.
1. How do you compute area under curves using definite integrals?
Computations
Set-up the definite integral that will give the area of the region specified
below. √
1. region bounded by the curves of f (x) = 2x − 1, x = 1, x = 2, and
the x-axis using x as the variable of integration
2x
2. region bounded by the curves f (x) = , x = 2, x = 4, and the
x−1
x-axis using x as the variable of integration
π
3. region bounded by the curves f (x) = sin x + + 4, x = 0, x = π,
2
and the x-axis using x as the variable of integration
124 CHAPTER 3. INTEGRATION OF FUNCTIONS OF A SINGLE VARIABLE
6. region enclosed by the curves of f (x) = sin2 x and g(x) = cos2 x using
x as the variable of integration
3.4. AREA OF A PLANE REGION 125
√ π
7. region bounded by the curves g(y) = Arccos y − , y = 0, y = 1, and
2
the y-axis (a) using x as the variable of integration and (b) using y as
the variable of integration
2
π √ π
f (x) = cos x + ⇔ g(y) = Arccos y −
2 2
2−y 5
8. region bounded by the curves g(y) = , y = , y = 2, and the
y−1 4
y-axis (a) using x as the variable of integration and (b) using y as the
variable of integration
x+2 2−y
f (x) = ⇔ g(y) =
x+1 y−1
√
9. region bounded by the curves g(y) = 3 2y + 2, y = −4, y = 4, and the
y-axis (a) using x as the variable of integration and (b) using y as the
variable of integration
(x − 2)3 p
f (x) = ⇔ g(y) = 3 2y + 2
2
126 CHAPTER 3. INTEGRATION OF FUNCTIONS OF A SINGLE VARIABLE
y+1 1
11. region bounded by the curves g(y) = 2− 5 + , y = −1, y = 4, and
2
the y-axis (a) using x as the variable of integration and (b) using y as
the variable of integration
1 y+1 1
f (x) = −1 − 5 log2 x − ⇔ g(y) = 2− 5 +
2 2
x
12. region bounded by the curves of f (x) = x−1 , x = 3, x = 5, and y = −1
(a) using x as the variable of integration and (b) using y as the variable
of integration
x y
f (x) = ⇔ g(y) =
x−1 y−1
3.4. AREA OF A PLANE REGION 127
√
13. region bounded by the curves of f (x) = 4 − 2x, g(x) = − 4 − x2 , and
the y-axis (a) using x as the variable of integration and (b) using y as
the variable of integration
4−y
f (x) = 4 − 2x ⇔ h(y) =
2
√ p
g(x) = − 4 − x2 ⇔ j(y) = 4 − y 2
√
14. region enclosed by the curves of f (x) = 2 − x, g(x) = x, and the
x-axis (a) using x as the variable of integration and (b) using y as the
variable of integration
√
f (x) = 2 − x ⇔ h(y) = 2 − y 2
g(x) = x ⇔ j(y) = y
x2 y2
15. region bounded by the curves − = 1, y = 3, and y = −3 (a)
9 3
using x as the variable of integration and (b) using y as the variable
of integration
128 CHAPTER 3. INTEGRATION OF FUNCTIONS OF A SINGLE VARIABLE
Chapter 4
We can think of the three-dimensional coordinate space as a corner of a room. The floor is
the xy-plane, the wall in our front/back is the xz-plane, while the wall on our left/right is the
yz-plane.
129
130 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
We can locate points on the three-dimensional space by locating points on the xy-plane
first, then adding the “height” with z.
Solution We have
4.1. FUNCTIONS OF SEVERAL VARIABLES 131
In both examples, the black lines are only “guide lines”. Once you are familiar of how
to locate points in the three-dimensional space, you can omit these lines. Now that we have
familiarized ourselves with the three-dimensional space, we can now go to functions of several
variables.
Activity 4.1.1
Imagine a lake surrounded by three towns. According to studies, the lake
has high Biological Oxygen Demand (BOD), which is attributed to bad
wastewater treatment of each town. The activites in each town have been
identified as agricultural (swine rearing), commercial (factory operation),
and domestic (residential houses). It is found that the BOD level can
be modeled by f (x, y, z) = 0.1x + 0.7y + 0.2z, where x is the number of
factories in all three towns, y is the number of swines reared in all towns,
and z is the number of residential houses in all towns.
What is BOD level in the lake if there are 5 factories, 1,500 swines and
900 houses in all three towns?
Consider the function given in the activity above. We have noticed that the function f has
three independent variables, namely x, y and z. Clearly, each combination of x, y and z will
only yield a single value for f (x, y, z).
Furthermore, considering only the function, without connotating it to the BOD level, we
can say that that there is no combination of values of x, y and z that will make the function
undefined. However, the values of x, y and z must be nonnegative implying that the domain
of the function is the set of all ordered triple (x, y, z) such that x, y and z are all nonnegative.
We call the set of all permissible ordered n-tuples (x1 , x2 , ..., xn ) the domain
of f , denoted by Df . The set of all resulting values f (x1 , x2 , ..., xn ) is called
the range of f , denoted by Rf .
132 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
For our purposes, we will only deal with functions of two or three variables. Again, functions
of four or more variables are free for your exploration.
2. The value of g(0, −1) is 25. Again, this is computed by substituting 0 to x and −1 to y,
gaining g(0, −1) = 100(02 ) + 25(−1)2 = 25(1) = 25.
3. Since there are no values for x and y that will make g undefined, then Dg = R2 .
x2 − y 2
Example 4.1.4. Consider the function defined by f (x, y) = .
x3 + y 3
1−1 0
1. f (1, 1) = = =0
1+1 2
1−0
2. f (1, 0) = =1
1+0
0−4 4 1
3. f (0, 2) = =− =−
0+8 8 2
4.1. FUNCTIONS OF SEVERAL VARIABLES 133
1. t(0, 0, 0) = e0+0 = 1
4. Since there are no values for x, y and z that will make t undefined then Dt = R3 .
Sometimes, we find things easier if we can visualize them. For example, we can look at the
behavior of the function better if we can see the graph: we can easily determine if the function
is increasing or decreasing, etc. The good news is that we can also graph functions of two
variables.
Example 4.1.11. Below is the graph of the function defined by f (x, y) = sin x.
We can also extend the concept of continuity and differentiability for functions of several
variables. Refer to “The Calculus 7” pages 971-984 for the discussion on continuity and pages
999-1008 for discussion on differentiability. From hereon, we will refer to functions that are
continuous and differentiable as nice functions.
Time to think!
Based on your own experience or perception, give an object or a situation
which you can represent as a function of several variables.
4.1. FUNCTIONS OF SEVERAL VARIABLES 137
Assessment 4.1
Concepts
Answer the following questions briefly.
1. How do we plot points in the three dimaensional space?
Computations
1. (0, 0, 7)
2. (2, −5, 0)
3. (−3, 2, −1)
5 5 5
4. , ,−
2 2 2
1 1
5. 1, ,
3 2
B. Evaluate each of the following functions at the given point. Also, find
the domain of the functions.
π π
1. f (x, y) = cos(2x + y); ,
3 6
2
2. g(x, y) = log(xy) − ey ; (8, −4)
p
3. h(x, y, z) = 36 − x2 − y 2 − 9z 2 ; (2, −3, 1)
4. i(x, y, z) = ln |xz − y 2 + 1|; (7, −2, 5)
2x
5. j(x, y, z) = 2 ; (−6, 0, 3)
z − 3y
3z 2 sin x π π
6. k(x, y, z) = ; , ,4
5 cos 2y 2 3
Problem Solving
3. A newbie seller wishes to sell her gardening pots online with three
sizes: small, medium, and large. The cost of manufacturing a small
pot is 20 PhP, 35 PhP for a medium pot, and 50 PhP for a large pot.
Her capital for the cost of manufacturing the pots is 2000 Php.
Partial Differentiation
Suppose z = f (x, y) is a differentiable function of x, and y.
∂z
The partial derivative of f with respect to x, denoted by or fx ,
∂x
is the function derived by differentiating f with respect to x, holding y
constant.
∂z
The partial derivative of f with respect to y, denoted by or fy ,
∂y
is the function derived by differentiating f with respect to y, holding x
constant.
Similar to the geometric interpretation of the derivative of a single variable function, the
∂z
partial derivative is the slope of the tangent line to the curve z = f (x, y) at point (x0 , y0 ) in
∂x
the x direction. In the following illustration, we can see that the red dot is the partial derivative
fx at point (x0 , y0 ).
Time to think!
∂z
What do you think is the geometric interpretation of ?
∂y
140 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
Solution We have
∂z
= 2x + 0 = 2x
∂x
and
∂z
= 0 + 3y 2 + 1 = 3y 2 + 1.
∂y
So that
∂z
= 2(0) = 0
∂x
(0,0)
and
∂z
= 3(0)2 + 1 = 1.
∂y
(0,0)
x+y
Example 4.2.2. Consider the function defined by g(x, y) = . Find gx and gy .
x−y
Solution We have
((x − y) · 1) − ((x + y) · 1)
gx (x, y) =
(x − y)2
x−y−x−y
=
(x − y)2
−2y
=
(x − y)2
and
((x − y) · 1) − ((x + y) · (−1))
gy (x, y) =
(x − y)2
x−y+x+y
=
(x − y)2
2x
= .
(x − y)2
4.2. PARTIAL DIFFERENTIATION 141
The partial derivatives of functions of three variables follow from the rules we used in the
∂w
previous two examples. So, if w = f (x, y, z) then we get the partial derivative by differen-
∂z
tiating with respect to z, holding the other variables constant.
2− 1
Example 4.2.3. Consider the function defined by w = j(x, y, z) = e2x+y z . Find all the
partial derivatives of w.
Solution We have
∂w 2 1 2 1
= e2x+y − z (2 + 0 − 0) = 2e2x+y − z ,
∂x
∂w 2 1 2 1
= e2x+y − z (0 + 2y − 0) = 2ye2x+y − z
∂y
and 2 1
e2x+y − z
∂w 2 1 1
= e2x+y − z 0+0+ 2 = .
∂z z z2
Example 4.2.4. Consider the function defined by k(x, y, z) = ln(xyz). Find all the partial
derivatives of k.
Solution We have
1 1
kx (x, y, z) = · yz = ,
xyz x
1 1
ky (x, y, z) = · xz =
xyz y
and
1 1
kz (x, y, z) = · xy = .
xyz z
y
Example 4.2.5. Consider the function defined by w = l(x, y, z) = cos 2x + . Then
z
∂w y y
= − sin 2x + (2 + 0) = −2 sin 2x + ,
∂x z z
− sin 2x + y
∂w y 1 z
= − sin 2x + 0+ =
∂y z z z
and y
∂w y y y sin 2x +
= − sin 2x + 0− 2 = z .
∂z z z z2
142 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
A natural question that comes to our mind is if we can still get partial derivatives of a
partial derivative, similar to what we have done in Chapter 2. The answer is yes! The process
is the same as getting the partial derivative of a function: differentiating the function with
respect to the variable of interest and holding the other variables constant.
∂ 2z
The mixed partial derivative or fxy (x, y) is the partial derivative
∂y∂x
∂ 2f
of fx with respect to y; and or fyx (x, y) is the partial derivative of fy
∂x∂y
with respect to x.
∂ 2f
Note that when we use the notation , we start differentiating with respect to the
∂y∂x
“inner” variable which is x and then differentiate with respect to “outer” variable which is y.
However, when we use the notation fxy , we first differentiate with respect to the first variable
which is x then differentiate with respect to the second variable which is y. A better way to
∂ 2f
remember this is that we work from right to left whenever we are using the notation and
∂y∂x
left to right whenever we are using the notation fxy . This way will be useful when we work
with higher-order partial derivatives in the next examples.
Time to think!
How do we write the third-order partial derivatives of a function of
three variables?
∂f
Consider the function in Activity 4.1.1, what does it mean if < 0?
∂x
∂ 2f
How about if < 0?
∂x2
4.2. PARTIAL DIFFERENTIATION 143
Solution We have
fxy (x, y) = 0
and
fyx (x, y) = 0.
x
Example 4.2.7. Consider a function defined by f (x, y) = x3 y + . First, we get the first-order
y
partial derivatives:
1
fx (x, y) = 3x2 y +
y
and
x
fy (x, y) = x3 − .
y2
Now, we get fxy and fyx :
1
fxy (x, y) = 3x2 −
y2
and
1
fyx (x, y) = 3x2 − .
y2
Notice that the mixed partial derivatives in the previous two examples are equal. This is
not an accident. It turns out that for virtually all functions, the mixed partial derivatives will
be equal.
2 1
Example 4.2.8. Recall the function defined by w = j(x, y, z) = e2x+y − z . Again, getting the
partial derivative with respect to x of all the first-partial derivatives, we have
∂ 2w 2 1 2 1
2
= 2e2x+y − z (2 + 0 + 0) = 4e2x+y − z ,
∂x
∂ 2w 2 1 2 1
= 2ye2x+y − z (2 + 0 + 0) = 4ye2x+y − z
∂x∂y
and 2 1 2− 1
∂ 2w e2x+y − z 2e2x+y z
= (2 + 0 + 0) = .
∂x∂z z2 z2
144 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
2 1
Example 4.2.9. Again, using the function defined by w = j(x, y, z) = e2x+y − z , the third-
order partial derivatives with respect to y of the second-order partial derivatives in the previous
example are
∂ 3w 2 1 2 1
2
= 4e2x+y − z (2y) = 8ye2x+y − z ,
∂y∂x
3
∂ w 2 1 2 1 2 1 2 1
= 4ye2x+y − z (2y) + 4e2x+y − z = 8y 2 e2x+y − z + 4e2x+y − z
∂y∂x∂y
and 2 1 2 1
∂ 3w 2e2x+y − z 4ye2x+y − z
= (2y) = .
∂y∂x∂z z2 z2
2
Example 4.2.10. Consider the function f (x, y, z) = cos(xy) + eyz . We have the following:
Recall that in Section 2.6, we used derivatives to solve problems involving the rate of change
of one quantity that is related to the rate of change of another quantity. Now, what if a quantity
is dependent on two other independent quantites? Say, for example, a factory’s yearly output
is dependent on the capital investment and labor force. In this case, the rate of change of the
output will be affected by the rates of change of the capital investment and the labor force.
Total Derivative
Suppose z is a function of x and y, and both are differentiable functions of
t. Then, z is also a function of t and
dz ∂z dx ∂z dy
= + .
dt ∂x dt ∂y dt
dz
The ordinary derivative is called the total derivative of z with respect
dt
to t.
4.2. PARTIAL DIFFERENTIATION 145
We can use the diagram below to better remember the formula for the total derivative. If
z is a function of x and y, and both are differentiable functions of t, we have
dz
Example 4.2.11. If z = x2 + 2y, x = 2 sin t and y = e2−t , find .
dt
Solution By the definition of total derivative,
dz ∂z dx ∂z dy
= +
dt ∂x dt ∂y dt
= 2x (2 cos t) + 2 e2−t (−1)
The total derivative of z is the rate of change of z with respect to t. It is used to solve
problems in which the rate of change of one quantity is affected by the rates of change of two
quantities. In solving such problems, we follow the steps discussed in Section 2.6.
Example 4.2.12. Water is leaking from an inverted cone-shaped tank in such a way that the
height of the water level is decreasing at a rate of 0.028 in per second and the radius at the
top is decreasing at a rate of 0.01 in per second. The height of the tank is 14 ft and the base
radius is 5 ft. Find the rate at which the amount of water is decreasing when the height is 7 ft.
Solution
(i) Let V , h and r be the volume, height and radius of the tank, respectively. Since the height
dh
of the water level is decreasing at a rate of 0.028 in per second, = −0.028. Since the
dt
dr
radius at the top is decreasing at a rate of 0.01 in per second, = −0.01. Note that
dt
h 14
since the height of the tank is 14 ft and the base radius is 5 ft, we have = . So,
r 5
5h 5(7) 5
r= . Consequently, if h = 7 ft, then r = = ft. Now, we need to convert h and
14 14 2
5
r to inches. So, h = 7(12) = 84 in and r = (12) = 30 in. Since the tank is cone-shaped,
2
1 2
V = πr h. Note that V is a function of h and r, which are both functions of t. Hence,
3
V is also a function of t.
146 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
dV
(ii) We need to find when h = 84 in and r = 30 in.
dt
(iii) By the definition of total derivative,
dV ∂V dh ∂V dr
= +
dt ∂h dt ∂r dt
1 2 dh 2 dr
= πr + πrh
3 dt 3 dt
dV 1 2
= π(30)2 (−0.028) + π(30)(84)(−0.01) = −25.2π.
dt 3 3
Example 4.2.13. The demand for a certain product is D(x, y) = 210 − 9x2 + 18xy units
per month, where x is the price of the product and y is the average price of the competing
products. The manufacturer found out that t months from now, the price of the product will
be x(t) = 11 + 0.8t PhP while the average price of the competing products is y(t) = 13 + 0.1t2 .
At what rate will the demand for the product be changing with respect to time next month?
Solution
(i) Note that D is a function of x and y, which are both functions of t. Hence, D is also a
function of t.
dD
(ii) We need to find when t = 1.
dt
(iii) By the definition of total derivative,
dD ∂D dx ∂D dy
= +
dt ∂x dt ∂y dt
= (−18x + 18y) (0.8) + (18x) (0.2t)
= −18(11 + 0.8t) + 18(13 + 0.1t2 ) (0.8) + (18(11 + 0.8t)) (0.2t)
(iv) When t = 1,
dD
= 4.32(1)2 + 28.08(1) + 28.8 = 61.2
dt
(v) Therefore, the demand will increase at a rate of 61 units per month next month.
4.2. PARTIAL DIFFERENTIATION 147
We can also compute for the total derivative of functions of three or more variables.
Total Derivative
If w = f (x, y, z) and x, y and z are differentiable functions of t, then w is
a function of t and the total derivatve of w with respect to t, denoted by
dw
, is given by
dt
dw ∂w dx ∂w dy ∂w dz
= + + .
dt ∂x dt ∂y dt ∂z dt
In diagram, we have
dw
Example 4.2.14. If w = x2 + y 2 + z 2 , x = et , y = ln(2t) and y = cos(t3 ), find .
dt
Solution By the definition of total derivative,
dw ∂w dx ∂w dy ∂w dz
= + +
dt ∂x dt ∂y dt ∂z dt
t 1
(2) + 2z − sin(t3 )(3t2 )
= 2x e + 2y
2t
t t 1
(2) + 2 cos(t3 ) − sin(t3 )(3t2 )
= 2(e ) e + 2 (ln(2t))
2t
2 ln(2t)
= 2e2t + − 6t2 cos(t3 ) sin(t3 ).
t
148 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
Assessment 4.2
Concepts
Answer the following questions briefly.
1. How do we compute for the partial derivative of a function of two
variables?
Computations
∂f ∂f ∂f
A. For each item, find , , and , if they exist.
∂x ∂y ∂z
2 √
1. f (x, y, z) = 3
+ 5 y − 2z 3 − 10
x
2. f (x, y) = ln(x2 − y 2 )
2 2
p
3. f (x, y, z) = ex +y − x2 + 2yz
x
4. f (x, y) = sin(xy) +
x+y
x2 + 1
5. f (x, y, z) = − (z + 3)2
y
B. Consider the function defined by f (x, y, z) = cos(xy) + e−yz . Find the
following:
Problem Solving
1. The height of a rectangle is increasing at a rate of 12 centimeters
per hour and the width of the rectangle is decreasing at a rate of 8
centimeters per hour. At a certain instant, the height is 5 centimeters
and the width is 9 centimeters. What is the rate of change of the area
of the rectangle at that instant?
V = IR,
where I is the current (in amperes) flowing through the circuit and
R is the resistance (in ohms). Suppose that the current is 3 amperes
and is increasing at 10−2 ampere/s and the resistance is 2 ohms and
is increasing at 0.4 ohm/s. Estimate the rate at which the voltage is
changing.
Activity 4.3.1
Consider the graph of a function f of two variables x and y.
What can you say about point P with respect to the other points on
the surface that are around P ?
What can you say about point Q with respect to the other points on
the surface that are around Q?
We say that at (x1 , y1 ) occurs a relative maximum value of f and at (x2 , y2 ) occurs a relative
minimum value of f .
Relative Extrema
A function f of two variables x and y is said to have a relative maximum
value at the point (x0 , y0 ) if for all (x, y) around (x0 , y0 ), f (x0 , y0 ) ≥ f (x, y).
In Activity 4.3.1, we were able to determine the relative extrema of the function f by
studying its graph. Now, how do we find the relative extrema of a function without looking at
its graph?
4.3. EXTREMA OF FUNCTIONS OF TWO VARIABLES 151
Define
D(x0 , y0 ) = fxx (x0 , y0 ) · fyy (x0 , y0 ) − [fxy (x0 , y0 )]2 .
(a) If D(x0 , y0 ) > 0 and fxx (x0 , y0 ) < 0, then f has a relative maximum
value at (x0 , y0 ).
(b) If D(x0 , y0 ) > 0 and fxx (x0 , y0 ) > 0, then f has a relative minimum
value at (x0 , y0 ).
This is also known as the Second Partial Derivative Test. It is used to find the points
where a function of two variables obtains its relative extrema. We first set the first partial
derivatives of f to zero and obtain the values of x and y. Then, we find the values of D at each
of these points to determine the type of relative extrema that occurs at the particular point.
Example 4.3.1. Find the relative extrema of the function f defined by f (x, y) = sin x + sin y
on 0 < x < 2π and 0 < y < 2π.
Example 4.3.2. A certain factory provides products to the community and income to its
workers, but the advantage may be offset by the chemical waste the factory produces. Suppose
that the social desirability of this factory is given by the function S(x, y) = −x2 + 6xy − 2y 3 ,
where x measures the social advantage and y measures the ecological disadvantage. What value
of x and y will maximize the social desirability of the factory?
Solution To solve this problem, we find the values of x and y where S obtains its relative
maximum value. The partial derivatives of S are
y 2 = 3y
y 2 − 3y = 0
y(y − 3) = 0
y = 0 or y = 3
x = 0 or x = 9
Thus, the possible points were a relative extremum occurs are (0, 0) and (9, 3). We compute
for D at these points and summarize the results in the table below.
(x, y) Sxx (x, y) Syy Sxy (x, y) D(x, y) Conclusion
(0, 0) −2 0 6 −36 S has no relative extremum
(9, 3) −2 −36 6 36 S has a relative maximum
Therefore, the social desirability of the factory is at its maximum when x = 9 and y = 3.
Absolute Extrema
A function f has an absolute maximum at (x0 , y0 ) on a region R if
f (x0 , y0 )) ≥ f (x, y), for all (x, y) in R. We say that f (x0 , y0 ) is the absolute
maximum value of f on R.
Recall that in Section 2.5, we learned that if a function is continuous on a closed interval,
then the function has an absolute maximum value and an absolute minimum value on that
interval. The absolute extremum is either a relative extremum or the function value at the
endpoints of the interval. This idea can be extended in the case of functions of two variables.
But, instead of a closed interval, we consider a closed and bounded region. A region is
closed if it contains its boundaries and is bounded if it finite.
The theorem above guarantees that if the function is continuous on the closed and bounded
region, an absolute extremum occurs. Either this is a relative extrema or occurs at the boundary
of the closed and bounded region. Below are the steps in finding the absolute extrema of a
function on a closed and bounded region.
2. Find the function values along the boundaries and determine the points
that will make partial derivatives of these functions zero.
5. The highest among these values is the absolute maximum value, while
the smallest is the absolute minimum value.
Example 4.3.3. Find the absolute extrema of the function g defined by g(x, y) = 2x2 − 4x +
y 2 − 4y + 1 on the triangular plate bounded by the lines y = 0, x = 0 and y = 2 − x.
gx (x, y) = 4x − 4 = 0 gy (x, y) = 2y − 4 = 0
x=1 y=2
Notice, however, that (1, 2) is not in the interior of R so we will not consider this point.
Along the boundary y = 0, we have g(x, 0) = 2x2 − 4x + 1. We set the partial derivative of
this to zero.
gx (x, 0) = 4x − 4 = 0
4.3. EXTREMA OF FUNCTIONS OF TWO VARIABLES 155
x=1
Hence, a possible absolute extremum occurs at the point (1, 0). We do the same for the other
boundaries of R. Along x = 0, g(0, y) = y 2 − 4y + 1.
gy (0, y) = 2y − 4 = 0
y=2
Another absolute extremum possibly occurs at (0, 2). Lastly, along y = 2 − x, g(x, 2 − x) =
2x2 − 4x + (2 − x)2 − 4(2 − x) + 1 = 3x2 − 4x − 3.
gx (x, 2 − 1) = 6x − 4 = 0
2
x=
3
4
y=
3
2 4
So, an absolute extremum possibly occurs at , . In addition, we consider the corner
3 3
points (0, 0), (0, 2) and (2, 0). We now compute for the function values at all the points that
we have obtained.
2 4 13
g , =−
3 3 3
g(1, 0) = −1
g(0, 0) = 1
g(0, 2) = −3 g(2, 0) = 1
Assessment 4.3
Concepts
Answer the following questions briefly.
1. How do we find the relative extrema of a function of two variables?
4. What are the sufficient conditions for existence of the absolute extreme
values a function of two variables in a region R?
Computations
A. Find the critical points of the following functions and classify each as
a relative maximum, relative minimum or neither.
1. f (x, y) = 3x3 − 3y 2 − x + y
2. g(x, y) = −2x2 + xy − y 2 + 4x + y
3. h(x, y) = xey − 3x2 − 2y + 8
2 +(y−5)2
4. j(x, y) = e(x−1)
5. i(x, y) = cos x + cos y, 0 ≤ x < 2π and 0 ≤ y < 2π
Problem Solving
Find the production level that will maximize the company’s profit.
4.3. EXTREMA OF FUNCTIONS OF TWO VARIABLES 157
2. A factory will produce small closed boxes, each of which must have a
volume of 100 cm3 . The material costs P5/cm2 for the base, P3/cm2
for the top, and P2/cm2 for the sides. Determine the dimensions of
the box that will minimize the production cost.
4. Moon corp will produce two new cell phone models: X and Y with sug-
gested prices P20,000/unit and P25,000/unit, respectively. However,
price of each model is affected by the sales for both. It is estimated
that for each model, the price goes down by P0.02 for each unit sold.
Moreover, price for model X drops by P0.01 for each unit of model Y
that is sold and the price of model Y drops by P0.01 for each unit of
model X that is sold. The cost of producing X is P15,000/unit and
P17,000/unit for Y. The company trusts that if these assumptions are
incorporated, all units will be sold. How many of each model should
the company produce to maximize the profit?
5. The research team of Shope Inc. has developed a model that de-
termines the profit P of the company when x thousand of mugs are
produced and y hours of radio advertisement is purchased per month.
The company’s profit is described by
In the previous section, we dealt with constrained optimization problems using the strategy
of solving the constraint equation for one variable. We will use, in this section, a more versatile
technique called the method of Lagrange multipliers, developed by an Italian mathematician
Joseph Louis Lagrange.
Example 4.4.1. Find the maximum value of f (x, y) = xy, subject to the constraint x + y = 1.
λ+λ=1
1
⇒λ=
2
1
⇒x=y=
2
1 1
Evaluating f at , , we have
2 2
1 1 1 1 1
f , = · = .
2 2 2 2 4
Since there is only one value for (x, y), we choose a test point that satisfies the constraint, say
(1, 0), and evaluate f at this point. We have
f (1, 0) = 1(0) = 0.
1 1
Note that f , > f (1, 0). Hence, the maximum value of f (x, y) = xy subject to the
2 2
constraint x + y = 1 is
1 1 1
f , = .
2 2 4
We can verify this in the given graph below.
160 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
Example 4.4.2. Find the minimum and maximum values of f (x, y) = xy, subject to the con-
straint x2 + y 2 = 8.
Example 4.4.3. Find the point closest to the origin on the line 2x + y − 5 = 0.
From (2),
λ
⇒y= (4).
2
Substituting (1) and (4) to (3),
λ
2λ + − 5 = 0.
2
⇒λ=2
⇒ x = 2 and y = 1
Evaluating f at (2, 1), we have
f (2, 1) = 22 + 12 = 5.
We choose a test point that satisfies the constraint, say (0, 5), and evaluate f at this point. We
have
f (0, 5) = 02 + 52 = 25.
Note that f (2, 1) < f (0, 5). Hence, the point closest to the origin is (2, 1). We verify this using
the following graph.
162 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
Economists define utility function U (x, y) as the measure of the total satisfaction or hap-
piness a consumer receives from having x units of one particular commodity and y units of
another. Example 5.4.1 exhibits how many units of each commodity the consumer should
purchase to maximize utility while sticking within a fixed budget.
Example 4.4.4. You just received your very first salary from your first job amounting to
60,000 pesos and you plan to spend all of it to buy pairs of designer pants costing 2,000 pesos
each and shoes that cost 3,000 pesos each. Suppose the utility that you get from buying x units
of pants and y units of shoes is given by the Cobb-Douglas utility function U (x, y) = 10x0.6 y 0.4 .
How many units of each good should you purchase to maximize utility?
Solution First, we want to maximize U (x, y) = 10x0.6 y 0.4 subject to the budgetary constraint
2000x + 3000y = 60000.
Second, we compute for the partial derivatives and set-up the Lagrange equations as follows:
6x−0.4 y 0.4 = 2000λ (1)
4x0.6 y −0.6 = 3000λ (2)
2000x + 3000y = 60000 (3)
From (1) and (2), we get
6x−0.4 y 0.4 4x0.6 y −0.6
= =λ
2000 3000
9x−0.4 y 0.4 = 4x0.6 y −0.6
4
9y = 4x y= x (4)
9
Substituting (4) to (3) yields
4
2000x + 3000 x = 60000
9
4
2x + 3 x = 60
9
18x + 12x = 540
30x = 540
x = 18 (5)
4
Finally, substituting (5) to (4), we get y = (18) = 8. Since it is assumed that the maximum
9
value exists and that there is exactly one pair of points along the curve that satisfies the
Lagrange equations, then the constrained maximum occurs at (18, 8). This can also be verified
by choosing a test point and comparing the function value to f (18, 8) like what was done in
the previous examples. Hence, we conclude that to maximize utility, you should buy 18 pairs
of designer pants and only 8 pairs of shoes.
Assessment 4.4
Concepts
Explain how the Lagrangian Method is used to solve a constrained optimiza-
tion problem.
Computations
Use the method of Lagrange multiplier to solve for the indicated extremum.
Assume that the extremum exists.
1. Find the maximum value of f (x, y) = xy subject to the constraint
x + y = 1.
Problem Solving
1. Find three numbers whose sum is 15 and the sum of whose squares is
as small as possible.
2. Find the point on the line x + y = 2 that is closest to the point (1, −2).
(Hint: To simplify computations, minimize the square of the distance.)
per month. If the company manufactures exactly 120 units per month,
find x and y so as to minimize the cost.
4. Danielle wants to create her own rectangular gift box and decorate
it with ribbons on the edges of the box. If each edge requires only
one section of ribbon and she has 48 cm of pink ribbon, what are the
dimensions of the largest box she can create?
Activity 4.5.1
Again, consider the function defined by f (x, y) = x + 4y, and given the
bounds 0 ≤ x ≤ 2 and 2 ≤ y ≤ 4,
Evaluate the integral of
Z 2
F (x, y) = f (x, y) dx
0
assuming y constant
assuming x constant
In the activity above, the process that we used is called iterated integral or double
integral, and it can be written in a single expression as
Z 4Z 2
(x + 4y) dx dy
2 0
We must remember that we get the innermost integral first then continue working outwards.
We should also be cautious that we only substitute the bounds to the variable of interest, and
assume the other variable constant.
Z 3 Z 2
Example 4.5.1. Evaluate (x + y) dxdy.
1 0
Solution We have
Z 3 Z 2 Z 3 Z 2
(x + y) dxdy = (x + y) dx dy
1 0 1 0
3 2
x2
Z
= + xy dy
1 2 0
Z 3
= [(2 + 2y) − (0 + 0)] dy
1
Z 3
= (2 + 2y) dy
1
3
= 2y + y 2 1
= (6 + 9) − (2 + 1)
= 12.
4.5. MULTIPLE INTEGRATION 165
Let us formalize the process of getting integral over rectangular region below.
We note here that any double integral has a unique value regardless of the order of integra-
tion used.
ZZ
x2 + y 2 dA where R : 0 ≤ x ≤ 3, 0 ≤ y ≤ 2.
Example 4.5.2. Evaluate
R
Solution We have
ZZ Z 3 Z 2
2 2
x2 + y 2 dydx
x +y dA =
R 0 0
Z 3 2
2 y 3
= x y+ dx
0 3 0
Z 3
23 03
2 2
= x (2) + − x (0) + dx
0 3 3
Z 3
2 8
= 2x + dx
0 3
3 3
2x 8x
= +
3 3 0
= 26.
166 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
ZZ
1
Example 4.5.3. Evaluate dA where R : 2 ≤ x ≤ 4, 1 ≤ y ≤ 5 using dxdy.
R x
Solution We have
ZZ Z 5 Z 4
1 1
dA = dxdy
R x x
Z1 5 2
= ln x|42 dy
Z1 5
= (ln 4 − ln 2) dy
1
= (ln 2 − ln 4) y|51
= (ln 4 − ln 2) (5 − 1)
≈ 2.7726.
ZZ
y
Example 4.5.4. Evaluate ex+ 2 dA where R : −1 ≤ x ≤ 1, −2 ≤ y ≤ 2 using dxdy.
R
Solution We have
ZZ Z 2 Z 1
x+ y2 y
e dA = ex+ 2 dxdy
R −2 −1
Z 2 1
x+ y2
= e dy
−2 −1
Z 2 h i
y y
= e1+ 2 − e−1+ 2 dy
−2
2
1+ y2 −1+ y2
= 2e − 2e
−2
2
1+ −2 2 −2
= 2 e 1+ 2
− e 2 − e−1+ 2 + e−1+ 2
2 e2 − e0 − e0 + e−2
=
2 e2 − 1 − 1 + e−2
=
≈ 11.04878.
ZZ
x+y
Example 4.5.5. Evaluate dA where R : 5 ≤ x ≤ 6, 7 ≤ y ≤ 8 using dydx.
R x
4.5. MULTIPLE INTEGRATION 167
Solution We have
ZZ Z 6 Z 8
x+y x+y
dA = dydx
R x 5 7 x
Z 6Z 8
y
= 1+ dydx
5 7 x
Z 6 8
2
y
= y + dx
5 2x
7
Z 6
82 72
= 8+ − 7+ dx
5 2x 2x
Z 6
15
= 1+ dx
5 2x
6
15
= x+ ln x
2
5
15 15
= 6+ ln 6 − 5 + ln 5
2 2
15
= 1 + (ln 6 − ln 5)
2
≈ 2.3674.
ZZ y π π
Example 4.5.6. Evaluate sin x − dA where R : 0 ≤ x ≤ π, ≤ y ≤ using dxdy.
R 2 4 2
Solution We have
π
ZZ Z Z π
y 2
y
sin x − dA = sin x − dxdy
R 2 π
4
0 2
Z π π
2
y
= − cos x − dy
π
2
2
0
Z π h
2 y y i
= − cos π − − cos − dy
π
4
2 2
π
y y2
= 2 sin π − − 2 sin −
2 2 π
4
π
h y y i 2
= 2 sin π − − sin −
2 2 π
4
h π π i h π π i
= 2 sin π − − sin − − 2 sin π − − sin −
4 4
π 8 8
3π 7π π
= 2 sin − sin − − 2 sin − sin −
4 4 8 8
≈ 1.2977.
168 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
We can also get integral over regions that are not rectangular.
Time to think!
How do you get the bounds for non-rectangular regions? For example, how
do you get the bounds for x and y for the region enclosed by y = x2 and
y = x as shown below:
Note that if we choose dydx as the order of integration, we will use vertical strips. If we
choose dxdy, we will use horizontal strips. This will be helpful in determining the upper and
lower bounds of the integrals. Also, always remember that the outer integral must always have
numerical bounds, while the inner intergral can have bounds that is a function of the other
variable.
ZZ
Example 4.5.7. Evaluate xydA where R is the region bounded by the graphs of y = x
R
and y = x2 using dydx.
Solution If we are to use dydx as the order of integration, we will use vertical strips.
First, we need to determine the bounds for y. Remember that for vertical strips, the lower
bound (for y) is the function bounding the region below, while the upper bound is the function
170 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
bounding the region above. Thus, the upper bound for y is x, while the lower bound is x2 .
Next, we need the lower and upper bounds for x. Remember that these should be numeri-
cal bounds; the lower bound is the left corner point, while the upper bound is the right corner
point. To find these bounds, we must solve for the points of intersections of y = x2 and y = x.
They are (0, 0) and (1, 1). Thus, the upper bound for x is 1, while the lower bound is 0.
Therefore, ZZ Z 1 Z x
xydA = xydydx
R 0 x2
.
Evaluating this, we have
ZZ Z 1 Z x
xydA = xydydx
R 0 x2
Z 1 2 x
xy
= dx
0 2 x2
Z 1 3
x5
x
= − dx
0 2 2
4 1
x x6
= −
8 12 0
4
16
1
= − − (0 − 0)
8 12
1
= .
24
Example 4.5.8. Evaluate the double integral in the previous example using dxdy as the order
of integration.
We need to determine the bounds for x. Again, recall that for horizontal strips, the lower
bound (for x) is the function bounding the region on the left, while the upper bound is the
√
function bounding the region on the right. Thus, the upper bound for x is y, while the lower
4.5. MULTIPLE INTEGRATION 171
bound is y.
Next, we need the lower and upper bounds for y. Recall that the lower bound for y is the
bottom corner point, while the upper bound is the top corner point. Thus, the upper bound
for y is 1, while the lower bound is 0.
Therefore, √
ZZ Z 1 Z y
xydA = xydxdy
R 0 y
.
Evaluating this, we have
√
ZZ Z 1 Z y
xydA = xydxdy
R 0 y
1
√y
x2 y
Z
= dy
0 2 y
Z 1 2
y3
y
= − dy
0 2 2
3 1
y y 4
= −
6 8 0
3
14
1
= − − (0 − 0)
6 8
1
= .
24
Sometimes, it is easier to solve the integral if the order of integration is reversed. Before we
go into this, let us practice reversing the order of integration in the following examples.
Solution The first thing we must do is to graph the region of integration. We have to graph
x = 0 and x = y, and then locate point y = 0 and y = 1.
172 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
We can see from the illustration above that the points of intersection are (0, 0) and (1, 1).
Now, we determine the bounds for y and x. The upper bound for y is 1, while the lower
bound is x: the upper bound for x is 1, while the lower bound is 0.
We can see from the illustration above that the points of intersection are (0, 0) and (1, 1).
√
The upper bound for y is x, while the lower bound is x: the upper bound for x is 1, while
the lower bound is 0.
Now, let us look at the next example to illustrate that some integrals can be solved easier
if we reverse the order of integration.
4.5. MULTIPLE INTEGRATION 173
Z
2
Solution Note that ex dx is not integrable. Thus, we reverse the order of integration and
see if the resulting integral is easier to solve. To do this, we first draw the region of integration.
Reversing the order of integration to dydx (vertical strips), we need the bounds for y and
x. The lower bound for y is 2x, and the upper bound for y is 0. Next, for the bounds for x,
we can see from the illustration above that the point of intersection is (2, 4). Thus, the upper
bound for x is 4, while the lower bound is x is 0.
Now, this integral is easier to solve. Performing the necessary steps, we can find the this integral
is equal to e16 − 1.
ZZ
Example 4.5.12. Set up dA where R is the region bounded by the graphs of y = x and
R
y = 2 − x2 as shown below.
174 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
Notice that this single integral gives the area AR of the region R (See Example 3.4.4). Hence,
ZZ
dA = AR .
R
Example 4.5.13. Set up the double integral that will give the area of the region bounded by
the graphs of y = ln x, x = e and the x-axis using (a) dydx and (b) dxdy.
4.5. MULTIPLE INTEGRATION 175
and
ZZ Z 1 Z e
(b) AR = dA = dxdy.
R 0 ey
ZZ
Now, we can think of getting the double integral f (x, y)dA as getting the volume of the
R
solid bounded by the region whose base is R and whose height at a point (x, y) in R is f (x, y).
We can think of the length of the bounds for x as the width, the length of the bounds for y as
the length, and the integrand f (x, y) as the height: giving us what we need to compute for the
volume.
is the volume of the solid whose base is R and whose height at a point (x, y)
in R is f (x, y).
Example 4.5.14. Set up the double integral which gives the volume of the solid in the first
octant enclosed by the graph of z = 4 − x2 − y 2 using dydx as the order of integration.
Solution Observe
√ that the base of the solid is the quarter circle in the first quadrant with
equation y = 4 − x2 .
We first set up the double integral that will give the area of this region. We have
√
Z 2 Z 4−x2
AR = dydx.
0 0
Next, we observe that the height at any point (x, y) on the base is 4 − x2 − y 2 . This will be
the integrand. Hence,
√
Z 2 Z 4−x2
4 − x2 − y 2 dydx.
V =
0 0
4.5. MULTIPLE INTEGRATION 177
Assessment 4.5
Concepts
Answer the following questions
Z Z briefly.
1. How do we evaluate f (x, y)dxdy?
Z Z
2. How do we evaluate f (x, y)dydx?
Computations
B. Set-up the double integral that will give the area of the following plane
regions
π
2. bounded by y = cos x, y = sin x, y−axis, and x = with dydx as the
2
order of integration
√
3. bounded by x = y − 3, y = 3, and x = 2 with dxdy as the order of
integration
4.5. MULTIPLE INTEGRATION 179
x−1
Z Z
2. sin(x − y)dA where R is the region bounded by y = ,
R 2
y = 2, the x−axis, and the y−axis using horizontal strips
4.5. MULTIPLE INTEGRATION 181
Z Z
1
3. xdA where R is the region bounded by y = 2−x and y = − x2 +2
R 2
using (a) vertical strips, and (b) horizontal strips
D. Set up the double integral that will give the volume of the following
solids using (a) dydx and (b) dxdy as the order of integration.
1.
2.
182 CHAPTER 4. CALCULUS OF SEVERAL VARIABLES
Appendices
183
Appendix A
Computations
A. 1. e
3. 0
5. The limit does not exist.
7. The limit does not exist.
9. The limit does not exist.
B. 1. 3
3. 2
5. The limit does not exist.
Computations
1. π + e
7
3.
2
5. −2
18
7. −
7
3
9.
4
11. −2
√
13. 6
19. 10
185
186 APPENDIX A. SOLUTIONS TO CHAPTER 1 ASSESSMENT
Computations
Computations
1.
1 1
lim 2x − 2 0 − + = −∞
x→0 x 0
3.
1 − x2
1 1 1
lim 4
− 2 ∞ − ∞ = lim
x→0 x x x→0 x4 0+
=+∞
5.
1 x−1
1− x x
lim = lim
x→0 x x→0 x
x − 1 −1
= lim
x→0 x2 0+
=−∞
7. -1
187
9.
x2 x2
lim = lim
x→−∞ 1 − 14
4
x→−∞ x −1
x x4
x6
= lim
x→−∞ x4 − 1
=+∞
Problem Solving
1. In the long run, the debt to income ratio will be at 17.24%.
Computations
A. 1. The point of discontinuity is at x = 3.
3. The point of discontinuity is at x = −1.
B. 1. i. f (2) = 21.
ii. lim f (x) = 21.
x→2
iii. lim f (x) = f (2).
x→2
Therefore, the function is continuous at x = 2.
3. The lim h(x) does not exist. Hence, the function is not continuous at x = 3.
x→3
C. 1. None
3. The function is NOT continuous at any number in the interval (−∞, 0].
E. 1. sin 0 = 0
1
3. 3
5. ln2 1 = 0
7. cos −2π −1
3
= 2
cos (2π)
9. =1
sin (2π) + 1
x2 + x
F. 1. Note that f (x) = . Hence, f is continuous at every number except 0.
x
Thus, f is continuous on (0, 1), and f is NOT continuous on [0, 1] since f (0) is not
defined.
188 APPENDIX A. SOLUTIONS TO CHAPTER 1 ASSESSMENT
Appendix B
Computations
k(x + h) − k(x)
3. k 0 (x) = lim
h→0 h
(x + h)2 − (x + h) − (x2 − x)
= lim
h→0 h
2xh + h2 − h
= lim = 2x − 1
h→0 h
j(x + h) − j(x)
5. j 0 (x) = lim
√h→0 √h √ √
x+h− x x+h+ x
= lim ·√ √
h→0 h x+h+ x
1 1
= lim √ √ = √
h→0 x+h+ x 2 x
1 1
g(x + h) − g(x) x+h
− x −1 −1
7. g 0 (x) = lim = lim = lim =
h→0 h h→0 h h→0 x2 + xh x2
f (2 + h) − f (2)
B. 1. The slope of the tangent line is f 0 (2) = lim
h→0 h
3 − 4(2 + h) − (−5) −4h
= lim = lim = −4.
h→0 h h→0 h
k(h) − k(0)
3. The slope of the tangent line is k 0 (0) = lim
h→0 h
3h2 + h
= lim = lim (3h + 1) = 1.
h→0 h h→0
189
190 APPENDIX B. SOLUTIONS TO CHAPTER 2 ASSESSMENT
Computations
1. 0
3. 0
5. 0
7. g 0 (x) = ex + 2x
3
9. g 0 (x) = cos x +
x4
11. h0 (x) = 4x2 ex + 8xex
√
0 x x 1
13. h (x) = ( x + π) (cos x + e ) + (sin x + e ) √
2 x
√ !
√ √ 1
0 5 2
15. h (x) = (ln x + 2 log x) − sin x + √ + cos x + 5x + 5 +
2 x x x ln 10
√ 3
1
1
( x + π) cos x + x4
− sin x − x3
+3 √
2 x
17. y 0 = √ 2
( x + π)
√ √ √
1 2 √5
5x + 5 x
+ − (ln x + 2 log x)
x ln 10 2 x
0
19. y = √ √ 2
5x + 5
191
Problem Solving
1. V 0 = 100π
3. A0 = 20π
Computations
Problem Solving
5. (a) Faust is moving at a velocity of 360 m/min when he left the house.
(b) 2 minutes had passed before Faust turned around to get his lunchbox.
(c) Faust arrived at his house at 7:06 AM.
7. (a) The building’s height is the same as the rock’s initial height, which is h(0) =
−16(0)2 + 1600 = 1600 feet.
(b) The rock hits the ground when h(t) = −16t2 + 1600 = 0. That is, at t = 10 seconds.
(c) The rock’s velocity is given by v(t) = h0 (t) = −32t. Therefore, its velocity when it
hits the ground at 10 seconds is v(10) = −32(10) = −320 feet per second.
(d) The rock experiences a constant acceleration of a(t) = v 0 (t) = −32 ft/s2 .
9. (a) The function of the car’s velocity is given by f 0 (x) = −(x − 3)2 + 70.
(b) The car obtains maximum velocity when f 00 (x) = −2(x − 3) = 0 or 3 hours. There-
fore, its maximum velocity is f 0 (3) = 70.
192 APPENDIX B. SOLUTIONS TO CHAPTER 2 ASSESSMENT
Computations
1. f (x) = −x2 − 4x
f 0 (x) = −2x − 4
f 00 (x) = −2
Setting f 0 (x) = 0, we get the critical number x = −2.
There is no point of inflection, since f 00 (x) 6= 0
y
4
x
−5 −4 −3 −2 −1 1
3. h(x) = x1/3
h0 (x) = 31 x−2/3
h00 (x) = −29
x−5/3
Setting h0 (x) = 0, we get the critical number x = 0.
Setting h00 (x) = 0, we get the possible point of inflection x = 0.
y
2
x
−3 −2 −1 1 2 3
−2
5. q(x) = sin x
q 0 (x) = cos x
q 00 (x) = − sin x
Note that x ∈ [0, 2π] Setting q 0 (x) = 0, we get the critical numbers x = π2 , 3π
2
.
00
Setting q (x) = 0, we get the possible points of inflection x = 0, π, 2π.
2 y
x
−2 2 4 6 8
−1
−2
2.5 Optimization
Computations
1.
π π
f (x) = sin x ⇒ f 0 (x) = cos x = 0 ⇒ x = − ,
2 2
194 APPENDIX B. SOLUTIONS TO CHAPTER 2 ASSESSMENT
π π
f (− ) = −1, f ( ) = 1
2 2
π π
Abs max of 1 at 2 ; abs min of −1 at − 2
3.
3
h(x) = 64 − 3x + x2 ⇒ h0 (x) = −3 + 2x = 0 ⇒ x =
2
3
h(−6) = 118, h( ) = 61.75, h(4) = 68
2
Abs max of 118 at −6; abs min of 61.75 at 23
Problem Solving
1. Max xy subj x + y = 22 with x ∈ [0, 22]
Computations
√ !
√ 4x3 3 x4 + 1 √
1. Dx (3x2 + sin x)( 3 x4 + 1) = (3x2 + sin x) 4
+ ( 3 x4 + 1)(6x + cos x)
3(x + 1)
"r # −3
cos3 x 1 cos3 x 4 (−sin3 x)(3 cos2 x) − (cos4 x)(2 sin x)
4
9. Dx =
sin2 x 4 sin2 x sin4 x
1
11. Dx cos (3x − 15) = 3(cos2 (3x − 15))(− sin(3x − 15))
3
3
195
√ !
√ √ 3x √
13. Dx sin x 3x = cos x 3x + 3x
2
h p i 1 −2 p
15. Dx (x3 + 2x−1 + 5) 3 sin(x2 ) = (x3 +2x−1 +5) (sin x2 ) 3 cos x2 (2x) + 3 sin(x2 )(3x2 −
3
2x−2 )
Problem Solving
1. The area of the oil spill is changing at the rate of 8000π ft2 /hr.
Computations
A. 1. Since F 0 (x) = 6x2 − 2x + 3 6= f (x), F is not an antiderivative of f .
3. Since F 0 (x) = x
x
+ ln x − 1 = ln x = f (x), F is an antiderivative of f .
5. Since F 0 (x) = x cos x + sin x 6= f (x), F is not an antiderivative of f .
7. Since F 0 (x) = √−3 6= f (x), F is not an antiderivative of f .
2 1−3x
3x6 4x4 x2 x6 x2
Z
B. 1. (3x5 + 4x3 − x)dx = + − +C = + x4 − +C
6 4 2 2 2
Z 3
x + 3x2 − 1 x3 3x2
Z
2 1
3. dx = x + 3x − dx = + − ln |x| + C
x x 3 2
4
√
Z
x
x 3x 3
5. 3 sin x + e − x dx = −3 cos x + e −
3
+C
4
Z
C. 1. 4x2 (2x3 + 1)100 dx
Let u = 2x3 + 1 ⇒ du = 6x2 dx ⇒ 23 du = 4x2 dx
2 (2x3 + 1)101
Z Z
2 3 100 2
4x (2x + 1) dx = u100 du = · +c
3 3 101
Z 1
(ln x) 3 3 4
3. dx = (ln x) 3 + C
x 4
Z
1 2
5. cos(2x) sin(2x)dx = sin (2x) + C
4
Problem Solving
1. Since the slope of the line tangent
Z to the graph of f3 at point (x, f (x)) is x2 − 3x,
2
x 3x
f 0 (x) = x2 − 3x. Note that x2 − 3x dx =
− + C. We need to find the
3 2
antiderivative f such that the graph of f intersects the y-axis at the point (0, 1), that is,
3 2
we need to solve for C such that when x = 0, f (x) = x3 − 3x2 + C = 1. This would give
3 2
us C = 1. Hence, f (x) = x3 − 3x2 + 1.
197
198 APPENDIX C. SOLUTIONS TO CHAPTER 3 ASSESSMENT
3. a. Z
f (x) = −2x cos(2 − x2 )dx = sin(2 − x2 ) + C
√
0 = sin(2 − ( 2)2 ) + C
C = 0 ⇒ f (x) = sin(2 − x2 )
b.
√
1 21 ln x √ √ √
Z Z Z
ln x 1 ln x
f (x) = √ dx = · √ dx = · √ dx = x ln x − x + C
4 x 2 x 2 x
1 1 3
= ln 1 − 1 + c ⇒ c =
2 2 2
√ √ √ 3
f (x) = x ln x − x +
2
5. The desired
Z velocity is an antiderivative of the acceleration.
Note that (−2t + 5) dt = −t2 + 5t + C. We need to find the antiderivative v such that
v(0) = 24, that is, we need to solve for C such that when t = 0,
v(t) = −t2 + 5t + C = 24. This would give us C = 24. Hence, the velocity at time t is
given by v(t) = −t2 + 5t + 24 kilometers per hour.
7. Z
ln 4 ln 4
f (x) = −2 ln 4 · e− 25 t dt = 50e− 25 t + C
ln 4
50 = 50e− 25 (0) + c ⇒ C = 50 − 50 = 0
ln 4 ln 4
f (x) = 50e− 25 t ⇒ f (x) = 50e− 25 (10) mg
9. We first need
Z to determine the cost function c.
200 − 1.6x + 0.009x2 dx = 200x − 0.8x2 + 0.003x3 + C. We know that
Note that
c(10) = 1800. Hence, we need to solve for C, such that when x = 10,
c(x) = 200x − 0.8x2 + 0.003x3 + C = 1800. This would give us C = −123. Thus, c(x) =
200x − 0.8x2 + 0.003x3 − 123. Therefore, the cost of making 100 pies is c(100) = 14877
pesos.
Computations
e2x
3. Let u = x2 and dv = e2x dx. Then, du = 2xdx and v = .
2
x2 e2x
Z Z
x2 e2x dx = − xe2x dx
2
e2x
Let u = x and dv = e2x dx. Then, du = dx and v = .
2
x2 e2x xe2x e2x x2 e2x xe2x e2x
Z Z
x2 e2x dx = − + dx = − + +C
2 2 2 2 2 4
Let w = x2 → dwZ = 2xdx → dw
5. Z 2
= xdx.
1
x ln x2 dx = ln wdw
2
1
Let
Z u = ln w and dv = dw. Then, du = w dw and v = w.
1 1
2
ln wdw = (w ln w − w) + C
Z 2
1 2
Hence, x ln x2 dx = x ln x2 − x2 + C.
2
3.3 The Definite Integrals
Computations
A. 1.
Z 1 Z 1
(x + 1)(x + 2)(x + 4)dx = (x3 + 7x2 + 14x + 8)dx
0 0
1
x4 x3 x2
= +7· + 14 · + 8x
4 3 2 0
1 7 211
= + +7+8 −0=
4 3 12
3.
64 √ Z 64
x−1/2 + 1
Z
2x x+x 1/3
√
3
− dx = 2x − dx
1 x2 2x 1 2
64
x4/3 1 x1/2 1
= 2· − · − x
4/3 2 1/2 2 1
= (384 − 8 − 32) − 0 = 344
5.
Z −π/6 Z −π/6
cos x
1 − 2 sin x cot x + 3 cos x dx = 1 − 2 sin x + 3 cos x dx
−π/4 −π/4 sin x
Z π/6
= (1 + cos x)dx
−π/4
−π/6
= (x + sin x)
−π/4
√ √
π 1 π 2 π 2−1
= − − − − − = +
6 2 4 2 12 2
200 APPENDIX C. SOLUTIONS TO CHAPTER 3 ASSESSMENT
B. 1. Let u = x2 − 4x5
0 √ → du = (2x − 20x4 )dx
Z
(10x4 − x) x2 − 4x5 dx 1
−1 → − du = (10x4 − x)dx
Z 0
√ 2
1 Moreover, x = −1 → u = 5,
= u · − du
2 x=0→u=0
Z5 5
1√
= udu
0 2
5 √
u3/2 5 5
= =
3 0 3
3. Let u = cos 2x
Z 0 → du = −2 sin 2xdx
sin 2x sin(cos 2x)dx 1
−π/8
→ − du = sin 2xdx
2 √
1
−1
Z
π 2
= √
sin udu Moreover, x = − → u = ,
2/2 2 8 2
1 √ x=0→u=1
cos u cos 1 − cos( 2/2)
= =
2 √ 2/2 2
5. Let u = ln (sin x)
3π cos x
→ du = dx = cot xdx
Z
4
cot x ln (sin x)dx sin x
π
π/2
√ Moreover, x = → u = ln 1 = 0,
Z ln 2/2 2√
= udu x = 3π
4
→ u = ln 2/2
0
√
2 2/2
√
u ln2 2/2
= =
2 0 2
Z
C. 1. Let us first find the indefinite integral 2xex dx.
Let u = 2x and dv =Z ex dx. Then du = 2dx and v = ex .
Z
2xex dx = 2xex − 2ex dx = 2xex − 2ex + C
Z 1
Hence, 2xex dx = (2xex − 2ex )|10 = 2
0
x2 ln x x2
Z
3. We know that x ln xdx = − + C.
2 4
Z e 2 e
x ln x x2 e2 e2 1 e2 + 1
Hence, x ln xdx = − = − + = .
1 2 4 1 2 4 4 4
3.4 Area of a Plane Region
Computations
1.
2 √
Z
2x − 1dx
1
3. Z π
π
sin x + + 4 dx
0 2
201
5. Z 1
ex + sin x2 dx
−1.5
7. The points of intersection are (0, 0), (0, 1), and (π/2, 1).
(a)
Z π/2
2
π
1 − cos x + dx
0 2
(b)
1
√
Z
π
Arccos y − dy
0 2
9. The points of intersection are (0, −4), (0, 4), and (4, 4).
(a)
4
(x − 2)3
Z
4− dx
0 2
(b) Z 4
p
3
2y + 2 dy
−4
11. The points of intersection are (0, −1), (0, 4), (1, 4) and (3/2, −1).
(a)
Z 1 Z 3/2
1
5dx + − 5 log2 x− dx
0 1 2
(b) Z 4
− y+1 1
2 5 + dy
−1 2
13. The points of intersection are (0, −2), (0, 4), and (2, 0).
(a)
2 √
Z
4 − 2x + 4− x2 dx
0
(b)
0 4
4−y
Z p Z
2
− 4 − y dy + dy
−2 0 2
15. The points of intersection are (−6, −3), (−6, 3), (6, −3) and (6, 3).
(a)
s ! s !
Z −3 Z 3 Z 6
x2 x2
2 3+ 3 −1 dx + 3dx + 3+ 3 −1 dx
−6 9 −3 3 9
(b) r !
3
y2
Z
6 + 1 dy
−3 3
202 APPENDIX C. SOLUTIONS TO CHAPTER 3 ASSESSMENT
Appendix D
Computations
A.
π π √
3
B. 1. f , =− ; Df = R2
3 6 2
√
3. h(2, −3, 1) = 14; Dh = {(x, y, z)|x2 + y 2 + 9z 2 ≤ 36}
4
5. j(−6, 0, 3) = − ; Dj = {z 2 6= 3y}
3
Problem Solving
1. a.
√
i. h(5, 30, 60) = 4400 ≈ 66.33
√
ii. h(0, 100, 0) = 5500 ≈ 74.16
√
iii. h(10, 60, 15) = 6175 ≈ 78.58
203
204 APPENDIX D. SOLUTIONS TO CHAPTER 4 ASSESSMENT
c. Df = R3
Computations
∂f 6 ∂f 5 ∂f
A. 1. = − 4, = √ , = −6z 2
∂x x ∂y 2 y ∂z
∂f 2 2 x
3. = 2xex +y − p
∂x 2
x + 2yz
∂f 2 2 z
= 2yex +y − p
∂y x2 + 2yz
∂f y
= −p
∂z x2 + 2yz
∂f 2x ∂f x2 + 1 ∂f
5. = , =− 2 , = −2(z + 3)
∂x y ∂y y ∂z
B. 1. fx (x, y, z) = −y sin(xy),
fy (x, y, z) = −x sin(xy) − ze−yz
fz (x, y, z) = −ye−yz
3. fyx (x, y, z) = −xy cos(xy) − sin(xy)
fyy (x, y, z) = −x2 cos(xy) + z 2 e−yz
fyz (x, y, z) = yze−yz − e−yz
5. fxyz (x, y, z) = 0, fyzx (x, y, z) = 0, fzxy (x, y, z) = 0
dw 6 log 4t
C. 1. = − 20e4t
dt t ln 10
dw 3 3t + sin 3t t 3t + et
3. = t − · e + · 3 cos 3t
dt e − sin 3t (et − sin 3t)2 (et − sin 3t)2
5
dw t
− log 2t · 1
5. = 2 log 2t ln
dt log 2t t ln 10
" #
(log 2t)2
− 4 sin t5 cos2 (t + 1) − 1 cos2 (t + 1) · 5t4
+ 5
t
+ 8 sin t5 cos2 (t + 1) − 1 t5 cos(t + 1) · sin(t + 1)
Problem Solving
1. Recall that the formula for the area of a rectangle is the product of its length and width,
i.e., A = LW.
dL dW
Given: = 12 cm/hr; = −8 cm/hr; L = 5 cm; W = 9 cm
dt dt
205
dA dA dL dA dW
= · + ·
dt dL dt dW dt
= W (12) + L(−8)
= 9(12) + 5(−8)
= 68
The rate of change of the area of the rectangle is 68 cm2 per hour.
dI dR
3. Given V = IR, = 0.01, = 0.4.
dt dt
dV dV dI dV dR
= +
dt dI dt dR dt
= R(0.01) + I(0.4)
= 2(0.01) + 3(0.4)
= 1.22
5. Recall that the formula for the area of a triangle is half the product of its base and height,
bh
i.e., A = .
2
dx dy dθ π
Given: = −10 cm/sec; = −15 cm/sec; = 20 per sec;
dt dt dt
x = 100 cm; y = 150 cm
h
sin θ = =⇒ h = x sin θ
x
y(x sin θ)
So, A = .
2
dA y sin θ dx x sin θ dy xy cos θ dθ
= · + · + ·
dt 2 dt 2 dt 2 dt
150 sin( π4 ) 100 sin( π4 ) 100(150) cos( π4 ) π
= · (−10) + · (−15) + ·( )
2 2 2 20
≈ 605.42
The rate of change of the area of the triangle is 605.42 cm2 per second.
206 APPENDIX D. SOLUTIONS TO CHAPTER 4 ASSESSMENT
Computations
A. 1. The partial derivatives of f are
Note that f and its partial derivatives are continuous everywhere. Next, we
find the points where the first partial derivatives of f are zero.
Thus, the points for which relative extremum may occur are 31 , 16 and − 31 , 16 .
We compute for D at these points and summarize the results in the table below.
(x, y)
fxx (x, y) fyy (x, y) fxy (x, y) D(x, y) Conclusion
1 1 1 1
, 6 -6 0 -36
f has no relative extremum at ,
3 6 3 6
Note that h and its partial derivatives are continuous everywhere. Next, we
find the points where the first partial derivatives of f are zero.
We
( solve the system of equations obtained.
ey − 6x = 0,
xey − 2 = 0.
Note that i and its partial derivatives are continuous everywhere. Next, we
find the points where the first partial derivatives of i are zero.
Thus, the points for which relative extremum may occur are (0, 0), (0, π), (π, 0), and
(π, π). We compute for D at these points and summarize the results in the table
below.
fy (0, y) = 2(y − 2) = 0 =⇒ y = 2.
208 APPENDIX D. SOLUTIONS TO CHAPTER 4 ASSESSMENT
Hence, a possible absolute extremum occurs at the point (0, 2). We do the same for
the other boundaries of R.
Along the boundary y = 2, we have f (x, 2) = (x − 1)2 . We set the partial derivative
of this to zero. Thus,
fx (x, 2) = 2(x − 1) = 0 =⇒ x = 1.
Along the boundary y = 0, we have l(x, 0) = sin x. We set the partial derivative of
this to zero. Thus,
π
lx (x, 0) = cos x = 0 =⇒ x = .
2
π
Again, we get 2 , 0 .
We do the same for the other boundaries of R. Along the boundary y = π2 , we have
2
l x, π2 = cos x + π4 . We set the partial derivative of this to zero. Thus,
π
lx x, = sin x = 0 =⇒ x = 0.
2
Another possible absolute extremum occurs at the point 0, π2 .
Along the boundary x = 0, we have l(0, y) = y 2 . We set the partial derivative of this
to zero. Thus,
ly (0, y) = 2y = 0 =⇒ y = 0.
Another possible absolute extremum occurs at the point (0, 0).
Lastly, along x = π2 , we have l π2 , y = 1 + y 2 . We set the partial derivative of this
to zero. Thus, π
ly , y = 2y = 0 =⇒ y = 0.
2
π
Again, we get 2 , 0 .
Observe that all the corner points are already considered. We now compute for the
function values at all the points that we have obtained.
209
π
l(0, 0) = 0 l ,0 = 1
π π2 2
l 0, =
2 4
π2
Hence, l has an absolute maximum value of 4
at 0, π2 and an absolute minimum
value of 0 at (0, 0) on R.
5. We set the partial derivatives of b to zero.
3 +y 2 ) 3 +y 2 )
bx (x, y) = e−(x (−3x2 ) bx (x, y) = e−(x (−2y)
x=0 y=0
Problem Solving
Note that P and its partial derivatives are continuous everywhere. Next, we
find the points where the first partial derivatives of P are zero.
Thus, the point for which relative extremum may occur is (40000, 50000). We compute
for D at these points and summarize the results in the table below.
Therefore, the profit is at its maximum when the company produces 40,000 of version
pink and 50,000 of version purple.
Note that G and its partial derivatives are continuous everywhere. Next, we
find the points where the first partial derivatives of G are zero.
Solving the system, the points for which relative extremum may occur are (0, 0), (0, 4),
(3, 0), and (1, 4/3). We compute for D at these points and summarize the results in the
table below.
211
Therefore, the quantity of goods is at its maximum when the company used 1 unit of
capital, 4/3 units of advertisement and 4 units of labor.
Note that P and its partial derivatives are continuous everywhere. Next, we
find the points where the first partial derivatives of P are zero.
Solving the system, the point for which relative extremum may occur is (20, 5). We
compute for D at this point and summarize the results in the table below.
Therefore, the company must produce 20 thousand mugs and must purchase 5 hours of
radio advertisement.
Computations
1. The Lagrange equations are
y = λ
x=λ
x + y = 1.
Solving for x and y, we have x = 0.5 and y = 0.5 and thus, f (0.5, 0.5) = 0.25.
while the values of x and y that give the minimum value of f are x = − 22 and y = 22 ,
√ √ √
which is f (− 22 , 22 ) = − 2.
9
Solving for x and y, we have x = 5
and y = − 18
5
and thus, f ( 59 , − 18
5
) = − 81
5
.
Problem Solving
3. Let x and y be the number of sneakers and heels produced by Benshoppe, respectively.
We are minimizing C(x, y) = 6x2 + 10y 2 + 2xy + 32x + 84y subject to x + y = 120. The
Lagrange equations are
12x + 2y + 32 = λ
20y + 2x + 84 = λ
x + y = 120.
Solving for x and y, we get x = 79 and y = 41. Therefore, Benshoppe needs to produce
79 sneakers and 41 heels to minimize the cost of production.
5. Let r and h be the radius and height of the closed right cylindrical can, respectively.
We are minimizing the surface area f (r, h) = 2πrh + 2πr2 subject to πr2 h = 16π. The
Lagrange equations are
2πh + 4πr = λ(2πrh)
2πr = λ(πr2 )
2
πr h = 16π.
Solving for r and h, we get r = 2 and h = 4. Therefore, the dimension of the closed right
cylindrical can that gives the smallest surface area is r = 2 cm and h = 4 cm.
213
Computations
A. 1.
Z −1 Z 1 2 2 Z −1 1
x y cos(πx)
(xy 2 + sin(πx))dxdy = − dy
−3 0 −3 2 π
0
Z −1 2
y 1 1
= + + dy
−3 2 π π
Z −1 2
y 2
= + dy
−3 2 π
3 −1
y 2y
= +
6 π
−3
1 2 27 6 13 4 13π + 12
=− − + + = + =
6 π 6 π 3 π 3π
3.
e
Z 2 Z e Z 2
1
+ x dydx = (ln y + xy) dx
0 1 y 0
1
Z 2
= (1 + ex − x)dx
0
Z 2
= (1 + (e − 1)x)dx
0
2
(e − 1)x2
= x+
2
0
= (2 + 2e − 2) = 2e
5.
x2
x2 !
Z 2 Z √ Z 2 √
x3 + 1dydx = y x3 + 1 dx
0 0 0 0
Z √ 2
= x2 x3 + 1dx
0
2
2 3 3
= (x + 1) 2
9 0
2 52
= (27 − 1) =
9 9
Z 1 Z x2 −2x+2
B. 1. dydx
−2 0
Z 7Z 2
3. √
dxdy
3 y−3
Z 2 Z x−1
5. (a) dydx
−1 x2 −1
214 APPENDIX D. SOLUTIONS TO CHAPTER 4 ASSESSMENT
√ √
Z 0 Z y−1 Z 3 Z y−1
(b) √
dxdy + dxdy
−1 − y−1 0 y−1
C. 1.
3 x+2
x+2 3
xy 2
Z Z Z
(xy)dydx = dx
1 0 1 2 0
Z 3
x(x + 2)2
= dx
1 2
Z 3 3
x + 4x2 + 4x
= dx
1 2
3
1 x4 4x3
2
= + + 2x
2 4 3
1
1 81 108 1 4
= + + 18 − + +2
2 4 3 4 3
106
=
3
3. (a)
Z 2 Z − 12 x2 +2
− 1 x2 +2
Z 2
2
x dydx = xy dx
0 2−x 0 2−x
Z 2
1 2
= x − x + 2 − 2 + x dx
0 2
Z 2
1 3 2
= − x + x dx
0 2
4 2
x x3
= − +
8 3 0
8 2
= −2 + =
3 3
(b)
√
2 4−2y 2
x2
Z Z Z
x dxdy = dy
0 2−y 0 2
Z 2
4 − 2y 4 − 4y + y 2
= − dy
0 2 2
1 2
Z
= (−y 2 + 2y)dy
2 0
2
1 −y 3
2
= +y
2 3
0
1 −8 2
= +4 =
2 3 3
Z 2 Z x
4 − y 2 dydx
D. 1. (a)
Z0 2 Z0 2
4 − y 2 dxdy
(b)
0 y