# 2.7: Derivatives of Exponential Functions

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$

$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$

( \newcommand{\kernel}{\mathrm{null}\,}\) $$\newcommand{\range}{\mathrm{range}\,}$$

$$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$

$$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$

$$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$

$$\newcommand{\Span}{\mathrm{span}}$$

$$\newcommand{\id}{\mathrm{id}}$$

$$\newcommand{\Span}{\mathrm{span}}$$

$$\newcommand{\kernel}{\mathrm{null}\,}$$

$$\newcommand{\range}{\mathrm{range}\,}$$

$$\newcommand{\RealPart}{\mathrm{Re}}$$

$$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$

$$\newcommand{\Argument}{\mathrm{Arg}}$$

$$\newcommand{\norm}[1]{\| #1 \|}$$

$$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$

$$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\AA}{\unicode[.8,0]{x212B}}$$

$$\newcommand{\vectorA}[1]{\vec{#1}} % arrow$$

$$\newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow$$

$$\newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vectorC}[1]{\textbf{#1}}$$

$$\newcommand{\vectorD}[1]{\overrightarrow{#1}}$$

$$\newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}}$$

$$\newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}}$$

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$

Now that we understand how derivatives interact with products and quotients, we are able to compute derivatives of

• polynomials,
• rational functions, and
• powers and roots of rational functions.

Notice that all of the above come from knowing 1 the derivative of $$x^n$$ and applying linearity of derivatives and the product rule.

There is still one more “rule” that we need to complete our toolbox and that is the chain rule. However before we get there, we will add a few functions to our list of things we can differentiate 2. The first of these is the exponential function.

Let $$a \gt 0$$ and set $$f(x) = a^x$$ — this is what is known as an exponential function. Let's see what happens when we try to compute the derivative of this function just using the definition of the derivative.

\begin{align*} \frac{\mathrm{d} f}{\mathrm{d} x} &= \lim_{h \to 0} \frac{f(x+h) - f(x)}{h} = \lim_{h \to 0} \frac{a^{x+h} - a^x}{h}\\ &= \lim_{h \to 0} a^x \cdot \frac{a^{h} - 1}{h} = a^x \cdot \lim_{h \to 0} \frac{a^{h} - 1}{h} \end{align*}

Unfortunately we cannot complete this computation because we cannot evaluate the last limit directly. For the moment, let us assume this limit exists and name it

\begin{align*} C(a) &= \lim_{h \to 0} \frac{a^{h} - 1}{h} \end{align*}

It depends only on $$a$$ and is completely independent of $$x\text{.}$$ Using this notation (which we will quickly improve upon below), our desired derivative is now

\begin{align*} \frac{\mathrm{d} }{\mathrm{d} x}a^x &= C(a)\cdot a^x. \end{align*}

Thus the derivative of $$a^x$$ is $$a^x$$ multiplied by some constant — i.e. the function $$a^x$$ is nearly unchanged by differentiating. If we can tune $$a$$ so that $$C(a) = 1$$ then the derivative would just be the original function! This turns out to be very useful.

To try finding an $$a$$ that obeys $$C(a)=1\text{,}$$ let us investigate how $$C(a)$$ changes with $$a\text{.}$$ Unfortunately (though this fact is not at all obvious) there is no way to write $$C(a)$$ as a finite combination of any of the functions we have examined so far 3. To get started, we'll try to guess $$C(a)\text{,}$$ for a few values of $$a\text{,}$$ by plugging in some small values of $$h\text{.}$$

##### Example 2.7.1 Estimates of $$C(a)$$.

Let $$a =1$$ then $$C(1) = \displaystyle \lim_{h \to 0} \frac{1^h-1}{h} = 0\text{.}$$ This is not surprising since $$1^x=1$$ is constant, and so its derivative must be zero everywhere. Let $$a =2$$ then $$C(2) = \displaystyle \lim_{h \to 0} \frac{2^h-1}{h}\text{.}$$ Setting $$h$$ to smaller and smaller numbers gives

 $$h$$ 0.1 0.01 0.001 0.0001 1e-05 1e-06 1e-07 $$\tfrac{2^h-1}{h}$$ 0.7177 0.6956 0.6934 0.6932 0.6931 0.6931 0.6931

Similarly when $$a=3$$ we get

 $$h$$ 0.1 0.01 0.001 0.0001 1e-05 1e-06 1e-07 $$\tfrac{3^h-1}{h}$$ 1.1612 1.1047 1.0992 1.0987 1.0986 1.0986 1.0986

and $$a=10$$

 $$h$$ 0.1 0.01 0.001 0.0001 1e-05 1e-06 1e-07 $$\tfrac{10^h-1}{h}$$ 2.5893 2.3293 2.3052 2.3028 2.3026 2.3026 2.3026

From this example it appears that $$C(a)$$ increases as we increase $$a\text{,}$$ and that $$C(a) = 1$$ for some value of $$a$$ between $$2$$ and $$3\text{.}$$

We can learn a lot more about $$C(a)\text{,}$$ and, in particular, confirm the guesses that we made in the last example, by making use of logarithms — this would be a good time for you to review them.

## Whirlwind Review of Logarithms

Before you read much further into this little review on logarithms, you should first go back and take a look at the review of inverse functions in Section 0.6.

###### Logarithmic Functions

We are about to define the “logarithm with base $$q$$”. In principle, $$q$$ is allowed to be any strictly positive real number, except $$q=1\text{.}$$ However we shall restrict our attention to $$q \gt 1\text{,}$$ because, in practice, the only $$q$$'s that are ever used are $$e$$ (a number that we shall define in the next few pages), $$10$$ and, if you are a computer scientist, $$2\text{.}$$ So, fix any $$q \gt 1$$ (if you like, pretend that $$q=10$$). The function $$f(x)=q^x$$

• increases as $$x$$ increases (for example if $$x' \gt x\text{,}$$ then $$10^{x'} = 10^x \cdot 10^{x'-x} \gt 10^x$$ since $$10^{x'-x} \gt 1$$)
• obeys $$\lim\limits_{x\rightarrow-\infty} q^x=0$$ (for example $$10^{-1000}$$ is really small) and
• obeys $$\lim\limits_{x\rightarrow+\infty} q^x=+\infty$$ (for example $$10^{+1000}$$ is really big).

Consequently, for any $$0 \lt Y \lt \infty\text{,}$$ the horizontal straight line $$y=Y$$ crosses the graph of $$y=f(x)=q^x$$ at exactly one point, as illustrated in the figure below.

The $$x$$–coordinate of that intersection point, denoted $$X$$ in the figure, is $$\log_q(Y)\text{.}$$ So $$\log_q(Y)$$ is the power to which you have to raise $$q$$ to get $$Y\text{.}$$ It is the inverse function of $$f(x)=q^x\text{.}$$ Of course we are free to rename the dummy variables $$X$$ and $$Y\text{.}$$ If, for example, we wish to graph our logarithm function, it is natural to rename $$Y\rightarrow x$$ and $$X\rightarrow y\text{,}$$ giving

##### Definition 2.7.2.

Let $$q \gt 1\text{.}$$ Then the logarithm with base $$q$$ is defined 4

$r^{\log_r(x)} = \left(\frac{1}{q}\right)^{\log_r(x)} = \left(\frac{1}{q}\right)^{-\log_q(x)} = q^{\log_q(x)} = x \nonumber$

as required. by

\begin{align*} y=\log_q(x) & \Leftrightarrow x=q^y \end{align*}

Obviously the power to which we have to raise $$q$$ to get $$q^x$$ is $$x\text{,}$$ so we have both

\begin{align*} \log_q( q^x ) &=x & q^{\log_q(x)} &=x \end{align*}

From the exponential properties

\begin{align*} q^{log_q(xy)} &= xy &&= q^{log_q(x)} q^{log_q(y)} = q^{log_q(x)+log_q(y)}\\ q^{log_q(x/y)} &= x/y&&= q^{log_q(x)} / q^{log_q(y)} = q^{log_q(x)-log_q(y)}\\ q^{log_q(x^r)} &= x^r &&= \big(q^{log_q(x)}\big)^r = q^{r log_q(x)} \end{align*}

we have

\begin{align*} \log_q(xy) &= \log_q(x) + \log_q(y)\\ \log_q(x/y) &= \log_q(x) - \log_q(y)\\ \log_q( x^r ) &= r \log_q (x) \end{align*}

Can we convert from logarithms in one base to logarithms in another? For example, if our calculator computes logarithms base 10 for us (which it very likely does), can we also use it to compute a logarithm base $$q\text{?}$$ Yes, using

\begin{align*} \log_q(x) &= \frac{\log_{10} x}{\log_{10} q} \end{align*}

How did we get this? Well, let's start with a number $$x$$ and suppose that we want to compute

\begin{align*} y &= \log_q x\\ \end{align*}

We can rearrange this by exponentiating both sides

\begin{align*} q^y &= q^{\log_q x} = x\\ \end{align*}

Now take log base 10 of both sides

\begin{align*} \log_{10} q^y &= \log_{10} x\\ \end{align*}

But recall that $$\log_q( x^r ) = r \log_q(x)\text{,}$$ so

\begin{align*} y \log_{10} q &= \log_{10} x\\ y &= \frac{\log_{10} x}{\log_{10} q} \end{align*}

## Back to that Limit

Recall that we are trying to choose $$a$$ so that

\begin{align*} \lim_{h\to0} \frac{a^h-1}{h} &= C(a) = 1. \end{align*}

We can estimate the correct value of $$a$$ by using our numerical estimate of $$C(10)$$ above. The way to do this is to first rewrite $$C(a)$$ in terms of logarithms.

\begin{align*} a&= 10^{\log_{10} a} & \text{ and so }&& a^h &= 10^{h\log_{10} a}. \end{align*}

Using this we rewrite $$C(a)$$ as

\begin{align*} C(a) &= \lim_{h\to0} \frac{1}{h} \left( 10^{h\log_{10} a}-1 \right)\\ \end{align*}

Now set $$H = h\log_{10}(a)\text{,}$$ and notice that as $$h\to 0$$ we also have $$H \to 0$$

\begin{align*} &= \lim_{H \to 0} \frac{\log_{10} a}{H} \left(10^H-1\right)\\ &= \log_{10} a \cdot \lim_{H \to 0} \frac{10^H-1}{H}\\ &= \log_{10} a \cdot C(10). \end{align*}

Below is a sketch of $$C(a)$$ against $$a\text{.}$$

Remember that we are trying to find an $$a$$ with $$C(a)=1\text{.}$$ We can do so by recognising that $$C(a)=C(10)\,(\log_{10}a)$$ has the following properties.

• When $$a=1\text{,}$$ $$\log_{10}(a) = \log_{10} 1 =0$$ so that $$C(a) = C(10) \log_{10}(a) = 0\text{.}$$ Of course, we should have expected this, because when $$a=1$$ we have $$a^x = 1^x = 1$$ which is just the constant function and $$\frac{\mathrm{d} }{\mathrm{d} x} 1 = 0\text{.}$$
• $$\log_{10}a$$ increases as $$a$$ increases, and hence $$C(a)=C(10)\ \log_{10}a$$ increases as $$a$$ increases.
• $$\log_{10}a$$ tends to $$+\infty$$ as $$a\rightarrow\infty\text{,}$$ and hence $$C(a)$$ tends to $$+\infty$$ as $$a\rightarrow\infty\text{.}$$

Hence the graph of $$C(a)$$ passes through $$(1,0)\text{,}$$ is always increasing as $$a$$ increases and goes off to $$+\infty$$ as $$a$$ goes off to $$+\infty\text{.}$$ See Figure 2.7.3. Consequently 5 there is exactly one value of $$a$$ for which $$C(a) = 1\text{.}$$

The value of $$a$$ for which $$C(a)=1$$ is given the name $$e\text{.}$$ It is called Euler's constant 6. In Example 2.7.1, we estimated $$C(10)\approx 2.3026\text{.}$$ So if we assume $$C(a)=1$$ then the above equation becomes

\begin{align*} 2.3026 \cdot \log_{10} a &\approx 1\\ \log_{10} a &\approx \frac{1}{2.3026} \approx 0.4343\\ a &\approx 10^{0.4343} \approx 2.7813 \end{align*}

This gives us the estimate $$a \approx 2.7813$$ which is not too bad. In fact 7

##### Equation 2.7.4 Euler's constant.

\begin{align*} e &= 2.7182818284590452354\dots\\ &= 1 + \frac{1}{1!} + \frac{1}{2!} + \frac{1}{3!} + \frac{1}{4!} + \cdots \end{align*}

We will be able to explain this last formula once we develop Taylor polynomials later in the course.

To summarise

##### Theorem 2.7.5.

The constant $$e$$ is the unique real number that satisfies

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

Further,

\begin{align*} \frac{\mathrm{d} }{\mathrm{d} x}{e^x}{x} &= e^x \end{align*}

We plot $$e^x$$ in the graph below

And just a reminder of some of its 8 properties…

1. $$e^0=1$$
2. $$e^{x+y}=e^xe^y$$
3. $$e^{-x}=\tfrac{1}{e^x}$$
4. $$\big(e^x\big)^y=e^{xy}$$
5. $$\lim\limits_{x\rightarrow\infty}e^x=\infty\text{,}$$ $$\lim\limits_{x\rightarrow-\infty}e^x=0$$

Now consider again the problem of differentiating $$a^x\text{.}$$ We saw above that

\begin{align*} \frac{\mathrm{d} }{\mathrm{d} x} a^x &= C(a) \cdot a^x \qquad\text{ and }\qquad C(a) = C(10) \cdot \log_{10} a \\ &\text{ which gives } \frac{\mathrm{d} }{\mathrm{d} x} a^x = C(10)\cdot \log_{10} a \cdot a^x \end{align*}

We can eliminate the $$C(10)$$ term with a little care. Since we know that $$\frac{\mathrm{d} }{\mathrm{d} x} e^x = e^x\text{,}$$ we have $$C(e)=1\text{.}$$ This allows us to express

\begin{align*} 1 = C(e) &= C(10) \cdot \log_{10} e & \text{ and so}\\ C(10) &= \frac{1}{\log_{10} e} \end{align*}

Putting things back together gives

\begin{align*} \frac{\mathrm{d} }{\mathrm{d} x} a^x &= \frac{\log_{10} a}{\log_{10} e} \cdot a^x\\ &= \log_e a \cdot a^x. \end{align*}

There is more than one way to get to this result. For example, let $$f(x) = a^x\text{,}$$ then

\begin{align*} \log_e f(x) &= x \log_e a\\ f(x) &= e^{ x \log_e a} \end{align*}

So if we write $$g(x) = e^x$$ then we are really attempting to differentiate the function

\begin{align*} \frac{\mathrm{d} f}{\mathrm{d} x} &= \frac{\mathrm{d} }{\mathrm{d} x} g(x \cdot \log_e a). \end{align*}

In order to compute this derivative we need to know how to differentiate

\begin{gather*} \frac{\mathrm{d} }{\mathrm{d} x} g( q x) \end{gather*}

where $$q$$ is a constant. We'll hold off on learning this for the moment until we have introduced the chain rule (see Section 2.9 and in particular Corollary 2.9.9). Similarly we'd like to know how to differentiate logarithms — again this has to wait until we have learned the chain rule.

Notice that the derivatives

\begin{align*} \frac{\mathrm{d} }{\mathrm{d} x} x^n &= n x^{n-1} & \text{ and }&& \frac{\mathrm{d} }{\mathrm{d} x} e^x &= e^x \end{align*}

are either nearly unchanged or actually unchanged by differentiating. It turns out that some of the trigonometric functions also have this property of being “nearly unchanged” by differentiation. That brings us to the next section.

## Exercises

##### Exercise $$\PageIndex{1}$$

Match the curves in the graph to the following functions:

\begin{align*} & (a)\;\; y=\left(\frac{1}{2}\right)^x && (b)\;\; y=1^x && (c)\;\; y=2^x\\ & (d)\;\; y=2^{-x} && (e)\;\; y=3^x \end{align*}

##### Exercise $$\PageIndex{2}$$

The graph below shows an exponential function $$f(x)=a^x$$ and its derivative $$f'(x)\text{.}$$ Choose all the options that describe the constant $$a\text{.}$$

\begin{align*} & (a)\;\; a \lt 0&& (b)\;\;a \gt 0&& (c)\;\;a \lt 1\\ & (d)\;\;a \gt 1&& (e)\;\; a \lt e&&(f)\;\; a \gt e \end{align*}

##### Exercise $$\PageIndex{3}$$

True or false: $$\displaystyle\frac{\mathrm{d} }{\mathrm{d} x}\{e^x\}=xe^{x-1}$$

##### Exercise $$\PageIndex{4}$$

A population of bacteria is described by $$P(t)=100e^{0.2t}\text{,}$$ for $$0 \leq t \leq 10\text{.}$$ Over this time period, is the population increasing or decreasing?

We will learn more about the uses of exponential functions to describe real-world phenomena in Section 3.3.

##### Exercise $$\PageIndex{5}$$

Find the derivative of $$f(x)=\dfrac{e^{x}}{2x}$$.

##### Exercise $$\PageIndex{6}$$

Differentiate $$f(x)=e^{2x}\text{.}$$

##### Exercise $$\PageIndex{7}$$

Differentiate $$f(x)=e^{a+x}\text{,}$$ where $$a$$ is a constant.

##### Exercise $$\PageIndex{8}$$

For which values of $$x$$ is the function $$f(x)=xe^x$$ increasing?

##### Exercise $$\PageIndex{9}$$

Differentiate $$e^{-x}\text{.}$$

##### Exercise $$\PageIndex{10}$$

Differentiate $$f(x)=(e^x+1)(e^x-1)\text{.}$$

##### Exercise $$\PageIndex{11}$$

A particle's position is given by

$s(t)=t^2e^t. \nonumber$

When is the particle moving in the negative direction?

##### Exercise $$\PageIndex{12}$$

Let $$g(x)=f(x)e^x\text{,}$$ for a differentiable function $$f(x)\text{.}$$ Give a simplified formula for $$g'(x)\text{.}$$

Functions of the form $$g(x)$$ are relatively common. If you remember this formula, you can save yourself some time when you need to differentiate them. We will explore this more in Question 2.14.2.19, Section 2.14.

##### Exercise $$\PageIndex{13}$$

Which of the following functions describe a straight line?

\begin{align*} & (a)\;\;y=e^{3\log x}+1&& (b)\;\; 2y+5=e^{3+\log x}&&(c)\;\; y=e^{2x}+4\\ &(d)\;\; y=e^{\log x}3^e+\log 2 \end{align*}

##### Exercise $$\PageIndex{14}$$(✳)

Find constants $$a\text{,}$$ $$b$$ so that the following function is differentiable:

$f(x) =\left\{\begin{array}{ll} ax^2 + b & x \le 1\\ e^x & x \gt 1\end{array}\right. \nonumber$

This page titled 2.7: Derivatives of Exponential Functions is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Joel Feldman, Andrew Rechnitzer and Elyse Yeager via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.
The text passage is a detailed explanation of the derivative of exponential functions, including the definition of the constant \( e \), and a review of logarithms. It also includes several exercises at the end.
multiple_questions

the passage contains multiple mathematical questions in the form of exercises at the end, but no answers are provided within the text.
Given a text passage, determine:
    1. If it contains a mathematical question (including word problems or calculations)
    2. If an answer to that mathematical question is provided in the text

First, describe the content structure you found in 1-2 sentences.

Then provide your analysis in the following format:
TYPE: <one of the following values>
- NO_QUESTION
- SINGLE_QUESTION
- SINGLE_QUESTION_WITH_ANSWER
- MULTIPLE_QUESTIONS
- MULTIPLE_QUESTIONS_WITH_ANSWERS
system
# 2.7: Derivatives of Exponential Functions

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$

$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$

( \newcommand{\kernel}{\mathrm{null}\,}\) $$\newcommand{\range}{\mathrm{range}\,}$$

$$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$

$$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$

$$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$

$$\newcommand{\Span}{\mathrm{span}}$$

$$\newcommand{\id}{\mathrm{id}}$$

$$\newcommand{\Span}{\mathrm{span}}$$

$$\newcommand{\kernel}{\mathrm{null}\,}$$

$$\newcommand{\range}{\mathrm{range}\,}$$

$$\newcommand{\RealPart}{\mathrm{Re}}$$

$$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$

$$\newcommand{\Argument}{\mathrm{Arg}}$$

$$\newcommand{\norm}[1]{\| #1 \|}$$

$$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$

$$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\AA}{\unicode[.8,0]{x212B}}$$

$$\newcommand{\vectorA}[1]{\vec{#1}} % arrow$$

$$\newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow$$

$$\newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vectorC}[1]{\textbf{#1}}$$

$$\newcommand{\vectorD}[1]{\overrightarrow{#1}}$$

$$\newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}}$$

$$\newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}}$$

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$

Now that we understand how derivatives interact with products and quotients, we are able to compute derivatives of

• polynomials,
• rational functions, and
• powers and roots of rational functions.

Notice that all of the above come from knowing 1 the derivative of $$x^n$$ and applying linearity of derivatives and the product rule.

There is still one more “rule” that we need to complete our toolbox and that is the chain rule. However before we get there, we will add a few functions to our list of things we can differentiate 2. The first of these is the exponential function.

Let $$a \gt 0$$ and set $$f(x) = a^x$$ — this is what is known as an exponential function. Let's see what happens when we try to compute the derivative of this function just using the definition of the derivative.

\begin{align*} \frac{\mathrm{d} f}{\mathrm{d} x} &= \lim_{h \to 0} \frac{f(x+h) - f(x)}{h} = \lim_{h \to 0} \frac{a^{x+h} - a^x}{h}\\ &= \lim_{h \to 0} a^x \cdot \frac{a^{h} - 1}{h} = a^x \cdot \lim_{h \to 0} \frac{a^{h} - 1}{h} \end{align*}

Unfortunately we cannot complete this computation because we cannot evaluate the last limit directly. For the moment, let us assume this limit exists and name it

\begin{align*} C(a) &= \lim_{h \to 0} \frac{a^{h} - 1}{h} \end{align*}

It depends only on $$a$$ and is completely independent of $$x\text{.}$$ Using this notation (which we will quickly improve upon below), our desired derivative is now

\begin{align*} \frac{\mathrm{d} }{\mathrm{d} x}a^x &= C(a)\cdot a^x. \end{align*}

Thus the derivative of $$a^x$$ is $$a^x$$ multiplied by some constant — i.e. the function $$a^x$$ is nearly unchanged by differentiating. If we can tune $$a$$ so that $$C(a) = 1$$ then the derivative would just be the original function! This turns out to be very useful.

To try finding an $$a$$ that obeys $$C(a)=1\text{,}$$ let us investigate how $$C(a)$$ changes with $$a\text{.}$$ Unfortunately (though this fact is not at all obvious) there is no way to write $$C(a)$$ as a finite combination of any of the functions we have examined so far 3. To get started, we'll try to guess $$C(a)\text{,}$$ for a few values of $$a\text{,}$$ by plugging in some small values of $$h\text{.}$$

##### Example 2.7.1 Estimates of $$C(a)$$.

Let $$a =1$$ then $$C(1) = \displaystyle \lim_{h \to 0} \frac{1^h-1}{h} = 0\text{.}$$ This is not surprising since $$1^x=1$$ is constant, and so its derivative must be zero everywhere. Let $$a =2$$ then $$C(2) = \displaystyle \lim_{h \to 0} \frac{2^h-1}{h}\text{.}$$ Setting $$h$$ to smaller and smaller numbers gives

 $$h$$ 0.1 0.01 0.001 0.0001 1e-05 1e-06 1e-07 $$\tfrac{2^h-1}{h}$$ 0.7177 0.6956 0.6934 0.6932 0.6931 0.6931 0.6931

Similarly when $$a=3$$ we get

 $$h$$ 0.1 0.01 0.001 0.0001 1e-05 1e-06 1e-07 $$\tfrac{3^h-1}{h}$$ 1.1612 1.1047 1.0992 1.0987 1.0986 1.0986 1.0986

and $$a=10$$

 $$h$$ 0.1 0.01 0.001 0.0001 1e-05 1e-06 1e-07 $$\tfrac{10^h-1}{h}$$ 2.5893 2.3293 2.3052 2.3028 2.3026 2.3026 2.3026

From this example it appears that $$C(a)$$ increases as we increase $$a\text{,}$$ and that $$C(a) = 1$$ for some value of $$a$$ between $$2$$ and $$3\text{.}$$

We can learn a lot more about $$C(a)\text{,}$$ and, in particular, confirm the guesses that we made in the last example, by making use of logarithms — this would be a good time for you to review them.

## Whirlwind Review of Logarithms

Before you read much further into this little review on logarithms, you should first go back and take a look at the review of inverse functions in Section 0.6.

###### Logarithmic Functions

We are about to define the “logarithm with base $$q$$”. In principle, $$q$$ is allowed to be any strictly positive real number, except $$q=1\text{.}$$ However we shall restrict our attention to $$q \gt 1\text{,}$$ because, in practice, the only $$q$$'s that are ever used are $$e$$ (a number that we shall define in the next few pages), $$10$$ and, if you are a computer scientist, $$2\text{.}$$ So, fix any $$q \gt 1$$ (if you like, pretend that $$q=10$$). The function $$f(x)=q^x$$

• increases as $$x$$ increases (for example if $$x' \gt x\text{,}$$ then $$10^{x'} = 10^x \cdot 10^{x'-x} \gt 10^x$$ since $$10^{x'-x} \gt 1$$)
• obeys $$\lim\limits_{x\rightarrow-\infty} q^x=0$$ (for example $$10^{-1000}$$ is really small) and
• obeys $$\lim\limits_{x\rightarrow+\infty} q^x=+\infty$$ (for example $$10^{+1000}$$ is really big).

Consequently, for any $$0 \lt Y \lt \infty\text{,}$$ the horizontal straight line $$y=Y$$ crosses the graph of $$y=f(x)=q^x$$ at exactly one point, as illustrated in the figure below.

The $$x$$–coordinate of that intersection point, denoted $$X$$ in the figure, is $$\log_q(Y)\text{.}$$ So $$\log_q(Y)$$ is the power to which you have to raise $$q$$ to get $$Y\text{.}$$ It is the inverse function of $$f(x)=q^x\text{.}$$ Of course we are free to rename the dummy variables $$X$$ and $$Y\text{.}$$ If, for example, we wish to graph our logarithm function, it is natural to rename $$Y\rightarrow x$$ and $$X\rightarrow y\text{,}$$ giving

##### Definition 2.7.2.

Let $$q \gt 1\text{.}$$ Then the logarithm with base $$q$$ is defined 4

$r^{\log_r(x)} = \left(\frac{1}{q}\right)^{\log_r(x)} = \left(\frac{1}{q}\right)^{-\log_q(x)} = q^{\log_q(x)} = x \nonumber$

as required. by

\begin{align*} y=\log_q(x) & \Leftrightarrow x=q^y \end{align*}

Obviously the power to which we have to raise $$q$$ to get $$q^x$$ is $$x\text{,}$$ so we have both

\begin{align*} \log_q( q^x ) &=x & q^{\log_q(x)} &=x \end{align*}

From the exponential properties

\begin{align*} q^{log_q(xy)} &= xy &&= q^{log_q(x)} q^{log_q(y)} = q^{log_q(x)+log_q(y)}\\ q^{log_q(x/y)} &= x/y&&= q^{log_q(x)} / q^{log_q(y)} = q^{log_q(x)-log_q(y)}\\ q^{log_q(x^r)} &= x^r &&= \big(q^{log_q(x)}\big)^r = q^{r log_q(x)} \end{align*}

we have

\begin{align*} \log_q(xy) &= \log_q(x) + \log_q(y)\\ \log_q(x/y) &= \log_q(x) - \log_q(y)\\ \log_q( x^r ) &= r \log_q (x) \end{align*}

Can we convert from logarithms in one base to logarithms in another? For example, if our calculator computes logarithms base 10 for us (which it very likely does), can we also use it to compute a logarithm base $$q\text{?}$$ Yes, using

\begin{align*} \log_q(x) &= \frac{\log_{10} x}{\log_{10} q} \end{align*}

How did we get this? Well, let's start with a number $$x$$ and suppose that we want to compute

\begin{align*} y &= \log_q x\\ \end{align*}

We can rearrange this by exponentiating both sides

\begin{align*} q^y &= q^{\log_q x} = x\\ \end{align*}

Now take log base 10 of both sides

\begin{align*} \log_{10} q^y &= \log_{10} x\\ \end{align*}

But recall that $$\log_q( x^r ) = r \log_q(x)\text{,}$$ so

\begin{align*} y \log_{10} q &= \log_{10} x\\ y &= \frac{\log_{10} x}{\log_{10} q} \end{align*}

## Back to that Limit

Recall that we are trying to choose $$a$$ so that

\begin{align*} \lim_{h\to0} \frac{a^h-1}{h} &= C(a) = 1. \end{align*}

We can estimate the correct value of $$a$$ by using our numerical estimate of $$C(10)$$ above. The way to do this is to first rewrite $$C(a)$$ in terms of logarithms.

\begin{align*} a&= 10^{\log_{10} a} & \text{ and so }&& a^h &= 10^{h\log_{10} a}. \end{align*}

Using this we rewrite $$C(a)$$ as

\begin{align*} C(a) &= \lim_{h\to0} \frac{1}{h} \left( 10^{h\log_{10} a}-1 \right)\\ \end{align*}

Now set $$H = h\log_{10}(a)\text{,}$$ and notice that as $$h\to 0$$ we also have $$H \to 0$$

\begin{align*} &= \lim_{H \to 0} \frac{\log_{10} a}{H} \left(10^H-1\right)\\ &= \log_{10} a \cdot \lim_{H \to 0} \frac{10^H-1}{H}\\ &= \log_{10} a \cdot C(10). \end{align*}

Below is a sketch of $$C(a)$$ against $$a\text{.}$$

Remember that we are trying to find an $$a$$ with $$C(a)=1\text{.}$$ We can do so by recognising that $$C(a)=C(10)\,(\log_{10}a)$$ has the following properties.

• When $$a=1\text{,}$$ $$\log_{10}(a) = \log_{10} 1 =0$$ so that $$C(a) = C(10) \log_{10}(a) = 0\text{.}$$ Of course, we should have expected this, because when $$a=1$$ we have $$a^x = 1^x = 1$$ which is just the constant function and $$\frac{\mathrm{d} }{\mathrm{d} x} 1 = 0\text{.}$$
• $$\log_{10}a$$ increases as $$a$$ increases, and hence $$C(a)=C(10)\ \log_{10}a$$ increases as $$a$$ increases.
• $$\log_{10}a$$ tends to $$+\infty$$ as $$a\rightarrow\infty\text{,}$$ and hence $$C(a)$$ tends to $$+\infty$$ as $$a\rightarrow\infty\text{.}$$

Hence the graph of $$C(a)$$ passes through $$(1,0)\text{,}$$ is always increasing as $$a$$ increases and goes off to $$+\infty$$ as $$a$$ goes off to $$+\infty\text{.}$$ See Figure 2.7.3. Consequently 5 there is exactly one value of $$a$$ for which $$C(a) = 1\text{.}$$

The value of $$a$$ for which $$C(a)=1$$ is given the name $$e\text{.}$$ It is called Euler's constant 6. In Example 2.7.1, we estimated $$C(10)\approx 2.3026\text{.}$$ So if we assume $$C(a)=1$$ then the above equation becomes

\begin{align*} 2.3026 \cdot \log_{10} a &\approx 1\\ \log_{10} a &\approx \frac{1}{2.3026} \approx 0.4343\\ a &\approx 10^{0.4343} \approx 2.7813 \end{align*}

This gives us the estimate $$a \approx 2.7813$$ which is not too bad. In fact 7

##### Equation 2.7.4 Euler's constant.

\begin{align*} e &= 2.7182818284590452354\dots\\ &= 1 + \frac{1}{1!} + \frac{1}{2!} + \frac{1}{3!} + \frac{1}{4!} + \cdots \end{align*}

We will be able to explain this last formula once we develop Taylor polynomials later in the course.

To summarise

##### Theorem 2.7.5.

The constant $$e$$ is the unique real number that satisfies

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

Further,

\begin{align*} \frac{\mathrm{d} }{\mathrm{d} x}{e^x}{x} &= e^x \end{align*}

We plot $$e^x$$ in the graph below

And just a reminder of some of its 8 properties…

1. $$e^0=1$$
2. $$e^{x+y}=e^xe^y$$
3. $$e^{-x}=\tfrac{1}{e^x}$$
4. $$\big(e^x\big)^y=e^{xy}$$
5. $$\lim\limits_{x\rightarrow\infty}e^x=\infty\text{,}$$ $$\lim\limits_{x\rightarrow-\infty}e^x=0$$

Now consider again the problem of differentiating $$a^x\text{.}$$ We saw above that

\begin{align*} \frac{\mathrm{d} }{\mathrm{d} x} a^x &= C(a) \cdot a^x \qquad\text{ and }\qquad C(a) = C(10) \cdot \log_{10} a \\ &\text{ which gives } \frac{\mathrm{d} }{\mathrm{d} x} a^x = C(10)\cdot \log_{10} a \cdot a^x \end{align*}

We can eliminate the $$C(10)$$ term with a little care. Since we know that $$\frac{\mathrm{d} }{\mathrm{d} x} e^x = e^x\text{,}$$ we have $$C(e)=1\text{.}$$ This allows us to express

\begin{align*} 1 = C(e) &= C(10) \cdot \log_{10} e & \text{ and so}\\ C(10) &= \frac{1}{\log_{10} e} \end{align*}

Putting things back together gives

\begin{align*} \frac{\mathrm{d} }{\mathrm{d} x} a^x &= \frac{\log_{10} a}{\log_{10} e} \cdot a^x\\ &= \log_e a \cdot a^x. \end{align*}

There is more than one way to get to this result. For example, let $$f(x) = a^x\text{,}$$ then

\begin{align*} \log_e f(x) &= x \log_e a\\ f(x) &= e^{ x \log_e a} \end{align*}

So if we write $$g(x) = e^x$$ then we are really attempting to differentiate the function

\begin{align*} \frac{\mathrm{d} f}{\mathrm{d} x} &= \frac{\mathrm{d} }{\mathrm{d} x} g(x \cdot \log_e a). \end{align*}

In order to compute this derivative we need to know how to differentiate

\begin{gather*} \frac{\mathrm{d} }{\mathrm{d} x} g( q x) \end{gather*}

where $$q$$ is a constant. We'll hold off on learning this for the moment until we have introduced the chain rule (see Section 2.9 and in particular Corollary 2.9.9). Similarly we'd like to know how to differentiate logarithms — again this has to wait until we have learned the chain rule.

Notice that the derivatives

\begin{align*} \frac{\mathrm{d} }{\mathrm{d} x} x^n &= n x^{n-1} & \text{ and }&& \frac{\mathrm{d} }{\mathrm{d} x} e^x &= e^x \end{align*}

are either nearly unchanged or actually unchanged by differentiating. It turns out that some of the trigonometric functions also have this property of being “nearly unchanged” by differentiation. That brings us to the next section.

## Exercises

##### Exercise $$\PageIndex{1}$$

Match the curves in the graph to the following functions:

\begin{align*} & (a)\;\; y=\left(\frac{1}{2}\right)^x && (b)\;\; y=1^x && (c)\;\; y=2^x\\ & (d)\;\; y=2^{-x} && (e)\;\; y=3^x \end{align*}

##### Exercise $$\PageIndex{2}$$

The graph below shows an exponential function $$f(x)=a^x$$ and its derivative $$f'(x)\text{.}$$ Choose all the options that describe the constant $$a\text{.}$$

\begin{align*} & (a)\;\; a \lt 0&& (b)\;\;a \gt 0&& (c)\;\;a \lt 1\\ & (d)\;\;a \gt 1&& (e)\;\; a \lt e&&(f)\;\; a \gt e \end{align*}

##### Exercise $$\PageIndex{3}$$

True or false: $$\displaystyle\frac{\mathrm{d} }{\mathrm{d} x}\{e^x\}=xe^{x-1}$$

##### Exercise $$\PageIndex{4}$$

A population of bacteria is described by $$P(t)=100e^{0.2t}\text{,}$$ for $$0 \leq t \leq 10\text{.}$$ Over this time period, is the population increasing or decreasing?

We will learn more about the uses of exponential functions to describe real-world phenomena in Section 3.3.

##### Exercise $$\PageIndex{5}$$

Find the derivative of $$f(x)=\dfrac{e^{x}}{2x}$$.

##### Exercise $$\PageIndex{6}$$

Differentiate $$f(x)=e^{2x}\text{.}$$

##### Exercise $$\PageIndex{7}$$

Differentiate $$f(x)=e^{a+x}\text{,}$$ where $$a$$ is a constant.

##### Exercise $$\PageIndex{8}$$

For which values of $$x$$ is the function $$f(x)=xe^x$$ increasing?

##### Exercise $$\PageIndex{9}$$

Differentiate $$e^{-x}\text{.}$$

##### Exercise $$\PageIndex{10}$$

Differentiate $$f(x)=(e^x+1)(e^x-1)\text{.}$$

##### Exercise $$\PageIndex{11}$$

A particle's position is given by

$s(t)=t^2e^t. \nonumber$

When is the particle moving in the negative direction?

##### Exercise $$\PageIndex{12}$$

Let $$g(x)=f(x)e^x\text{,}$$ for a differentiable function $$f(x)\text{.}$$ Give a simplified formula for $$g'(x)\text{.}$$

Functions of the form $$g(x)$$ are relatively common. If you remember this formula, you can save yourself some time when you need to differentiate them. We will explore this more in Question 2.14.2.19, Section 2.14.

##### Exercise $$\PageIndex{13}$$

Which of the following functions describe a straight line?

\begin{align*} & (a)\;\;y=e^{3\log x}+1&& (b)\;\; 2y+5=e^{3+\log x}&&(c)\;\; y=e^{2x}+4\\ &(d)\;\; y=e^{\log x}3^e+\log 2 \end{align*}

##### Exercise $$\PageIndex{14}$$(✳)

Find constants $$a\text{,}$$ $$b$$ so that the following function is differentiable:

$f(x) =\left\{\begin{array}{ll} ax^2 + b & x \le 1\\ e^x & x \gt 1\end{array}\right. \nonumber$

This page titled 2.7: Derivatives of Exponential Functions is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Joel Feldman, Andrew Rechnitzer and Elyse Yeager via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.
user
The text passage is a detailed explanation of the derivative of exponential functions, including the definition of the constant \( e \), and a review of logarithms. It also includes several exercises at the end.

TYPE: MULTIPLE_QUESTIONS

The passage contains multiple mathematical questions in the form of exercises at the end, but no answers are provided within the text.