Quadratic optimization and gradient descent
For a symmetric positive definite H, minimizing f(x)=½xᵀHx−bᵀx leads to Hx=b. Gradient descent repeatedly moves against ∇f; the step size controls convergence.
What you will learn
- Find the SPD quadratic minimum
- Perform a gradient update
- Check a convergence step bound
Work through one complete example
- For f(x,y,z)=x²+2y²+3z²−2x−4y−6z, the gradient is (2x−2,4y−4,6z−6).
- Set it to zero to obtain (1,1,1). The Hessian diag(2,4,6) is positive definite, so this is the unique minimum.
- From (0,0,0) with step α=1/8, one update gives (0,0,0)−(1/8)(−2,−4,−6)=(1/4,1/2,3/4).
- For an SPD quadratic, 0<α<2/λmax(H)=1/3 guarantees convergence of fixed-step gradient descent.
Objective 1: Find the SPD quadratic minimum
- Solve the zero-gradient equations.
- They give (1,1,1); the SPD Hessian makes it the unique minimum.
Objective 2: Perform a gradient update
- Start at zero with step 1/8.
- Gradient (−2,−4,−6) gives (1/4,1/2,3/4).
Objective 3: Check a convergence step bound
- Does step 1/2 satisfy the bound for λmax=6?
- No. The strict bound is 0<α<1/3; step 1/8 satisfies it.
A common mistake
State the assumptions before using the formula.
Review first
Continue learning
Quadratic optimization and gradient descent
Interactive diagnosis and practice load in the learning app. You can read these lesson notes without JavaScript.