Tutorials › Calculus I › Deriving the Derivative of the Natural Logarithm

Exponential and Logarithmic Derivatives · Tutorial 535 of 1495

Deriving the Derivative of the Natural Logarithm

Use the derivative of the natural exponential and the inverse-function derivative rule to establish the derivative of the natural logarithm for every positive input.

Intermediate 8 min read

What You'll Learn

  • Identify the domain of the natural logarithm from the range of the natural exponential.
  • State the inverse-function derivative rule and its conditions.
  • Prove the rule by relating the inverse difference quotient to the original function’s difference quotient.
  • Apply the rule to derive the derivative of the natural logarithm.
  • Evaluate logarithmic derivatives at specific positive inputs and check the results.
  • Recognize why the formula does not apply at zero or at negative inputs.

Introduction

The natural logarithm and the natural exponential undo one another. That relationship does more than help solve equations: it lets us obtain the derivative of the logarithm from the derivative of the exponential.

The key step is the inverse-function derivative rule. In this tutorial, we state that rule, explain why it works, and apply it to derive the derivative of \(\ln x\) for positive \(x\). The restriction to positive inputs is essential: the natural logarithm is defined on \((0,\infty)\), not at zero or at negative real numbers.

The Inverse Relationship and Its Domain

The natural exponential function \(f(x)=e^x\) is strictly increasing and has range \((0,\infty)\). Consequently, it has an inverse function whose domain is \((0,\infty)\). That inverse is the natural logarithm.

Definition: For \(x>0\), \(\ln x\) is the unique real number \(y\) such that \(e^y=x\). Equivalently, \(e^{\ln x}=x\) for \(x>0\), and \(\ln(e^y)=y\) for every real number \(y\).

These identities specify which values can be used in the inverse relationship. The exponential can take any real input, but its output is always positive. Thus \(\ln x\) is defined precisely when \(x>0\).

From the earlier result on the derivative of the natural exponential, we use \(\frac{d}{dx}e^x=e^x\). In particular, this derivative is never zero. The inverse-function derivative rule turns that fact into a formula for the derivative of its inverse.

The Inverse-Function Derivative Rule

Suppose \(f\) is differentiable near a point \(a\), is one-to-one there, and has an inverse \(f^{-1}\) on the corresponding range. If the inverse is continuous at \(f(a)\) and \(f'(a)\ne 0\), then the inverse is differentiable at \(f(a)\), with derivative equal to the reciprocal of \(f'(a)\).

Theorem: Under these conditions, $$ \left(f^{-1}\right)'(f(a))=\frac{1}{f'(a)}. $$ More generally, at an input \(y=f(a)\) in the range where the conditions hold, $$ \left(f^{-1}\right)'(y)=\frac{1}{f'(f^{-1}(y))}. $$

The formula compares derivatives at corresponding inputs. If \(f(a)=y\), then the derivative of the inverse is evaluated at \(y\), while the derivative of \(f\) in the denominator is evaluated at \(a=f^{-1}(y)\). Keeping these two inputs distinct prevents a common substitution error.

Why the Rule Works

Here is the difference-quotient argument. Let \(y\ne f(a)\) approach \(f(a)\), and set \(x=f^{-1}(y)\). Since \(f^{-1}\) is continuous at \(f(a)\), \(x\) approaches \(a\). Also \(y=f(x)\), so the difference quotient for the inverse can be rewritten as a reciprocal:

$$ \frac{f^{-1}(y)-f^{-1}(f(a))}{y-f(a)} = \frac{x-a}{f(x)-f(a)} = \frac{1}{\dfrac{f(x)-f(a)}{x-a}}. $$

As \(y\) approaches \(f(a)\), \(x\) approaches \(a\). By the definition of the derivative, the denominator on the right approaches \(f'(a)\). Because \(f'(a)\ne0\), taking reciprocals is valid, and the quotient approaches \(1/f'(a)\). This is exactly the derivative of \(f^{-1}\) at \(f(a)\), proving the rule.

The nonzero-derivative condition matters: if the denominator limit were zero, this reciprocal argument would not establish a finite derivative for the inverse. The assumptions of the rule are therefore part of the result, not optional details.

Deriving the Derivative of \(\ln x\)

Apply the rule to \(f(x)=e^x\). This function is differentiable, strictly increasing, and therefore has an inverse on its range. Its inverse is continuous, and \(f'(a)=e^a\), which is positive and hence nonzero for every real \(a\).

Choose any positive input \(x\) for the logarithm. Its corresponding input to the exponential is \(a=\ln x\), because \(e^{\ln x}=x\). The inverse-function rule now gives:

$$ \frac{d}{dx}\ln x = \left(f^{-1}\right)'(x) = \frac{1}{f'(f^{-1}(x))} = \frac{1}{e^{\ln x}} = \frac{1}{x}, \qquad x>0. $$
Result: The natural logarithm is differentiable for every \(x>0\), and $$ \frac{d}{dx}\ln x=\frac{1}{x}. $$

The final equality uses \(e^{\ln x}=x\), which holds on the logarithm’s domain. The formula is not being asserted at \(x=0\) or for \(x<0\): there is no real value \(\ln x\) at those inputs.

Worked Examples

Worked Example: Find the derivative at \(x=1\)

Since \(1>0\), the derivative formula applies. Substitute \(x=1\):

$$ \left.\frac{d}{dx}\ln x\right|_{x=1} = \frac{1}{1} = 1. $$

Check using the inverse relationship: the corresponding exponential input is \(\ln 1=0\), and \(\frac{d}{dx}e^x\) at \(0\) is \(e^0=1\). The inverse derivative is its reciprocal, \(1/1=1\), agreeing with the result.

Worked Example: Find the tangent line to \(y=\ln x\) at \(x=e^2\)

The point on the graph has vertical coordinate \(\ln(e^2)=2\), so the point is \((e^2,2)\). The derivative formula gives the slope there:

$$ \left.\frac{dy}{dx}\right|_{x=e^2} = \frac{1}{e^2}. $$

Using the point-slope form of a line, the tangent line is

$$ y-2=\frac{1}{e^2}(x-e^2). $$

Check the slope through the inverse relationship. The matching exponential input is \(2\), and the exponential derivative there is \(e^2\). Its reciprocal is \(1/e^2\), as required. Substituting \(x=e^2\) into the tangent-line equation gives \(y-2=0\), so the line passes through \((e^2,2)\).

Worked Example: Find the derivative at \(x=\frac14\)

The input is positive, so the formula applies directly:

$$ \left.\frac{d}{dx}\ln x\right|_{x=1/4} = \frac{1}{1/4} = 4. $$

Check using the corresponding exponential input. Since \(\ln(1/4)\) is the real number \(a\) satisfying \(e^a=1/4\), the exponential derivative at \(a\) is \(e^a=1/4\). The reciprocal is \(1/(1/4)=4\), confirming the result.

A Common Mistake: Using the Wrong Input

The inverse rule evaluates the original function’s derivative at the input that maps to the logarithm’s input. It does not use the same number as the input to both functions.

For example, to find the derivative of \(\ln 3\) as a function at input \(x=3\), an incorrect calculation might use the exponential derivative at \(3\) and claim the answer is \(1/e^3\). That uses the wrong input: \(e^3\) is not \(3\). The correct corresponding exponential input is \(\ln 3\), because \(e^{\ln 3}=3\). Therefore:

$$ \left.\frac{d}{dx}\ln x\right|_{x=3} = \frac{1}{(e^x)'|_{x=\ln 3}} = \frac{1}{e^{\ln 3}} = \frac{1}{3}. $$

Check: the exponential derivative at \(\ln 3\) is \(e^{\ln 3}=3\), and the inverse derivative is its reciprocal, \(1/3\). The general formula \(1/x\) records this input matching directly.

Why the Result Matters

The derivative formula describes how the natural logarithm changes as its positive input changes. Its value \(1/x\) is positive throughout the domain, so the logarithm increases there. The formula also shows that the derivative depends on the input: it is larger near zero and smaller for large positive inputs.

Most importantly for this derivation, the formula is not an independent fact to memorize without context. It follows from three ingredients: the logarithm is the inverse of the natural exponential; the exponential has derivative \(e^x\); and the derivative of an inverse is the reciprocal derivative at the corresponding input. The correspondence \(e^{\ln x}=x\) completes the argument.

Takeaway: For \(x>0\), the inverse-function rule gives \(\frac{d}{dx}\ln x=1/e^{\ln x}=1/x\). Always match the input of the inverse to the original function’s corresponding input.

Check Your Understanding

Answer these questions using the inverse relationship and the derivative formula.

  1. Why is the natural logarithm defined only for positive real inputs?
  2. State the condition on \(f'(a)\) that allows the inverse-function derivative rule to give a reciprocal.
  3. In the formula for the derivative of \(\ln x\), why is the exponential derivative evaluated at \(\ln x\), rather than at \(x\)?
  4. Find the derivative of \(\ln x\) at \(x=5\), and check it by identifying the corresponding exponential input.
  5. What invalid step would be made by applying the formula \(\frac{d}{dx}\ln x=1/x\) at \(x=0\)?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon