Tangent space exploration of function

64 Views Asked by At

I have a function $f, R^n \rightarrow R$ , which I evaluate at a vector $x \in R^n$. So, $f(x) = y$.

Now, I calculate $f'(x) = g, g \in R^n$ . I want to "move" x in the tangent space of $f$. The part I'm stuck at, is rather silly.

I compute a vector projected to the tangent space as below:

  1. $g \in R^n$ is the gradient of $f$ at $x$. Compute $g_u$, which is $g$ unit normalized.
  2. Sample a random vector $v \in R^n$ from a Unit Gaussian.
  3. Compute $ w = v - <v,g_u> g_u$ , where $<.>$ is the inner product. So, $w \in R^n$ is the vector $v$ projected to tangent space of $f$.

I have two questions:

  1. Is the above procedure of finding a direction in the tangent space correct? If not, how do I find a random vector in the tangent space of $f$ for given $x$ and $f'(x)$ ?
  2. If it is correct, now that I have $w$ which is a vector in the tangent space of $f$, how do I use it to "move" $x$ in the tangent space? Right now, I do $x = x + \alpha*w$, where $\alpha$ is simply the step size.

Thank you for the help.

1

There are 1 best solutions below

2
On BEST ANSWER

What is sure:

  • $w$ is a vector of the $f$ tangent space at $x$.
  • $x + \alpha w$ belongs to $f$ tangent plane at $x$.

What is less sure is:

  • What is the distribution of $w$ in the tangent space knowing that $v$ is distributed according to a Unit Gaussian in $\mathbb R^n$?

But why don't you use a Unit Gaussian distribution in $\mathbb R^{n-1}$ and a basis in the tangent plane?

At the end, the most important question is to understand what kind of distribution do you expect in the tangent plane?