Calculus I · The Slope of a Single Point

The derivative

Here is the definition the entire back half of this book rests on.

The derivative of ff at the point aa, written f′(a)f'(a), is f′(a)=limh→0f(a+h)−f(a)h,f'(a) = \lim_{h\to 0}\frac{f(a+h) - f(a)}{h}, when this limit exists. It is the instantaneous rate of change of ff at aa, and the slope of the tangent line to the graph at aa.

That’s it. The derivative is the limit of the average rate as the interval shrinks to nothing. Three names for one number: instantaneous rate of change, slope of the tangent line, the derivative. Now let’s actually compute some — and notice that every single computation is the same dance: write the difference quotient, simplify until the hh in the denominator cancels, then let h→0h \to 0.


Computing derivatives by hand

The slope of x2x^2. Let f(x)=x2f(x) = x^2. Build the difference quotient at a general point aa and simplify:

(a+h)2−a2h=a2+2ah+h2−a2h=2ah+h2h=h(2a+h)h=2a+h.\frac{(a+h)^2 - a^2}{h} = \frac{a^2 + 2ah + h^2 - a^2}{h} = \frac{2ah + h^2}{h} = \frac{h(2a + h)}{h} = 2a + h.

The hh canceled — the 00\tfrac00 dissolved, exactly as in Chapter 2. Now let h→0h \to 0:

f′(a)=limh→0(2a+h)=2a.f'(a) = \lim_{h\to 0}(2a + h) = 2a.

So the slope of y=x2y = x^2 at any point aa is 2a2a. At x=3x = 3 the slope is 66; at x=0x = 0 it’s 00 (the bottom of the parabola is flat); at x=−1x = -1 it’s −2-2 (sloping down). You computed a derivative — and if you did the Chapter 2 “Looking ahead” problems, you’ve seen this exact calculation before; now it has a name.

The slope of x3x^3. Same dance, one more term to expand:

(a+h)3−a3h=3a2h+3ah2+h3h=3a2+3ah+h2→h→03a2.\frac{(a+h)^3 - a^3}{h} = \frac{3a^2 h + 3a h^2 + h^3}{h} = 3a^2 + 3ah + h^2 \;\xrightarrow{\,h\to0\,}\; 3a^2.

So the derivative of x3x^3 is 3x23x^2.

The slope of 1x\tfrac1x. Now a fraction. Let f(x)=1xf(x) = \tfrac1x. The difference quotient is a “fraction of fractions” — combine the top over a common denominator first:

1a+h−1ah=a−(a+h)a(a+h)h=−hha(a+h)=−1a(a+h)→h→0−1a2.\frac{\frac{1}{a+h} - \frac{1}{a}}{h} = \frac{\frac{a - (a+h)}{a(a+h)}}{h} = \frac{-h}{h\,a(a+h)} = \frac{-1}{a(a+h)} \;\xrightarrow{\,h\to0\,}\; \frac{-1}{a^2}.

So the derivative of 1x\tfrac1x is −1x2-\tfrac{1}{x^2} — always negative, because 1x\tfrac1x always slopes downward.

The slope of x\sqrt{x}. A square root: rationalize, the trick from Chapter 2. Let f(x)=xf(x) = \sqrt{x} and multiply top and bottom by the conjugate a+h+a\sqrt{a+h} + \sqrt{a}:

a+h−ah=(a+h)−ah(a+h+a)=1a+h+a→h→012a.\frac{\sqrt{a+h} - \sqrt{a}}{h} = \frac{(a+h) - a}{h\left(\sqrt{a+h} + \sqrt{a}\right)} = \frac{1}{\sqrt{a+h} + \sqrt{a}} \;\xrightarrow{\,h\to0\,}\; \frac{1}{2\sqrt{a}}.

So the derivative of x\sqrt{x} is 12x\tfrac{1}{2\sqrt{x}}.

The two simplest of all. A constant function f(x)=cf(x) = c never changes, so its difference quotient is c−ch=0\tfrac{c - c}{h} = 0 — derivative 00, as it must be (a flat line has slope 00). A line f(x)=mx+bf(x) = mx + b has difference quotient [m(a+h)+b]−[ma+b]h=mhh=m\tfrac{[m(a+h)+b] - [ma+b]}{h} = \tfrac{mh}{h} = m — derivative mm, the slope it always had. A line is its own slope; that’s the whole point of a line.

Toolkit: Computing a derivative from the definition

  1. Write the difference quotient f(a+h)−f(a)h\dfrac{f(a+h) - f(a)}{h}.
  2. Simplify until the hh in the denominator cancels — expand and combine (x2,x3x^2, x^3), find a common denominator (fractions), or rationalize (roots).
  3. Let h→0h \to 0 in what’s left.

Every derivative in this chapter is these three steps. The algebra changes; the dance never does.


All 12 chapters of Calculus I · Foundations · All courses