Real Analysis · Undergraduate

Differentiability: The Derivative as a Limit

Quick answer

A function is differentiable at c when the difference quotient (f(x) − f(c))/(x − c) has a limit as x → c; that limit is f′(c). Every differentiable function is continuous, since f(x) − f(c) equals the quotient times (x − c), which tends to f′(c) · 0. The converse fails: |x| is continuous at 0, but its one-sided quotients tend to 1 and −1. And x² sin(1/x) is differentiable at 0 with derivative 0, even though its derivative has no limit there.

What you'll learn

  • Compute a derivative from the limit definition
  • Prove that differentiability implies continuity
  • Show a function is not differentiable using one-sided limits
  • Analyze x² sin(1/x) at 0

The derivative as a limit

A function ff is differentiable at cc when this limit exists:

f′(c)=lim⁡x→cf(x)−f(c)x−cf'(c) = \lim_{x \to c} \frac{f(x) - f(c)}{x - c}

The limit is the one from continuity, applied to the difference quotient, which is undefined at x=cx = c itself. A two-sided limit exists exactly when the left-hand and right-hand limits exist and agree.

y = x² sin(1/x) squeezed between y = x² and y = −x² The graph of y = x² sin(1/x) near 0, wiggling faster and faster as x approaches 0 but trapped between the parabolas y = x² and y = −x². The squeeze forces the slope at 0 to be 0. xy
  • y = x² sin(1/x)
  • y = ±x²
y = x² sin(1/x) squeezed between y = x² and y = −x²

Why differentiable functions are continuous

For x≠cx \ne c, write

f(x)−f(c)=f(x)−f(c)x−c⋅(x−c)f(x) - f(c) = \frac{f(x) - f(c)}{x - c} \cdot (x - c)

As x→cx \to c, the first factor tends to f′(c)f'(c) and the second to 00. By the product rule for limits, f(x)−f(c)→f′(c)⋅0=0f(x) - f(c) \to f'(c) \cdot 0 = 0, which says ff is continuous at cc. The argument needs the quotient to have a finite limit, and that is exactly what ∣x∣|x| lacks at 00.

Worked examples

Common mistakes

Practice problems

  1. Use the definition to find f′(2)f'(2) for f(x)=x3f(x) = x^3.

    Answer

    1212

    Full solution

    x3−8x−2=x2+2x+4→12\tfrac{x^3 - 8}{x - 2} = x^2 + 2x + 4 \to 12.

  2. Find lim⁡x→0+∣x∣x\lim_{x \to 0^+} \tfrac{|x|}{x}.

    Answer

    11

    Full solution

    For x>0x > 0, ∣x∣=x|x| = x.

  3. Find lim⁡x→0−∣x∣x\lim_{x \to 0^-} \tfrac{|x|}{x}.

    Answer

    −1-1

    Full solution

    For x<0x < 0, ∣x∣=−x|x| = -x.

  4. Is f(x)=x∣x∣f(x) = x|x| differentiable at 00?

    Answer

    Yes

    Full solution

    The quotient is x∣x∣x=∣x∣→0\tfrac{x|x|}{x} = |x| \to 0, so f′(0)=0f'(0) = 0.

  5. Find f′(3)f'(3) for f(x)=x∣x∣f(x) = x|x|.

    Answer

    66

    Full solution

    Near 33, f(x)=x2f(x) = x^2, so f′(3)=2⋅3f'(3) = 2 \cdot 3.

  6. Is f(x)=∣x−2∣f(x) = |x - 2| differentiable at 22?

    Answer

    No

    Full solution

    The one-sided quotients tend to 11 and −1-1.

  7. Use the definition to find f′(4)f'(4) for f(x)=xf(x) = \sqrt{x}.

    Answer

    14\tfrac{1}{4}

    Full solution

    x−2x−4=1x+2→14\tfrac{\sqrt{x} - 2}{x - 4} = \tfrac{1}{\sqrt{x} + 2} \to \tfrac{1}{4}.

  8. For f(x)=x2sin⁡ ⁣(1x)f(x) = x^2\sin\!\left(\tfrac{1}{x}\right) with f(0)=0f(0) = 0, a student tries to evaluate 2xsin⁡ ⁣(1x)−cos⁡ ⁣(1x)2x\sin\!\left(\tfrac{1}{x}\right) - \cos\!\left(\tfrac{1}{x}\right) at x=0x = 0. Find f′(0)f'(0) from the definition.

    Answer

    00

    Full solution

    The quotient xsin⁡ ⁣(1x)x\sin\!\left(\tfrac{1}{x}\right) is squeezed to 00.

Frequently asked questions

What does differentiable at c mean?

The limit of (f(x) − f(c))/(x − c) as x → c exists. Its value is f′(c).

Does differentiable imply continuous?

Yes. f(x) − f(c) = [(f(x) − f(c))/(x − c)] · (x − c), which tends to f′(c) · 0 = 0.

Does continuous imply differentiable?

No. |x| is continuous at 0 but not differentiable there.

Can a derivative exist everywhere but not be continuous?

Yes. f(x) = x² sin(1/x) with f(0) = 0 has f′(0) = 0, but f′(x) = 2x sin(1/x) − cos(1/x) has no limit as x → 0.

What to learn next