Sapere Aude

Gradient, Hessian, and Convexity

1. Gradient(f)

Definition: The vector of partial derivatives of a scalar-valued function.

Use: Points in the direction of steepest ascent of the function

Formula:

For f:n,

f(x)=[fx1,fx2,,fxn]T

2. Hessian (Hf)

Definition: The square matrix of second-order partial derivatives.

Use: Describes the curvature of a function; important for Newton's method.

Formula:

Hf(x)=[2fx122fx1xn2fxnx12fxn2]

3. Convexity

Definition: A function f is convex if the line segment between any two points on its graph lies above the graph.

Mathematical Condition:

f(y)f(x)+f(x)T(yx),x,y Hf(x)0,for allx

Note

What is Positive Semidefinite (PSD)

A matrix An×n is positive semidefinite (PSD) if:

vTAv0for allvn

>>Next

#MathNotes