---
date: '2025-08-28'
description: second partial derivatives of an objective function.
id: Hessian matrix
modified: 2026-06-05 15:08:29 GMT-04:00
tags:
  - math
title: Hessian matrix
created: '2025-08-28'
published: '2025-08-28'
pageLayout: default
slug: thoughts/Hessian-matrix
permalink: https://aarnphm.xyz/thoughts/Hessian-matrix.md
generator:
  quartz: v4.6.0
  hostedProvider: Cloudflare
  baseUrl: aarnphm.xyz
full: https://aarnphm.xyz/llms-full.txt
---
> square matrix of second-order partial derivatives of a scalar-valued function: $D^{2}$ or $\nabla \nabla, \nabla \otimes \nabla, {\nabla}^{2}$

> \[!abstract\] definition
>
> Suppose a function $f : \mathbb{R}^{n} \longrightarrow \mathbb{R}$ is a function taking input vector $\textbf{x} \in \mathbb{R}^{n}$ and output a scalar $f(\textbf{x}) \in \mathbb{R}$.
> If the second-order partial derivatives of $f$ exists, then the Hessian matrix $\textbf{H}$ of $f$ follows a square matrix $n \times n$:
>
> $$
> H_f = \begin{bmatrix}
> \frac{\partial^2 f}{\partial x_1^2} & \frac{\partial^2 f}{\partial x_1 \partial x_2} & \cdots & \frac{\partial^2 f}{\partial x_1 \partial x_n} \\
> \frac{\partial^2 f}{\partial x_2 \partial x_1} & \frac{\partial^2 f}{\partial x_2^2} & \cdots & \frac{\partial^2 f}{\partial x_2 \partial x_n} \\
> \vdots & \vdots & \ddots & \vdots \\
> \frac{\partial^2 f}{\partial x_n \partial x_1} & \frac{\partial^2 f}{\partial x_n \partial x_2} & \cdots & \frac{\partial^2 f}{\partial x_n^2}
> \end{bmatrix}
> $$
>
> That is, the entry of the $i^{\text{th}}$ row and $j^{\text{th}}$ column is
>
> $$
> (\textbf{H}_f)_{i,j} = \frac{{\partial}^{2} f}{\partial x_{i} \partial x_{j}}
> $$

intuition: functional determinants

