Skip to main content

The Jacobian and Total Derivative

A map returns two outputs from two inputs. How can one linear model predict both at once? This chapter defines the total derivative and distinguishes its matrix from a list of unrelated partials.

  • Jacobian: The matrix of first partial derivatives representing the total derivative of a differentiable vector-valued map.

Use a map with a visible remainder​

Introduce the dimensionless map

F(x,y)=(x2+y2−1x−y),a=(11).F(x,y)=\begin{pmatrix}x^2+y^2-1\\x-y\end{pmatrix}, \qquad a=\begin{pmatrix}1\\1\end{pmatrix}.

Its derivative matrix is

DF(x,y)=(2x2y1−1).DF(x,y)=\begin{pmatrix}2x&2y\\1&-1\end{pmatrix}.

Rows correspond to outputs and columns to inputs. At aa, F(a)=(1,0)TF(a)=(1,0)^T. For h=(h1,h2)Th=(h_1,h_2)^T,

F(a+h)−F(a)−DF(a)h=(h12+h220).F(a+h)-F(a)-DF(a)h=\begin{pmatrix}h_1^2+h_2^2\\0\end{pmatrix}.

The remainder norm divided by ∥h∥\|h\| equals ∥h∥\|h\|, so it tends to zero in every direction.

A nonlinear input grid and the local grid predicted by the Jacobian
A single linear map must control every component and every sufficiently small increment.

Define the total derivative​

For an open domain in Rn\mathbb R^n, FF is differentiable at aa if there is a linear map A:Rn→RmA:\mathbb R^n\to\mathbb R^m with

lim⁡h→0, h≠0∥F(a+h)−F(a)−Ah∥∥h∥=0.\lim_{h\to0,\ h\ne0} \frac{\|F(a+h)-F(a)-Ah\|}{\|h\|}=0.

The unique map is the total derivative DF(a)DF(a). In standard bases its m×nm\times n Jacobian matrix has entries ∂Fi/∂xj\partial F_i/\partial x_j. A matrix of partials is the derivative only when the required differentiability holds. Continuous partials on a neighborhood are sufficient.

Check one numerical increment​

For h=(0.1,−0.05)Th=(0.1,-0.05)^T, the prediction is (1.1,0.15)T(1.1,0.15)^T, the exact output is (1.1125,0.15)T(1.1125,0.15)^T, and the remainder is (0.0125,0)T(0.0125,0)^T.

For scalar output the derivative is a row matrix, while the gradient is a column: DQ=∇QTDQ=\nabla Q^T. For a linear map F(x)=MxF(x)=Mx, the derivative is MM at every point. This is the direct link to the linear-algebra chapters.

Review matrices of linear maps if the row/column interpretation is unfamiliar.

Basic practice​

Prepare​

Reuse a and h, and keep the new vector map F separate from scalar Q. Review matrix multiplication with column vectors.

Record assumed inputs, predictions, and exact calculations separately. If you use software, label rounded outputs; no physical measurement is implied.

Predict​

What size must the Jacobian have, and which output should have zero quadratic remainder?

Execute​

  1. Compute DF(a)h and the affine output prediction.
  2. Compute F(a + h) directly and subtract the prediction.
  3. Derive the symbolic remainder and bound its normalized norm.

Observe and record​

Case or quantityPredictionExact result or argumentError or software check
DF(a)h
Predicted and exact outputs
Remainder divided by input norm

Check after working: The linear change is (0.1, 0.15), the prediction is (1.1, 0.15), and the exact residual is (0.0125, 0). The normalized remainder tends to zero uniformly in direction.

Optional extension​

Prove uniqueness of the total derivative by testing the difference of two candidates on h = tu for every fixed vector u.

Keep and continue​

Keep F, DF, and the exact remainder formula. Next, multiply derivative maps through a composition.

Previous: The Gradient and Local Prediction

Next: The Multivariable Chain Rule