Click a surface to drop the ball
Ball (gradient descent) Global minimum Feasible region
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Convex Optimization: Gradient Descent Landscape

This simulator visualizes why convexity matters for optimization: a ball performs real gradient descent, x_new = x − α∇f(x), down a 3D surface toward a minimum. On the convex bowl, every starting point leads to the same global minimum. Toggle a feasible-region overlay to see constrained optimization project the ball back inside an allowed set, and toggle the comparison panel to watch the identical algorithm get trapped in a local minimum on a non-convex surface instead.