1. Mathematical Formulations & Derivations

Both algorithms aim to find a stationary point (a local or global minimum) where .

A. Gradient Descent (First-Order Method)

  • Update Rule:

B. Newton’s Method (Second-Order Method)

  • Update System:

2. Side-by-Side Comparison

Let’s look at the scalar quadratic function from your first and fourth slides:

  • First derivative (gradient):
  • Second derivative (Hessian):
  • True minimum:
  • Starting point:

Walkthrough: Gradient Descent ()

Step Current Gradient Next
Converges gradually to

Walkthrough: Newton’s Method

Step Current Solve
(STOP)

3. Vector Input: General Quadratic Function

As shown in your second slide:

  1. Gradient:
  2. Hessian:
  3. Newton Step:

Because the quadratic Taylor model is exact for any quadratic function, Newton’s method computes the exact analytical minimum in 1 single step.


4. Non-Convex Functions & Challenges (Slide 3)

When optimizing complex surfaces such as:

  1. Local Minima vs. Global Minimum:

    • Starting at traps gradient descent in an outer local minimum valley.
    • Starting at allows the optimizer to slide into the deeper global minimum.
  2. How Newton’s Method Behaves on Non-Convex Surfaces:

    • If is not positive definite (e.g., negative eigenvalues near a saddle point or local maximum), Newton’s method can step uphill towards local maxima or diverge.

5. Summary: GD vs. Newton’s Method

FeatureGradient Descent (GD)Newton’s Method
Order1st-order ()2nd-order ( and )
Update formula
HyperparameterNeeds learning rate tuningPure Newton has no step-size parameter
Convergence rateLinear convergence (slow near minimum)Quadratic convergence (extremely fast near minimum)