Partial and Directional Derivatives
If you turn one control while holding the other fixed, do you learn the response to every combined change? This chapter calculates partial and directional derivatives and checks their limits.
- Partial and directional derivatives: Rates of change along a coordinate axis and along a chosen direction, respectively.
Change one coordinate
For a scalar function on an open subset of , its ith partial derivative at is
when this limit exists. The vector is the ith standard coordinate direction. For the recurring , and , so both equal at .
Change along a specified direction
For a unit vector , the directional derivative is the same limit with replaced by . It is change per unit input distance. If is not normalized, the derivative with parameter includes its length factor.
For this polynomial, expansion gives
Thus gives . The direction gives zero first-order response, although a positive quadratic change remains.
Do not infer a full linear approximation too early
Existence of coordinate partials alone does not imply continuity or differentiability. Extend by . Both axis partials at the origin exist and are zero, but the diagonal path still gives .
If all first partial derivatives exist and are continuous on a neighborhood, the function is differentiable there. Under differentiability, every directional derivative comes from the same linear map. Even existence of all directional derivatives, without that uniform linear approximation, is not enough in general.
Basic practice
Prepare
Reuse Q and a. Normalize the directions before comparing rates per unit distance.
Record assumed inputs, predictions, and exact calculations separately. If you use software, label rounded outputs; no physical measurement is implied.
Predict
Can a zero directional derivative coexist with a nonzero finite change?
Execute
- Compute the two partial derivatives at a.
- Find directional derivatives along (3/5, 4/5) and (1, -1)/√2.
- Use the exact expansion to calculate Q(a + tu) - Q(a) in the zero-derivative direction.
Observe and record
| Case or quantity | Prediction | Exact result or argument | Error or software check |
|---|---|---|---|
| Coordinate partials | |||
| Oblique direction | |||
| Zero first-order direction |
Check after working: The partials are 3 and 3, the directional rates are 21/5 and 0, and in the last unit direction the exact change is t²/2. Zero first-order response does not mean constant output.
Optional extension
For g(x, y) = x³/(x² + y²), extended by zero, compute all directional derivatives at the origin and show they do not define a linear function of direction.
Keep and continue
Keep the directional rates and continuity warning. Next, package the scalar rates into a gradient.
Previous: Functions of Several Variables