girgit.org

Continuity and Differentiability

The function that is its own derivative: eˣ and log x

The big ideaThe natural exponential does not change when you differentiate it, \( \frac{d}{dx}e^x = e^x \), and the natural log has the simplest possible derivative, \( \frac{d}{dx}\log x = \frac{1}{x} \).

In simple words

Imagine something that grows exactly as fast as its own size. When it is small it grows slowly; when it is big it grows quickly; and the speed always equals the size. That thing is \( e^x \). It is the only kind of growth that is its own speed.

Theorem 5

Two new standard derivatives

  • \( \dfrac{d}{dx}\left( e^x \right) = e^x \)
  • \( \dfrac{d}{dx}\left( \log x \right) = \dfrac{1}{x} \), for \( x \gt 0 \)

The book skips the proof, but you can see why they fit together. Since \( \log \) undoes \( e^x \), put \( y = \log x \), so \( x = e^y \). Differentiating implicitly, \( 1 = e^y \frac{dy}{dx} \), so \( \frac{dy}{dx} = \frac{1}{e^y} = \frac{1}{x} \). The second rule follows from the first.

Before you read on, guess which base is special, then test it.

What makes \( e \) the "natural" base? The graph of \( e^x \) crosses the y-axis with slope exactly 1. For \( 2^x \) that slope is about 0.69; for \( 3^x \) it is about 1.10. \( e \approx 2.718 \) is the base in between that makes it exactly 1, and that is what makes the derivative come out so clean.

With the chain rule

These two rules join the chain rule like every other standard derivative:

\[ \frac{d}{dx}e^{u} = e^{u}\frac{du}{dx}, \qquad \frac{d}{dx}\log u = \frac{1}{u}\frac{du}{dx} \]

Worked example 1

\( \frac{d}{dx}e^{3x} = e^{3x} \cdot 3 = 3e^{3x} \), and \( \frac{d}{dx}e^{x^2} = 2xe^{x^2} \).

Worked example 2

\( y = \log(\sin x) \), for \( \sin x \gt 0 \). \( \frac{dy}{dx} = \frac{1}{\sin x} \cdot \cos x = \cot x \).

Worked example 3

\( y = e^{\tan x} \). \( \frac{dy}{dx} = e^{\tan x}\sec^2 x \).

Worked example 4: inverse trig of an exponential

\( y = \tan^{-1}(e^x) \). \( \frac{dy}{dx} = \frac{1}{1 + (e^x)^2} \cdot e^x = \dfrac{e^x}{1 + e^{2x}} \).

Worked example 5: log of a polynomial

\( y = \log(x^2 + 1) \). \( \frac{dy}{dx} = \dfrac{2x}{x^2 + 1} \). A handy pattern: the derivative of \( \log(\text{something}) \) is \( \frac{(\text{something})'}{\text{something}} \).

Worked example 6: a product

\( y = e^x \cos x \). Product rule: \( \frac{dy}{dx} = e^x\cos x - e^x\sin x = e^x(\cos x - \sin x) \).

Guess first: what is d/dx log(5x)?

Guess: is it \( \frac{5}{x} \), \( \frac{1}{5x} \), or something else?

Commit to one, then compare the two curves.

See what happens
It is \( \frac{1}{x} \), the same as for \( \log x \). Chain rule: \( \frac{1}{5x} \cdot 5 = \frac{1}{x} \). Or use the log law: \( \log(5x) = \log 5 + \log x \), and \( \log 5 \) is a constant, whose derivative is 0. Multiplying inside a log only shifts the graph up; it does not change its slope.

Don't mix these up

  • \( \frac{d}{dx}e^x = e^x \), but \( \frac{d}{dx}x^e = ex^{e-1} \) (power rule: the variable is in the base, not the power).
  • \( \frac{d}{dx}e^{2x} = 2e^{2x} \), not \( 2xe^{2x - 1} \): the power rule is for \( x^n \) with a fixed n, not for a variable power.
  • \( \log x \) here is base e. For base 10 or any base a, use change of base: \( \log_a x = \frac{\log x}{\log a} \), so \( \frac{d}{dx}\log_a x = \frac{1}{x\log a} \).

Not in the current textbook, but JEE asks it: for \( x \lt 0 \), \( \log|x| = \log(-x) \), whose derivative is \( \frac{1}{-x} \cdot (-1) = \frac{1}{x} \). So \( \frac{d}{dx}\log|x| = \frac{1}{x} \) for every \( x \ne 0 \). This matters a lot when you reach integration.

Try it. Differentiate (a) \( e^{-2x}\sin x \), (b) \( \log(\log x) \) for \( x \gt 1 \), (c) \( \sin(\log x) \) for \( x \gt 0 \), (d) \( \log_{10} x \).

Answer
(a) \( e^{-2x}(\cos x - 2\sin x) \). (b) \( \frac{1}{\log x} \cdot \frac{1}{x} = \frac{1}{x\log x} \). (c) \( \frac{\cos(\log x)}{x} \). (d) \( \frac{1}{x\log 10} \).

Words to know

\( (e^x)' \)
\( e^x \): the function is its own derivative.
\( (\log x)' \)
\( \frac{1}{x} \) for \( x \gt 0 \) (log to base e).
\( (e^{u})' \)
\( e^{u}u' \), by the chain rule.
\( (\log u)' \)
\( \frac{u'}{u} \), by the chain rule.

What is \( \frac{d}{dx}e^{\cos x} \)?

  1. \( e^{\cos x} \)
  2. \( -\sin x \, e^{\cos x} \)
  3. \( \cos x \, e^{\cos x - 1} \)

What is \( \frac{d}{dx}\log(x^3) \), for \( x \gt 0 \)?

  1. \( \frac{1}{x^3} \)
  2. \( \frac{3}{x} \)
  3. \( 3x^2 \)

Which function equals its own derivative?

  1. \( x^e \)
  2. \( 2^x \)
  3. \( e^x \)