Let $f:\mathbb{R}^n\to\mathbb{R}^n$ be a $\mathcal{C}^2$ function of $x\in\mathbb{R}^n$. Then we can use the mean value theorem (MVT) to formulate the following equality: $$f(x_1)-f(x_2)=\frac{\partial f}{\partial x}(x_2+\lambda(x_1-x_2))(x_1-x_2),$$ with $\lambda\in(0,1)$. This equality is point-wise true by the MVT for every pair $(x_1,x_2)$. Furthermore, it is easy to show with a simple example that for a pair $(x_1,x_2)$, there might be multiple $\lambda$ that yield the equality.
I'm currently looking in the continuation of $\lambda$ when $x_1,x_2$ vary continuously. There are also quite simple examples to formulate that show that continuous variation of $x_1,x_2$ yield discontinuous continuations of $\lambda$. (Check e.g. this example, and move point B to 4)
Now I want to show that for every pair $(x_1,x_2)$ you can find a neighborhood $\mathfrak{B}$ around $(x_1,x_2)$ for which there exists a continuous function $\lambda(x_1,x_2)$ such that for all $(x_1,x_2)\in\mathfrak{B}$, we have that $f(x_1)-f(x_2)=\frac{\partial f}{\partial x}(x_2+\lambda(x_1,x_2)(x_1-x_2))(x_1-x_2)$ and for any continuous trajectory that takes values in $\mathfrak{B}$, the function $\lambda(x_1,x_2)$ is continuous. Trying to counterexample this with multiple examples in geoabgebra (and others) did not help. Up until now I found that this must be true in my setting, I just don't know how to prove this...
What I tried: I tried to show this with the implicit value theorem by analyzing the implicit function $$\mathscr{F}(x_1, x_2, \lambda)= f(x_1)-f(x_2)-\frac{\partial f}{\partial x}(x_2+\lambda(x_1-x_2))(x_1-x_2),$$ However, the classic version requires a differentiability condition: $\frac{\partial^2 f}{\partial x^2}\neq 0$ at the point where $\mathscr{F}=0$, which I cannot guarantee perse - plus this seems like a very restrictive assumption for my case. I found a variation of the theorem in [1]. But this theorem requires a one-to-one relationship, which is for me not the case, as there might be multiple lambda's. This was the closed I could get, but no concrete results yet...
Can anybody help me with this problem?
[1] Jittorntrum (1978) - TECHNICAL NOTE: An Implicit Function Theorem