Differentiating Exponentials and Logarithms
e^x differentiates to itself, ln x to 1/x — two results that unlock growth, decay, and everything built from them.
The two standard results
Two derivatives sit at the heart of exponential and logarithmic calculus:
The function $e^x$ is remarkable precisely because it is its own derivative — no other function (up to a constant multiple) has this property. That's the reason $e$ is defined the way it is, and why it appears throughout calculus.
$\ln x$ is only defined for $x>0$, so $\dfrac{d}{dx}(\ln x)=\dfrac{1}{x}$ is likewise only valid for $x>0$.
Differentiating a^x for other bases
For a positive constant $a\ne1$, differentiating $a^x$ needs a small rewrite. Since $a=e^{\ln a}$, we can write $a^x=e^{x\ln a}$, and the same "linear inner function" pattern seen with $\sin(kx)$ gives:
Writing $a^x=e^{x\ln a}$ turns the problem into differentiating $e^{kx}$ with $k=\ln a$, giving $\dfrac{d}{dx}\big(e^{x\ln a}\big)=(\ln a)\,e^{x\ln a}=a^x\ln a$. This is the same chain-rule pattern previewed in the last lesson — the "inner function" $x\ln a$ has derivative $\ln a$, which appears as the extra factor. When $a=e$, $\ln a=\ln e=1$, and the extra factor disappears — exactly recovering $\dfrac{d}{dx}(e^x)=e^x$.
Extending to e^(kx)
The same idea applies directly to $e^{kx}$ for constant $k$:
As with $\sin(kx)$ and $\cos(kx)$ in the previous lesson, this is a special case of the chain rule, covered in full shortly.
Worked example 1
Worked example 2
Worked example 3
The constant term simplified to exactly $-1$, with every multiple of $e$ cancelling — a reminder that tidying an answer fully can reveal a surprisingly clean result that isn't obvious at the point–gradient stage.
Writing $\dfrac{d}{dx}(e^{kx})=e^{kx}$ without the factor of $k$, and confusing the two results $\dfrac{d}{dx}(a^x)=a^x\ln a$ with $\dfrac{d}{dx}(x^a)=ax^{a-1}$ — the first has a constant base and variable exponent, the second the other way round, and they differentiate completely differently.
Check yourself
Differentiate $y=5e^{2x}-3\ln x+4^x$.