MATH 223: Calculus II: Dr. Joseph K. Ansong
MATH 223: Calculus II: Dr. Joseph K. Ansong
MATH 223: Calculus II: Dr. Joseph K. Ansong
2 Dr. Ansong
Contents
3
Math 223 : Calculus II J.K.A
4 Dr. Ansong
Chapter 4
In this chapter, we will first study general exponential and general logarithmic
functions, and move on to consider special cases of these two functions: the
natural logarithmic function and the exponential function, and learn about
their graphs. We will delve into the proofs of some basic properties of these
two functions, and the behaviour of the functions at infinity and close to
the origin. The natural logarithmic and the exponential functions may be
represented as limits, this chapter addresses this aspect of the functions. The
chapter concludes by looking at logarithmic inequalities and limits, the scales
of infinity, that is, comparison of the magnitude of two functions, and finally,
how to differentiate logarithmic functions.
loga x = y ⇐⇒ ay = x; a > 0, a 6= 1.
The log function is the inverse of the exponential function, for example f (x) =
ax . Using the cancellation equations with f (x) = ax , f −1 (x) = loga x,
loga ax = x for every x ∈ R
aloga x = x for every x > 0.
1
Math 223 : Calculus II J.K.A
3. loga xr = r loga x
where r is any real number.
=⇒ x = am , y = an
=⇒ xy = an · am = am+n
The last line would be proved later from the properties of the general
exponential functions.
=⇒ x = am
xr = (am )r
2 Dr. Ansong
Math 223 : Calculus II J.K.A
Properties
1. Here are a first set of properties for the natural log function:
ln x = y ⇐⇒ ey = x
ln ex = x, x∈R
ln x
e =x
Note that if x = 1, we get
ln e = 1
The relation above is helpful for using calculators to compute the log-
arithm with any base. Another definition of the natural log is given by
using integrals, as shown below.
3 Dr. Ansong
Math 223 : Calculus II J.K.A
If x > 0, ln x can be interpreted as the area of the region under the graph
1
of y = on the interval [1, x]. Figure 4.1 gives illustrations of the above
t
definition.
Graph of ln x
(a) ln 1 = 0
4 Dr. Ansong
Math 223 : Calculus II J.K.A
(b) ln xy = ln x + ln y
(c) ln xy = ln x − ln y
(d) ln xr = r ln x
Proof. The proof in (a) is straightforward. For the proof of the expressions in
(b)-(d), you may use the approach used in the proof of the general logarithmic
functions; the proofs shown below rely on the derivative of the logarithmic
function which will be treated shortly.
Z x
1
(a) ln x = dt, =⇒ ln 1 = 0.
1 t
1 1
(b) Let F (x) = ln ax for a > 0. Then F 0 (x) = (a) = . But
ax x
d 1
(ln x) =
dx x
This implies that ln x and F (x) = ln ax differ by a constant, say c.
That is
ln ax = ln x + c
If x = 1 =⇒ c = ln a. Note that x = 1 is the intial value of ln x from
definition. Thus
ln ax = ln x + ln a
Since a can be any positive number, we can replace a by y to get
ln xy = ln x + ln y.
1
(c) Put x = in (b) to get
y
1
ln 1 = ln + ln y
y
1
=⇒ ln = − ln y
y
x 1 1
∴ ln = ln x · = ln x + ln = ln x − ln y.
y y y
5 Dr. Ansong
Math 223 : Calculus II J.K.A
ln xr = r ln x.
d x
(a ) = ax ln a (4.1)
dx
d 1
(loga x) = (4.2)
dx x ln a
Proof.
d x
(a ) = ax ln a
dx
Let a = eln a . Then
ax = e(ln a)x
d x x
(a ) = e(ln a)x · ln a = eln a · ln a
dx
d x
∴ (a ) = ax ln a
dx
Proof.
d 1
(loga x) =
dx x ln a
y
Let y = loga x. Then a = x.
d y
=⇒ (a ) = 1
dx
d y dy
=⇒ (a ) =1
dy dx
6 Dr. Ansong
Math 223 : Calculus II J.K.A
d 1
ln x =
dx x
A more general form of this relation would be shown later.
Example 1. (1) Expand the following expressions using the laws of loga-
rithms
√
2 3 x1/3 y 2/3
(a) ln (b) ln
5 z 1/2
Solution. (a) √
2 3 √
ln = ln 2 3 − ln 5
5
(b)
x1/3 y 2/3 1/3 2/3
− ln z 1/2
ln 1/2
= ln x y
z
= ln x1/3 + ln y 2/3 − ln z 1/2
1 2 1
= ln x + ln y − ln z
3 3 2
Example 2. Use the laws of logarithms to write the expression as the loga-
rithm of a single quantity.
(a) ln 4 + ln 6 − ln 12 (b) 3 ln 2 − 12 ln (x + 1)
24
Solution. (a) ln 4 + ln 6 − ln 12 = ln (4 × 6) − ln 12 = ln = ln 2
12
1 8
(b) 3 ln 2 − ln (x + 1) = ln 23 − ln (x + 1)1/2 = ln √
2 x+1
7 Dr. Ansong
Math 223 : Calculus II J.K.A
Solution. (a)
1 d
f (x) = ln (2x + 3) =⇒ f 0 (x) = (2x + 3)
2x + 3 dx
1 2
= (2) =
2x + 3 2x + 3
ln x
(b) g(x) = x+1
(x + 1) x1 − ln x
g 0 (x) =
(x + 1)2
x+1
x
− ln x (x + 1) − x ln x
= =
(x + 1)2 x(x + 1)2
(c) y = ln | cos x|
dy 1 sin x
= (− sin x) = − = − tan x
dx cos x cos x
Example 4.
8 Dr. Ansong
Math 223 : Calculus II J.K.A
√
(a) y = (2x + 1)2 (3x2 − 4)3 (c) y = x x
r
x−1
(b) y = 3 2
x +1
Solution. (a) y = (2x + 1)2 (3x2 − 4)3
=⇒ ln y = 2 ln (2x + 1) + 3 ln (3x2 − 4)
1 dy 2 3
=⇒ = (2) + 2 (6x)
y dx 2x + 1 3x − 4
4 18x
= + 2
2x + 1 3x − 4
dy 4 18x
· (2x + 1)2 (3x2 − 4)3
∴ = + 2
dx 2x + 1 3x − 4
r
3 x−1
(b) y =
x2 + 1
1/3
x−1
=⇒ y =
x2 + 1
1 1
=⇒ ln y = ln (x − 1) − ln (x2 + 1)
3 3
1 dy 1 1
=⇒ = − (2x)
y dx 3(x − 1) 3(x2 + 1)
1 2x
= −
3(x − 1) 3(x2 + 1)
√
(c) y = x x
Sorry, it’s an exercise! :)
9 Dr. Ansong
Math 223 : Calculus II J.K.A
f 0 (0) = ln y (4.4)
Thus, the derivative of f (x) = y x at x = 0 is ln y. Applying (4.4) in
(4.3) gives
yx − 1
ln y = lim
x→0 x
x
a −1
ln a = lim
x→0 x
10 Dr. Ansong
Math 223 : Calculus II J.K.A
(a) ax+y = ax · ay ax
(d) = ax−y
ay
(b) (ax )y = axy
a x ax
(c) (ab)x = ax bx (e) = x
b b
Proof. (a)
ax ay = ax+y
loga (ax · ay ) = loga ax + loga ay
= x + y = loga ax+y
ax · ay = ax+y
= y loga ax = xy loga a = xy
=⇒ loga (ax )y = loga axy
Since the logarithm is a one-to-one function, we get
(ax )y = axy
Remark. To prove the relation in (c), we first establish the following identity
dy 1
=
dx x ln a
Also let g = loga bx. Then
d g d dg
ag = bx =⇒ (a ) = b =⇒ (ag ) =b
dx dg dx
11 Dr. Ansong
Math 223 : Calculus II J.K.A
dg
=⇒ ag ln a ·=b
dx
dg b 1
=⇒ = =
dx bx ln a x ln a
Since dy/dx = dg/dx, y and g differ by a constant, say C. Thus
loga x = loga bx + C
Proof. We’re now ready to prove the relation in (c); (ab)x = ax bx . Taking
the lagarithm of both sides, we get
= x loga a + x loga b
= x (loga a + loga b)
= x loga (ab)
=⇒ loga ax bx = loga (ab)x
∴ ax bx = (ab)x .
0 f (x + h) − f (x) ax+h − ax
f (x) = lim = lim
h→0 h h→0 h
0 ah − 1
f (x) = ax lim .
h→0 h
0 ah − 1
Note that: f (0) = lim . Therefore
h→0 h
0 0
f (x) = f (0)ax
12 Dr. Ansong
Math 223 : Calculus II J.K.A
Remember:
yx − 1 ax − 1 ah − 1
ln y = lim =⇒ ln a = lim = lim
x→0 x x→0 x h→0 h
0
where f (0) = ln a. Therefore,
0
f (x) = ax ln a
Alternatively:
x
f (x) = ax = eln a = ex ln a
0 d
=⇒ f (x) = ex ln a · (x ln a) = ex ln a · (ln a)
dx
0
∴ f (x) = ax · (ln a)
Theorem 3. Show that
d u du
a = (ln a)au ·
dx dx
where a is a positive number (a 6= 1) and u is the differentiable function of
x.
Proof. Let y = au , then
d u d u du
(a ) = (a )
dx du dx
d u du
(a ) = au ln a
dx dx
d 1 du
Question: Show that loga u = · where u is the differentiable,
dx u ln a dx
a > 0(a 6= 1)
13 Dr. Ansong
Math 223 : Calculus II J.K.A
The number e
The number e is the number such that:
Z e
1
ln e = dt = 1
1 t
1
Figure 4.5: Graph of y =
t
e ≈ 2.718281828459
b) eln x = x ∀ x ∈ [0, ∞]
=⇒ x + 3 = e6 =⇒ x + 3 ≈ 403.43
∴ x ≈ 400.43
14 Dr. Ansong
Math 223 : Calculus II J.K.A
2) Solve e1−2x = 5
=⇒ 1 − 2x = ln 5 =⇒ 2x = 1 − ln 5
=⇒ 2x = 1 − 1.609 = −0.609
∴ x ≈ −0.305
0 ln(1 + h) 1 1
=⇒ f (1) = lim = lim ln(1 + h) = lim ln(1 + h) h
h→0 h h→0 h h→0
0 1 0
But f (x) = ⇒ f (1) = 1
x
1
=⇒ lim ln(1 + h) h = 1,
h→0
1
∴ lim (1 + h) h = e
h→0
Note that a similar expression for ex as a limit may be obtained if the sub-
stitution x = 1 is not made in the above derivation.
1
Let n = ⇒ n → ∞ as h → 0
h
n
1
∴ lim 1 + =e
n→∞ n
x n
Exercise. 1) Show that ex = lim 1+
n→∞ n
eh − 1
2) Prove that lim =1
h→0 h
15 Dr. Ansong
Math 223 : Calculus II J.K.A
1) ex ey = ex+y
ex
2) = ex−y
ey
3) (ex )r = exr
Proof. 1)
ex · ey = ex×y
=⇒ ln(ex · ey ) = ln ex + ln ey = x + y
=⇒ ln(ex ey ) = ln ex+y .
Since ln is one to one: ex ey = ex+y
ex
ex · e−y = ex−y =⇒ = ex−y
ey
d u du
(b) e = eu
dx dx
d x
Proof. (a) e = ex Let y = ex
dx
1 dy dy
ln y = x =⇒ = 1 =⇒ =y
y dx dx
d x
∴ (e ) = ex
dx
16 Dr. Ansong
Math 223 : Calculus II J.K.A
d u du
(b) e = eu · Let y = eu
dx dx
ln y = u(x)
1 dy du dy du
· = ⇒ =y
y dx dx dx dx
d u du
(e ) = eu
dx dx
e2x
a) f (x) =
1 + e−x
b) g(x) = ecos(x)
c) f (x) = x2 ln(e2x + 1)
d) g(t) = et ln t e). f (x) = 2x2
17 Dr. Ansong
Math 223 : Calculus II J.K.A
ax
Z
(3) ax dx = + c, a > 0, a 6= 1. We use
ln a
y = ax ⇒ ln y = x ln a
0
y 0
⇒ = ln a ⇒ y = ax ln a
y
d x
⇒ (a ) = ax ln a
dx Z
ax + c1 = (ln a) ax dx
ax
Z
x
a dx = +c
ln a
Examples
Z Z √ Z
1 ln x
Integrate the following: a). dx b). dx c). e5x dx
2x + 1 x
Z 2
ex
d). 2
dx
Z 1 x
ex R3 x
e). x
dx f ). 0
2 dx
0 1+e
Z
1
Solution. a) I = dx, Let u = 2x + 1 ⇒ du = 2dx
Z 2x
Z +1
1 1 1 1 1
I= du = du = ln |u| + c
u 2 2 u 2
1
∴ I= ln |2x + 1| + c
2
Z √
ln x
b) I = dx, Let u = ln x ⇒ du = x1 dx
x
√
Z Z
1 2 3
I= udu = u 2 du = u 2 + c
3
2 3
∴ I= (ln x) 2 + c
3
18 Dr. Ansong
Math 223 : Calculus II J.K.A
1 5x
∴ e +c
5
Z 2
ex
d). I = 2
dx, Let u = x2 ⇒ du = − x22 dx ⇒ − 12 du = dx
x2
Z x
Z
u 1 1 1
I= e − du = − eu du = − eu + c
2 2 2
1 2
∴ I = − e x +c
2
1
ex
Z
e). I = x
dx Let u = 1 + ex ⇒ du = ex dx
Z 1 x0 1 + e Z
1
e du 1
I= · x
= du ⇒ ln |u| ⇒ ln |1 + ex | ⇒ ln |1 + e1 | − ln |1 + e0 |
0 u e 0 u
1+e
∴ I = ln ≈ 0.6201
2
3
2x 3 23
Z
1 7
f ). I = 2x dx = = − =
ln 2 0 ln 2 ln 2 ln 2
0
7
∴ I=
ln 2
19 Dr. Ansong
Math 223 : Calculus II J.K.A
Solution. 1a)
log3 (2x + 3) > log3 (3x)
2x + 3 > 3x ⇒ x < 3
Also,
3
2x + 3 > 0 ⇒ x > −
2
And
3x > 0 ⇒ x > 0
Solution set: 0 < x < 3 . See Figure 4.6.
Figure 4.6:
2) 2 log49 (2x + 1) − 1 6 0
1 1
log49 (2x + 1) 6 ⇒ log49 (2x + 1) 6 log49 49
2 2
⇒ log49 (2x + 1) 6 log49 7 ⇒ 2x + 1 6 7 ⇒ x 6 3
1
Also: 2x + 1 > 0 ⇒ x > − 21 ∴ − < x 6 3
2
20 Dr. Ansong
Math 223 : Calculus II J.K.A
Example 7. 1. Use the definition of the natural log function to prove that,
for x > 0, x(1 + x) > (1 + x) ln(1 + x) > x. Hence show that ln(1 + x) >
x − x2 + x3 − x4 + · · · and that as
ln(1 + x)
x → 0, →1
x
Z 1+x
1
Solution. NB: ln(1 + x) = dt, for x > 0 ⇒ x + 1 > 1
1 t
1 1
Let 1 < t < 1 + x ⇒ < < 1.
1+x t
Integrating with respect to t gives
Z 1+x Z 1+x Z 1+x
1 1
dt < dt < dt
1 1+x 1 t 1
x
⇒ 1+x
< ln(1 + x) < x.......(1)
⇒ ln(1 + x) > x − x2 + x3 − x4 + · · ·
Also from (1):
1 ln(1 + x) 1 ln(1 + x)
< < 1 ⇒ lim < lim <1
1+x x x→0 1 + x x→0 x
ln(1 + x)
⇒ 1 < lim < 1.
x→0 x
ln(1+x) 1
∴ By the squeeze theorem: lim x
→ 1 ⇒ ln lim (1 + x) x ⇒ ln e = 1.
x→0 x→0
1
Exercise. 1. Show that for all x > 0, x − x2 < ln(1 + x), and for all x > 1,
2
x−1
we have < ln x < x − 1
x
21 Dr. Ansong
Math 223 : Calculus II J.K.A
22 Dr. Ansong
Chapter 5
f (x)
Definition 2. If lim f (x) = 0 and lim g(x) = 0, then the limit lim is
x→a x→a x→a g(x)
0
called an indeterminate form of the type .
0
f (x)
Definition 3. If lim f (x) = +∞ and lim g(x) = +∞, then lim is said
x→a x→a x→a g(x)
∞
to be an indeterminate form of the type .
∞
23
Math 223 : Calculus II J.K.A
∞
then
∞
0
f (x) f (x)
lim = lim 0 (5.1)
x→a g(x) x→a g (x)
24 Dr. Ansong
Math 223 : Calculus II J.K.A
1
2 1 1
(a) lim x sin 2 (c) lim+ − x
x→∞ 4x x→0 x e −1
√
(b) lim (x − x2 − 3x) (d) lim+ x ln x
x→∞ x→0
25 Dr. Ansong
Math 223 : Calculus II J.K.A
3x3 + 5
(1) lim
x→∞ 4x2 + x
3x + x52
=⇒ lim =∞
x→∞ 4 + 1
x
The limit going to infinity implies that the numerator, 3x3 + 5, is grow-
ing much faster than the denominator, 4x2 + x.
3x + 5
(2) lim
x→∞ 4x2 + 3x + 1
3/x + 5/x2
=⇒ lim =0
x→∞ 4 + 3/x + 1/x2
This implies that the denominator, in this case, is growing faster than
the numerator. Equivalently, we can say that the numerator is growing
more slowly than the denomintor.
3x3 + 5
(3) lim
x→∞ 4x3 + x
5
3+ x3 3
=⇒ lim 1 =
x→∞ 4 +
x2
4
Unlike the previous two examples, the numerator and denominator have
similar rates of growth, because the limit of their ratio is a constant.
In the examples, the limits are determined by the order of magnitude of the
polynomials in the numerator and denominator. In other words, the limits
could have been obtained if we considered only the term with highest order
of magnitude in the numerator and the denominator.
Motivational Questions
The main question to address is this: Apart from polynomials, is it possible
to determine the limit f (x)/g(x) of the two function f (x) and g(x) as x
approaches infinity or zero?
Why is this important? An answer to the question could tell us whether f (x)
is growing faster or slower than g(x). Think of the economies of two countries,
say Ghana and Nigeria, that are both growing very fast. Which economy is
growing more rapidly? Conversely, if both economies are decaying, can we
tell which one is decaying more slowly?
Consider the functions f (x) = x2 and g(x) = x. Notice that both func-
tions grow without bound as x becomes infinitely large (see Figure 5.1). But
f grows rapidly than g. In general, how can you tell which function is growing
26 Dr. Ansong
Math 223 : Calculus II J.K.A
(decaying) more rapidly (slowly) than the other? The following definitions
and theorems will help in answering the question above.
Definition 6. (Order of Magnitude) A function f (x) is said to be of the
f (x)
k-th order of magnitude if k → L 6= 0 as x → ∞, where L is a constant.
x
Definition 7. (Relative Rates of Growth) Let f, g : R → R, a R∗ (R∗ =
R ∪ {−∞, ∞}), and lim |f (x)| = lim |g(x)| = ∞.
x→a x→a
f (x)
a) We say f approaches ∞ on a higher order of magnitude than g if lim =
x→a g(x)
∞ or we can say that f (x) → ∞ faster than g(x), or g(x) → ∞ slower than
f.
b) We can say f approach ∞ on a lower order of magnitude than g(x) if
f (x)
lim = 0 or we can say that f (x) → ∞ slower than g(x) or g(x) → ∞
x→a g(x)
faster than f (x).
f (x)
c) We say f and g approaches ∞ on the same order of magnitude if lim =
x→a g(x)
C, C R, C 6= 0.
27 Dr. Ansong
Math 223 : Calculus II J.K.A
(3) Log functions, loga (x) for a > 0 and a 6= 1. All log functions approach
loga x ln(b)
∞ at the same rate, because = .
logb x ln(a)
If any of the above functions is multiplied by a non-zero constant , it
does not change the relative order of magnitude at which the function
approaches ∞. 5
Example
ex
1. lim = ∞, since ex grows faster than ln x as x → ∞.
x→∞ ln x
ln x
2. lim x = 0.
x→∞ e
NB: For a linear combination (sums and differences) of these functions, only
the dominant term matters.
Definition:Dominant term
Suppose f can be written as a linear combination of the functions {f1 , f2 , ..., fn }
and lim |f (x)| = ∞, where aR∗ . The dominant term of f is the function fi
x→a
which approaches ∞ on the highest order of magnitude. Denote this by f˜.
28 Dr. Ansong
Math 223 : Calculus II J.K.A
Solution
ex
x
x n
ln = ln e − ln x = x − n ln x = ln x − n
xn ln x
ex x
∴ lim ln = lim ln x · lim −n =∞·∞=∞
x→∞ xn x→∞ x→∞ ln x
ex
∴ lim n = ∞
x→∞ x
2. Show that the function ln x increases more slowly than any positive inte-
ln x
gral power of x. That is: lim n = 0, x > 0, n > 1 (n is an integer).
x→∞ x
Solution x
1 1
Rx 1 Rx 1 R x −1/2 1
NB: If t > 1, 6 1 ⇒ ln x = 1 dt 6 1 1 dt = 1 t dt = 2t 2 =
t t2 t t2 1
1
2x 2 − 2
1 ln x 2 2
∴ ln x 6 2x 2 − 2 ⇒ 6 1 −
x x2 x
ln x ln x 2 2 ln x
x>1:0< n 6 6 1 − . As x → ∞, 0 < lim n 6 0.
x x x2 x x→∞ x
ln x
∴ By squeeze(sandwich) theorem: lim n = 0. This implies: xn > ln x.
x→∞ x
29 Dr. Ansong
Math 223 : Calculus II J.K.A
Examples
d k d
1. Prove the following: a). (ln x)k = b). (ln ln x)k =
dx x(ln x)1−k dx
k
x ln x(ln ln x)1−k
ln ln x ln2 x ln3 x
2. Find: a) lim = lim b) lim
x→∞ ln x x→∞ ln x x→∞ ln x
3.Determine
√ √which function has a higher order of magnitude: a). f (x) =
3
x, g(x) = √x √ √
b). f (x) = ln x, g(x) = 3 ln x c). f (x) = x, g(x) = ln3 x
x
4. Arrange the functions according to their order of magnitude: g = √ ,
√ ln x
x ln x x ln ln x x ln ln ln x
f= ,h= √ ,q= √
ln ln x ln x ln ln x
1 3−x 4x2 − 9x − 9
5. Find: a). lim b). lim c). lim
x→−4 (x + 4)4 x→3 (x − 3)4 x→3 x−3
√ √
6. Show that for large values of x, x > e ln x > ln3 x
2x3 − x2 + x
7. lim
x→0 x3 + 2x
2x3 − x2 + x + 1
8. lim
x→0 x3 + 2x + 2
30 Dr. Ansong