show/hide this revision's text 4 added 17 characters in body

Here is a function $f(x,y)$ which is 0 inside the square $C=[\pm1,\pm1]$, and outside that square has value equal to the Euclidean distance $d( p, C )$ from $p=(x,y)$ to the boundary of $C$. [I am trying to follow Pietro's suggestion, as far as I understand it.] It is not a surface of revolution (but it is centrally symmetric). Are its gradient descent paths geodesics? I think so...
Function, Contours
Left above: $f(x,y)$. Right above: Level sets of $f$. Below: $\nabla f$.
Gradient
And here (below) is a closeup of the function defined using squared distance $[d( p, C )]^2$, as per Will's suggestion:
alt text

show/hide this revision's text 3 added 207 characters in body

Here is a function $f(x,y)$ which is 0 inside the square $C=[\pm1,\pm1]$, and outside that square has value equal to the Euclidean distance $d( p, C )$ from $p=(x,y)$ to the boundary of $C$. [I am trying to follow Pietro's suggestion, as far as I understand it.] It is not a surface of revolution (but it is centrally symmetric). Are its gradient descent paths geodesics? I think so...
Function, Contours
Left above: $f(x,y)$. Right above: Level sets of $f$. Below: $\nabla f$.
Gradient
And here (below) is a closeup of the function defined using squared distance, as per Will's suggestion:
alt text

show/hide this revision's text 2 fixed "rotationally symmetric" error

Here is a function $f(x,y)$ which is 0 inside the square $C=[\pm1,\pm1]$, and outside that square has value equal to the Euclidean distance $d( p, C )$ from $p=(x,y)$ to the boundary of $C$. [I am trying to follow Pietro's suggestion, as far as I understand it.] It is not rotationally symmetric a surface of revolution (but it is centrally symmetric). Are its gradient descent paths geodesics? I think so...
Function, Contours
Left above: $f(x,y)$. Right above: Level sets of $f$. Below: $\nabla f$.
Gradient

show/hide this revision's text 1