The condition to define the function $\tilde{f}(x)$ is that the integral of $P(y)$ by $y$ is equal to the integral of the uniform distribution by $x$. Therefore, for any $x_1$ and $x_2$, the integral of $P(y)$ from $y_1=\tilde{f}(x_1)$ to $y_2=\tilde{f}(x_2)$, $\int_{y_1}^{y_2} P(y)dy$, should be equal to a probability $\int_{x_1}^{x_2} 1 dx = x_2-x_1$, which is an integral of the uniform distribution from $x_1$ to $x_2$. Namely, we can obtain the relation $\int_{y_1}^{y_2} P(y)dy = x_2-x_1$. It is noted that if $x_1=0$ and $x_2=1$, $\int_{y_1}^{y_2} P(y)dy$ should be $1$. If we define the function $F(y) = \int_{-\infty}^y P(t)dt$, the relation $\int_{y_1}^{y_2} P(y)dy = x_2-x_1$ can be written as $F(y_2)-F(y_1)=x_2-x_1$. When $x_1=0$, $F(y_1)$ should be $0$. Therefore, if we substitute $0$ for $x_1$ and $F(y_1)$, and replace $x_2$ and $y_2$ with $x$ and $y$, the equation $F(y_2)-F(y_1)=x_2-x_1$ becomes $F(y)=x$. From this equation, $y=F^{-1}(x)$ is obtained, where $F^{-1}(x)$ is an inverse function of $F(x)$. As a result, we obtain the function $y=\tilde{f}(x)=F^{-1}(x),\ F(y)=\int_{-\infty}^y P(t)dt$.
