Find all stationary points of f(x,y)=x3−3x+y2−4y, and use the Hessian at each stationary point to classify it as a local minimum, local maximum or saddle point. What happens if gradient descent is initialised at (−1,2) versus (−1,0)?

Linear algebra and optimisation, Non-convex optimisation
Level L2 Elementary. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can find stationary points, apply the second-derivative (Hessian) test on a diagonal Hessian, and trace gradient descent along the line x=−1.

Key idea

Set ∇f(x,y)=0 to find the stationary points, then evaluate the Hessian matrix ∇2f at each point: if all eigenvalues of the Hessian are positive the point is a local minimum, if all are negative it is a local maximum, and if they have opposite signs it is a saddle point (for a diagonal Hessian the eigenvalues are just the diagonal entries).

Steps

  1. Find stationary points: ∇f(x,y)=(3x2−32y−4)=(00), giving x=±1 and y=2. The two stationary points are (1,2) and (−1,2).
  2. Compute the Hessian: H(x,y)=∇2f(x,y)=(6x002). Because H is diagonal, its eigenvalues are simply 6x and 2.
  3. Classify (1,2): H(1,2)=diag⁡(6,2). Both eigenvalues are positive (6>0,2>0), so (1,2) is a strict local minimum with f(1,2)=1−3+4−8=−6 (though not a global minimum, as f(x,2)→−∞ when x→−∞).
  4. Classify (−1,2): H(−1,2)=diag⁡(−6,2). One eigenvalue is negative (−6) and one is positive (2), so (−1,2) is a saddle point with f(−1,2)=−1+3+4−8=−2.
  5. Trace gradient descent: at (−1,2), ∇f(−1,2)=(0,0), so exact gradient descent stays put forever. At (−1,0), ∇f(−1,0)=(0,−4): because the x-slope 3x2−3 is zero everywhere along the line x=−1, for 0<η<1 we get yt+1−2=(1−2η)(yt−2)→0, so deterministic gradient descent walks straight into the saddle (−1,2) unless noise nudges x off −1.

Common mistakes

How long your answer should be

Half a page; 4–5 minutes.

Read this

Previous in Linear algebra and optimisation: How does projected gradient descent handle a closed convex constraint set C, what is the Euclidean projection onto (a) a box [li,ui] and (b) the non-negative orthant R+d, and what does one step from (x0,y0)=(2,1) with η=0.5 give for min⁡x≥0, y≥0(x−1)2+(y+2)2?
Next in Linear algebra and optimisation: For a 2×2 matrix A=(abcd) the inverse is A−1=1ad−bc(d−b−ca) (when ad−bc≠0). How do you use it to solve 2x+y=5 and x+3y=10?