For
f:Rn→Rm, the Jacobian is the
m×n matrix
J with entries
Jij=∂fi/∂xj — each row is the gradient row-vector of component
fi. Dimension-check rule:
n-dimensional input and
m-dimensional output imply a Jacobian of shape
m×n (never
n×m); for a scalar function (
m=1) the Jacobian is the transpose of the gradient
∇f. It provides the first-order linear approximation
f(x+δ)≈f(x)+J(x)δ. For the quadratic form
f(x)=xTAx, the gradient is
∇f=(A+AT)x, which becomes
∇f=2Ax when
A is symmetric. Hessian: for a scalar
f:Rn→R, the symmetric matrix of second partials
Hij=∂2f/∂xi∂xj∈Rn×n. Convexity criterion: if
f is twice continuously differentiable,
f is convex iff
H(x)⪰0 (positive semidefinite) for all
x, and strictly convex iff
H(x)≻0. Chain rule: for
h=g∘f,
Jh=Jg⋅Jf, and the shape product
(p×m)(m×n)=p×n doubles as a consistency check.