The derivative, from first principles to intuition
A derivative measures how fast a function is changing at a single point. It is defined as the limit of average rates of change over shrinking intervals, and the same number shows up geometrically as the steepness of the tangent, physically as velocity, and in any other rate of change taken at an instant. The source throughout is chapter 3 of OpenStax Calculus Volume 1 [1].
Where it comes from
The notation of calculus in use today is Leibniz’s, although the book thinks Newton probably reached the ideas first; most mathematicians and historians, it reports, agree that the two developed calculus independently [1, p. 188]. What they are credited with is being the first to see how the derivative and the integral are related [1, p. 188].
From secant lines to the tangent line
How steep the graph’s tangent is at a point a tells how fast f is changing there; the tangent itself is the limit of secants, lines through (a, f(a)) and some other point of the graph [1, p. 189]. A secant’s slope is an estimate of the rate, one that improves as the second point nears a [1, pp. 188–189]; the book later names it the interval’s average rate of change [1, p. 231]. To write it down, take f defined on an interval I that contains a. With the second point at some x ≠ a in I, the slope is (f(x) − f(a))/(x − a); with it at a + h, for h ≠ 0 and a + h in I, the slope is (f(a + h) − f(a))/h [1, p. 189]. The book calls both expressions difference quotients [1, p. 189].
Made formal, with f defined on an open interval around a, the tangent line at (a, f(a)) is the line through that point whose slope is
m_tan = lim_{x→a} (f(x) − f(a)) / (x − a),
as long as the limit exists; the step form lim_{h→0} (f(a + h) − f(a))/h, with the same proviso, gives the same slope [1, p. 191].
The definition
For f defined on an open interval around a, the same limit, given a name, is the derivative of f at a [1, p. 193]:
f′(a) = lim_{x→a} (f(x) − f(a)) / (x − a),
again provided the limit exists, or equally f′(a) = lim_{h→0} (f(a + h) − f(a))/h [1, p. 193].
A numerical estimate. This example is ours; the method, a table of difference quotients from both sides, is the book’s [1, pp. 193–194]. To estimate the derivative of g(x) = x³ at 1, compute (x³ − 1)/(x − 1) at points nearer and nearer to 1. At 0.9, 0.99 and 0.999 it is 2.71, 2.9701 and 2.997001; at 1.1, 1.01 and 1.001 it is 3.31, 3.0301 and 3.003001. Both rows of values approach 3, so we estimate that g′(1) = 3.
The derivative as a function
Now let the point move, and the derivative becomes a function of its own. f′(x) is the limit lim_{h→0} (f(x + h) − f(x))/h, and f′ is defined exactly at the x where that limit exists [1, p. 203]. We say f is differentiable at a when f′(a) exists, and differentiable on an open set when f′ exists throughout it [1, p. 203]. Leibniz’s dy/dx can be read as the end point of the secant slopes Δy/Δx, change in y over change in x, as the secants turn into the tangent [1, p. 204].
Differentiation, the operation that produces f′ from f [1, p. 193], can be applied again: differentiating f′ gives the second derivative; continuing gives the third, the fourth and further higher-order derivatives [1, p. 210].
Differentiable means continuous, but not the other way round
Theorem (differentiability implies continuity). If f has a derivative at a, f is continuous at a [1, p. 207]. Proof sketch: for x ≠ a, f(x) equals f(a) plus the difference quotient times (x − a). Letting x approach a, the quotient tends to f′(a) and (x − a) to 0, so the product vanishes and f(x) tends to f(a) [1, p. 207].
Continuity alone is not enough, and the book gives three ways a continuous function can fail to have a derivative [1, pp. 207–209]. The functions below are our own examples of each:
- A corner. Let f(x) = x for x ≤ 0 and f(x) = 3x for x > 0. It is continuous at 0, but its difference quotient there is 1 for every negative x and 3 for every positive x, so no single limit exists and f′(0) does not either. Differentiability at a point therefore demands a “smooth” graph there [1, pp. 207–209].
- A vertical tangent. For the fifth root, f(x) = x^(1/5), the quotient at 0 is x^(−4/5), which grows without bound near 0. There is no derivative at 0, and, as in the book’s case, the tangent there is vertical [1, p. 208].
- Oscillation. Take f(x) = x·cos(1/x) for x ≠ 0, with f(0) = 0. It is continuous at 0, since |f(x)| ≤ |x|, but the quotient at 0 is cos(1/x), which takes every value between −1 and 1 in any interval around 0, so it has no limit there.
And where a function is discontinuous, it has no derivative [1, p. 209].
What a derivative means in practice
f′(a) also goes by the name instantaneous rate of change in the book [1, p. 196]. Tangent slopes are one case of it, and so is the velocity of a body in motion at a particular time [1, p. 196].
Motion along a line. If s(t) is position at time t, then velocity is v(t) = s′(t), speed is |v(t)|, and acceleration is a(t) = v′(t) = s″(t) [1, p. 232]. As an example of our own, take a drone climbing straight up, at height s(t) = 6t² − t³ metres after t seconds, for 0 ≤ t ≤ 4. Its velocity v(t) = 12t − 3t² m/s is 0 at both ends, so it starts and finishes at rest, and peaks at 12 m/s at t = 2, where the acceleration a(t) = 12 − 6t m/s² passes through 0. It climbs s(4) = 32 metres in four seconds, an average velocity of 8 m/s.
Estimating a change. The amount-of-change formula f(a + h) ≈ f(a) + f′(a)·h turns a known value and slope into an estimate of a nearby value; its accuracy depends on h and on f′(a) [1, p. 231]. Behind it is the definition read backwards: for small h, f′(a) is close to (f(a + h) − f(a))/h [1, p. 231]. With our own numbers f(1) = 4 and f′(1) = −2, it gives f(1.1) ≈ 4 + 0.1·(−2) = 3.8.
Not covered here
The rules of differentiation and the derivatives of specific functions, which come later in the same chapter: by the book’s table of contents, §3.3 on differentiation rules, §3.6 on the chain rule, and §3.5 and §3.9 on trigonometric, exponential and logarithmic functions [1].
Sources
[1]OpenStax, Calculus Volume 1, chapter 3, “Derivatives”; pages cited: 188–189, 191, 193–194, 196 (§3.1), 203–204, 207–210 (§3.2), 231–232 (§3.4). The equations on these pages are images, not text: check them on the rendered page, not in extracted text. View at source ↗
Works cited
- Gilbert Strang and Edwin “Jed” Herman, Calculus Volume 1 (OpenStax, Rice University, 2016). openstax.org/details/books/calculus-volume-1. License: CC BY-NC-SA 4.0. Access for free at openstax.org.