Write the definition of the natural logarithm as an integral.
Recognize the derivative of the natural logarithm.
Integrate functions involving the natural logarithmic function.
Define the number \(e\) through an integral.
Recognize the derivative and integral of the exponential function.
Prove properties of logarithms and exponential functions using integrals.
Express general logarithmic and exponential functions in terms of natural logarithms and exponentials.
We already examined exponential functions and logarithms in earlier chapters. However, we glossed over some key details in the previous discussions. For example, we did not study how to treat exponential functions with exponents that are irrational. The definition of the number e is another area where the previous development was somewhat incomplete. We now have the tools to deal with these concepts in a more mathematically rigorous way, and we do so in this section.
For purposes of this section, assume we have not yet defined the natural logarithm, the number \(e\), or any of the integration and differentiation formulas associated with these functions. By the end of the section, we will have studied these concepts in a mathematically rigorous way (and we will see they are consistent with the concepts we learned earlier). We begin the section by defining the natural logarithm in terms of an integral. This definition forms the foundation for the section. From this definition, we derive differentiation formulas, define the number \(e\), and expand these concepts to logarithms and exponential functions of any base.
Clearly, this does not work when \(n=−1,\) as it would force us to divide by zero. So, what do we do with \(\displaystyle ∫\dfrac{1}{x}\,dx\)? Recall from the Fundamental Theorem of Calculus that \(\displaystyle ∫^x_1\dfrac{1}{t}dt\) is an antiderivative of \(\dfrac{1}{x}.\) Therefore, we can make the following definition.
Definition: The Natural Logarithm
For \(x>0\), define the natural logarithm function by
\[\ln x=∫^x_1\dfrac{1}{t}\,dt. \nonumber \]
For \(x>1\), this is just the area under the curve \(y=\dfrac{1}{t}\) from \(1\) to \(x\). For \(x<1\), we have
so in this case it is the negative of the area under the curve from \(x\) to \(1\) (see the following figure).
Notice that \(\ln 1=0\). Furthermore, the function \(y=\dfrac{1}{t}>0\) for \(x>0\). Therefore, by the properties of integrals, it is clear that \(\ln x\) is increasing for \(x>0\).
Properties of the Natural Logarithm
Because of the way we defined the natural logarithm, the following differentiation formula falls out immediately as a result of to the Fundamental Theorem of Calculus.
Definition: Derivative of the Natural Logarithm
For \(x>0\), the derivative of the natural logarithm is given by
\[ \dfrac{d}{dx}\Big( \ln x \Big) = \dfrac{1}{x}. \nonumber \]
Corollary to the Derivative of the Natural Logarithm
The function \(\ln x\) is differentiable; therefore, it is continuous.
A graph of \(\ln x\) is shown in Figure. Notice that it is continuous throughout its domain of \((0,∞)\).
Example \(\PageIndex{1}\): Calculating Derivatives of Natural Logarithms
Apply the differentiation formula just provided and use the chain rule as necessary.
Answer
a. \(\dfrac{d}{dx}\Big(\ln (2x^2+x)\Big)=\dfrac{4x+1}{2x^2+x}\)
b. \(\dfrac{d}{dx}\Big((\ln (x^3))^2\Big)=\dfrac{6\ln (x^3)}{x}\)
Note that if we use the absolute value function and create a new function \(\ln |x|\), we can extend the domain of the natural logarithm to include \(x<0\). Then \(\dfrac{d}{dx}\Big( \ln x \Big)=\dfrac{1}{x}\). This gives rise to the familiar integration formula.
Integral of \(\frac{1}{u} \, du\)
The natural logarithm is the antiderivative of the function \(f(u)=\dfrac{1}{u}\):
\[∫\dfrac{1}{u}\,du=\ln |u|+C. \nonumber \]
Example \(\PageIndex{2}\): Calculating Integrals Involving Natural Logarithms
Calculate the integral \(\displaystyle ∫\dfrac{x}{x^2+4}\,dx.\)
Solution
Using \(u\)-substitution, let \(u=x^2+4\). Then \(du=2x\,dx\) and we have
Although we have called our function a “logarithm,” we have not actually proved that any of the properties of logarithms hold for this function. We do so here.
Properties of the Natural Logarithm
If \(a,\, b>0\) and \(r\) is a rational number, then
\(\ln 1=0\)
\(\ln (ab)=\ln a+\ln b\)
\(\ln \left(\dfrac{a}{b}\right)=\ln a−\ln b\)
\(\ln \left(a^r\right)=r\ln a\)
Proof
i. By definition, \(\displaystyle \ln 1=∫^1_1\dfrac{1}{t}\,dt=0.\)
Use \(u-substitution\) on the last integral in this expression. Let \(u=t/a\). Then \(du=(1/a)dt.\) Furthermore, when \(t=a,\, u=1\), and when \(t=ab,\, u=b.\) So we get
Use properties of logarithms to simplify the following expression into a single logarithm:
\( \ln 8−\ln 2−\ln \left(\tfrac{1}{4}\right)\)
Hint
Apply the properties of logarithms.
Answer
\(4\ln 2\)
Defining the Number e
Now that we have the natural logarithm defined, we can use that function to define the number \(e\).
Definition: \(e\)
The number \(e\) is defined to be the real number such that
\[\ln e=1\nonumber \]
To put it another way, the area under the curve \(y=1/t\) between \(t=1\) and \(t=e\) is \(1\) (Figure). The proof that such a number exists and is unique is left to you. (Hint: Use the Intermediate Value Theorem to prove existence and the fact that \(\ln x\) is increasing to prove uniqueness.)
The number \(e\) can be shown to be irrational, although we won’t do so here (see the Student Project in Taylor and Maclaurin Series). Its approximate value is given by
\( e≈2.71828182846.\)
The Exponential Function
We now turn our attention to the function \(e^x\). Note that the natural logarithm is one-to-one and therefore has an inverse function. For now, we denote this inverse function by \(\exp x\). Then,
\[ \exp(\ln x)=x \nonumber \]
for \(x>0\) and
\[ \ln (\exp x)=x \nonumber \]
for all \(x\).
The following figure shows the graphs of \(\exp x\) and \(\ln x\).
We hypothesize that \(\exp x=e^x\). For rational values of \(x\), this is easy to show. If \(x\) is rational, then we have \(\ln (e^x)=x\ln e=x\). Thus, when \(x\) is rational, \(e^x=\exp x\). For irrational values of \(x\), we simply define \(e^x\) as the inverse function of \(\ln x\).
Definition
For any real number \(x\), define \(y=e^x\) to be the number for which
\[\ln y=\ln (e^x)=x. \nonumber \]
Then we have \(e^x=\exp x\) for all \(x\), and thus
\(e^{\ln x}=x\) for \(x>0\) and \(\ln (e^x)=x\)
for all \(x\).
Properties of the Exponential Function
Since the exponential function was defined in terms of an inverse function, and not in terms of a power of \(e\) we must verify that the usual laws of exponents hold for the function \(e^x\).
Properties of the Exponential Function
If \(p\) and \(q\) are any real numbers and \(r\) is a rational number, then
\(e^pe^q=e^{p+q}\)
\(\dfrac{e^p}{e^q}=e^{p−q}\)
\((e^p)^r=e^{pr}\)
Proof
Note that if \(p\) and \(q\) are rational, the properties hold. However, if \(p\) or \(q\) are irrational, we must apply the inverse function definition of \(e^x\) and verify the properties. Only the first property is verified here; the other two are left to you. We have
As with part iv. of the logarithm properties, we can extend property iii. to irrational values of \(r\), and we do so by the end of the section.
We also want to verify the differentiation formula for the function \(y=e^x\). To do this, we need to use implicit differentiation. Let \(y=e^x\). Then
We close this section by looking at exponential functions and logarithms with bases other than \(e\). Exponential functions are functions of the form \(f(x)=a^x\). Note that unless \(a=e\), we still do not have a mathematically rigorous definition of these functions for irrational exponents. Let’s rectify that here by defining the function \(f(x)=a^x\) in terms of the exponential function \(e^x\). We then examine logarithms with bases other than e as inverse functions of exponential functions.
Definition: Exponential Function
For any \(a>0,\) and for any real number \(x\), define \(y=a^x\) as follows:
\[y=a^x=e^{x \ln a}. \nonumber \]
Now \(a^x\) is defined rigorously for all values of \(x\). This definition also allows us to generalize property iv. of logarithms and property iii. of exponential functions to apply to both rational and irrational values of \(r\). It is straightforward to show that properties of exponents hold for general exponential functions defined in this way.
Let’s now apply this definition to calculate a differentiation formula for \(a^x\). We have
The corresponding integration formula follows immediately.
Derivatives and Integrals Involving General Exponential Functions
Let \(a>0.\) Then,
\[\dfrac{d}{dx}\Big(a^x\Big)=a^x \ln a \nonumber \]
and
\[∫a^x\,dx=\dfrac{1}{\ln a}a^x+C. \nonumber \]
If \(a≠1\), then the function \(a^x\) is one-to-one and has a well-defined inverse. Its inverse is denoted by \(\log_a x\). Then,
\( y=\log_a x\) if and only if \(x=a^y.\)
Note that general logarithm functions can be written in terms of the natural logarithm. Let \(y=\log_a x.\) Then, \(x=a^y\). Taking the natural logarithm of both sides of this second equation, we get
Thus, we see that all logarithmic functions are constant multiples of one another. Next, we use this formula to find a differentiation formula for a logarithm with base \(a\). Again, let \(y=\log_a x\). Then,
The earlier treatment of logarithms and exponential functions did not define the functions precisely and formally. This section develops the concepts in a mathematically rigorous way.
The cornerstone of the development is the definition of the natural logarithm in terms of an integral.
The function \(e^x\) is then defined as the inverse of the natural logarithm. General exponential functions are defined in terms of \(e^x\), and the corresponding inverse functions are general logarithms.
Familiar properties of logarithms and exponents still hold in this more rigorous context.