---
title: What is a Jacobian, how does it differ from a gradient and from a Hessian, and where does each show up when training a…
url: https://gurkanozkan.ai/learn/questions/research-jacobian-gradient-hessian-002/
markdown: https://gurkanozkan.ai/learn/questions/research-jacobian-gradient-hessian-002.md
kind: question
role: Research
stage: Technical
difficulty: Easy
json: https://gurkanozkan.ai/api/learn/questions/research-jacobian-gradient-hessian-002.json
robots: noindex
---

# What is a Jacobian, how does it differ from a gradient and from a Hessian, and where does each show up when training a neural network?

Research · Technical · Easy

## Answer

*Model answer, written in a candidate's voice*

### In short

- Jacobian of f: R^n -> R^m is the m x n matrix of partial derivatives; for scalar output it is a row vector and the gradient is its transpose.
- Hessian is the n x n matrix of second partial derivatives of a scalar function, symmetric when the function is smooth enough.
- Backprop chains vector-Jacobian products and never materialises full Jacobians; for a scalar loss the gradient is one such product.
- Hessian encodes curvature for local quadratic models, Newton/second-order steps, sharpness and conditioning; Hessian-vector products come cheaply via double backprop.
- In training, gradients drive SGD/Adam, Jacobians underlie the chain rule and sensitivity, and Hessians appear mainly in curvature analysis, second-order methods and sharpness rather than routine updates.

### In full

A Jacobian is the m x n matrix of partial derivatives of f: R^n -> R^m, with entry d f_i / d x_j; when the output is scalar, that Jacobian is a 1 x n row vector and the gradient is its transpose, an n x 1 column vector. The Hessian is different: it is the n x n matrix of second derivatives of a scalar function, symmetric under the usual smoothness assumptions, and it describes local curvature rather than first-order sensitivity. In neural-network training, backprop never builds a full Jacobian; it chains vector-Jacobian products through the chain rule, and for a scalar loss that reduces to the gradient used by SGD or Adam. The Hessian shows up when we want curvature information: Newton or quasi-Newton steps, local quadratic approximations, sharpness and conditioning analysis, and Hessian-vector products computed cheaply by double backprop rather than by forming the matrix. So in practice the gradient is the routine workhorse, the Jacobian is the object being contracted implicitly by backprop, and the Hessian is mostly a diagnostic or second-order tool rather than something we materialise every step.

*Corrected by an independent AI reviewer.*

## What a strong answer covers

- The Jacobian of f: ℝⁿ→ℝᵐ is the m×n matrix of partial derivatives. For a scalar output, the gradient is its transpose.
- The Hessian is the matrix of second derivatives of a scalar function (symmetric if smooth).
- Backprop chains vector–Jacobian products and never builds full Jacobians.
- Hessian roles: curvature, Newton/second-order steps, sharpness, conditioning. Hessian–vector products come cheaply via double backprop.

## Common mistakes

- Saying backprop builds full Jacobian matrices.
- Getting shapes wrong.
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
