Almost every neural network is trained by the same simple move: measure the slope of the error, and step the opposite way. x ← x − η·∇f. Repeat. The learning rate η sets the step; too big and you overshoot, too small and you crawl. Cauchy wrote it down in 1847 for astronomy; a century and a half later it is the engine under every model that learns.
The demo minimizes f(x)=(x−3)² from x=0, η=0.1 — watch it roll to the minimum: live demo
“Gradient descent finds the global minimum.” — it finds a local one; in the non-convex loss of a deep net there is no such guarantee (yet it works anyway). cited
The whole of learning, in one repeated step. optimization
On i-13, 60 steps on (x−3)² from x=0 reach x=2.99999, the error crushed to ~2e−11: