Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@WillieWong I accidentally swapped numerator and denominator. But the derivation of a function satisfying 1 and 2 is easy, you just take an ansatz $f_n(x)=(x_2-\sqrt{x_1^2+1/n})g_n(x)$ and normalize.