For what values of the constant c is f(x,y)=2x2+2cxy+8y2−12x−24y convex, for what values is it strictly convex, and what is its minimum when c=2?

Linear algebra and optimisation, Convexity
Level L2 Elementary. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can compute a 2×2 Hessian, check positive semidefiniteness via principal minors or eigenvalues, and solve ∇f=0.

Key idea

A twice-differentiable function on R2 is convex if its Hessian is positive semidefinite (∇2f⪰0) everywhere, and strictly convex if it is positive definite (∇2f≻0). For a 2×2 symmetric matrix, positive definiteness holds when the top-left entry and determinant are both positive.

Steps

  1. Compute the gradient: ∇f(x,y)=(4x+2cy−122cx+16y−24).
  2. Differentiate again to get the constant Hessian (the linear terms −12x−24y vanish): H=∇2f(x,y)=(42c2c16).
  3. Check positive semidefiniteness: the top-left entry (the leading principal minor) is 4>0, and the determinant is det⁡(H)=4⋅16−(2c)2=64−4c2. Because tr⁡(H)=20>0, both eigenvalues are ≥0 iff det⁡(H)≥0, so f is convex for ∣c∣≤4 and strictly convex for ∣c∣<4.
  4. Find the minimum at c=2: since ∣2∣<4, f is strictly convex and has a unique global minimum where ∇f=0. Solving 4x+4y=12 (x+y=3) and 4x+16y=24 (x+4y=6) gives 3y=3  ⟹  y=1, x=2.
  5. Evaluate the minimum value: f(2,1)=2(4)+4(2)(1)+8(1)−12(2)−24(1)=8+8+8−24−24=−24.

Common mistakes

How long your answer should be

Half a page; 3–4 minutes.

Read this

Previous in Linear algebra and optimisation: How does RMSProp fix AdaGrad's diminishing step size, and for f(w)=12w2 starting from w0=4 with s0=0, η=1 and ϵ=0, what are w1 and w2 under (a) AdaGrad (st=st−1+gt2) and (b) RMSProp (st=ρst−1+(1−ρ)gt2) with ρ=0.75?
Next in Linear algebra and optimisation: Using Lagrange multipliers, find the point on the line 2x+y=5 that minimises f(x,y)=x2+y2, and what is the minimum value?