Many outputs, many inputs
A function can map several inputs to several outputs, for example risk factors to the values of several positions. Its Jacobian is the matrix of all first partial derivatives, with entry . It is the best linear approximation: for a small move , .
For one output , the second derivatives form the Hessian , with . For smooth functions it is symmetric. It describes curvature: . Where , a positive definite marks a local minimum, a negative definite a local maximum, and a mixed one a saddle point. Newton's method for optimisation uses to take better steps than plain gradient descent.
- Jacobian: the matrix of first partials of a vector function; the best linear model of it.
- Hessian: the symmetric matrix of second partials of a scalar function; its curvature.
- Positive definite Hessian at a critical point: a local minimum.
Second differences divide tiny differences by , which magnifies rounding noise. Prefer formulas or automatic differentiation, and when you must use differences, check that the result is symmetric.
Lab · what's graded
6 tasks · 100 pts- The Jacobian at a point20 pts
- The Hessian at a point20 pts
- The determinant of the Jacobian15 pts
- Reading a Hessian15 pts
- The linear approximation15 pts
- What each matrix describes15 pts