Gradient, Hessian, and Convexity
1. Gradient()
Definition: The vector of partial derivatives of a scalar-valued function.
Use: Points in the direction of steepest ascent of the function
Formula:
For ,
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:
3. Convexity
Definition: A function is convex if the line segment between any two points on its graph lies above the graph.
Mathematical Condition:
- First-order:
Second-order:
if is twice-differentiable, is convex iff its Hessian is positive semidefinite:
- Strict Convexity: if , then is strictly convex.
Note
What is Positive Semidefinite (PSD)
A matrix is positive semidefinite (PSD) if: