We have two decision variables \begin{align} & 0<x\le X,\\ & 0<y\le Y, \end{align} where both $X$ and $Y$ are two sensible upper bounds on our decision variables.
We also have a constraint
$$y=\frac{x^2}{1-x}.$$
We discretize the interval $(0,X]$ and denote each piece by $r_i$ where $i=1,\ldots,n$ and $n$ is a finite number.
By defining a binary decision variable say $z_i\in\{0,1\}$ where $z_i=1$ if and only if $x\in(r_{i},r_{i+1}]$ and $z_i=0$, otherwise, we linearize this constraint as
$$y=\sum_{i=1}^{n}\left(\frac{r_i^2}{1-r_i}\right)z_i.$$
Now the question is how to determine $n$?
I am also aware that there are other techniques of linearization we would like to focus on this method for the moment.
I'm also sure this method has been used before but I could not find any reference on it, mainly because I don't know if it has a name or where to even look!
Could someone help please?