Skip to main content

Thomas’ Calculus · Chapter 03 · Section 3.2

By Muhammad Abdullah Athar · SymPy Verified

The Derivative as a Function

❦

Read this page the way you would a book: first the notes, then the key ideas, then every worked example in order — each step explains not only what to do, but why it works.

Part One

Section Notes

❧

Section 3.2: The Derivative as a Function

Rather than calculating the derivative at a single numerical point x0x_0, we treat the independent variable xx as arbitrary. This transforms differentiation into an operator that inputs a function ff and outputs its derivative function f′f'.


1. Definition and Notation

f′(x)=dydx=ddx[f(x)]=lim⁡h→0f(x+h)−f(x)hf'(x) = \frac{dy}{dx} = \frac{d}{dx}[f(x)] = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

Common notations:

  • Lagrange: y′y', f′(x)f'(x)
  • Leibniz: dydx\frac{dy}{dx}, dfdx\frac{df}{dx}
  • Euler / Cauchy: DxyD_x y, Df(x)Df(x)

2. Differentiability vs Continuity

Theorem: If ff is differentiable at cc, then ff is continuous at cc.

Crucial Warning (Converse is FALSE):

Continuity does NOT guarantee differentiability:

  • f(x)=∣x∣f(x) = |x| is continuous at x=0x = 0, but has a sharp corner where f+′(0)=1f'_+(0) = 1 and f−′(0)=−1f'_-(0) = -1. Hence f′(0)f'(0) does not exist.
  • f(x)=x1/3f(x) = x^{1/3} has a vertical tangent at x=0x = 0 (f′(x)→∞f'(x) \to \infty).
  • f(x)=x2/3f(x) = x^{2/3} has a cusp at x=0x = 0.

Part Two

Key Ideas to Remember

3 essential statements for this section, each with a plain-words explanation.

Definition #1Sec 3.2

The Derivative as a Function

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

The derivative of f with respect to x is the function f' whose value at x is the limit of the difference quotient. The domain of f' is the set of all x for which this limit exists.

Conditions: x is an interior point of domain of f; Limit exists as a real number

In plain words: Differentiating a function produces a new function that assigns to each input x the instantaneous slope of the original graph at x.

Remember — Differentiation is an operation that maps a function f to a new function f'.

Theorem #2Sec 3.2

Differentiability Implies Continuity

f is differentiable at c  ⟹  f is continuous at cf \text{ is differentiable at } c \implies f \text{ is continuous at } c

If f has a derivative at x = c, then f is continuous at x = c.

Conditions: f'(c) exists

In plain words: Since f(x) - f(c) = [(f(x) - f(c))/(x - c)] * (x - c), taking the limit gives f'(c) * 0 = 0, which proves lim f(x) = f(c). The converse is FALSE: f(x) = |x| is continuous at 0 but not differentiable.

Remember — Differentiability is a strictly stronger smoothness condition than continuity.

Rule #3Sec 3.2

Modes of Non-Differentiability

Corner (f+′≠f−′),Cusp (f′→±∞),Vertical Tangent (∣f′∣→∞),Discontinuity\text{Corner } (f'_+ \neq f'_-), \quad \text{Cusp } (f' \to \pm \infty), \quad \text{Vertical Tangent } (|f'| \to \infty), \quad \text{Discontinuity}

A function fails to be differentiable at x = c if: (1) it has a corner (one-sided derivatives exist but differ), (2) a cusp, (3) a vertical tangent, or (4) a discontinuity.

Conditions: c in domain of f or boundary

In plain words: Smoothness requires the graph to have a well-defined non-vertical tangent line with matching left and right slopes.

Remember — Corners, cusps, vertical tangents, and discontinuities prevent differentiability.

Part Three

Worked Examples

5 exercises, solved in full. Every answer has been checked symbolically with SymPy before printing.

Example 01(Section 3.2, Exercise 1)

Warm-up

Problem. Find the derivative function f'(x) for f(x) = 3x^2 - 5x + 2 directly from the definition.

Step-by-Step Derivation (3 steps)

1

Set up the General Difference Quotient

f′(x)=lim⁡h→0[3(x+h)2−5(x+h)+2]−[3x2−5x+2]hf'(x) = \lim_{h \to 0} \frac{[3(x + h)^2 - 5(x + h) + 2] - [3x^2 - 5x + 2]}{h}

Apply the definition of the derivative function with variable x.

Why this works: Definition of derivative as a function.
2

Expand and Group Terms

3(x2+2xh+h2)−5x−5h+2−3x2+5x−2=6xh+3h2−5h3(x^2 + 2xh + h^2) - 5x - 5h + 2 - 3x^2 + 5x - 2 = 6xh + 3h^2 - 5h

Expand the squared binomial and cancel opposite terms.

Why this works: Polynomial expansion clears constant and quadratic terms.
3

Cancel h and Take Limit

lim⁡h→0h(6x+3h−5)h=lim⁡h→0(6x+3h−5)=6x−5\lim_{h \to 0} \frac{h(6x + 3h - 5)}{h} = \lim_{h \to 0} (6x + 3h - 5) = 6x - 5

Factor out h, cancel the denominator, and evaluate at h = 0.

Why this works: Canceling h resolves the indeterminate form.

Answer: f′(x)=6x−5f'(x) = 6x - 5

✓ Verified by SymPy CAS

Example 02(Section 3.2, Exercise 2)

Core practice

Problem. Find f'(x) for f(x) = 1/sqrt(x) for x > 0 using the definition of derivative.

Step-by-Step Derivation (3 steps)

1

Formulate the Difference Quotient

f(x+h)−f(x)h=1x+h−1xh=x−x+hhxx+h\frac{f(x + h) - f(x)}{h} = \frac{\frac{1}{\sqrt{x + h}} - \frac{1}{\sqrt{x}}}{h} = \frac{\sqrt{x} - \sqrt{x + h}}{h\sqrt{x}\sqrt{x + h}}

Combine the fractions in the numerator with common denominator sqrt(x)*sqrt(x+h).

Why this works: Standard algebraic fraction simplification.
2

Rationalize Using the Conjugate

(x−x+h)(x+x+h)hxx+h(x+x+h)=x−(x+h)hxx+h(x+x+h)=−hh…=−1xx+h(x+x+h)\frac{(\sqrt{x} - \sqrt{x + h})(\sqrt{x} + \sqrt{x + h})}{h\sqrt{x}\sqrt{x + h}(\sqrt{x} + \sqrt{x + h})} = \frac{x - (x + h)}{h\sqrt{x}\sqrt{x + h}(\sqrt{x} + \sqrt{x + h})} = \frac{-h}{h\dots} = \frac{-1}{\sqrt{x}\sqrt{x + h}(\sqrt{x} + \sqrt{x + h})}

Multiply numerator and denominator by sqrt(x) + sqrt(x+h) and cancel h.

Why this works: Conjugate multiplication rationalizes the radical numerator.
3

Evaluate Limit as h -> 0

lim⁡h→0−1xx+0(x+x)=−1x(2x)=−12xx=−12x−3/2\lim_{h \to 0} \frac{-1}{\sqrt{x}\sqrt{x + 0}(\sqrt{x} + \sqrt{x})} = \frac{-1}{x(2\sqrt{x})} = -\frac{1}{2x\sqrt{x}} = -\frac{1}{2}x^{-3/2}

Substitute h = 0 into the continuous simplified expression.

Why this works: Taking the limit produces the power rule derivative for n = -1/2.

Answer: f′(x)=−12x3/2=−12xxf'(x) = -\frac{1}{2x^{3/2}} = -\frac{1}{2x\sqrt{x}}

✓ Verified by SymPy CAS

Example 03(Section 3.2, Exercise 3)

Warm-up

Problem. Show that f(x) = |x - 3| is continuous at x = 3, but fails to be differentiable at x = 3.

Step-by-Step Derivation (4 steps)

1

Verify Continuity at x = 3

lim⁡x→3∣x−3∣=∣3−3∣=0=f(3)\lim_{x \to 3} |x - 3| = |3 - 3| = 0 = f(3)

Direct substitution demonstrates that the limit equals the function value.

Why this works: Proves continuity at x = 3.
2

Compute Right-Hand Derivative at x = 3

f+′(3)=lim⁡h→0+∣(3+h)−3∣−0h=lim⁡h→0+∣h∣h=lim⁡h→0+hh=1f'_+(3) = \lim_{h \to 0^+} \frac{|(3 + h) - 3| - 0}{h} = \lim_{h \to 0^+} \frac{|h|}{h} = \lim_{h \to 0^+} \frac{h}{h} = 1

For h > 0, |h| = h.

Why this works: Definition of right-hand derivative.
3

Compute Left-Hand Derivative at x = 3

f−′(3)=lim⁡h→0−∣(3+h)−3∣−0h=lim⁡h→0−∣h∣h=lim⁡h→0−−hh=−1f'_-(3) = \lim_{h \to 0^-} \frac{|(3 + h) - 3| - 0}{h} = \lim_{h \to 0^-} \frac{|h|}{h} = \lim_{h \to 0^-} \frac{-h}{h} = -1

For h < 0, |h| = -h.

Why this works: Definition of left-hand derivative.
4

Conclude Failure of Differentiability

f+′(3)=1≠−1=f−′(3)  ⟹  f′(3) DNEf'_+(3) = 1 \neq -1 = f'_-(3) \implies f'(3) \text{ DNE}

The two one-sided derivatives disagree, creating a sharp corner.

Why this works: A derivative exists if and only if both one-sided derivatives agree.

Answer: f is continuous at x=3, but f′(3) does not exist because f+′(3)=1≠−1=f−′(3)f \text{ is continuous at } x = 3, \text{ but } f'(3) \text{ does not exist because } f'_+(3) = 1 \neq -1 = f'_-(3)

✓ Verified by SymPy CAS

Example 04(Section 3.2, Exercise 4)

Core practice

Problem. Find f'(x) for f(x) = x/(x + 2) from first principles and state its domain.

Step-by-Step Derivation (3 steps)

1

Set up Difference Quotient

x+hx+h+2−xx+2h=(x+h)(x+2)−x(x+h+2)h(x+h+2)(x+2)\frac{\frac{x + h}{x + h + 2} - \frac{x}{x + 2}}{h} = \frac{(x + h)(x + 2) - x(x + h + 2)}{h(x + h + 2)(x + 2)}

Put numerator over common denominator (x + h + 2)(x + 2).

Why this works: Rational function arithmetic.
2

Expand Numerator and Cancel Terms

(x2+2x+hx+2h)−(x2+hx+2x)=2h(x^2 + 2x + hx + 2h) - (x^2 + hx + 2x) = 2h

Expand and cancel identical terms.

Why this works: All terms not containing h drop out.
3

Evaluate Limit

f′(x)=lim⁡h→02hh(x+h+2)(x+2)=lim⁡h→02(x+h+2)(x+2)=2(x+2)2f'(x) = \lim_{h \to 0} \frac{2h}{h(x + h + 2)(x + 2)} = \lim_{h \to 0} \frac{2}{(x + h + 2)(x + 2)} = \frac{2}{(x + 2)^2}

Cancel h and evaluate at h = 0.

Why this works: Canceling h produces the continuous quotient.

Answer: f′(x)=2(x+2)2;Domain of f′=R∖{−2}f'(x) = \frac{2}{(x + 2)^2}; \quad \text{Domain of } f' = \mathbb{R} \setminus \{-2\}

✓ Verified by SymPy CAS

Example 05(Section 3.2, Exercise 5)

Core practice

Problem. Determine whether f(x) = x^2 for x <= 0 and f(x) = x for x > 0 is differentiable at x = 0.

Step-by-Step Derivation (3 steps)

1

Compute Left-Hand Derivative at 0

f−′(0)=lim⁡h→0−f(h)−f(0)h=lim⁡h→0−h2−0h=lim⁡h→0−h=0f'_-(0) = \lim_{h \to 0^-} \frac{f(h) - f(0)}{h} = \lim_{h \to 0^-} \frac{h^2 - 0}{h} = \lim_{h \to 0^-} h = 0

Use the left parabola branch x^2 for h < 0.

Why this works: Left-hand derivative uses values strictly less than 0.
2

Compute Right-Hand Derivative at 0

f+′(0)=lim⁡h→0+f(h)−f(0)h=lim⁡h→0+h−0h=lim⁡h→0+(1)=1f'_+(0) = \lim_{h \to 0^+} \frac{f(h) - f(0)}{h} = \lim_{h \to 0^+} \frac{h - 0}{h} = \lim_{h \to 0^+} (1) = 1

Use the right linear branch x for h > 0.

Why this works: Right-hand derivative uses values strictly greater than 0.
3

Conclude

f−′(0)=0≠1=f+′(0)  ⟹  f′(0) does not existf'_-(0) = 0 \neq 1 = f'_+(0) \implies f'(0) \text{ does not exist}

The tangent slope jumps abruptly from 0 to 1 at x = 0.

Why this works: Differentiability requires left and right derivatives to match.

Answer: f is continuous at x=0, but not differentiable because f−′(0)=0≠1=f+′(0)f \text{ is continuous at } x = 0, \text{ but not differentiable because } f'_-(0) = 0 \neq 1 = f'_+(0)

✓ Verified by SymPy CAS