Optimization and gradients

Finding best values by setting the derivative to zero, then gradient descent in one and two variables with partial derivatives.

About 5 hours of study

Learning objectives

Lessons

  1. 1

    Maxima, minima and gradient descent

    Finding the best value: setting the derivative to zero for the largest field, the second-derivative test, and gradient descent when algebra is too hard.

  2. 2

    Gradients and gradient descent Intermediate

    Functions of several variables: partial derivatives, the gradient vector as the direction of steepest climb, and gradient descent that walks downhill in two variables.

Module practice

Module quiz

1. At a smooth local minimum the derivative is…
2. Gradient descent updates x by…
3. The gradient of f(x, y) points toward…
4. f′(a) = 0 and f″(a) = −4. What is at x = a?
5. What happens in gradient descent when the learning rate is far too large?
6. For f(x, y) = x² + 3y² at (1, 2), what is the gradient?

‹ Limits and derivativesIntegrals and series ›