Differentiation

Explore derivatives through limits and understand the Mean Value Theorem

The Derivative as a Limit

The derivative is the slope you see when you zoom in until a curve looks straight. Shrink the gaps below and watch slopes, tangents, and polynomial approximations appear.

The Derivative as a Limit

Choose a function and a point a, then shrink h. The secant line swings into the tangent, and its slope closes in on f'(a).

Error: |secant slope - f'(a)| = 1.000000

Secant line (current h)
Tangent line (limit as h → 0)

The Derivative as a Limit

The derivative f'(a) is defined as:

f'(a) = limh→0 [f(a + h) - f(a)] / h

Watch as h shrinks: the secant line (connecting two points on the curve) approaches the tangent line (touching at exactly one point).

Go deeper:The Derivative as a Limit

The derivative measures instantaneous rate of change. It's defined as a limit of difference quotients: f'(a) = limh→0 [f(a + h) - f(a)] / h. We'll explore when this limit exists, prove the Mean Value Theorem, and discover the surprising ways that differentiability relates to continuity.

Watch secant lines approach the tangent line as h → 0. The slope of the secant line converges to the derivative.

Key insight: The derivative exists only when the left and right difference quotients agree in the limit, making it a fundamentally two-sided concept.

Mean Value Theorem

Drag the interval endpoints and find c, where the tangent runs parallel to the secant from a to b.

a:
b:
MVT Point Found

c = 0.5000

f'(c) = 1.0000

= (f(b) - f(a)) / (b - a) = 1.0000

Endpoints a, b
MVT point c
Secant line
Tangent at c

Mean Value Theorem (MVT)

If f is continuous on [a, b] and differentiable on (a, b), then there exists c ∈ (a, b) such that:

f'(c) = [f(b) - f(a)] / (b - a)

Geometrically: there's a point where the tangent line is parallel to the secant connecting the endpoints.

Go deeper:Mean Value Theorem

For a differentiable function on [a, b], there's always a point c where the tangent line is parallel to the secant connecting the endpoints. This theorem is the workhorse of differential calculus, powering results from L'Hopital's rule to the Fundamental Theorem of Calculus.

Key insight: If f is continuous on [a, b] and differentiable on (a, b), then f'(c) = [f(b) - f(a)] / (b - a) for some c in (a, b).

Rolle's Theorem

Pick a function and set an interval where f(a) = f(b). A horizontal tangent always shows up in between.

a:
b:

Rolle's Theorem applies!

Rolle's Theorem

If f is continuous on [a, b], differentiable on (a, b), and f(a) = f(b), then there exists c ∈ (a, b) such that:

f'(c) = 0

This is a special case of MVT: when the secant slope is 0 (horizontal), the tangent must also be horizontal somewhere in between.

Go deeper:Rolle's Theorem

A special case of MVT: when f(a) = f(b), there must be a point c where f'(c) = 0 (horizontal tangent). Rolle's theorem is both the stepping stone to the MVT and a powerful tool for counting roots of derivatives.

Key insight: Rolle's Theorem is the geometric statement that a smooth curve returning to the same height must have a horizontal tangent somewhere in between.

Differentiability vs Continuity

Pick a function and shrink h with the left and right secants showing. Where their slopes disagree, there is no derivative.

corner

Left and right derivatives exist but are different

Left derivative: -1, Right: 1

One-sided limits differ!
Left secant
Right secant
Non-differentiable point

Differentiability ⟹ Continuity (but not vice versa!)

If a function is differentiable at a point, it must be continuous there. However, continuity does NOT guarantee differentiability.

• Corner: |x| is continuous but not differentiable at 0

• Cusp: x^(2/3) is continuous but has infinite one-sided derivatives

• Vertical tangent: ∛x is continuous but f'(0) = ∞

• Discontinuity: If not continuous, cannot be differentiable

Go deeper:Differentiability vs Continuity

Differentiability implies continuity, but not vice versa. Explore corners, cusps, and vertical tangents where continuous functions fail to be differentiable.

Key insight: If f is differentiable at a, then f is continuous at a. The converse is false — |x| at x = 0 is the classic counterexample.

Taylor Polynomials

Pick a function and raise the degree. The polynomial hugs the curve over a wider and wider stretch.

Taylor polynomial:

T3(x) = 1.000 +x +0.500x^2 +0.167x^3

Original function f(x)
Taylor polynomial Tn(x)
Expansion center

Taylor Polynomials

The Taylor polynomial of degree n centered at a is:

Tn(x) = f(a) + f'(a)(x-a) + f''(a)(x-a)²/2! + ... + f(n)(a)(x-a)n/n!

As n increases, the polynomial approximates f better near the center. For analytic functions, Tn → f as n → ∞ (within the radius of convergence).

Go deeper:Taylor Polynomials

Higher-order derivatives give us polynomial approximations that match a function's behavior near a point. Watch convergence as degree increases.

Key insight: An n-times differentiable function can be approximated by a polynomial plus a remainder term whose size is controlled by the (n+1)-th derivative.

Key Takeaways

  • Somewhere in (a, b), the slope equals the average slope from a to b.
  • If f(a) = f(b), the curve has a horizontal tangent in between.
  • Differentiable functions are continuous, but not the other way round.
  • Taylor polynomials approximate a function with a controlled error.

Spot a mistake or have an idea?

Search