# Different proportions for positive and negative numbers

I am looking for a function that is inversely proportional for positive numbers and directly proportional for negative numbers. The positive and negative can be swapped but the importnat thing is that they are in the same scale. Is there any such function?

-
I have no idea what you are asking. Inversely proportional to what? –  copper.hat Feb 26 '13 at 17:58
Is there something wrong with the function: $$f(x)=\begin{cases}\frac{k}{x} & x > 0 \\ 0 & x = 0 \\ kx & x < 0\end{cases}$$ –  Shaktal Feb 26 '13 at 18:01

Easiest way $$f(x) = \left \{ \begin{array}{ll} \frac mx & x > 0 \\ kx & x \le 0 \end{array}\right .$$
You also can use Heaviside step function $H(x)$ $$f(x) = \left \{ \begin{array}{ll} \frac mx H(x) + kx H(-x) & x \ne 0 \\ 0 & x = 0 \end{array}\right .$$