Vismo · Create · Library · Topics · Guides · Pricing

Gradient descent: walk downhill on the loss

A ball rolls along the parabola L(w) = (w-3)^2 + 1, starting at w = -1 and updating via w <- w - eta dL/dw with eta = 0.3. Each iteration is tabulated showing w, the slope dL/dw, and the resulting step size, revealing how steps shrink automatically as the curve flattens near the minimum at w = 3. Useful for introducing gradient descent mechanics in calculus or machine learning courses.

16:9 · every frame verified for overlaps, spacing and edges before rendering

The prompt that made it

A ball on the loss curve L(w) = (w-3)^2 + 1 takes steps w <- w - eta dL/dw from w = -1 with eta = 0.3; each step and slope is tabulated and the steps shrink as the slope flattens near the minimum at w = 3.

Make your own version

Make the next one in this series

Related animations

Where e comes from: compounding more and more often
Where e comes from: compounding more and more often

This animation tracks one dollar growing under 100% annual interest as the number of compounding periods incre…

The harmonic series diverges
The harmonic series diverges

Bars representing 1/n shrink toward zero, illustrating why it seems the sum should settle down. The animation …

The squeeze theorem: why sin x / x tends to 1
The squeeze theorem: why sin x / x tends to 1

This animation visualizes why sin x / x approaches 1 as x approaches 0, even though the function itself is und…

Optimization: the biggest rectangle for a fixed perimeter
Optimization: the biggest rectangle for a fixed perimeter

An animation shows a rectangle with fixed perimeter 20 changing shape as its width varies, tracing the area fu…

Newton's method: follow the tangent to the root
Newton's method: follow the tangent to the root

Starting from x0 = 2.5 on f(x) = x^2 - 2, this animation draws each tangent line and follows it down to the x-…

1/2 + 1/4 + 1/8 + ... = 1: filling a square
1/2 + 1/4 + 1/8 + ... = 1: filling a square

A unit square is progressively filled by repeatedly halving the remaining area, generating the series 1/2 + 1/…