I need a function which initially falls slowly, then quickly and then slowly again.
Shape should be like tan but I want to be able to control the gradient
Properties needed:
$x = 0, y=0$
As $x$ increases $y$ decreases
As $x \rightarrow \infty$, $y \rightarrow -1$
(No definition for negative $x$ needed)
$$y = e^{-ax}-1$$ $$y = \dfrac{1+e^{-ab}}{1+e^{a(x-b)}}-1$$ should do the job. You can play with the factor $a$ to control the gradient.