This is my first question on this community. I am a applied scientist, not a mathematician.
I have the following simplified problem:
Let $u: [0,1] \rightarrow \mathbb{R}_+$ a real valued function and $k\in \mathbb{R}$. The function $u(\cdot)$ is decreasing and may be continuous or not. Let $x^*(k)$ the value that satisfies $$ u\left(x^*(k)\right) = k. $$
I need to get the numerical value $x^*(k)$ for any arbitrary $u(\cdot)$, using a computational Rscript
.
Intuitively, I have decided to follow this procedure: I define a deviation $e(x) = k - u(x)$. Valued at $x^*(k)$, $e\left(x^*(k)\right) = 0$. Then, $x^*(k)$ minimizes the squared deviation or the absolute value deviation. $$ x^*(k) = \arg \min_{x\in [0,1]} e(x)^2. $$
The code is not the problem. I wrote a script that return the graph of function $x^*(k)$ using any decreasing function $u$, i.e. $u=ae^{-bx}$, $u=a - bx^2$, ..., or other more complicated examples.
Now, I want to known:
- What is the mathematical/theoretical name of this procedure?
- In which bibliography can I learn about that?
Thanks.