Again I'm here to ask for clarification on some already existed posts on the Hartshorne Exercise I.4.9, which goes like this:
Exercise: Let $X$ be a projective variety of dimension $r$ in $\mathbf{P}^n$ with $n\geq r+2$. Show that for suitable choice of $P\notin X$, and a linear $\mathbf{P}^{n-1}\subseteq \mathbf{P}^n$, the projection from $P$ to $\mathbf{P}^{n-1}$ induces a birational morphism of $X$ onto its image $X'\subseteq \mathbf{P}^{n-1}$.
In the post Exercise 4.9, Chapter I, in Hartshorne, @Takumi Murayama provided a great answer. But by looking up in the algebraic geometry note by J. Milne (especially Chapter 6, Section 6.27) and Shafarevich's book (especially Volume I, Chapter 1, Example 1.27), it seems that the $\pi$ constructed is a projection with center "the $(n-r-1)$-plane $Z(x_1/x_0,\ldots,x_r/x_0,\alpha)$" and project to the plane $Z(x_{r+2}/x_0,\ldots,x_{n}/x_0)$. However, this seems not the projection that the exercise demands, which should be the projection from a point $P \not\in X$ to a linear plane $\mathbf{P}^{n-1}$.
EDIT on Aug 1st, 2020 @Takumi Murayama has updated the answers there, which is of great help.
In the post On an exercise from Hartshone's Algebraic Geometry, Ch I sect 4, there is a proof which seems been adapted from this proof:
We can assume that $X$ is affine and is contained in $\mathbb{A}^n$, the set of points in $\mathbb{P}^n$ with first $x_0 = 0$. The field of fractions $K(X)$ is generated by $x_1, \ldots, x_n$, so we can assume that $x_1, \ldots, x_r$ is a separating transcendence basis for $K(X)/k$ by 4.7A and 4.8A, and K(X) is generated by $a_{r+1} x_{r+1} + \cdots + a_n x_n$ for some $a_i$'s in $k$, by 4.6A. As $r \leq n - 2$, we can find a form $b_{r+1} x_{r+1} + \cdots + b_n x_n$ not proportional to $a_{r+1} x_{r+1} + \cdots + a_n x_n$. Choose any point at infinity not in this plane (denoted by $\Sigma$) or in $\bar{X}$. Then the projection from this point to the plane maps $K(\Sigma)$ onto $K(X)$, so it is an isomorphism from the function field of the image of $X$ to $K(X)$, and therefore a birational isomorphism.
But just as the comments there, I think the coefficients $a_i$'s should be in $k(x_1, \ldots, x_r)$ instead of $k$. However, I cannot figure out what the projection is if this holds. So could someone explain how this projection is constructed?
In a word, my question is:
How to construct the demanding projection? and I hope to get an explicit expression on the projection, so as to clarify that $X$ and the image $X^\prime$ are birational.
After the construction, how to show the birationality.
Thank you all in advance! :)