Derivative of Exponential Functions ($e^x$ and $a^x$)
The natural exponential function is its own derivative: $\dfrac{d}{dx}e^x = e^x$. For any other base $a>0$, $\dfrac{d}{dx}a^x = a^x\ln a$, and with an inner function $\dfrac{d}{dx}e^{g(x)} = g'(x)\,e^{g(x)}$.
📜 Formulas
Why $e^x$? $e \approx 2.71828$ is exactly the base for which the slope of $a^x$ at $x=0$ equals $1$: $\lim_{h\to0}\frac{e^h-1}{h} = 1$. Then $\frac{e^{x+h}-e^x}{h} = e^x\cdot\frac{e^h-1}{h}\to e^x$. For other bases write $a^x = e^{x\ln a}$ and use the chain rule: $(e^{x\ln a})' = \ln a\cdot e^{x\ln a} = a^x\ln a$.
✏️ Worked examples
| Function | Derivative | Rule |
|---|---|---|
| $e^{2x}$ | $2e^{2x}$ | chain rule |
| $e^{-x}$ | $-e^{-x}$ | chain rule |
| $5e^x$ | $5e^x$ | constant factor |
| $e^{x^2}$ | $2x\,e^{x^2}$ | chain rule |
| $e^{\sin x}$ | $\cos x\,e^{\sin x}$ | chain rule |
| $2^x$ | $2^x\ln 2$ | base $a$ |
| $10^{3x}$ | $3\ln 10\cdot 10^{3x}$ | base $a$ + chain rule |
| $x\,e^x$ | $e^x(x+1)$ | product rule |
| $\dfrac{e^x}{x}$ | $\dfrac{e^x(x-1)}{x^2}$ | quotient rule |
| $e^{2x}\cos x$ | $e^{2x}(2\cos x - \sin x)$ | product + chain rule |
⚠️ Common mistakes
Using the power rule: $(e^x)' \neq x\,e^{x-1}$ and $(2^x)' \neq x\,2^{x-1}$ – the variable is in the exponent.
Forgetting the inner derivative: $(e^{3x})' = 3e^{3x}$, $(e^{x^2})' = 2xe^{x^2}$.
Forgetting $\ln a$ for bases other than $e$: $(3^x)' = 3^x\ln 3$.
$x^x$ is neither a power nor an exponential function – use logarithmic differentiation: $(x^x)' = x^x(\ln x+1)$ (see logarithm rule).
📈 Why it matters: growth and decay
The property $(e^{kx})' = k\,e^{kx}$ says that the rate of change is proportional to the current value. That is exactly how populations, interest, radioactive decay and cooling behave, which is why $e$ appears all over science.
Example: A bacteria culture grows as $N(t) = 500\,e^{0.03t}$ (with $t$ in minutes). Its growth rate is $N'(t) = 500\cdot 0.03\,e^{0.03t} = 15\,e^{0.03t}$. At $t = 0$ the culture grows by $15$ bacteria per minute, and the rate is always $3\,\%$ of the current size: $N'(t) = 0.03\,N(t)$.
For decay the constant $k$ is negative: $m(t) = m_0\,e^{-kt}$ gives $m'(t) = -k\,m(t)$ – the more there is, the faster it decreases.
🔁 Higher derivatives
Because each differentiation only multiplies by $k$, all higher derivatives are easy:
For the bell-shaped function $e^{-x^2/2}$ from statistics, the chain rule gives $\big(e^{-x^2/2}\big)' = -x\,e^{-x^2/2}$: the curve rises for $x < 0$, falls for $x > 0$ and has its maximum at $x = 0$.
🧮 Try it with the step-by-step calculator
Open any of these examples in the calculator to see every single differentiation step:
Or enter your own function on the derivative calculator.
❓ Frequently asked questions
What is the derivative of e^x?
$\frac{d}{dx}e^x = e^x$ – the exponential function is its own derivative.
What is the derivative of e^(2x)?
$\frac{d}{dx}e^{2x} = 2e^{2x}$ (chain rule, inner derivative $2$).
What is the derivative of e^(-x)?
$\frac{d}{dx}e^{-x} = -e^{-x}$.
What is the derivative of 2^x?
$\frac{d}{dx}2^x = 2^x\ln 2 \approx 0.693\cdot 2^x$.
What is the derivative of e^(x^2)?
$\frac{d}{dx}e^{x^2} = 2x\,e^{x^2}$.