Notes

REFERENCE SHEET

Gradients, Hessians & change of variables

Local geometry is encoded by first and second derivatives.

Before this Derivatives & Taylor expansion, Eigenvalues & diagonalization

Df(x)[h]=∇f(x)·hHij=∂2f∂xi∂xj

Definitions

01

Gradient

For a differentiable scalar function on Euclidean space, the vector representing its derivative under the Euclidean inner product.

02

Jacobian

The matrix of first partial derivatives of a differentiable vector-valued map.

03

Hessian

The matrix of second partial derivatives of a scalar function; symmetric when the second partials are continuous.

Key theorems

01

Second derivative test

At a critical point of a C² function, a positive-definite Hessian gives a strict local minimum, negative-definite a strict local maximum, and indefinite a saddle. Semidefinite cases are inconclusive.

02

Change of variables

For a C¹ diffeomorphism φ between open regions and an integrable function, integration transforms using |det Dφ| as the volume factor.

03

Lagrange multipliers

At a constrained local extremum of differentiable f under g(x)=c, if ∇g≠0, then ∇f=λ∇g for some λ.

Notable applications

01

Optimization

Gradients guide descent and Hessians describe local curvature.

02

Density transformations

The Jacobian determinant converts probability densities between coordinate systems.

Work it out

Try before revealing

01 / Classify

Classify the origin for f(x,y)=x²−y².

Hint

Find the Hessian eigenvalues.

Solution

∇f(0,0)=0 and H=diag(2,−2), so the origin is a saddle.

02 / Compute

Compute the area of a disk of radius R using polar coordinates.

Hint

The Jacobian factor is r.

Solution

Integrate ∫₀²π∫₀ᴿ r dr dθ=πR², including the Jacobian factor r.

Connect the ideas

Linear regressionRandom variables & moments

Build on this

These sheets use this topic as a prerequisite.

Holomorphic functions & power series

Go deeper

Further reading and full-length treatments: