TITLE: exponential function with values between 0 and 1 for x values between 0 and 1
QUESTION [5 upvotes]: I am looking for a function that fits well to be used as a weight with exponential behavior. My x values are between 0 and 1, and i would like this function to behave exponentially, so that only x values close to 1 have y values close to 1 (and vice versa x values close to 0 have y values close to 0). 
The function should behave asymptotically, so that:
$\lim_{x \rightarrow 1} f(x) = 1$ and $\lim_{x \rightarrow 0} f(x) = 0$

REPLY [3 votes]: You can start with the form $f(x) = c_1a^x + c_2$ for $a>1$ and $c_1, c_2 \in \mathbb{R}$. 
By definition, $f(0) = c_1 + c_2 = 0 $ and $f(1) = c_1a+c_2 = 1$. Putting these together you get:
$c_1 = \frac{1}{a-1}$ and $c_2 = -\frac{1}{a-1}$, implying
$f(x) = \frac{a^x-1}{a-1}$.
Same answer as Milind. Just shows you how to derive it. You can try to fit other exponential forms using the same approach, as long as they have only 2 parameters.