Skip to main content

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 Rn\mathbb R^n, its ith partial derivative at aa is

∂if(a)=lim⁡t→0f(a+tei)−f(a)t,\partial_i f(a)=\lim_{t\to0}\frac{f(a+te_i)-f(a)}t,

when this limit exists. The vector eie_i is the ith standard coordinate direction. For the recurring QQ, ∂xQ=2x+y\partial_xQ=2x+y and ∂yQ=x+2y\partial_yQ=x+2y, so both equal 33 at (1,1)(1,1).

Change along a specified direction​

For a unit vector uu, the directional derivative is the same limit with eie_i replaced by uu. It is change per unit input distance. If uu is not normalized, the derivative with parameter tt includes its length factor.

For this polynomial, expansion gives

Q(a+tu)=3+3t(u1+u2)+t2Q(u),DuQ(a)=3(u1+u2).Q(a+tu)=3+3t(u_1+u_2)+t^2Q(u), \qquad D_uQ(a)=3(u_1+u_2).

Thus u=(3/5,4/5)u=(3/5,4/5) gives 21/521/5. The direction (1,−1)/2(1,-1)/\sqrt2 gives zero first-order response, although a positive quadratic change remains.

Coordinate slices and a normalized oblique direction through the graph of Q
Coordinate derivatives are particular directional tests; differentiability controls all small increments together.

Do not infer a full linear approximation too early​

Existence of coordinate partials alone does not imply continuity or differentiability. Extend g(x,y)=xy/(x2+y2)g(x,y)=xy/(x^2+y^2) by g(0,0)=0g(0,0)=0. Both axis partials at the origin exist and are zero, but the diagonal path still gives 1/21/2.

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​

  1. Compute the two partial derivatives at a.
  2. Find directional derivatives along (3/5, 4/5) and (1, -1)/√2.
  3. Use the exact expansion to calculate Q(a + tu) - Q(a) in the zero-derivative direction.

Observe and record​

Case or quantityPredictionExact result or argumentError 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

Next: The Gradient and Local Prediction