Chapter 4
Chapter 4
Introduction to calculus
Chapter Objectives
At the end of this chapter you should be able to:
become familiar with the concept of limits.
explain the intuitive meaning of limit of a function.
evaluate limits of a function at given points.
identify and evaluate one-sided limits.
have an understanding of the basic limit theorems.
acquire basic knowledge on infinite limits and limits at infinity to find asymptotes.
get acquainted with the concept of continuity of a function.
apply the intermediate value theorem to locate roots of equations.
become familiar with the derivative of a function.
find the slope and equation of a tangent line to a curve.
get basic knowledge on the techniques of differentiation.
evaluate the derivative of polynomial, rational and composite functions.
find the derivatives of the exponential and logarithmic functions.
develop an appreciation of higher derivatives of functions.
apply the concepts of the derivative to find rates of change of variable quantities.
evaluate maximum and minimum values of functions.
use the concepts of the derivative to sketch the graph of a function.
get acquainted with related rate problems.
define an anti-derivative of a continuous function.
find indefinite integrals of some elementary functions.
evaluate the integrals of functions using the techniques of substitution, integration by parts
and integration by partial fractions.
solve integrals involving trigonometric functions.
find the definite integral of continuous functions.
apply the concepts of definite integrals to find areas of regions bounded by continuous
functions.
In this section we study the concepts of limits and continuity of functions. The concept of limit is
fundamental to our main subjects of the branch of mathematics called differential and integral
calculus. When we ask about the limit of a function at a point c, we are to ask about tendencies of
the values of f(x) as x gets arbitrarily closer and closer to c.
Consider the function f(x) = 2x and find values of f for values of x close to 3 (but not necessarily
equal to 3).
As you can see from the above two tables, the values of f(x) = 2x tend to approach to 6 as x gets
closer and closer to 3 from both sides of 3.
Intuitively, we say “6 is the limit of f(x) = 2x as x approaches 3” and we write
158
= 6.
In general, if for a given real number c, the values of a function f(x) approaches a number L as x
gets close to c, we write
=L
We may sometimes write this as f(x) L as x c.
Suppose f is a function and c is a fixed real number. When one ask for the behavior (approximate
value) of f(x) for x near c, normally one is not interested about the value f(c). Instead, one is
asking about values of f at x (c - , c + ) for x ≠ c, with > 0 ( - delta). We call the interval
(c - , c + ) a neighborhood of c. When we exclude c from the neighborhood, we obtain a union
of two disjoint intervals.
i.e., (c - , c) (c, c + ).
Such a set is called a deleted neighborhood of c. For > 0, the interval (c - , c) may be called a
left neighborhood of c while (c, c + ) a right neighborhood of c. Thus when we talk of f near c,
we are interested in the function values only in a deleted neighborhood of c.
Therefore, when our interest is to know limit of f at c, we are mainly curious to know about the
tendencies of f(x) for x in a deleted neighborhood of c.
In the above examples we were able to find the limits without much difficulty. However, finding
certain limits are not so immediate. For example consider
Here both x2 – 4 and x – 2 approach to 0 as x approaches to 2, and is not determined. But note
that
159
= = x + 2, for x 2.
Thus, for x close to 2 (but not necessarily equal to 2), the behavior of is similar to that of x
= = 4.
= = = , (for x 0)
= , = = = = , (for x 1)
Even though standard textbooks of calculus give the formal (analytic) definition of limit of a
function using the notion of neighborhoods, we shall give here a working definition in terms of
what we call one-sided limits.
Definition 4.1:
Suppose f is a function and c is a fixed real number.
Note that, if the set (c - , c) (c, c + ) is a deleted neighborhood of c, then for left-hand limit
we take x(c – , c), i.e. x < c, and for right-hand limit we take x(c, c + ), i.e. x > c (but not
necessarily x = c).
Example 4.1: Let f(x) = Then = = 1, while =
=2
160
= = –1 x
The = (2x + 1) = 1 x
Definition 4.2:
Suppose is function and c is a fixed real number. A real number L is called the limit of f at c if
and only if the left-and right-hand limits exist and are both equal to L;
i.e. = L if and only if =L=
i) must exist
iii) =
Since = = 2, we have =2
Similarly, you can show that = = , for c > 0 and = sin c, c.
Example 4.5: Let f(x) =
161
Then = = 1 while = = 3. Since 1 3, does not exist.
Example 4.6: Let f(x) = , for x 0. Then = 0. But since f(x) = is not defined to
Thus, if P(x) = anxn + an-1xn-1 + … + a2x2 + a1x + a0 is any polynomial function of degree n and c
is any real number, then from Theorems 4.1 and 4.2, we get
P(x) = ( anxn + an-1 xn-1 + … + a2x2 + a1x + a0)
162
= anxn + an-1xn-1 +…+ a2x2 + a1x + a0
= an xn + an-1 xn-1+ …+ a2 x2 + a1 x + a0
= ancn + an-1cn-1 + …+ a2c2 + a1c + a0 = P(c)
Example 4.10: Let P(x) = 2x3 + 4x2 – 3x + 1. Then
P(x) = (2x3 + 4x2 – 3x + 1) = 2(–1)3 + 4(–1)2 – 3(–1) + 1 = –2 + 4 + 3 + 1 = 6
Example 4.11: = = .
Example 4.12: = = = = .
Example 4.13: = = = = = 1.
Example 4.14: = = = = 32 = 9
Theorem 4.5 (The Squeezing Theorem). Suppose f, g and h are functions such that f(x) h(x)
g(x) for all x in some deleted neighborhood of c. If f(x) = L = g(x), then h(x) = L.
163
Solution: It may be tempting to consider x2 sin as the product of x2 and sin and then use the
Product Rule. Unfortunately it can be shown that sin does not exist. Thus we cannot use
the Product Rule to evaluate the given limit. However since the sine function has range [–1, 1], it
follows that –1 sin 1, for x 0. Multiplying both sides by x2, we get
=1
Remark: The above result has important consequences especially in the evaluation of some
limits involving trigonometric functions.
Solution: = =5
Solution: = = = 1. = 1.
= =
164
= (since sin2x + cos2x = 1)
= = . = 1. = 1.0 = 0.
When f(x) does not exist, it may happen that as x approaches c from right, the value of f(x)
becomes indefinitely large or becomes negative and indefinitely large in absolute value. The
value of f(x) may behave similarly when the left-hand limit at c does not exist. We shall use the
symbols (infinity) and - to express these cases, respectively.
To explain these concepts consider the function f(x) = , for x 0
As x gets close to 0 from right, the values of
f(x) = become arbitrarily large positive.
Definition 4.3:
Let f be a function defined in a deleted neighborhood of c.
i) We say that the left-hand limit of f(x) at c is infinity, and write f(x) =
if for every real number M, we have f(x) > M for every x close to c from the left side of
ii) We say that the right-hand limit of f(x) at c is infinity, and write f(x) =
if for every real number M, we have f(x) > M for every x close to c from the right side if c.
iii) We say that the limit of f(x) at c is infinity and write f(x) =
Definition 4.4:
Let f be a function defined in a deleted neighborhood of c.
i) We say that the left-hand limit of f(x) at c is negative infinity, and write f(x) = -
165
if for every real number M, we have f(x) < M for every x close to c from the left side of c.
ii) We say that the right-hand limit of f(x) at c is negative infinity, and write f(x) = -
if for every real number M, we have f(x) < M for every x close to c from the right side if c.
iii) We say that the limit of f(x) at c is negative infinity and write f(x) = -
Example 4.18: For f(x) = , for x 0, = and = -. Hence does not
In general, for any real number c and f(x) = we have f(x) = = and
f(x) = = -.
Definition 4.5:
Suppose f is a function and c is a fixed real number. We say that the line x = c is a vertical
asymptote of the graph of f if and only if either
f(x) = or f(x) =
Remark: From the above examples, we can see that the line x = 0 (i.e. the y-axis) is a vertical
asymptote of the graphs of the functions f(x) = and f(x) = , while the line x = c is a vertical
Solution: If c is any number different from 1 or -1, then by the Quotient Rule,
= = R
= = () =
= () = -
166
Hence the lines x = 1 and x = -1 are vertical asymptotes of the graph of the function f(x) = .
Next, we try to investigate the behavior of a function f as x increases (or decreases) indefinitely,
and try to see if we have f(x) or f(x). Such limits, if they exist, are in general called
limits at infinite.
Definition 4.6:
i) Suppose f is a function defined on an interval of the form (c, ), for some cR. We say that
the limit of f(x) as x approaches to infinity is the number L, and write f(x) = L if when
x is assigned sufficiently large positive values, the corresponding values of f approach to L.
ii) Suppose f is a function defined on an interval of the form (-, c) for some cR. We say that
the limit of f(x) as x approaches to negative infinity is the number L, and write f(x) = L
if when x is assigned sufficiently small negative values, the corresponding values of f
approach to L.
When x is assigned sufficiently large positive values, the values of f(x) = become close to 0.
Similarly for values of x sufficiently small negative values, f(x) = becomes close to 0. Hence
Definition 4.7:
If for a function f and a real number L, f(x) = L or f(x) = L, then the line y = L is called
a horizontal asymptote to the graph of f.
Thus the line y = 0 (i.e. the x-axis) is a horizontal asymptote for both the function f(x) = and
Solution: Since we are interested with the behavior of f for large values of |x|, we divide both
numerator and denominator of f by the leading exponent (i.e.x2) to get
167
f(x) = = =
Then f(x) = = = =
Similarly, f(x) = .
Remark: For a rational function f(x) = , with deg(p)<deg(q), we find a horizontal asymptote
Definition 4.8:
Let f be defined on an interval of the form (c, ), for cR. We say that the limit of f(x) as
x approaches to infinity is infinity, written f(x) = whenever x is assigned sufficiently
large positive values, the corresponding values of f(x) increase without bound.
Definition 4.9:
If for a function f and for two real numbers a and b [f(x) – (ax + b)] = 0, then the line
y = ax + b is called an oblique (or a skew) asymptote to the graph of f.
168
i) When degree(p) < degree (q), f(x) = 0 and the x-axis is a horizontal asymptote of
f.
ii) When degree(p) = degree(q), then f has a horizontal asymptote given by the quotient
of the leading coefficients of p and q.
iii) When degree(p) > degree(q), then f(x) = , and in particularly if
degree(p) = degree(q)+1, then f has an oblique asymptote obtained as a quotient when we
divide p by q.
The following two tables indicate the behavior of the values of f(x) as x approaches to positive
and negative infinity, respectively,
As is tried to be indicated from the above tables, the values of tend to approach to an
irrational number whose value is 2.7182818…. This number, denoted by e, is called the base of
the natural logarithm, and plays an important role in calculus.
Remark: The natural logarithmic function (with base e) is given by f(x) = and is denoted
by f(x) = nx. Its inverse, the natural exponential function is given by f(x) = exp(x) = ex.
Thus from the above constructions, we have
=e= .
This limit has important consequences.
169
Example 4.25: = . - Rule of exponents
= . - Product Rule
= e.13 = e
Solution: We prove this by showing that =e= . First use the substitution t
Therefore, =e= = e.
= = = = e-5 = .
Continuity of a Function
In our everyday usage, the word continuity refers to something that happens without any
interruption. In calculus, the term continuity is used to describe functions whose graphs can be
traced without any break. We shall give its formal definition using the concept of limits.
Definition 4.10:
- Let f be a function and c be a number in the domain of f. f is said to be continuous at c if
= f(c)
- If f fails to be continuous at c, then we say that f is discontinuous (or not continuous) at c.
- f is said to continuous if it is continuous at each point of its domain.
170
Example 4.28: Let f(x) = 2x and c = 1 y
Then = 2x = 2 y = 2x
and f(1) = 2(1) = 2. 2
Since = 2 = f(1), f is continuous at 1.
1 x
In fact f is a continuous function. See Figure 4.4.
Figure 4.4
Remark: For a function f to be continuous at c, the following conditions must be satisfied
a. f(c) must be defined
b. f(x) must exist
c. f(x) = f(c)
Otherwise if one of the above conditions is not satisfied, then f is discontinuous at c.
Example 4.29: Let f(x) =
Then f(0) = 2 so that f(0) is defined . = =0 2
and = . Thus =0
Example 4.31: Let P(x) = anxn + an-1xn-1 + … + a2x2 + a1x + a0 be any polynomial of degree n, and
let cR, arbitrary. Then,
171
P(x) = (anxn + an-1xn-1 + …+ a2x2 + a1x + a0)= ancn + an-1cn-1 + …+ a2c2 + a1c + a0 = P(c)
Hence, P(x) is continuous at c, and since c was taken arbitrarily, every polynomial function is
continuous.
Example 4.32: Let f(x) = be any rational function. Then if c is any real number such that
From the above theorem we can see that f(x) = 5x 2 – 4x + 7 is continuous in R, g(x) =
is continuous in R\{-2, 2}, h(x) = |x| cos x - is continuous for x 0 and f(x) = + nx is
As a generalization of the Power Rule for limits, we have the following theorem
Theorem 4.7 (Substitution Rule): Suppose f and g are real valued functions such that f(x) =
Theorem 4.8: Suppose f and g are functions such that f is continuous at c and g is continuous at
f(c). Then, gof is continuous at c.
Example 4.34: For f(x) = x2 + 5, g(x) = ex and c = 1, we have (gof)(x) = g(f(x)) = and
(gof)(x) = = e6 = = e6. Thus, (gof)(x) = is continuous at 1.
172
Recall that for a function f continuous on a closed interval [a, b] its graph can be traced between
the points (a, f(a)) and (b, f(b)) without any break or interruption. In this section we shall see an
important application of continuous functions: namely, the Intermediate Value Theorem, and
some of its consequences. y
Example 4.35: Let f(x) = x2. Then f is continuous on [0, 3] with f(0) = 0 and f(3) = 9. By the
Intermediate Value Theorem f assumes (takes on) every value between 0 and 9. For instance for L
= 4, we have 2 [0, 3] with f(2) = 4, and for L = 7, we have [0, 3] with f = 7.
Example 4.36: Let f(x) = x + 2x + x = 4 on [-2, 1]. Show that there exists some c [-2, 1]
3 2
One of the most important applications of the Intermediate Value Theorem is given in the
following theorem.
Theorem 4.10: Suppose f is continuous on a closed interval [a, b] and assume that f(a) and f(b)
have opposite signs. Then there is at least one c (a, b) such that f(c) = 0.
173
Proof: Without loss of generality, assume that f(a) < 0 and f(b) > 0. Then choose L = 0,
between f(a) and f(b). By the Intermediate Value Theorem, there is at least one c between a and b
such that f(c) = L = 0.
Remark: This means that the equation f(x) = 0 has at least one root in the interval (a, b).
Example 4.37: The function f(x) = x3 – x – 2 is continuous on [1, 2]. f(1) = -2 < 0 and f(2) = 4 >
0. Thus there is a number c in (1, 2) such that f(c) = 0 or c3 – c – 2 = 0.
Example 4.38: Show that the graphs of y = ex and y = 3x intersect in the interval [0, 1]
Solution: Define the function f(x) = ex -3x. Then f is continuous on [0, 1] with f(0) = e 0 -3(0) = 1
- 0 = 1 > 0 and f(1) = e 1 – 3(1) = e – 3 < 0. Thus there is a number c (0, 1) such that f(c) = e c –
3c = 0 and the graphs of y = ex and y = 3x intersect at c(0, 1).
Exercise 4.1
1. Evaluate the following limits, if they exist.
2x 1
a. (7-2x) b. c.
3x 1
d. lim e. f.
x 1
d. e. f.
g. h. i.
a. b. c.
d. e. f.
174
a. f(x) = tanx b. f(x) = c. f(x) =
a. b. c.
7. Check whether or not the following functions are continuous at the indicated points.
a. f(x) = x2 + 1, at c = 2 b. f(x) = |x2 – 1|, at c = -1, 0, 1
c. f(x) = , at c = 2 d. f(x) = , at
c=1
8. Show that the following equations have roots in the indicated intervals.
9. Using the Intermediate Value Theorem show that the graphs of f and g intersect in the
given interval.
a. f(x) = x3 + 4x + 2 and g(x) = -1, in [-1, 0]
b. f(x) = 2sinx and g(x) = 1 – x, in [0, 2]
4.2. Derivatives
Objectives
At the end of this section you should be able to
get acquainted with the concept of the derivatives of a function.
evaluate the derivative of elementary functions using the definition.
find the slope and equation of a tangent line to a curve at a given point.
evaluate the derivatives of combinations of functions.
find the derivatives of polynomial and rational functions.
have a good understanding of the Chain Rule.
apply the Chain Rule to evaluate derivatives of composite functions and algebraic
functions.
find the derivative of the logarithmic function.
find the derivative of the exponential function.
apply the above derivatives to the natural logarithmic and natural exponential functions as
special cases.
175
evaluate derivatives of composite functions with the logarithmic and exponential
functions.
have an understanding of the derivative of a derivative.
Using the concepts discussed in section 4.1, we are now ready to study one of the central concepts
of calculus: the derivative of a function. Even though the derivative is connected with finding the
tangent lines to curves at a point, its main applications are in finding rates of change of variable
quantities relative to the change in another quantity.
Consider a function f continuous at a point c in its domain.
Then, by definition of continuity = f(c) y f
This means for x close to c, f(x) is f(x)
close to f(c). If we denote the f(c)
increment (or change) x – c in the
x-direction by h = x – c (so that x = c + h) as
is seen in Figure 4.7,
then the corresponding change in the y-direction
c x x
is given by Figure 4.7
f(x) – f(c) = f(c + h) – f(c).
The ratio of these two increments is given by
= =
We shall define the derivative of a function of f at c as the limit of the above difference quotient,
if the limit exists.
Definition 4.11
Let c be a number in the domain of a function f. If
exists, we call this limit the derivative of f at c, and denote it by (c), so that
(c) =
If this limit exists we say that has a derivative at c, or is differentiable at c or (c) exists.
Remarks: 1. Observe that we can alternatively write
176
(c) =
since for h = x – c, we have x = c + h and as x c, h 0.
2. The notation (c) is read as “the derivative of f at c” or for short “f prime at c”.
Other notations are given by or Df(c)
3. The quantity f(c) describes the rate of change of the function f around the point (c, f(c)).
Example 4.39: Let f(x) = 2x + 3. Then, for any c R, the point (c, f(c)), we have
(c) = = = =2 =2 (1) = 2. Since
cR is arbitrarily taken, we have for f(x) = 2x + 3, (x) =2 for all xR.
In fact for any linear function f(x) = ax + b, we have
(c) = = =a =a
for any c R. Thus (x) = a
Note that the graph of a linear function is a straight line and the rate of change (a constant) is
measured by the slope of the line.
Example 4.40: Let f(x) = 3x2 + 5. Then for any xR
f(x + h) = 3(x + h)2 + 5 = 3x2 + 6xh + 3h2 + 5 and
(x) = =
= = =3 (2x + h) = 6x.
e) 177 g(c) 0 …
provided Quotient Rule
Thus, if (x) = x4, then (x) = 4x3 and if g(x) = x12, then (x) = 12x11, and so on.
Remark: In practice, to evaluate the derivative of a product of two functions, we do not need to
identify which one is f and which one is g.
Example 4.45: Let h(x) = x3 cosx. Then
h(x) = (x3) cosx + x3(cosx)= 3x2cosx + x3(-sinx) = 3x2cosx – x3 sinx.
178
For the derivative of the product of three functions f, g and h, we have
(fgh)(x) = f(x)g(x)h(x) + f(x)g(x)h(x) + f(x)g(x)h(x).
Example 4.46: Let k(x) = x3 sinx cosx. Find k(x).
Solution: Put f(x) = x3, g(x) = sinx and h(x) = cosx in the above statement with (x) = 3x2, g(x)
= cosx and h(x) = -sinx. Then k(x) = 3x2 sinx cosx + x3 cosx.cosx + x3sinx(-sinx)= 3x2 sinx
cosx + x2 cos2x – x3 sin2x.
The Quotient Rule is used to find the derivative of any rational function. If f(x) = , for p, q
(x) = = =
As an important consequence of the Quotient Rule, we can now find the derivatives of the
remaining four trigonometric functions.
Example 4.48: Let f(x) = tanx. Show that (x) = sec2x
Solution: (x) = tanx = . Then
(x) = (tanx) = =
= = = sec2x.
179
Thus, (sin4x) = 4 cos4x and (cos5x) = -5 sin5x
Example 4.50: Find the derivative of h(x) = (1+3x -5x)12
Solution: Let f(x) = 1 + 3x – x5 and g(x) = x12. Then h = gof and
h(x) = (1+3x – x5)12 = 12(1 + 3x – x5)11 (1 + 3x – x5) = 12(3 – 5x4) (1 + bx – x5)11.
Example 4.51: Find the equations of tangent and normal lines to the semicircle
y = f(x) = at
Solution: The slope of the tangent line T is given by the derivative of y = f(x) = at x = .
Thus, by Chain Rule,
m = = =- . =
and since the tangent line passes through the point , its equation in slope-point form is
y- =- or x+ y–2=0
y- = or y- x = 0.
Remark: The Chain Rule can be extended to more than two functions.
Suppose k(x) = (hogof)(x) = h(g(f(x))) and let f be differentiable at x, g be differentiable at f(x)
and h be differentiable at g(f(x)). Then k(x) = (hogof)(x) = h(g(f(x)).gf(x)). f(x)
Similarly, if (x) = (kohogof)(x) = k(h(g(f(x)))), then
(x) = (kogohof)(x) = k(h(g(f(x)))). h(g(f(x)).g(f(x)).f(x).
You can now see why this method is called the Chain Rule!
Example 4.52: Find the derivative of the function
k(x) = cos
Solution: Let k(x) = cosx = h(g(f(x))) with
f(x) = 2x2 – 3, g(x) = and h(x) =cosx. Then
k(x) = = h(g((x)). g((x)) (x)
= - sin . .4x =
180
Example 4.53: Let f(x) = sin(tanx2). Find (x)
Solution: (x) = (sin(tanx2))
= cos (tanx2) sec2x2(2x) = 2x.cos(tanx2) sec2x2.
Recall that for a > 0, and a 1, the logarithmic function with base a is given by
f(x) = for x > 0.
In particular, when a = e, we get the natural logarithmic function
f(x) = = nx , for x > 0.
(x) =
= = = : i.e.
b) g(x) = = =
Theorem 4.13: Let a > 0, a 1 and let f(x) = ax. Then, (x) = (ax) = .
181
x
(a ) = = ax n a
When the base a = e, we get (ex) = = exne = xx.1 = ex: i.e. (ex)= ex
(x) = = . = , =
c) = (x + e4x) =
g(x) = = nx + . =
Higher Derivatives
If a function f is differentiable at a point x in its domain, we denote its derivative by (x), where
we call (x) the second derivative of f at x, and it is often read as “ double prime of x”.
Observe that (x) is simply the derivative of the function at x and is no more difficult than
finding the first derivative.
182
Thus, for f(x) = nx, (x) = , (x) = and (x) =
These derivatives when they exist are called higher derivatives (or derivatives of derivatives)
Thus the second derivative is (x) or [2](x) or and the third derivative is (x) or [3]
(x) or .
Exercise 4.2
1. For each of the following functions, find (c) using the definition
a. f(x) = 2x – 4, at c = 1 b. f(x) = x2 + 3, at c = -1
3
c. f(x) = x – 2 at c = 0 d. f(x) = |x + 2|, at c = 2
2. Find the equations of the tangent and normal lines to the graph of f at the given point.
a. f(x) = x2 + x – 1, at (2, 5) b. f(x) = ,
at (4, 2)
c. f(x) = 2cosx, at ( , 0) d. f(x) = , at (2, )
3. Find the derivative of the following functions
a. f(x) = (x2 – 5) cosx b. g(x) = secx
c. d. g(x) =
183
4. Find the equations of the tangent and normal lines to the functions at the indicated point.
a. f(x) = sinx cosx, at
b. f(x) , at
At the beginning of this unit we have mentioned that the derivative of a function at a point c in its
domain measures the rate of change of the function around that point. In this section we shall see
how the derivative can be applied to solve a variety of problem in the areas of engineering, the
natural sciences, business and the social sciences. We see how it can be used to solve maximum
and minimum values of a function (i.e., where it has “peaks” and where it has “valleys”), where it
curves upward and where it curves downward, and in general, to sketch the graph of the function.
At the end we shall introduce related rates problems and see how to solve them using the
derivative.
a) Extrema of a Function
184
Definition. Let be a function defined on an interval I. If there is a number d in I such that f(x)
f(d) for all x in I, then f(d) is called the maximum value of f
on I. Similarly, if there is a number c in I such that f(x) f(c) for all x in I, then f(c) is called the
minimum value of f on I. (See Figure 4.8) A value of f that is either a maximum value or a
minimum value of f on I is called an extreme value of f on I.
Remark: If the set I is the domain of the function f and if f has a maximum value on I, then
this maximum value is called the (absolute or global) maximum of f.
Similar for minimum value of f.
Hence the function f(x) = x2 for -2 x 4 has both extreme values on [-2, 4].
Similarly, the function f(x) = x3 – 4x + 5 for 0 x 2 which is continuous on [0, 2] has a
maximum and a minimum value on [0, 2], by Theorem 4.14. Even though the above theorem
tells us about the existence of extreme values on [a, b], it does not tell us where they occur or how
to find them. The following theorem will help us in determining such values.
Theorem 4.15: Let f be defined and continuous on [a, b]. If f has an extreme value
185 (c) = 0.
at c in (a, b) and f is differentiable at c, then
Example 4.62: Let f(x) = x3 - 3x + 1.
Then is differentiable and the
critical points of are the values
of x for which (x) = 0,
But (x) = 3x2 – 3 = 0
3(x – 1) (x + 1) = 0
x = 1 and x = -1 are critical points of f.
Figure 4.10
If we want to find extreme values of f on, say, the interval [-3, 3] we compute and compare the
values of f at -3, -1, 1 and 3 to get f(-3) = 17 , f(-1) = 3, f(1) = -1 and f(3) = 19.
Thus the minimum value of f on [-3, 3] is -17 which occurs at -3 and the maximum value of f is
19 which occurs at 3.
Monotonic Functions
One of the important points needed to sketch the graph of a function is to find the regions in
which the graph slopes upward to the right (increases) or it slopes downward to the right
(decreases) as seen in Figure 4.11 (a) and (b), respectively.
y y
x x
(a) (b)
Figure 4.11
Definition 4.12: Suppose f is a function defined on an interval I.
i) f is said to be increasing on I if f(x1) f(x2) whenever x1 < x2
ii) f is said to be decreasing on I if f(x1) f(x2) whenever x1 < x2
iii) f is said to be monotonic on I if f is either increasing or decreasing on I.
Remark: we can similarly define the terms strictly increasing, strictly decreasing and strictly
monotonic by replacing by < and by >.
186
f(x1) = -1 < -1 = f(x2)
f is strictly increasing on (0, ). Figure 4. 12
The derivative of a function gives us a test for monotonicity as is indicated in the following theorem.
Example 4.64: Find the intervals over which the following function f(x) = x 3 – 3x + 1is
monotonic.
Solution: For f(x) = x3 – 3x + 1, (x) = 3x2 – 3 = 3(x – 1) (x + 1)
To find the intervals over which is increasing and decreasing we find the sign of (x) using the
critical points x = 1 and x = -1 and the Sign Chart Method.
-1 1
x – 1 - - - - - - - - - - - - - - - 0 + + + + + ++ + +
x + 1 - - - - - - - 0 + ++ + + + + + + + + + + + +
(x) + + + + + 0 - - - - - - 0 + + + + + + + + +
From the above “sign chart” we can see that
(x) > 0 for x (-, -1) (1, ) and (x) < 0 for x (-1, 1).
Thus is strictly increasing on (-, -1) (1, ) and strictly decreasing on [-1, 1].See Figure
4.10.
187
Example 4.65: Consider again the function f(x) = x3 – 3x + 1.
(x) = 3x2 – 3 = 3(x – 1) (x + 1) = 0 gives the critical points x = 1 and x = -1
For the critical point x = -1 check the sign of at -2 and 0 with (-2) = 9 > 0 and (0) = -3 < 0.
Thus (-1) = 3 is a relative maximum value of f.
Similarly taking the critical point x = 1 between 0 and 2, we get (0) = -3 < 0 and (2) = 9 > 0.
Thus f(1) = -1 is a relative minimum value of f. (See Figure 4.11 above)
The above theorem needs to check the signs of two distinct points to the left and to the right of
each critical point. The next theorem makes use of the sign of the second derivative directly at
the critical points.
Example 4.66: Consider again the function f(x) = x3 – 3x + 1 with (x) = 3x2 – 3 = 3(x – 1) (x +
1). We have (1) = (-1) = 0 and (x) = 6x. Since (-1) = -6 < 0, (-1) = 3 is a local
maximum value of f. Since (1) = 6 > 0, (1) = -1 is a local minimum values of f.
= =
(x) = 0 16 – 4x2 = 0 x = 2 or x = -2
= - Simplification.
188
Practical Applications of the Extrema
A lot of practical problems can be expressed as a continuous function on a closed and bounded
interval we may be interested to find points where f attains its maximum or its minimum values.
For instance we may be interested in finding the maximum area of a region to be enclosed by a
fixed perimeter; the minimum distance from a fixed point to a curve. In economics a function
may represent a profit or cost function and we may want to find the value of x to find maximum
profit and minimum cost, and so on. The Maximum – Minimum Theorem and the first and
second derivative test will be crucial in finding such points as are illustrated in the following
examples.
Example 4.68: A landowner wishes to use 2000 meters of fencing to enclose a rectangular
region. Suppose one side of the land lies along a river and does not need fencing. What should
be the sides of the region in order to maximize the area?
Solution: Suppose the rectangle is to have length x and width y meters as seen in Figure 4.13.
x
Since the length of the fencing is
2000 meters, we have y
x + 2y = 2000
2y = 2000 – x y = 1000 -
Figure 4.13
189
You can easily check that for x < 250, C(x) > 0 and for x > 250, C(x) < 0. Thus by the First
Derivative Test C has an (absolute) maximum value at x = 250.
The maximum revenue the airline gets from the sales of 250 tickets is then
C(250) = 1000(250) – 2(250)2 = 125,000 Birr.
Example 4.70: A manufacturer wishes to produce rectangular containers with square bottom and
top each of which is to have a capacity of 1000 cubic inches. If the cost of production of each
container is proportional to its surface area, what should be the dimensions so as to minimize the
cost of production?
Solution: Let x be the side of the base
and h be the height of the container as seen in Figure 4.15.
Then the volume is h h
2
V = x h = 1000
h= = for x > 0 x x
Figure 4.15
To find the surface area, we have the area of the top and bottom as 2x 2 and the area of the four
sides as
4xh = 4x =
s(x) = 4x - = =0
Hence the manufacturer would minimize the cost of production by manufacturing cubes of side
10 inches.
Curve Sketching
As a second application of the derivative we shall see here sketching the graphs of functions. You
have been sketching the graphs of polynomial and rational functions starting from your high
190
school mathematics. Here we systematically apply the notions of differential calculus to give
precise meaning to the asymptotes, intervals of increase and decrease, the turning points and find
the range of the functions.
First we shall list the important items that will help us in sketching the graph of a function y = f(x).
1) Determine the domain of the function f.
2) Find the intercepts of the function f.
- x-intercepts are points of the form (x, 0)
- y-intercepts are points of the form (0, y)
3) Determine the asymptotes, if any, of the function f.
- A line x = c is a vertical asymptote of the graph of f iff
f(x) = or f(x) = .
- A line y = L is a horizontal asymptote of the graph of f iff
f(x) = L or f(x) = L.
- A line y = ax + b is an oblique (or skew) asymptote of the graph of f iff
[f(x) – (ax + b)] = L
4) Determine the intervals of monotonicity of the function f.
- f is increasing for all x at which (x) > 0
- f is decreasing for all x at which (x) < 0
5) Find extreme values of , if any.
Find the critical points of f and apply the first or second derivative tests to determine
whether they are relative extreme points or not.
6) If necessary plot some additional points to help you see the behavior of the function.
Example 4.71: Sketch the graph of f(x) = .
Solution. 2.1 The domain of f is R\{-2} and the x-intercept is the value of x for which
f(x) = = 0 x = 2. Hence x-intercept at (2, 0)
The y-intercept is the value of y when x = 0, i.e. f(0) = = -1. Hence y-intercept at (0, -1).
191
Hence f '(x) > 0 for every element x in the domain of f. It follows that f is strictly increasing on (-
, -2) and on (-2, ).
has no critical number and hence no local extrema.
Additional points: f(-1) = -3, f(1) = -
192
Graph of f ( x) x 1
x
Related Rates
One of the most important applications of the derivative is to solve problems involving rates of
change. As was mentioned at the beginning of this section the derivative measures the rate of
change of a variable quantity (which is the independent variable x) with respect to another
variable (which is the dependent variable y = f(x)). Here we shall apply this to solve some
practical related rates problems.
Example 4.73: Suppose a particle P starts from a point 0 and moves along a straight line in the
positive direction as See in Figure 4.18
Let s(t) devote the distance traveled from
0 in t seconds. If we assume that the speed 0 P
is constant, then we can compute the speed as Figure 4.18
speed =
If we are interested to find the average speed of the particle between two times t 1 and t2
(with t1 < t2), we get
Average speed = =
In particular if t1 is any time t and t2 is a short time later say t2 = t + h for h > 0, then we have
Approximate speed (at t = t1) = =
If the speed is not even constant, by taking h smaller and smaller we can approximate the speed of
the particle at time t, to get what is called the (instantaneous) velocity of the particle as
v(t) =
Thus, if s(t) denotes the position function of the particle its velocity is given by
193
v(t) = s(t) = - rate of change of position.
Similarly, the acceleration of the particle can be obtained by
a(t) = v(t) = - rate of change of velocity
= = s(t) =
Example 4.74 : Water is flowing into a vertical cylindrical tank of radius 2 feet at the rate of 8
ft3/min. How fast is the water level rising after t minutes?
h(t)
v(t)
Figure 4.19
Solution: Let v(t) denote the volume of water in the tank after t minutes and let h(t) denote the
height of water in the tank after t minutes. See Figure 4.19.
Since the rate at which water is flowing into the tank is 8 ft 3/min. the volume of water in the tank
after t minutes is
v(t) = 8t
On the other hand since the base of the cylinder is 2 feet and height in h minutes is h(t), we have
the volume
v(t) = r2h(t) = 4h(t)
Thus 4h(t) = 8t h(t) =
The rate at which the water level is rising in then
h(t) = ft|min, a constant! (why?)
Example 4.75: Two automobiles start from a point A at the same time. One travels west at 60
km/hr and the other travels north at 35 km/hr. How fast is the distance between them increasing 3
hrs later?
Solution: Let s(t) denote the distance
between the two cars after t hrs. In s(t)
t hrs the car due north travels 35t kms 35t
and the car due west travels 60t kms A
as seen in Figure 4.20 60t
Figure 4.20.
194
Hence the distance s(t) between the two cars in t hrs is
s(t) =
The rate of change of the distance between the cars is
s(t) = … How ?
Hence after 3 hrs the distance between the two cars is increasing at the rate of
s(3) = =5 km/hr
Exercise 4.3
1. Find relative extrema and the intervals in which the given function is increasing or
decreasing
a) f(x) = 5 – 4x – x2 b) g(x) = x3 + x2 – x – 4
c) f(x) = d) g(x) = x2 +
2. Use the First or Second Derivative Test to determine relative extreme values of the function
c) f(x) = x4 + d) g(x) =
4. A menu of total area of 100 sq. in. is printed with 2 in. margins at the top and bottom and
1in. margins at the sides. For what dimensions of the menu is the printed area largest?
5. A rectangle of perimeter p is rotated about one of its sides so as to from a cylinder. Of all
such possible rectangles, which generated a cylinder of maximum volume?
6. The volume of a spherical balloon is increasing at a constant rate of 8 cubic feet per minute.
How fast is the radius of the sphere increasing when the radius is exactly 10 feet?
7. At midnight ship B was 90 miles due south of ship A. Ship A sailed east at 15 m/hr and
ship B sailed north at 20 m/hr. At what time were they closest to each other?
195
In this section we shall introduce the second major part of calculus known as integral calculus.
Just like subtraction is the inverse process of addition, integration is the inverse process of taking
the derivative of a function. Historically, integral calculus was developed in solving problems
connected with finding areas of regions with curved boundaries.
Section Objectives
At the end of this section you should be able to:
define an anti-derivative of a continuous function.
state properties of anti-derivatives.
find indefinite integrals of some elementary functions.
evaluate the integrals of functions using the techniques of integration.
solve integrals involving trigonometric functions.
find the definite integral of continuous functions.
apply the concepts of definite integrals to find areas of regions bounded by continuous
functions.
As is mentioned above the process of integration is the inverse process of differentiation and
hence is sometimes called taking anti-derivatives.
Definition 4.13: A function F(x) is called an anti-derivative of a continuous function f(x) if and
only if F(x) = f(x) for every x in the domain of f.
Example 4.76: Let f(x) = 3x2 + 4x. Then the function F1(x) = x3 + 2x2 is an anti-derivative of
f(x), since F(x) = (x3 + 2x2) = 3x2 + 4x = f(x).
Note that F1 is not the only anti-derivative of f(x). You can also check that F2(x) = x3 + 2x2 + 5
and F3(x) = x3 + 2x2 – 7 are also anti-derivatives of f.
In fact, if c is any real number, then F(x) = x3 + 2x2 + c is an anti-derivative of f(x) = 3x2 + 4x
since F(x) = (x3 + 2x2 + c) = 3x2 + 4x = f(x)
Notation and terminologies: Given a function f, the symbol stands for any (and
hence all) anti-derivatives of f. i.e. if F(x) is an anti-derivative of f(x), we write = F(x)
+ c, for any constant c. The symbol is called the integral sign. The function f(x) is called the
integrand, x is called the variable of integration, and c is called a constant of integration.
196
is also called the indefinite integral of f with respect to x.
b) exdx = ex + c e) dx = n|x| + c
Examples 4.78:
1) 4 cosxdx = 4 cosxdx = 4sinx + c
2) dx = exdx - = ex – n|x| + c
4) = +2
= + 2tanx + c.
P(x) = = + + …+ + + a0x
= + - + 2x + c
197
Some Techniques of Integration
In the previous section we were trying to find anti-derivatives of some functions whose
derivatives can easily be found from the previous unit on differentiation. But there are various
functions such as
whose anti-derivatives are not readily found. In this section we shall see some techniques to find
the integrals of such functions.
a) Integration by Substitution
This technique is basically developed by reversing the Chain Rule. It is very helpful in finding
the integrals of functions that appear as the composite of two functions.
Suppose we want to find the indefinite integral
we may expand (x + 3)5 and then integrate term by term using the formula
= .
But this would obviously be very tedious and cumbersome. On the other hand if we replace or
substitute u for x + 3, we get
(x + 3)5 = u5 and = (x + 3) = 1 dx = du.
198
Solution: Let u = 1 + x2. Then, = 2x which implies that xdx = . Therefore,
= = = +c= = + c.
=- cos4x+ c.
These two formulas can be used to find integrals involving trigonometric functions together with
trigonometric identities.
Thus =
= =
= =
199
So that = = eu + c = e-2x + c
Thus = + c and = + c.
b) Integration by Parts
The method of integration by parts is basically developed from the Product Rule for
differentiation. If f and g are differentiable functions, we have
(f(x)g(x)) = (x) g(x) + g(x) (x)
Integrating on both sides with respect to x, we get
f(x) g(x) = +
If one of the integrals on the right can be easily evaluated, we can find the other integral using the
following theorem
200
But we have seen above that = xe2 - ex + c. Hence,
= x2ex – 2(xex – ex + c) = ex(x2 – 2x + 1) + c1 where c1 = -2c is a constant.
In some cases we may have to apply integration by parts more than once to arrive at the required
result as in the following example.
f(x) =
where degree of p(x) is less than degree of q(x). (If not we can apply long division to write f(x)
as a sum of a polynomial and a rational function with the desired property.) The first step in this
method is to factorize the denominator q(x) into linear factors, if possible. (The case where we
have irreducible quadratic factors of q(x) will not be treated here.) Now with each linear factor
(ax + b)m (of multiplicity m) we associate constants A1, A2, …,Am and write +…
with the Ai’s to be determined. Then, the rational function f(x) is then expressed as a sum of
simple rational functions and can be easily integrated.
= = + =
Since the denominators are equal, we equate the numerators as A(x+2) + B(x - 2) = 1.
From equality of polynomials, we get
A= and B =
201
Hence, = = - = n|x – 2| - n |x+2| + c.
= = + +
+c.
For a very long time, mathematicians have struggled with the problem of finding areas of plane
regions. Until the invention of the integral calculus, however, the regions considered were mostly
those regions bounded by straight lines, called polygons, with a few exceptions such as the circle
and the ellipse. The Greek mathematicians found the area of a polygon by first finding the area of
a rectangle, then finding the area a parallelogram, and then finding the area of a triangle. The area
of a polygon can be used to approximate the area of a region bounded by curved boundaries. For
instance, the area of a circle can be found by drawing a sequence of inscribed polygons
P4, P8, P16, …,Pn, and then taking limit as n .
To develop the idea for more general regions, consider the region bounded by the graphs of
y = 2x2 + 1, x = 0, x = 6 and x-axis.
To find the area of the region, let us identify the region S by drawing its boundaries, namely the
graphs of y = f(x) = 2x2 + 1, x = 0, x = 6 and the x-axis as shown in Figure 4.21.
202
Figure 4.21
Unfortunately, since f(x) = 2x2 + 1 is a curve that is not a line segment, we cannot find the area of
the region by the elementary methods. So, it is necessary to develop a stronger technique that also
generalizes the elementary method and enables us to find the area of such regions.
Let A(S) denote the area of the region S. It is not difficult to give lower and upper bounds of
A(S). For instance, we consider the rectangle r that is enclosed by the boundaries of S and the
rectangle R that encloses S, as shown in Figure 4.22.
Figure 4.22
Then A(r) = 6 and A(R) = 6 73 = 438. Hence 6 A(S) 438, which gives a wide range
of bounds of A(S).
Better bounds of A(S) can be obtained if we consider the finer rectangles , , , ,
and that are enclosed by the boundaries of S and R 1, R2, R3, R4, R5 and R6 that enclose S as
shown in Figure 4.23.
Figure 4.23
203
Figure 4.23
Evidently, each of the rectangles has base 1 unit but varying heights. It follows that
A( )+A( ) + … + A( ) A(S) A(R1) + A(R2) + … + A(R6)
To give a formal definition of the subdivisions, for any positive integer n, divide [a, b] into
subintervals by introducing points of subdivision x0, x1, …xn
Definition 4.14: A partition of [a, b] is a finite set P of points x0, x1, …, xn such that
a = x0 < x1 < x2 < … < xn = b. We describe P by writing P = { x0, x1, …xn}
By definition, any partition of [a, b] must contain a and b.
The length of any subinterval [xi-1, xi] of a partition P is defined and given by
xi = xi – xi-1
In particular, when the lengths of each subintervals are equal, it is called a regular partition.
In this section we shall consider only regular partitions, so that the length of each subinterval is
xi = xi – xi-1 =
Having chosen a partition P of [a, b], we inscribe and circumscribe rectangles on the region R
using the division points of P as seen in Figure 7.3(a) and (b). Since f is continuous on [a, b], by
the Maximum-Minimum Theorem, for each i between 1 and n, there is a minimum value m i and a
maximum value Mi of f on the subinterval [xi-1, xi]. If ri and Ri denote the inscribed and
circumscribed rectangles on [xi-1,xi], respectively, then the area of ri is A(ri) = mixi and the area of
Ri is A(Ri) = Mixi, since the base of both ri and Ri is xi = xi - xi-1. From our observation in
Figure 7.3 (a) and (b) we see that the area of the region R is between the sum of the inscribed
rectangles and the sum of the circumscribed rectangles.
Definition 4.15: Let f be continuous on [a, b] and P be any partition of [a, b].
The sum Lf(P) = m1x1 + m2x2 + …+ mnxn
is called the lower sum of f associated with P and the sum
Uf(P) = M1x1 + M2x2 + … + Mnxn
is called the upper sum of f associated with P.
From our construction we see that if P is any partition of [a, b], then the area of R should be
between Lf(P) and Uf(P) i.e.
Lf(P) Area (R)
Uf(P)
Example 4.92: Let f(x) = x2 for o x 2 and let P = be a partition of [0, 2].
204
Then the subdivision of [0, 2] associated with P are , , , . Since x2 is an
increasing function on [0, 2], the minimum value of f on each subinterval is at the left end point
and the maximum value of f at the right end point. Thus
m1 = f(0) = 0, m2 = f , m3 = f(1) = 1, m4 = f
The base of each subinterval is xi = = . Thus the lower sum of f associated with P is
Lf(P) = 0. + . + 1. + . =
and the upper sum of f associated with P is
Uf(P) = . + 1. + . + 4. =
Therefore the area of the region R below the graph of f(x) = x2 above the x-axis on [0, 2] is
between and , i.e. Area(R) .
Definition 4.16: Let f be continuous on [a, b]. The definite integral of f from a to b is the
unique number I satisfying Lf(P) I Uf(P) for every partition P of [a, b].
This integral is denoted by
I=
The numbers a and b are called the lower and upper limits of integration, respectively.
Note that as the number of subdivisions of an interval [a, b] increases, the minimum and the
maximum values of f on [xi-1, xi] are close to each other. For each i from 1 to n if we take an
arbitrary number ti in [xi-1, xi], then we get the sum
Even though it is sometimes possible to calculate by finding formulas for lower and
upper sum we are to evaluate it here by the use of the Fundamental Theorem of Calculus.
For the moment we can conclude that if f is continuous and nonnegative on [a, b], then the area of
the region R between the graph of f and the x-axis on [a, b] is given by
Area(R) = .
205
a) =k
b) =
m(b – a) M(b – a)
= + - Additive Property
g) =- .
To develop a general method for evaluating without computing lower and upper sums
we shall state the most important theorem in calculus: The Fundamental Theorem of Calculus.
To this end let f(t) be continuous on [a, b]. Then f is integrable on [a, b] and for any x [a, b] the
In effect the Fundamental Theorem of Calculus states that the function F(x) is differentiable with
derivative f(x) thereby eliminating the integral by the derivative. It also shows us how to evaluate
the definite integral.
Theorem 4.22: (Fundamental Theorem of Calculus)
Let f(t) be continuous on [a, b] and for each x [a, b] let
F(x) =
206
Remarks: a) From (ii) to evaluate all we have to do is to find an anti-derivative of F
of f and find the difference of its values at a and at b. This is usually denoted by
or to mean F(b) – F(a).
b) If F is an anti-derivative of f, then F(x) + c, for any constant c is also an anti-derivative of
f. But since = (F(b) + c) – (F(a) + c) = F(b) – F(a) =
the constant c does not play any role in evaluating the definite integral. Thus we can
always take c = 0.
Example 4.93: Let f(x) = x2 for 0 x 2. Then F(x) = is an anti-derivative of f, so that
by the Fundamental Theorem of Calculus.
= = F(2) – F(0) = - = =
From our previous discussion, the area of the region R under the graph of f(x) = x 2 on [0, 2] above
a) b)
c) d)
c) = = - (0 + 0) = .
d) = = - (0 + 0 – 1) =
Remark: For functions that are given by more than one formula we evaluate the definite integral
using the additive property.
207
Solution: By definition |x + 1| =
y
Then by Additive Property, we have
= +
=- + x
Figure 4.23
=- + = =
- Change of Variable.
Solution: We have two possibilities to evaluate such a definite integral. One way is to find an
anti-derivative of and evaluate it between 2 and 3 by the Fundamental Theorem of
Calculus. The other is to use the change of variable formula and change the limits of integration
before integrating.
To this end, let u = g(x) = x2 – 4. Then du = 2xdx.
When x = 2, u = g(2) = 0 and when x = 3, u = g(3) = 5
Thus = =
= = -0= .
208
In the previous section we have seen that if f(x) 0 for all x [a, b] and if f is continuous on [a,
b], then gives the area of the region R below the graph of f, above the x-axis, between
the lines x = a and x = b. For instance, if f(x) = x 2 for 0 x 2, then the area of R as given in is
- If f(x) 0 on [a, b], then taking g(x) = -f(x) 0 for a x b, the area of the region R below
For instance, if f(x) = 2x for -2 x 0, then the area of the region R below the x-axis, above the
graph of f on [-2, 0] is given by
Now let f and g be continuous on [a, b], and assume that f(x) g(x) for a x b. Then the area
of the region R below the graph of f, above the graph of g, and between the lines x = a and x = b
is given by
A(R) =
Example 4.97: Find the area of the region bounded by f(x) = , g(x) = -x and line x = 9.
Solution. Sketching the graphs of y = f(x), y = g(x) and x = 9, the region R can be identified as
shown in Figure 4.24.
y
y=2
R 9 x
y = -x
Figure 4.24
It follows that
209
A(R) = + .
Exercise 4.4
c) 3 sinxdx f)
b) d)
a) c)
b) d)
b) d)
5. Find the area of the region R between the graph of f and the x-axis on the given interval
a) f(x) = x2 + 1 , on [1, 3]
b) f(x) = 2 + cosx, on
c) f(x) = , on [1, 4]
d) f(x) = |x| - 1, on [-1, 2]
6. Find the area of the region between the graphs of the following functions.
. a) f(x) = x2 and g(x) = 2 – x
210