Skip to main content

Section 9.4 The Derivative of Exponential Functions

We learned that the elementary exponential functions are of the form

\begin{equation*} \exp_b(x) = b^x \end{equation*}

for positive real numbers \(b\text{.}\) Because exponential functions involve powers, a common mistake students make is to use the power rule of derivatives. That rule only applies to power functions, where the independent variable is the base and the exponent is a constant. We will need a new rule for exponential functions.

In this section, we explore the derivative rule associate with exponential functions. As this is a new rule, we return to the definition of the derivative. We will learn that the derivative of an exponential function is proportional to the value of the function itself. The constant of proportionality is found using the base of the exponential.

Subsection 9.4.1 Elementary Exponential Functions

The definition of the derivative allows us to develop a new differentiation rule. The key property necessary for the exponential function is a consequence of the properties of exponents,

\begin{equation*} \exp_b(x+y) = b^{x+y} = b^x \cdot b^y = \exp_b(x) \cdot \exp_b(y). \end{equation*}

Using these properties

\begin{align*} \exp_b'(x) &= \lim_{h \to 0} \frac{\exp_b(x+h) - \exp_b(x)}{h} \\ &= \lim_{h \to 0} \frac{b^{x+h} - b^x}{h} \\ &= \lim_{h \to 0} \frac{b^x b^h - b^x}{h} \\ &= \lim_{h \to 0} \exp_b(x) \cdot \frac{b^h-1}{h} \\ &= \exp_b(x) \cdot \lim_{h \to 0} \frac{b^{h}-1}{h}. \end{align*}

This means that the derivative of \(b^x\) is just \(b^x\) times some number \(L(b)\) that depends on \(b\text{,}\)

\begin{equation*} \frac{d}{dx}[b^x] = b^x \cdot L(b), \end{equation*}

where \(L(b)\) is calculated as the limit

\begin{equation*} L(b) = \lim_{h \to 0}\frac{b^h-1}{h}. \end{equation*}

Unfortunately, this is not a limit that we know as of yet. The following table illustrates some approximations for the value of this limit for a variety of bases.

\(h\) \(\displaystyle \frac{2^h-1}{h}\) \(\displaystyle \frac{3^h-1}{h}\) \(\displaystyle \frac{5^h-1}{h}\) \(\displaystyle \frac{10^h-1}{h}\)
\(h=0.1\) 0.71773 1.16123 1.74619 2.58925
\(h=0.01\) 0.69555 1.10467 1.62246 2.32930
\(h=0.001\) 0.69339 1.09922 1.61073 2.30524
\(h=0.0001\) 0.69317 1.09867 1.60957 2.30285
\(h \to 0\) 0.69315 1.09861 1.60944 2.30259

Every positive real number \(b\) has such a limit, \(L(b)\text{.}\) This limit corresponds to the slope of the elementary exponential function \(y=b^x\) at the point \(x=0\text{,}\)

\begin{equation*} L(b) = \exp_b'(0) = \lim_{h \to 0} \frac{b^{0+h} - b^{0}}{h} = \lim_{h \to 0} \frac{b^h-1}{h}. \end{equation*}

For the four bases used above, this corresponds to the following derivatives:

\begin{align*} \frac{d}{dx}[2^x] &= L(2) \cdot 2^x \approx 0.69315 \cdot 2^x \\ \frac{d}{dx}[3^x] &= L(3) \cdot 3^x \approx 1.09861 \cdot 3^x \\ \frac{d}{dx}[5^x] &= L(5) \cdot 5^x \approx 1.60944 \cdot 5^x \\ \frac{d}{dx}[10^x] &= L(10) \cdot 10^x \approx 2.30259 \cdot 10^x \end{align*}

We can see from the table that \(L(2)\approx 0.69315\) and \(L(3) \approx 1.09861\text{.}\) This suggests that there is a particular base \(b\) between 2 and 3 such that \(L(b)=1\text{.}\) Such a value does exist, using \(b \approx 2.71828183\text{.}\) This value has the property that the elementary exponential function and its derivative are exactly equal. The base is called the natural base and is given the special symbol \(e\text{.}\) Consequently,

\begin{equation*} \frac{d}{dx}[e^x] = e^x. \end{equation*}
Definition 9.4.1.

The number \(e\) is that positive value such that

\begin{equation*} \lim_{h \to 0} \frac{e^h - 1}{h} = 1. \end{equation*}

Every exponential function is proportional to its derivative. This means that at every point on the graph \(y=b^x\text{,}\) the ratio of the slope to the \(y\)-value is always the same constant. The interactive graph in Figure 9.4.3 illustrates this principle. The proportionality constant, \(L(b)\text{,}\) has been defined by a limit. We will soon discover another way to find \(L(b)\) for these other bases.

Drag the sliders to change the base \(b\) and the point of interest at \(x\text{.}\)

Figure 9.4.3. A graph of \(y=b^x\) that illustrates the proportionality relation between the slope and the \(y\)-value.

Subsection 9.4.2 The Chain Rule with Exponentials

Because the exponential function \(\exp(x) = e^x\) is defined with the natural base, \(\exp'(x) = e^x\) is the same as the original function, \(\exp'=\exp\text{.}\) Combining this with the chain rule, we get a generalized derivative of compositions with exponentials,

\begin{equation*} \frac{d}{dx}[e^{u(x)}] = e^{u(x)} \cdot u'(x) = e^{u} \cdot \frac{du}{dx}. \end{equation*}
Example 9.4.4.

Find the derivatives of the following functions.

  1. \(f(x) = e^{5x}\)
  2. \(g(x) = e^{x^3}\)
  3. \(h(x) = e^{x^2-4x}\)
Solution

In each case, we will identify the formula \(u(x)\) and then apply the chain rule.

  1. For \(f(x) = e^{5x}\text{,}\) we have \(u(x)=5x\) so that \(f(x) = e^u\text{.}\) We will use \(u'(x)=5\text{.}\) The chain rule gives:

    \begin{align*} f'(x) &= \frac{d}{dx}[e^{5x}] \\ & \underset{(u=5x)}{=} \frac{d}{dx}[e^u] \underset{(u=5x)}{=} e^u \frac{du}{dx} \\ &= e^{5x} \cdot 5 = 5e^{5x} \end{align*}

    So \(f'(x) = 5e^{5x}\text{.}\)

  2. The function \(g(x) = e^{x^3}\) involves a composition with \(u(x)=x^3\) such that \(u'(x)=3x^2\text{.}\)

    \begin{align*} g'(x) &= \frac{d}{dx}[e^{x^3}] \\ &\underset{(u=x^3)}{=} \frac{d}{dx}[e^u] \underset{(u=x^3)}{=} e^u \frac{du}{dx} \\ &= e^{x^3} \cdot (3x^2) = 3x^2 e^{x^3} \end{align*}

    Thus \(g'(x) = 3x^2e^{x^3}\text{.}\)

  3. The function \(h(x) = e^{x^2-4x}\) involves a composition with \(u(x)=x^2-4x\) such that \(u'(x)=2x-4\text{.}\)

    \begin{align*} h'(x) &= \frac{d}{dx}[e^{x^2-4x}] \\ &\underset{(u=x^2-4x)}{=} \frac{d}{dx}[e^u] \underset{(u=x^2-4x)}{=} e^u \frac{du}{dx} \\ &= e^{x^2-4x} \cdot (2x-4) = (2x-4) e^{x^2-4x} \end{align*}

    Thus \(h'(x) = (2x-4)e^{x^2-4x}\text{.}\)

Subsection 9.4.3 Other Exponential Bases

Every function involving a positive base raised to an exponent can be rewritten using the natural exponential function \(\exp(x)=e^x\text{.}\) Recall that the exponential and the logarithm are inverse functions so that for every number \(u \gt 0\) we have

\begin{equation*} \exp(\ln(u)) = e^{\ln(u)} = u. \end{equation*}

This identity and the rules for logarithms show that any power \(u^w\) with \(u \gt 0\) can be rewritten as

\begin{equation*} u^w = \exp(\ln(u^w)) = e^{\ln(u^w)} = e^{w \cdot \ln(u)}. \end{equation*}
Example 9.4.5.

Rewrite each of the following in terms of the natural exponential function.

  1. \(f(x) = 2^x\)
  2. \(g(x) = 5^x\)
  3. \(p(x) = x^{3/4}\)
  4. \(r(x) = x^x\)
Solution
  1. \(f(x) = 2^x = \exp(\ln(2^x)) = e^{\ln(2^x)} = e^{x \ln(2)}\)
  2. \(g(x) = 5^x = \exp(\ln(5^x)) = e^{\ln(5^x)} = e^{x \ln(5)}\)
  3. \(p(x) = x^{3/4} = \exp(\ln(x^{3/4})) = e^{\ln(x^{3/4})} = e^{\frac{3}{4}\ln(x)}\)
  4. \(r(x) = x^x = \exp(\ln(x^x)) = e^{\ln(x^x)} = e^{x \ln(x)}\)

Because every exponential can be rewritten in terms of the natural exponential, we have a special result for all other exponential functions,

\begin{equation*} b^x = e^{x \cdot \ln(b)}. \end{equation*}

Using the chain rule with \(u=x \cdot \ln(b)\) and \(\frac{du}{dx}=\ln(b)\text{,}\) we discover

\begin{equation*} \frac{d}{dx}[b^x] = \frac{d}{dx}[e^{x \ln(b)}] = e^{x \ln(b)} \cdot \ln(b) = b^x \cdot \ln(b). \end{equation*}

Because we already had a formula \(\frac{d}{dx}[b^x] = L(b) \cdot b^x\text{,}\) we now have an exact expression for the limit \(L(b)\text{:}\)

\begin{equation*} L(b) = \lim_{h \to 0} \frac{b^h-1}{h} = \ln(b). \end{equation*}

Subsection 9.4.4 Power Function or Exponential Function

One of the challenges for a calculus novice is identifying which rule applies. It is essential that you can distinguish between an exponential function and a power function.

Recall that a power function has a constant power while an exponential function has a constant as the base. Furthermore, don't be fooled by numbers that look like other symbols. For example, \(x^e\) is a power function since the power is the constant value \(e\) (the natural exponential base):

\begin{equation*} \frac{d}{dx}[x^e] = e x^{e-1}. \end{equation*}

Similarly, \(x^{\sqrt{2}}\) is a power function because the power \(\sqrt{2}\) is a number (even though it is represented as a formula, it does not have any variables):

\begin{equation*} \frac{d}{dx}[x^{\sqrt{2}}] = \sqrt{2} x^{\sqrt{2}-1}. \end{equation*}

Furthermore, you must look at a formula and determine which operation determines the differentiation rule that is required (constant multiple, sum, product, quotient or chain). This is always based on the last operation to be applied under the rules of order of operations. When the number of steps is small, you should be able to write the derivative down directly. When the number of steps is large, you might need to use the differentiation operator to allow yourself the chance to work part of the way and indicate that there are still steps remaining.

Example 9.4.7.

Find the derivative \(\displaystyle \frac{d}{dx}[ (x^2+4)^5 e^{5x^3} ]\text{.}\)

Solution

Start by identifying the final operation. In this problem, the function \(f(x) = (x^2+4)^5 e^{5x^3}\) is a product of \((x^2+4)^5\) and \(e^{5x^3}\text{.}\) So we begin by using the product rule. If you want to emphasize this without having to write down the derivatives of the factors, then we use the differentiation operator:

\begin{equation*} f'(x) = \frac{d}{dx}[(x^2+4)^5] \cdot e^{5x^3} + (x^2+4)^5 \cdot \frac{d}{dx}[e^{5x^3}]. \end{equation*}

Notice that the differentiation operator is pointing out where we still need to find derivatives in order to complete the problem.

The first term \((x^2+4)^5\) should be recognized as a composition with a power function \(u^5\) where \(u=x^2+4\text{.}\) We will use the chain rule:

\begin{equation*} \frac{d}{dx}[(x^2+4)^5] \underset{(u=x^2+4)}{=} \frac{d}{du}[u^5] \cdot \frac{du}{dx} = 5(x^2+4)^4 \cdot (2x). \end{equation*}

The second term \(e^{5x^3}\) should be recognized as a composition with the exponential function \(e^u\) where \(u=5x^3\text{.}\) Again, the chain rule guides us:

\begin{equation*} \frac{d}{dx}[e^{5x^3}] \underset{(u=5x^3)}{=} \frac{d}{du}[e^u] \cdot \frac{du}{dx} = e^{5x^3} \cdot (15x^2). \end{equation*}

The previous paragraph represents work that you either think through mentally or write out as scratch work. Putting the pieces together gives us the overall answer.

\begin{align*} f'(x) = \frac{d}{dx}[(x^2+4)^5 e^{5x^3}] & = \frac{d}{dx}[(x^2+4)^5] \cdot e^{5x^3} + (x^2+4)^5 \cdot \frac{d}{dx}[e^{5x^3}]\\ & = 5(x^2+4)^4 (2x) \cdot e^{5x^3} + (x^2+4)^5 \cdot e^{5x^3} \cdot (15x^2) \\ & = 10x (x^2+4)^4 e^{5x^3} + 15x^2(x^2+4)^5 e^{5x^3} \end{align*}

As we start to use our derivatives in applications, we will often need to factor our formulas. To illustrate this principle, we identify all of the common factors of the terms.

\begin{align*} f'(x) &= 5x(x^2+4)^4e^{5x^3} \cdot(2 + 3x(x^2+4)) \\ & = 5x(x^2+4)^4 e^{5x^3} (2+12x+3x^2) \end{align*}

Subsection 9.4.5 Another Limit Defining \(e\)

When we defined the number \(e\text{,}\) it was done so that \(\frac{d}{dx}\Big[e^x\Big] = e^x\text{.}\) The natural base was then chosen so that

\begin{equation*} \lim_{x \to 0} \frac{e^x-1}{x} = 1. \end{equation*}

Suppose that we instead looked for a function \(f(x)\) so that \(f(0)=1\) and \(f'(x) = f(x)\text{.}\) An equation for an unknown function involving derivatives is called a differential equation. We already know that \(f(x)=e^x\) is the solution to this differential equation. However, we will use the differential equation to gain some additional insights into the function.

We begin by considering how we might approximate our function using only the differential equation. Consider the interval \([0,x]\) and create a partition with \(n\) subintervals,

\begin{equation*} x_k = \frac{kx}{n}. \end{equation*}

We will recursively calculate a sequence of values \(y_k \approx f(x_k)\text{.}\) From the definition of an accumulation function, we know

\begin{equation*} f(x_{k+1}) = f(x_k) + \int_{x_k}^{x_{k+1}} f'(z) \, dz. \end{equation*}

We further know \(f'(z) = f(z)\) by our differential equation. So if \(\Delta x = \frac{x}{n}\) is sufficiently small, we can approximate \(f'(z)\) on the interval \([x_{k},x_{k+1}]\) by a constant value \(f'(z) \approx f'(x_k)\text{.}\) This method for approximating the next value of the function defined by a differential equation,

\begin{equation*} f(x_{k+1}) \approx f(x_k) + f'(x_k) (x_{k+1}-x_k) = f(x_k) + f'(x_k) \Delta x, \end{equation*}

is called the Euler method.

Our differential equation \(f'(x)=f(x)\) allows us to find a value for \(f'(x_k) = f(x_k)\text{.}\) For our differential equation, the Euler method approximation gives us

\begin{equation*} f(x_{k+1}) \approx f(x_k) + f(x_k) (x_{k+1}-x_k) = f(x_k) \cdot (1+\Delta x). \end{equation*}

The approximation is then characterized by the recursive sequence,

\begin{align*} y_0 &= 1, \\ y_{k+1} &= y_k (1 + \Delta x), \end{align*}

which we identify as a geometric sequence with explicit formula

\begin{equation*} y_k = (1 + \Delta x)^{k}. \end{equation*}

We also know that \(f(x)=e^x\) is the solution. Since \(x_n = x\text{,}\) the Euler method approximation shows that \(f(x_n) = e^x\) will be approximated by \(y_n = (1 + \Delta x)^{n}\text{.}\) Because \(\Delta x = \frac{x}{n}\text{,}\) we can write \(n = \frac{x}{\Delta x}\) to obtain

\begin{equation*} f(x) = e^x \approx (1+\Delta x)^{x/\Delta x} = \left((1+\Delta x)^{1/\Delta x}\right)^x. \end{equation*}

It would appear that \(e\) can be approximated by

\begin{equation*} e \approx (1+\Delta x)^{1/\Delta x} \end{equation*}

when \(\Delta x\) is sufficiently small. We state this heuristic result as the following unproved theorem.

We don't have a proof at this point because without first knowing the function \(e^x\text{,}\) we do not have a clear definition for nonrational powers to justify the following limit steps:

\begin{align*} f(x) &= \lim_{\Delta x \to 0} \Big[ \left((1+\Delta x)^{1/\Delta x}\right)^x\Big] \\ &= \Big( \lim_{\Delta x \to 0} \left[(1+\Delta x)^{1/\Delta x}\right]\Big)^x \\ &= e^x. \end{align*}

Mathematically, the best way to prove that these limits are valid is actually to work with the inverse function, the natural logarithm.

Section 9.4.1 Summary

  • Given any positive base \(b \gt 0\text{,}\) we know

    \begin{equation*} \frac{d}{dx}[b^x] = b^x \cdot L(b) \end{equation*}

    where \(L(b)\) is defined by a limit

    \begin{equation*} L(b) = \lim_{x \to 0} \frac{b^x - 1}{x}. \end{equation*}
  • The number \(e\) is the natural base such that \(L(e)=1\text{,}\)

    \begin{equation*} \lim_{x \to 0} \frac{e^x-1}{x} = 1. \end{equation*}

    Consequently,

    \begin{equation*} \frac{d}{dx}\Big[e^x\Big] = e^x. \end{equation*}
  • The general derivative rule for exponentials applies the chain rule,

    \begin{equation*} \frac{d}{dx}\Big[e^u\Big] = e^u \cdot \frac{du}{dx}. \end{equation*}
  • Expressing other formulas involving powers in terms of \(e\text{,}\)

    \begin{equation*} u^v = e^{v \cdot \ln(u)}, \end{equation*}

    we can show

    \begin{equation*} \frac{d}{dx}\Big[b^x\Big] = \frac{d}{dx}\Big[e^{x \ln(b)} \Big] = e^{x \ln(b)} \cdot \ln(b). \end{equation*}

    This also shows that

    \begin{equation*} \lim_{x \to 0} \frac{b^x - 1}{x} = \ln(b). \end{equation*}
  • The function \(f(x) = e^x\) is the solution to a differential equation \(f'(x)=f(x)\) with \(f(0)=1\text{.}\)

  • \(\displaystyle \lim_{h \to 0} (1+h)^{1/h} = e\) and \(\displaystyle \lim_{n \to \infty} (1 + \frac{1}{n})^n = e\text{.}\)

Exercises 9.4.7 Exercises

Foundations

1.

Use the definition to find \(L(\frac{1}{2})\) using a table to approximate the limit. Compare the result to \(\ln(\frac{1}{2})\text{.}\)

2.

Use the definition to find \(L(4)\) using a table to approximate the limit. Compare the result to \(2 \ln(2)\text{.}\)

3.

Find the tangent line of \(y = 3^x\) at \(x=0\text{,}\) using an exact expression.

Find the indicated derivatives.

4.

\(\displaystyle \frac{d}{dx}\Big[ e^{4x}\Big]\)

5.

\(\displaystyle \frac{d}{dx}\Big[ 3^{2x} \Big]\)

6.

\(\displaystyle \frac{d}{dt}\Big[ 5e^{-3t}\Big]\)

7.

\(\displaystyle \frac{d}{dx}\Big[ \frac{3}{e^{\frac{1}{2}x}} \Big]\)

8.

\(\displaystyle \frac{d}{ds}\Big[ \frac{1}{3e^{-5s}} \Big]\)

9.

\(\displaystyle \frac{d}{dx}\Big[ x \cdot 2^{-x} \Big]\)

10.

\(\displaystyle \frac{d}{dx}\Big[ e^{x^2} \Big]\)

11.

\(\displaystyle \frac{d}{dx}\Big[ e^{\sqrt{x}} \Big]\)

12.

\(\displaystyle \frac{d}{dx}\Big[ e^{e^x} \Big]\)

13.

\(\displaystyle \frac{d}{dx}\Big[ e^{(2x+1)^4} \Big]\)

14.

\(\displaystyle \frac{d}{dx}\Big[ (e^{3x}-1)^5 \Big]\)

15.

\(\displaystyle \frac{d}{dt}\Big[ \frac{2}{e^{-t}+1} \Big]\)

16.

\(\displaystyle \frac{d^2}{dx^2}\Big[ 4xe^{-2x} \Big]\)

17.

\(\displaystyle \frac{d^2}{dx^2}\Big[ x^2 e^{5x} \Big]\)

18.

\(\displaystyle \frac{d^2}{dx^2}\Big[ e^{-x^2+3x} \Big]\)

Differential Equations

19.

Show that \(y(t) = Ae^{kt}\text{,}\) where \(A\) and \(k\) are constants, is a solution to the differential equation \(\frac{dy}{dt} = k y\) for any value of \(A\text{.}\) That is, using the proposed formula for \(y(t)\text{,}\) compute \(\frac{dy}{dt}\) and \(k \cdot y\) and show that they are equal.

20.

Find a solution for the differential equation \(\frac{dy}{dt} = 2y\) with an initial value \(y(0) = 200\text{.}\) Use the proposed formula from Exercise 9.4.7.19 and solve for the value \(A\) which also satisfies the initial value.

21.

A population grows at a rate that is proportional to the current population size,

\begin{equation*} \frac{dP}{dt} = k \cdot P. \end{equation*}

If the population \(P\) is currently 2000 individuals and is growing at an instantaneous rate of 40 individuals per day, find the value \(k\) and solve the differential equation. Use the proposed formula from Exercise 9.4.7.19. What will be the population size in one week?

22.

A radioactive substance decays at a rate that is proportional to the current mass of the substance,

\begin{equation*} \frac{dM}{dt} = -k \cdot M. \end{equation*}

If the mass \(M\) is currently 50 milligrams and is decaying at an instantaneous rate of 2 micrograms per second, find the value \(k\) and solve the differential equation. Use the proposed formula from Exercise 9.4.7.19. What will be the mass of the radioactive substance after one day?