Skip to content
Tutorials Center
My learning

Topics

Lesson 23 of 37 · Differentiation

The Derivative as a Limit

Define the derivative rigorously as a limit of difference quotients, see why differentiable implies continuous, and meet functions that break naive expectations.

The derivative measures instantaneous rate of change. In calculus it is introduced through pictures of tangent lines; in analysis it is a limit, and every theorem about derivatives is a theorem about that limit. This lesson states the definition, proves the first basic facts, and examines three examples that show what can go wrong.

Definition

Let f be defined on an open interval containing a. The derivative of f at a is

Text
f'(a) = lim_{h → 0} ( f(a + h) - f(a) ) / h

if this limit exists (as a finite real number). Then f is differentiable at a. Equivalent form: f'(a) = lim_{x → a} (f(x) - f(a)) / (x - a). In ε-δ language: for every ε > 0 there is δ > 0 such that 0 < |h| < δ implies | (f(a+h) - f(a))/h - f'(a) | < ε.

The quotient (f(a+h) - f(a))/h is the slope of the secant line through (a, f(a)) and (a+h, f(a+h)). The derivative is the limiting slope.

Example. For f(x) = x²: ((a+h)² - a²)/h = (2ah + h²)/h = 2a + h → 2a. So f'(a) = 2a.

Differentiable implies continuous

Theorem. If f is differentiable at a then f is continuous at a.

Proof. For x ≠ a,

Text
f(x) - f(a) = ( (f(x) - f(a)) / (x - a) ) · (x - a).

As x → a, the first factor tends to f'(a) and the second to 0, so the product tends to 0. Hence f(x) → f(a). ∎

The converse is false, as the next example shows.

Example 1: |x| at 0

For f(x) = |x|, the quotient at 0 is |h|/h, which equals 1 for h > 0 and -1 for h < 0. The two one-sided derivatives exist but differ, so the limit does not exist. |x| is continuous everywhere and differentiable everywhere except 0.

Example 2: a function with a derivative that is not continuous

Define f(x) = x² sin(1/x) for x ≠ 0 and f(0) = 0.

At 0: f(h)/h = h sin(1/h), and |h sin(1/h)| ≤ |h| → 0. So f'(0) = 0.

For x ≠ 0 the usual rules give f'(x) = 2x sin(1/x) - cos(1/x). As x → 0, the term 2x sin(1/x) → 0 but cos(1/x) oscillates between -1 and 1. So f' has no limit at 0: the derivative exists everywhere but is not continuous at 0.

Python Difference quotients near 0

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The |x| column jumps between +1 and -1 (no limit). The second column is squeezed toward 0, matching f'(0) = 0.

Example 3: the derivative of a power

For a positive integer n, (a+h)ⁿ - aⁿ = h·( (a+h)ⁿ⁻¹ + (a+h)ⁿ⁻² a + ... + aⁿ⁻¹ ) (a telescoping factorization). Dividing by h and letting h → 0 gives n aⁿ⁻¹. The derivative of a sum is the sum of the derivatives, and a constant factor pulls out, because the corresponding facts hold for limits. The product and chain rules need a bit more care and are the subject of the next lesson.

Python Symbolic limit of the difference quotient

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The last two lines show two sequences tending to 0 along which cos(1/x) equals 1 and -1, so f' has no limit at 0.

A related statement does hold: if f is differentiable on an interval then f' has the intermediate value property, even when f' is not continuous (Darboux's theorem). So a derivative cannot have a jump discontinuity.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which statement is true?

    The proof writes f(x) - f(a) as the difference quotient times (x - a), which tends to f'(a) * 0 = 0. The converse fails for |x| at 0.
  2. 2. For f(x) = |x|, the difference quotient at 0 equals:

    |h|/h is 1 on the right and -1 on the left, so the two one-sided limits differ.
  3. 3. For f(x) = x^2 sin(1/x) with f(0) = 0, what is f'(0)?

    f(h)/h = h sin(1/h), whose absolute value is at most |h|, so it tends to 0.
  4. 4. For the same function, what is true of f' near 0?

    f'(x) = 2x sin(1/x) - cos(1/x) for x not 0, and cos(1/x) keeps oscillating, so f' has no limit at 0 even though f'(0) = 0.

Summary

  • f'(a) is the limit of (f(a+h) - f(a))/h as h → 0; it must exist as a finite number.
  • Differentiable implies continuous; the converse fails (|x| at 0).
  • x² sin(1/x) has a derivative at every point, yet f' is discontinuous at 0.
  • Derivatives cannot have jump discontinuities: they satisfy the intermediate value property.

Next: Differentiation Rules and the Chain Rule