Exponential and logarithmic functions

Among every function you have differentiated so far — polynomials, trig ratios, roots — one function stands apart: exe^x is its own derivative. Differentiate it and nothing changes. That single fact makes exe^x and its inverse partner ln⁡x\ln x the backbone of the rest of calculus, from logarithmic differentiation to almost every integration trick you will meet next. This topic sits inside Continuity and Differentiability, right after implicit differentiation, and leans hard on the chain, product and quotient rules you already own. The goal here is narrow and concrete: learn the two base derivatives, learn how the chain rule dresses them up as eg(x)e^{g(x)} and ln⁡[g(x)]\ln[g(x)], and learn the general-base cousins axa^x and log⁡ax\log_a x that bring in ln⁡a\ln a. Master this and logarithmic differentiation — next up — becomes almost mechanical.

The core insight

The exponential function exe^x is the unique function equal to its own derivative, and this one fact — together with the chain rule — generates every exponential and logarithmic derivative rule you need.

The core idea

The two foundational results for this topic are the base derivatives of exe^x and ln⁡x\ln x:

ddx(ex)=ex,ddx(ln⁡x)=1x(x>0)\frac{d}{dx}(e^x) = e^x, \qquad \frac{d}{dx}(\ln x) = \frac{1}{x} \quad (x>0)

where: e≈2.71828e \approx 2.71828 is Euler's number, the unique base for which the exponential's growth rate at x=0x=0 equals 11; ln⁡x\ln x (also written log⁡ex\log_e x) is the natural logarithm, defined only where x>0x>0, so its derivative formula inherits that same restricted domain. No other elementary function reproduces itself under differentiation — this self-replicating growth is exactly what makes exe^x special, and it is why ee is chosen as the "natural" base in the first place. Real problems rarely hand you a bare xx inside the exponential or the log — they hand you a composite function. Bolting on the chain rule turns the two base results into the forms you will actually use:

ddx(eg(x))=eg(x)⋅g′(x),ddx(ln⁡[g(x)])=g′(x)g(x)(g(x)>0)\frac{d}{dx}\left(e^{g(x)}\right) = e^{g(x)}\cdot g'(x), \qquad \frac{d}{dx}\left(\ln[g(x)]\right) = \frac{g'(x)}{g(x)} \quad (g(x)>0)

where: g(x)g(x) is any differentiable inner function and g′(x)g'(x) its derivative; the outer derivative (eue^u or 1/u1/u) is multiplied by the inner derivative, exactly as the chain rule demands. Two auxiliary results extend the idea to any positive base a≠1a \neq 1, obtained by rewriting ax=exln⁡aa^x = e^{x\ln a} and applying the chain rule above:

ddx(ax)=axln⁡a,ddx(log⁡ax)=1xln⁡a(x>0, a>0, a≠1)\frac{d}{dx}(a^x) = a^x \ln a, \qquad \frac{d}{dx}(\log_a x) = \frac{1}{x\ln a} \quad (x>0,\ a>0,\ a\neq 1)

where: ln⁡a\ln a is a fixed numerical constant for a given base aa (not generally 11 — it equals 11 only when a=ea=e). This is exactly why exe^x sits above every other exponential: for any other base the derivative carries an extra factor of ln⁡a\ln a, and only a=ea=e makes that factor vanish to 11. It helps to notice that exe^x and ln⁡x\ln x are inverse functions of each other, so their graphs are mirror images across the line y=xy=x — one climbs steeply, the other climbs gently, and reflecting one across that diagonal produces the other exactly. This inverse relationship is also why differentiating y=ln⁡xy=\ln x can be checked by writing x=eyx=e^y and implicitly differentiating: 1=eydydx1 = e^y\dfrac{dy}{dx}, so dydx=1ey=1x\dfrac{dy}{dx}=\dfrac{1}{e^y}=\dfrac{1}{x}, matching the stated formula and confirming the two base rules are consistent with each other rather than two unrelated facts to memorise separately.

Figure
A curve for e to the x rising steeply and its mirror image the natural log curve rising slowly, reflected across the line y equals x, with a tangent line on the exponential curve matching the height of the curve at that point
e^x is its own derivative — the tangent slope equals the curve height x y y = x y = e^x y = ln x tangent, slope = e^x at that point

Derivation of the exponential rule

Derivation AWhy e to the x is its own derivative

The goal is to see, at the level expected in this syllabus, why differentiating exe^x returns exe^x exactly — not approximately, not up to a constant — using only the definition of ee as the base whose exponential grows at unit rate at the origin, and the exponent law eh−1≈he^{h}-1 \approx h for small hh.

Step 1. Start from the definition of the derivative as a limit: ddx(ex)=lim⁡h→0ex+h−exh\dfrac{d}{dx}(e^x) = \displaystyle\lim_{h\to 0} \frac{e^{x+h}-e^x}{h}.

Step 2. Split the exponent using the law ex+h=ex⋅ehe^{x+h}=e^x\cdot e^h, then factor out the common term exe^x, which does not depend on hh: ex+h−exh=exeh−exh=ex⋅eh−1h\dfrac{e^{x+h}-e^x}{h} = \dfrac{e^x e^h - e^x}{h} = e^x\cdot\dfrac{e^h-1}{h}.

Step 3. Evaluate the remaining limit lim⁡h→0eh−1h\displaystyle\lim_{h\to 0}\dfrac{e^h-1}{h}. This is precisely the defining property of the number ee: it is chosen as the unique base for which this limit equals 11 (equivalently, the exponential's instantaneous growth rate at x=0x=0 is exactly 11). Any other base aa gives lim⁡h→0ah−1h=ln⁡a≠1\lim_{h\to 0}\frac{a^h-1}{h}=\ln a \neq 1 in general.

Step 4. Substitute this limit value back in: ddx(ex)=ex⋅lim⁡h→0eh−1h=ex⋅1=ex\dfrac{d}{dx}(e^x) = e^x\cdot\displaystyle\lim_{h\to 0}\frac{e^h-1}{h} = e^x \cdot 1 = e^x. The factoring in Step 2 is what makes the result so clean — the constant multiple exe^x simply rides along untouched, and the entire content of the derivative sits in that one special limit equal to 11.

Worked example

Differentiate y=e3x2+1y = e^{3x^2+1} with respect to xx, and also differentiate y=ln⁡(x2+3x)y = \ln(x^2+3x), evaluating its derivative at x=1x=1.

Step 1. For y=e3x2+1y=e^{3x^2+1}, recognise the composite structure: outer function eue^u, inner function u=3x2+1u=3x^2+1.

Step 2. Differentiate the outer function with respect to uu: dydu=eu=e3x2+1\dfrac{dy}{du}=e^u=e^{3x^2+1}, using ddueu=eu\frac{d}{du}e^u=e^u from the box above.

Step 3. Differentiate the inner function: dudx=6x\dfrac{du}{dx}=6x. Apply the chain rule: dydx=e3x2+1⋅6x=6x e3x2+1\dfrac{dy}{dx}=e^{3x^2+1}\cdot 6x = 6x\,e^{3x^2+1}.

Step 4. Now for y=ln⁡(x2+3x)y=\ln(x^2+3x), the outer function is ln⁡u\ln u with inner u=x2+3xu=x^2+3x, so dydu=1x2+3x\dfrac{dy}{du}=\dfrac{1}{x^2+3x} and dudx=2x+3\dfrac{du}{dx}=2x+3, giving dydx=2x+3x2+3x\dfrac{dy}{dx}=\dfrac{2x+3}{x^2+3x}.

Step 5. Evaluate at x=1x=1, but first check the domain: x2+3x=1+3=4>0x^2+3x=1+3=4>0, so ln⁡(x2+3x)\ln(x^2+3x) and its derivative are defined there. Then dydx∣x=1=2(1)+312+3(1)=54\left.\dfrac{dy}{dx}\right|_{x=1}=\dfrac{2(1)+3}{1^2+3(1)}=\dfrac{5}{4}.

Final answers: dydx=6x e3x2+1\dfrac{dy}{dx}=6x\,e^{3x^2+1} for the first function, and dydx=2x+3x2+3x\dfrac{dy}{dx}=\dfrac{2x+3}{x^2+3x}, giving 54\dfrac{5}{4} at x=1x=1, for the second.

Competitive stretch

If instead you needed the derivative at x=−1x=-1, checking the domain first would stop you cold: x2+3x=1−3=−2<0x^2+3x = 1-3=-2<0 there, so ln⁡(x2+3x)\ln(x^2+3x) is not even defined at x=−1x=-1, and no derivative question could sensibly be asked at that point — always test the sign of g(x)g(x) before differentiating ln⁡[g(x)]\ln[g(x)] at a specific value.

Common traps

  • Confusing ddx(ex)=ex\frac{d}{dx}(e^x)=e^x with the derivative of xex^e. These are different families: xex^e uses the power rule, giving exe−1ex^{e-1}, while exe^x reproduces itself.
  • Dropping the chain-rule factor on ln⁡[g(x)]\ln[g(x)]. Writing 1g(x)\frac{1}{g(x)} instead of the correct g′(x)g(x)\frac{g'(x)}{g(x)} forgets to multiply by the inner derivative.
  • Ignoring the domain restriction x>0x>0. Differentiating ln⁡[g(x)]\ln[g(x)] silently assumes g(x)>0g(x)>0 on the interval in question; skipping this check can lead to nonsense at specific points.
  • Mixing up axa^x and xax^a. ddx(ax)=axln⁡a\frac{d}{dx}(a^x)=a^x\ln a is the exponential rule with constant base aa; ddx(xa)=axa−1\frac{d}{dx}(x^a)=ax^{a-1} is the power rule with constant exponent aa — superficially similar, structurally unrelated.
  • Assuming ln⁡a\ln a always equals 11. That holds only for a=ea=e; for a=2a=2 or a=10a=10, ln⁡a\ln a is a genuine numerical constant that must be carried through the calculation.

Ask the tutor: if the difference between differentiating exe^x, xex^e, and axa^x still feels blurry, ask for a quick side-by-side worked comparison with one domain-check example thrown in.

Why is e chosen as the base for the natural logarithm and not, say, 10?

Because ee is the unique base for which ddx(ex)=ex\frac{d}{dx}(e^x)=e^x exactly, with no extra multiplying constant. Every other base aa gives ddx(ax)=axln⁡a\frac{d}{dx}(a^x)=a^x\ln a, carrying an awkward factor of ln⁡a\ln a through every differentiation and integration. Choosing a=ea=e makes that factor equal to 11, which is precisely why calculus is built around ee rather than 1010 — it is the base that makes the rules cleanest, not an arbitrary convention.

Do I always need the chain rule when differentiating exe^x or ln⁡x\ln x?

Only when the exponent or the argument is itself a function of xx other than xx alone. Plain exe^x or ln⁡x\ln x needs no chain rule — the base formulas apply directly. But the moment you see e3x2+1e^{3x^2+1} or ln⁡(x2+3x)\ln(x^2+3x), the "inside" is a function of xx, and you must multiply by its derivative, exactly as shown in the worked example above. Spotting the composite structure first is the whole trick.

How is the derivative of log⁡ax\log_a x different from the derivative of ln⁡x\ln x?

They differ by a constant factor of ln⁡a\ln a in the denominator: ddx(log⁡ax)=1xln⁡a\frac{d}{dx}(\log_a x) = \frac{1}{x\ln a}, compared with ddx(ln⁡x)=1x\frac{d}{dx}(\ln x) = \frac{1}{x}. Since ln⁡e=1\ln e = 1, setting a=ea=e in the general formula collapses it exactly to the natural-log case — so ln⁡x\ln x is not a separate rule to memorise, it is simply the a=ea=e special case of log⁡ax\log_a x where the extra factor disappears.

Before this

Where this leads