I made a short tutorial on understanding #GradientDescent in #MachineLearning, including interactive #Jupyter notebooks to play around with:
https://www.fabriziomusacchio.com/blog/2023-03-27-gradient_descent/
I wish my cost functions would be as benign as yours (clipped from a reverse engineering project)