2.7: The Exponential and Logarithm Functions
( \newcommand{\kernel}{\mathrm{null}\,}\)
There are many applications in which it is necessary to find a function y of a variable t which has the property that
dydt=ky
for some constant real number k. Examples include modeling the growth of certain animal populations, where y is the size of the population at time t and k>0 depends on the rate at which the population is growing, and describing the decay of a radioactive substance, where y is the amount of a radioactive material present at time t and k<0 depends on the rate at which the element decays. We will first consider that case k=1; that is, we will look for a function y=f(t) with the property that f′(t)=f(t).
2.7.1 The Exponential Function
Suppose f is a differential function on (−∞,∞) with the property that f′(t)=f(t) for all t (one may show that such a function does indeed exist, although we will not go into the details here). Now f′(t)=f(t) implies, by the fundamental theorem of calculus, that
∫t0f(x)dx=∫t0f′(x)dx=f(t)−f(0)
for all t. The value of f(0 is arbitrary; we will find it convenient to take f(0)=1. That is, we are now looking for a function f which satisfies
f(t)=1+∫t0f(x)dx.
Suppose we divide [0,t] into N subintervals of equal length Δx=tN, where N is a positive integer, and let x0,x1,x2,…,xN be the endpoints of these intervals. Now for any i=1,2,…,N, using (2.7.3),
f(xi)=1+∫xi0f(x)dx=1+∫xi−10f(x)dx+∫xix1−1f(x)dx=f(xi−1)+∫xix1−1f(x)dx.
Moreover, for small Δx,
∫xix1−1f(x)dx≈f(xi−1)Δx,
and so we have
f(xi)≈f(xi−1)+f(xi−1)Δx=f(xi−1)(1+Δx).
Hence we have
f(x0)=f(0)=1f(x1)≈f(x0)(1+Δx)=1+Δxf(x2)≈f(x1)(1+Δx)≈(1+Δx)2f(x3)≈f(x2)(1+Δx)≈(1+Δx)3f(x4)≈f(x3)(1+Δx)≈(1+Δx)4⋮⋮f(xN)≈f(xN−1)(1+Δx)≈(1+Δx)N
Now xN=t and Δx=tN, so we have
f(t)≈(1+tN)N.
Moreover, if we followed the same procedure with N infinite and dx=tN, we should expect (although we have not proved)
f(t)≃(1+tN)N.
We will let e=f(1). That is,
e=sh(1+1N)N,
where N is any positive infinite integer. We call e Euler's number. Now if t is any real number, then
f(t)=(1+tN)N=((1+1Nt)Nt)t=et,
where we have used the fact that Nt is infinite since N is infinite and t is finite. (Note, however, that Nt is not an integer, as required in (2.7.16). The statement is nevertheless true, but this is a detail which we will not pursue here.) Thus
the function
f(t)=et
has the property that f′(t)=f(t), that is,
ddtet=et.
In fact, one may show that f(t)=et is the only function for which f(0)=1 and f′(t)=f(t). We call this function the exponential function, and sometimes write exp(t) for et.
It has been shown that e is an irrational number. Although, like π, we may not express e exactly in decimal notation, we may use (2.7.16) to find approximations, replacing the infinite N with a large finite value for N. For example, with N=200,000, we find that
e≈(1+1200000)200000≈2.71828,
which is correct to 5 decimal places.
Example 2.7.1
If f(t)=e5t, then f is the composition of h(t)=5t and g(u)=eu. Hence, using the chain rule,
f′(t)=g′(h(t))h′(t)=e5t⋅5=5e5t. In general, if h(t) is differentiable, then, by the chain rule, ddteh(t)=h′(t)eh(t).
Example 2.7.2
If f(x)=6e−x2, then
f′(x)=−12xe−x2.
Exercise 2.7.1
Find the derivative of g(x)=12e−7x.
- Answer
-
g′(x)=−84e−7x
Exercise 2.7.2
Find the derivative of f(t)=3t2e−t.
- Answer
-
f′(t)=(6t−3t2)e−t
Example 2.7.3
Let f(t)=et and g(t)=e−t. since et>0 for all t, we have f′(t)=et>0 and f′′(t)=et>0 for all t, and so f is increasing on (−∞,∞) and the graph of f is concave upward on (−∞,∞). On the other hand, g′(t)=−e−t<0 and g′′(t)=e−t>0 for all t, so g is decreasing on (−∞,∞) and the graph of g is concave upward on (−∞,∞). See Figure 2.7.1.
Of course, it follows from (2.7.19) that ∫etdt=et+c.
Example 2.7.4
From what we have seen with the examples of derivatives above, we have
∫10e−tdt=−e−t|10=−e−1+e0=1−e−1≈0.6321.Example 2.7.5
To evaluate
∫xe−x2dx, we will use the change of variable u=−x2du=−2xdx. Then ∫xe−2dx=−12∫eudu=−12eu+c=−12e−x2+c.
Example 2.7.6
To evaluate
∫xe−2xdx, we will use integration by parts: u=xdv=e−2xdxdu=dxv=−12e−2x. Then ∫xe−2xdx=−12xe−2x+12∫e−2xdx=−12xe−2x−14e−2x+c.
Exercise 2.7.3
Evaluate ∫405e−2xdx.
- Answer
-
∫405e−2xdx=52−52e−8≈2.4992
Exercise 2.7.4
Evaluate ∫10x2e−x3dx.
- Answer
-
∫10x2e−x3dx=13(1−e)≈0.2107
Exercise 2.7.5
Evaluate ∫x2e−xdx.
- Answer
-
∫x2e−xdx=−2e−x−2xe−x−x2e−x+c
Note that if y=aekt, where a and k are any real constants, then
dydt=kaekt=ky.
That is, y satisfies the differential equation (2.7.1) with which we began this section. We will consider example applications of this equation after a discussion of the logarithm function, the inverse of the exponential function.
2.7.2 The Logarithm Function
The logarithm function is the inverse of the exponential function. That is, for a positive real number x,y=log(x), read y is the logarithm of x, if and only if ey=x. In particular, note that for any positive real number x,
elog(x)=x,
and for any real number x,
log(ex)=x.
Also, since e0=1, it follows that log(1)=0.
Since log(x) is the power to which one must raise e in order to obtain x, logarithms inherit their basic properties from the properties of exponents. For example, for any positive real numbers x and y,
log(xy)=log(x)+log(y)
since
elog(x)+log(y)=elog(x)elog(y)=xy.
Similarly, for any positive real number x and any real number a,
log(xa)=alog(x)
since
ealog(x)=(elog(x))a=xa.
Exercise 2.7.6
Verify that for any positive real numbers x and y,
log(xy)=log(x)−log(y). Note in particular that this implies that log(1y)=−log(y). To find the derivative of the logarithm function, we first note that if y=log(x), then ey=x, and so ddxey=ddxx. Applying the chain rule, it follows that eydydx=1. Hence dydx=1ey=1x.
Theorem 2.7.1
For any real number x>0,
ddxlog(x)=1x.
Example 2.7.7
Since, for all x>0
ddxlog(x)=1x>0 and d2dx2log(x)=−1x2<0, the function y=log(x) is increasing on (0,∞) and its graph is concave downward on (0,∞). See Figure 2.7.2.
Example 2.7.8
If f(x)=log(x2+1), then, using the chain rule,
f′(x)=1x2+1ddx(x2+1)=2xx2+1.
Exercise 2.7.7
Find the derivative of f(x)=log(3x+4).
- Answer
-
f′(x)=33x+4
Exercise 2.7.8
Find the derivative of y=(x+1)log(x+1).
- Answer
-
dydx=1+log(x+1)
Using the fundamental theorem of calculus, it now follows that, for any x>0,
∫x11tdt=log(t)|x1=log(x)−log(1)=log(x).
This provides a geometric interpretation of log(x) as the area under the graph of y=1t from 1 to x. For example, log(10) is the area under the graph of y=1t from 1 to 10 (see Figure 2.7.3).
Example 2.7.9
We may now complete the example, discussed in Example 2.5.8 and continued in Example 2.6 .19 , of finding the length L of the graph of y=x2 over the interval [0,1]. In those examples we found that
L=∫10√1+4x2dx=√52+14∫2+√511wdw. Now we see that ∫2+√511wdw=log(w)|2+√51=log(2+√5), and so L=√52+14log(2+√5). Rounding to four decimal places, this gives us L≈1.4789, the same approximation we obtained in Example 2.5.8. Note, however, the advantage of having an exact impression for the answer: We may use the exact expression to easily approximate L to however many digits we desire, whereas we are unsure of the precision of our original approximate result, and would need to recalculate the approximating sum whenever we wanted to try to improve upon our accuracy. Moreover, our procedure for finding the expression for L may be extended easily to find an expression for the length of any segment of the parabola y=x2.
Example 2.7.10
To evaluate
∫10x1+x2dx, we first make the change of variable u=1+x2du=2xdx. Then ∫10x1+x2dx=12∫211udu=12log(u)|21=log(2)2.
Example 2.7.11
Evaluating
∫101log(x)dx provides an interesting application of integration by parts. If we let u=log(x)dv=dxdu=1xdxv=x, then ∫101log(x)dx=xlog(x)|101−∫101dx=10log(10)−9.
Example 2.7.12
We could use the change of variable u=3x+2 to evaluate
∫5043x+2dx, or just make the appropriate correction for the chain rule: ∫5043x+2dx=43log(3x+2)|50=43(log(17)−log(2))=43log(172).
Exercise 2.7.9
Evaluate ∫201x+1dx.
- Answer
-
∫201x+1dx=log(3)
Exercise 2.7.10
Evaluate ∫2−1x3x2+4dx.
- Answer
-
∫2−1x3x2+4dx=16log(167)
Exercise 2.7.11
Evaluate ∫21xlog(x)dx.
- Answer
-
∫21xlog(x)dx=2log(2)−34
Exercise 2.7.12
Evaluate ∫1−1√1+x2dx.
- Answer
-
∫1−1√1+x2dx=√2+log(1+√2)
Exercise 2.7.13
Evaluate ∫1−11√1+x2dx.
- Answer
-
∫1−11√1+x2dx=2log(1+√2)
It is now possible to extend the power rule for differentiating xn. Suppose n≠0 is a real number and note that, for x>0,
xn=elog(xn)=enlog(x).
Then
ddxxn=ddxenlog(x)=enlog(x)ddxnlog(x)=nxenlog(x)=nxxn=nxn−1.
Thus we have our final form of the power rule.
Theorem 2.7.1
For any real number n≠0, if x>0,
ddxxn=nxn−1.
Example 2.7.13
If f(x)=xπ, then f′(x)=πxπ−1.
Exercise 2.7.14
Find
ddxπx by first writing πx=exlog(π). How does this result compare with the result of the previous example?
- Answer
-
ddxπx=(log(π))πx
2.7.3 Some Applications
As mentioned at the beginning of this section, there are many applications in which one desires to find a function y which, for some constant k, satisfies the differential equation
dydt=ky.
Such an equation arises whenever the desired quantity grows, or decreases, at a rate which is proportional to its current value. As we saw above, a function of the form
y=αekt
satisfies this equation for any real constant α. Moreover, it may be shown that any solution must be of this form.
For example, (2.7.40) is used to model radioactive decay. That is, if one begins with y0 grams of a radioactive element and y is the amount of the element which remains after t years, then there is some constant k (which depends on the particular element being considered) for which
dydt=ky.
It follows that, for some real number α,
y=αekt.
Since we are given that y=y0 when t=0, it follows that
y0=y(0)=αe0=α.
Hence
y=y0ekt.
Now suppose t1<t2 are such that y at time t2 is one-half of y at time t1. Then
12y0ekt1=y0ekt2.
Thus
ekt1=2ekt2,
and so
2=ekt1ekt2=ek(t1−t2).
Hence
log(2)=log(ek(t1−t2))=k(t1−t2),
from which it follows that
t2−t1=−log(2)k.
Note that the right-hand side of (2.7.50) does not depend on t1, and so the time required for one-half of a radioactive element to deeay does not depend on the initial amount of the element. We call this time the half-life of the element.
Typically the rate of decay of a radioactive element is expressed in terms of its half-life. From (2.7.50), we see that if the half-life of a particular element is T, then the decay rate of the element is
k=−log2T.
Example 2.7.14
Carbon-14 is a naturally occurring radioactive isotope of carbon with a half-life of 5730 years. A living organism will maintain constant level of carbon-14, which will begin to decay one the organism dies and is buried. Because of this, the amount of carbon-14 in the remains of an organism may be used to estimate its age. For example, suppose a piece of wood found buried at an archaeological site has 14% of its original carbon-l4. If T is the number of years since the wood was buried and y0 is the original amount of carbon-14 in the wood, then
0.14y0=y0ekT, where, from (2.7.51), k=−log(2)5730. It follows that 0.14=ekT, and so kT=log(0.14). Thus T=log(0.14)k=−5730log(0.14)log(2)≈16,253 years.
Exercise 2.7.15
Suppose a piece of wood buried at an archaeological site has 23% of its original carbon-14. For how many years has the wood been buried?
- Answer
-
12,149 years
Exercise 2.7.16
Suppose a radioactive element has a half-life of 24,065 years. How many years will it take for a given sample to decay to the point that only 10% of the original amount remains?
- Answer
-
79,942 years
he differential equation (2.7.40) also serves in some situations as a simple model for population growth. Suppose, for example, that y is the size of a population of a certain species of animal over a specified habitat. In the absence of any extraneous limits on the size of the population (such as a limitation on the food supply, we would expect the rate of growth of the population to be proportional to the current population; that is, we would expect y to satisfy (2.7.40) for some constant k. In particular, if y0, the size of the population at some initial time and y is the size of the population t year later, then
y=y0ekt.
Now suppose we know the population is y1 at some time t1>0. Then
y1=y0ekt1,
and so, after dividing through by y0 and taking the logarithm of both sides,
k=1t1log(y1y0).
Example 2.7.15
Suppose that a certain habitat initially holds a population of 1000 deer, and that five years later the population has grown to 1200 deer. If we let y be the size of the population after t years, and assuming no constraints on the growth of the population, we would have
y=1000ekt, where k=15log(12001000)=log(1.2)5. Then, for example, this model would predict a population of y(10)=1000e10k=1000e2log(1.2)=1000elog(1.22)=(1000)(1.2)2=1440 deer after five more years.
If y is the size of a population of animals, we call the differential equation
dydt=ky,
and the resulting solution,
y=y0ekt,
the natural growth model. Although often relatively accurate over small time intervals, this model is clearly unrealistic for any extended period of time as it predicts an unbounded growth. Even in the best of situations, other factors, such as availability of food and shelter, will eventually come into play.
The logistic model introduces a variation in the basic model (2.7.40) which factors in the limiting effect of space and food. In this case, we suppose that there is an upper bound, say M, to the size of the population which the habitat can sustain and that the rate of growth of the population decreases as the size of the population approaches this limiting value. More precisely, let k be the natural rate of growth of the population, that is, the rate of growth if there are no constraining factors, or when the size of the population is small compared with M, and let y be the size of the population at time t. Then we suppose k is decreased by a factor of 1−yM, that is, the proportion of room left for growth. The resulting differential equation for the logistic model is
dydt=ky(1−yM)=kMy(M−y)=βy(M−y),
where β=kM.
To solve (2.7.57), we first rewrite it using s for the independent variable, that is, as
dyds=βy(M−y),
and then divide through both sides by y(M−y) to obtain
1y(M−y)dyds=β.
Next, we integrate both sides of this equation from 0 to some fixed time t:
∫t01y(M−y)dydsds=∫t0βds.
For the right hand side of (2.7.60), we have simply
∫t0βds=βt.
For the left-hand side, we begin with the change of variable
u=ydu=dydsds,
from which we obtain
∫t01y(M−y)dydsds=∫yy01u(M−u)du,
where we have again used y0 to denote the size of the population at time s=0 (and noting that y is the size of the population when s=t ). We assume that 0<y0<M and 0<y<M; that is, we assume that the populations involved are positive and do not exceed the maximum sustainable population.
To evaluate (2.7.63), we rely upon a result involving what are known as partial fraction decompositions: There exist real numbers A and B such that
1u(M−u)=Au+BM−u.
To find A and B, we note that (2.7.64) implies that
1u(M−u)=A(M−u)u(M−u)+Buu(M−u)=A(M−u)+Buu(M−u).
It follows that, for all values of u,
1=A(M−u)+Bu.
In particular, when u=0 we have 1=AM, and when u=M we have 1=BM.Hence
A=1M and B=1M,
and so
1u(M−u)=1M1u+1M1M−u.
Hence we now have
∫yy01u(M−u)du=1M∫yy01udu+1M∫yy01M−udu=1Mlog(u)|yy0−1Mlog(M−u)|yy0=1M(log(y)−log(y0)−log(M−y)=1Mlog(y(M−y0)y0(M−y)).
Combining (2.7.60),(2.7.61), and (2.7.69), we have
βMt=log(y(M−y0)y0(M−y)),
which now need to solve for y. To begin, exponentiate both sides to obtain
eβMt=y(M−y0)y0(M−y).
It follows that
y(M−y0)=eβMty0(M−y)=y0MeβMt−y0yeβMt,
and so
y0MeβMt=y(M−y0)+y0yeβMt=(M+y0(eβMt−1))y.
Thus
y=y0MeβMt(M+y0(eβMt−1)).
If we divide the numerator and denominator of the right-hand side by eβMt, we have
y=y0MMe−βMt+y0−y0e−βMt,
from which we obtain our final form
y=y0My0+(M−y0)e−βMt.
Note that when t=0,(2.7.76) reduces to y=y0, as it should given our initial condition, and when t is infinite, e−βMt≃0, and so y=M. Hence y0≤y<M for all t, with y approaching M as t grows.
Recalling that β=kM, where k is the natural rate of growth of the population, we may rewrite (2.7.76) as
y=y0My0+(M−y0)e−kt.
Example 2.7.16
In our previous example, where y represented the number of deer in a certain habitat after t years, we found
k=log(1.2)5. Now suppose the habitat ean support no more than 20,000 deer. Then the logistic model would give us z=(1000)(20000)1000+(20000−1000)ekt=200001+19e−kt for the number of deer after t years. After ten years, this model would predict a population of z(10)=200001+19e−10k≈1409deer, only slightly less than the 1440 predicted by the natural growth model. However, the differences between the two models become more pronounced with time. For example, after forty years, the natural growth model predicts y(40)=1000e40k≈4300 deer,
while the logistic model predicts
z(40)=200001+19e−40k≈3691deer and in 100 years, the natural growth model predicts y(100)=1000e100k≈38338deer, while the logistic model predicts only z(100)=200001+19e−100k≈13373 deer. Of course, over time the natural growth model predicts a population which grows without any bound, whereas the logistic model predicts that the population, while always increasing, will never surpass 20,000. See Figure 2.7.4.
In evaluating (2.7.63) we made use of a partial fraction decomposition. More generally, suppose p and q are polynomials, the degree of p is less than the degree of q, and q factors completely into distinet linear factors, say,
q(x)=(a1x+b1)(a2x+b2)⋯(anx+bn).
Then it may be shown that there exist consants A1,A2,…,An for which
p(x)q(x)=A1a1x+b2+A2a2x+b2+⋯+Ananx+bn.
The evaluation of
∫bap(x)q(x)dx,
for any real numbers a and b for which q(x)≠0 for all x in [a,b], then follows easily.
Example 2.7.17
To evaluate
∫10xx2−4dx, we first note that, since x2−4=(x−2)(x+2), there exist constants A and B for which xx2−4=Ax−2+Bx+2. It follows that xx2−4=A(x+2)+B(x−2)x2−4, and so x=A(x+2)+B(x−2) for all values of x. In particular, when x=2 we have 2=4A, and when x=−2 we have −2=−4B. Hence A=12 and B=12, and so xx2−4=121x−2+121x+2. And so we have ∫10xx2−4dx=12∫101x−2dx+12∫101x+2dx. Now 12∫101x+2dx=12log(x+2)|10=12(log(3)−log(2)), but the first integral requires a bit more care because x−2<0 for 0≤x≤1.If we make the change of variables, u=−(x−2)du=−dx, then, since x−2=−u, 12∫101x−2dx=12∫121udu=−12∫211udu=−12log(u)|21=−12log(2). Hence ∫10xx2−1dx=12(log(3)−log(2))−12log(2)=12log(3)−log(2).
Exercise 2.7.19
Evaluate ∫2−219−x2dx.
- Answer
-
∫2−219−x2dx=13log(5)
Exercise 2.7.20
Evaluate ∫10x+4x2+3x+2dx.
- Answer
-
∫10x+14x2+3x+2dx=5log(2)−2log(3)