impera Open Impera

AP Calculus AB · Differentiation: definition and fundamental properties

The derivative as a limit

1The derivative function

The derivative at a single point gives one slope. Letting the point vary gives a new function, the derivative of $f$:

$$f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}$$

provided the limit exists. Its value at each $x$ is the slope of the tangent to $f$ there.

Notation: $f'(x)$, $y'$, $\frac{dy}{dx}$, $\frac{d}{dx}[f(x)]$ all mean the same thing. Leibniz notation $\frac{dy}{dx}$ reminds us the derivative is a limit of $\frac{\Delta y}{\Delta x}$.

An equivalent form at a point $a$ is

$$f'(a) = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}$$

Check yourself

Which expression defines f′(x)?

  • lim (h→0) of f(x + h)

  • lim (h→0) of (f(x + h) − f(x))/h

  • (f(x + h) − f(x))/h with h = 1

  • lim (x→∞) of f(x)/x

Show the answer

lim (h→0) of (f(x + h) − f(x))/h

It is the limit of the difference quotient.

2Using the definition

Worked example

$f(x) = x^2 - 3x$

  1. $f(x + h) = x^2 + 2xh + h^2 - 3x - 3h$.
  2. $f(x + h) - f(x) = 2xh + h^2 - 3h$.
  3. Divide by $h$: $2x + h - 3$.
  4. Let $h \to 0$: $f'(x) = 2x - 3$.
Worked example

$f(x) = \frac{1}{x}$

  1. $\frac{1}{x + h} - \frac{1}{x} = \frac{x - (x + h)}{x(x + h)} = \frac{-h}{x(x + h)}$.
  2. Divide by $h$: $\frac{-1}{x(x + h)}$.
  3. Let $h \to 0$: $f'(x) = -\frac{1}{x^2}$.

For $\sqrt{x}$, multiply by the conjugate; the result is $\frac{1}{2\sqrt{x}}$.

Check yourself

Using the definition, the derivative of f(x) = 5x + 2 is:

  • 5x

  • 5

  • 7

  • 2

Show the answer

5

(5(x + h) + 2 − 5x − 2)/h = 5.

3Recognising a derivative in disguise

The AP exam often shows a limit and asks what it represents. Match it to the definition.

Example

$\lim_{h \to 0} \frac{(2 + h)^5 - 32}{h}$ is $f'(2)$ for $f(x) = x^5$, since $2^5 = 32$. As $f'(x) = 5x^4$ (next lesson), the limit is $5 \cdot 16 = 80$.

Example

$\lim_{x \to \pi} \frac{\cos x + 1}{x - \pi}$ is $f'(\pi)$ for $f(x) = \cos x$, since $\cos \pi = -1$. As $f'(x) = -\sin x$, the limit is $0$.

Check yourself

lim (h→0) of (√(9 + h) − 3)/h is the derivative of which function at which point?

  • √x at x = 9

  • √x at x = 3

  • 9 + h at h = 0

  • x² at x = 9

Show the answer

√x at x = 9

√9 = 3 matches f(a).

4Differentiability and continuity

$f$ is differentiable at $a$ if $f'(a)$ exists.

Differentiability implies continuity: if $f$ is differentiable at $a$, then it is continuous at $a$. The converse is false: a function can be continuous but not differentiable.

A function fails to be differentiable at a point where it has:

  • a corner (the slopes from the left and right differ), like $|x|$ at $0$;
  • a cusp (slopes go to $+\infty$ on one side and $-\infty$ on the other), like $x^{2/3}$ at $0$;
  • a vertical tangent, like $\sqrt[3]{x}$ at $0$;
  • a discontinuity of any kind.

Three ways a continuous function can fail to be differentiable at x = 0

To test a piecewise function at a join, check continuity first, then check that the derivatives from each side agree.

Check yourself

f(x) = |x − 2| is not differentiable at x = 2 because:

  • It has a vertical asymptote at x = 2 where it blows up

  • f(2) is undefined, so there is no point on the graph

  • It is not continuous at x = 2, so it has a break there

  • It has a corner, with left slope −1 and right slope 1

Show the answer

It has a corner, with left slope −1 and right slope 1

It is continuous but has a corner.

5Graphing the derivative

You can sketch $f'$ from the graph of $f$:

  • Where $f$ is increasing, $f' > 0$ (above the axis).
  • Where $f$ is decreasing, $f' < 0$.
  • Where $f$ has a horizontal tangent (peak or valley), $f' = 0$.
  • Where $f$ is steepest, $|f'|$ is largest.
Example

for a parabola opening upward with vertex at $x = 1$, $f'$ is a line crossing the $x$-axis at $x = 1$, negative to the left and positive to the right.

Check yourself

Where the graph of f has a local maximum with a smooth top, the graph of f′:

  • Is undefined at that point

  • Has a local maximum at the same x

  • Is always positive near that point

  • Crosses the x-axis, from positive to negative

Show the answer

Crosses the x-axis, from positive to negative

The tangent is horizontal at the top.

6Going deeper: computing from the definition, recognizing it in disguise, and where it fails

Two equivalent definitions of the derivative at x = a:

$$f'(a) = \lim_{h \to 0}\frac{f(a + h) - f(a)}{h} = \lim_{x \to a}\frac{f(x) - f(a)}{x - a}$$

It is the slope of the tangent line and the instantaneous rate of change.

Worked example (from the definition): $f(x) = x^2$.

  1. $\frac{(x + h)^2 - x^2}{h} = \frac{2xh + h^2}{h} = 2x + h$.
  2. Limit as h → 0: 2x.

Worked example (a root): $f(x) = \sqrt{x}$.

  1. $\frac{\sqrt{x + h} - \sqrt{x}}{h}$; multiply by the conjugate.
  2. $\frac{h}{h(\sqrt{x + h} + \sqrt{x})} = \frac{1}{\sqrt{x + h} + \sqrt{x}}$.
  3. Limit: $\frac{1}{2\sqrt{x}}$.

Recognizing a derivative in disguise: a limit of this shape is a derivative; identify f and a, then differentiate by rule.

Worked example

$\lim_{h \to 0}\frac{\sin\left(\frac{\pi}{6} + h\right) - \frac{1}{2}}{h}$.

  1. f(x) = sin x, a = $\frac{\pi}{6}$ (since $\sin\frac{\pi}{6} = \frac{1}{2}$).
  2. The limit is $f'\left(\frac{\pi}{6}\right) = \cos\frac{\pi}{6} = \frac{\sqrt{3}}{2}$.
Worked example

$\lim_{x \to 2}\frac{x^5 - 32}{x - 2}$.

  1. $f(x) = x^5$, a = 2.
  2. $f'(2) = 5(2)^4 = 80$.

Tangent and normal lines: at x = a, the tangent is $y - f(a) = f'(a)(x - a)$; the normal has slope $-\frac{1}{f'(a)}$.

Worked example

tangent to $y = x^2$ at x = 3.

  1. Point (3, 9); slope 6.
  2. $y - 9 = 6(x - 3)$.

Estimating from a table: use the average rate of change over the smallest interval containing the point.

Worked example

f(2) = 5.0, f(2.5) = 6.8, f(3) = 9.1. Estimate f′(2.5).

  1. $\frac{f(3) - f(2)}{3 - 2} = 4.1$.
  2. Include units if a context is given (for example, degrees per minute).

Where a function is not differentiable

  1. A discontinuity.
  2. A corner: left and right slopes differ ($|x|$ at 0).
  3. A cusp: slopes tend to +∞ on one side and −∞ on the other ($x^{2/3}$ at 0).
  4. A vertical tangent ($x^{1/3}$ at 0).

Worked example (piecewise differentiability): $f(x) = x^2$ for x ≤ 1 and $f(x) = ax + b$ for x > 1. Find a and b so that f is differentiable at 1.

  1. Continuity: 1 = a + b.
  2. Equal slopes: 2(1) = a, so a = 2.
  3. b = −1.

Differentiable implies continuous; continuous does not imply differentiable.

Notation: $f'(x)$, $\frac{dy}{dx}$, $y'$, $\frac{d}{dx}[f(x)]$; at a point, $f'(a)$ or $\left.\frac{dy}{dx}\right|_{x = a}$.

Interpreting in context: "f′(5) = −2" for temperature f in °C at time t in minutes means: at t = 5 minutes, the temperature is decreasing at 2°C per minute.

Common mistakes

  • Forgetting the limit, or substituting h = 0 before simplifying.
  • Expanding $(x + h)^2$ as $x^2 + h^2$.
  • Missing a derivative written as a limit and trying to evaluate it by algebra.
  • Checking only equal slopes, not continuity, for a piecewise function.
  • Omitting units or the time in an interpretation.
Check yourself

The limit as h approaches 0 of ((3 + h)⁴ − 81) ÷ h equals:

  • 108

  • 12

  • 81

  • 0

Show the answer

108

It is the derivative of x⁴ at x = 3, which is 4(3)³.

7For top marks

  • Show each algebra step when using the definition, and keep "$\lim_{h \to 0}$" until the last line.
  • Spot disguised derivatives by finding $f$ and $a$ from the pattern $\frac{f(a + h) - f(a)}{h}$.
  • To show a piecewise function is differentiable at a join, show continuity and equal one-sided derivatives.
  • Remember: differentiable ⇒ continuous, but continuous ⇏ differentiable.
Example

"$\lim_{h \to 0} \frac{\sin(\frac{\pi}{6} + h) - \frac{1}{2}}{h}$ is the derivative of $\sin x$ at $\frac{\pi}{6}$, which is $\cos\frac{\pi}{6} = \frac{\sqrt{3}}{2}$."

Check yourself

Which statement is true?

  • If f is continuous at a, then f is differentiable at a

  • If f is differentiable at a, then f is continuous at a

  • A function with a corner is discontinuous

  • Every continuous function is differentiable

Show the answer

If f is differentiable at a, then f is continuous at a

Differentiability is the stronger condition.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera