Consider the scalar field in two dimensions f (x,y) = x2 + 4y2. This field has a global minimum at r = (0, 0). Write a computer program in which, starting from the initial point r(0) = (4, 1.5), you try to reach the minimum of the field by taking small steps ∆t along the negative direction of the local gradient, which is defined by n = −∇f/|∇f|.
I'm having a hard time understanding what is being asked, am I supposed to start at n(4,1.5) and iterate until I reach n(0,0)? Which doesn't really make sense
Start off at vector $r_0=(4,1.5)$. The direction of decrease is in direction of $\nabla f(r_0)$. So, $\Delta t(\nabla f(r_0))$ would be a small change in direction of minimum. So, $r_1=r_0-\Delta t(\nabla f(r_0))$ would be a position vector a little closer to the minimum than $r_0$ was. By defining successive $r_n=r_{n-1}-\Delta t(\nabla f(r_{n-1}))$, you can get successively closer to the minimum.