f′Field Guide

The Derivative as a Function

The slope of the tangent line at every point, collected into a brand-new function.

0 / 9 problems mastered

In §2.7 you found the slope at one point aa. Now let the point move. For every xx, the slope of the tangent line to y=f(x)y=f(x) is a number, so the slopes themselves form a function, written f′f':

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

The fraction is the slope of a secant line through two points on the curve, a horizontal distance hh apart. As h→0h\to 0, the second point slides into the first and the secant becomes the tangent. Try it in the first lab.

Secant → tangent

Lab 1 · drag the sliders
f(x) = 0.25x³ − x + 1a = 1
secant slope [f(a+h) − f(a)] / h–
true slope f′(a) = 0.75a² − 1–

Watch the secant slope approach f′(a) as h shrinks, from either side (h > 0 or h < 0). That limit is the derivative.

Reading f′ off the graph of f

Exercises 1–14 ask you to sketch f′f' from a picture of ff. You never need a formula. Just ask, at each xx: how steep is ff, and is it going up or down?

  • Where ff has a peak or valley (horizontal tangent), f′=0f'=0: the f′f' graph crosses the x-axis.
  • Where ff is increasing, f′>0f'>0 (above the axis). Where ff is decreasing, f′<0f'\lt 0 (below).
  • Where ff is steepest, ∣f′∣|f'| is largest.
  • Where ff is a straight line, f′f' is a constant (a flat segment).

Build f′ point by point

Lab 2 · drag on the top graph
x–
slope of tangent = f′(x)–
differentiable here?–

When is f not differentiable?

Corner

Left slope ≠ right slope. Example: ∣x∣|x| at 0 (slopes −1 and +1).

Discontinuity

A jump or hole. Theorem 4: differentiable ⇒ continuous, so not continuous ⇒ not differentiable.

Vertical tangent

The slope blows up: ∣f′(x)∣→∞|f'(x)|\to\infty. Example: x3\sqrt[3]{x} at 0.

Careful

Continuous does not imply differentiable. ∣x∣|x| is continuous at 0 but has a corner.

Notation and higher derivatives

Same thing, many names

f′(x)=y′=dydx=dfdx=ddxf(x)=Df(x)f'(x) = y' = \dfrac{dy}{dx} = \dfrac{df}{dx} = \dfrac{d}{dx}f(x) = Df(x)

Second derivative

f′′=(f′)′f''=(f')', d2ydx2\dfrac{d^2y}{dx^2}. If s(t)s(t) is position: v=s′v=s', a=v′=s′′a=v'=s'', jerk j=s′′′j=s'''.

Domain of f′

f′f' can have a smaller domain than ff. x\sqrt{x}: domain [0,∞)[0,\infty), but f′(x)=12xf'(x)=\frac1{2\sqrt x} only on (0,∞)(0,\infty).

Worked examples

Example · definition with a square root (Stewart Ex. 3 style)

Find f′(x)f'(x) for f(x)=xf(x)=\sqrt{x} using the definition. State the domain of f′f'.

  1. Write the difference quotient: x+h−xh\dfrac{\sqrt{x+h}-\sqrt{x}}{h}.
  2. Plugging in h=0h=0 gives 00\frac00. For square roots, multiply by the conjugate.
    x+h−xh⋅x+h+xx+h+x=(x+h)−xh(x+h+x)\dfrac{\sqrt{x+h}-\sqrt{x}}{h}\cdot\dfrac{\sqrt{x+h}+\sqrt{x}}{\sqrt{x+h}+\sqrt{x}} = \dfrac{(x+h)-x}{h(\sqrt{x+h}+\sqrt{x})}
  3. The xx's cancel, leaving hh(x+h+x)=1x+h+x\dfrac{h}{h(\sqrt{x+h}+\sqrt x)} = \dfrac{1}{\sqrt{x+h}+\sqrt x}. The hh cancels.
  4. Now let h→0h\to0: f′(x)=12xf'(x)=\dfrac{1}{2\sqrt x}.
  5. Domain of f′f': (0,∞)(0,\infty). At x=0x=0 we would divide by zero (vertical tangent).
Example · definition with a fraction (Stewart Ex. 4 style)

Find f′(x)f'(x) for f(x)=1−x2+xf(x)=\dfrac{1-x}{2+x}.

  1. f(x+h)−f(x)h=1h[1−x−h2+x+h−1−x2+x]\dfrac{f(x+h)-f(x)}{h} = \dfrac{1}{h}\left[\dfrac{1-x-h}{2+x+h}-\dfrac{1-x}{2+x}\right]
  2. Fractions: combine over a common denominator. Numerator: (1−x−h)(2+x)−(1−x)(2+x+h)(1-x-h)(2+x)-(1-x)(2+x+h).
  3. Expand: (2−x−2h−x2−xh)−(2−x+h−x2−xh)=−3h(2 - x - 2h - x^2 - xh) - (2 - x + h - x^2 - xh) = -3h.
  4. So the quotient is −3hh(2+x+h)(2+x)=−3(2+x+h)(2+x)\dfrac{-3h}{h(2+x+h)(2+x)} = \dfrac{-3}{(2+x+h)(2+x)}.
  5. Let h→0h\to0: f′(x)=−3(2+x)2f'(x) = \dfrac{-3}{(2+x)^2}. Domain: x≠−2x\neq-2.

Practice

§2.8 #21
Use the definition to find f′(x)f'(x) for f(x)=3x−8f(x)=3x-8. State the domains of ff and f′f'.
§2.8 #23
Use the definition to find f′(t)f'(t) for f(t)=2.5t2+6tf(t)=2.5t^2+6t.
§2.8 #28
Use the definition to find F′(v)F'(v) for F(v)=vv+2F(v)=\dfrac{v}{v+2}. State domains.
§2.8 #29
Use the definition to find g′(u)g'(u) for g(u)=u+14u−1g(u)=\dfrac{u+1}{4u-1}.
§2.8 #31
Use the definition to find f′(x)f'(x) for f(x)=11+xf(x)=\dfrac{1}{\sqrt{1+x}}. State domains.
§2.8 #33(c)
For f(x)=1+x+3f(x)=1+\sqrt{x+3}, use the definition to find f′(x)f'(x). What are the domains of ff and f′f'?
§2.8 #30
Use the definition to show ddxx4=4x3\dfrac{d}{dx}x^4=4x^3.
Concept · §2.8 #41–46 style
Where is f(x)=∣x−2∣+{0x<51x≥5f(x)=|x-2|+\begin{cases}0&x\lt 5\\ 1 & x\ge5\end{cases} not differentiable, and why?
§2.8 · higher derivatives
If f(x)=x3−xf(x)=x^3-x, find f′f', f′′f'', f′′′f''', f(4)f^{(4)}.

Traps

Plugging in h = 0 too early

You always get 0/0 at first. Simplify until the hh in the denominator cancels, then set h=0h=0.

Forgetting to distribute the minus

f(x+h)−f(x)f(x+h)-f(x): put f(x)f(x) in brackets. Most definition errors are sign errors here.

Domain of f′ = domain of f

Not always. Check for division by zero in f′f' (e.g. x\sqrt{x} at 0).