I'm having some trouble trying to visualize and physically understand what's happening with the gradient. I understand that the following is true:
- The gradient of f (grad(f)) points in the direction of maximum increase of f
However, later on, we are told that a gradient of a surface f (grad(f)) gives us the surface normal vector (i.e pointing away). How can that be? From the first statement, I thought that the gradient must be pointing in the direction of maximum increase of f - surely the direction of maximum increase of f should be a vector pointing in some direction on f itself. How can it be pointing outward as a surface normal vector?