Why does gradient descent step in the direction −∇f(x)?

Linear algebra and optimisation, Gradient methods
Level L1 Beginner. Length One-liner. Nature Th Theoretical.

What's being asked

Whether you understand the geometric meaning of the gradient as the direction of steepest ascent.

Key idea

The gradient ∇f(x) (the vector of slopes along each coordinate) points straight uphill in the direction where f increases fastest, like pointing straight up a hillside. Stepping in the opposite direction, −∇f(x), therefore goes straight downhill as fast as possible for a small step.

Steps

  1. Explain what the gradient ∇f(x) is: it collects the rate of change (slope) of f along each coordinate and points in the direction of steepest climb.
  2. Conclude why we negate it: reversing that arrow gives −∇f(x), the local direction of steepest descent, perpendicular to the contour lines of f (the lines of equal height on a map).
  3. Note what comes next: proving this formally using a first-order Taylor approximation and the Cauchy–Schwarz inequality is covered at the next level.

Common mistakes

How long your answer should be

One or two sentences.

Read this

Previous in Linear algebra and optimisation: What is the gradient of a function of two variables, and what does it tell you? What is the gradient of f(x,y)=x2+y2 at the point (3,4)?
Next in Linear algebra and optimisation: How do full-batch gradient descent, stochastic gradient descent (SGD) and mini-batch gradient descent differ in how they compute each parameter update, and why is mini-batch SGD the standard choice in machine learning (ML)?