0

Is there a way to convert a function g(x) so that the result lies between [0,1]? Thank you in advance.

emy
  • 1

1 Answers1

2

If you function is $\ge 0$, use the function $$ x\to \frac x{1+|x|} $$

In general, use $$ x\to \frac 12 \left(1+ \frac x{1+|x|}\right) $$ You hence have a one to one transformation: link to the plot

enter image description here


Another one is of course $$ x\to \frac 1\pi \arctan x + \frac 12 $$

mookid
  • 28,236
  • Thank you very much for help! In fact I have a differential equation. I apply Ito and I get g(ft) and I need a way to make sure that this lies between [0,1]. Sorry, I have not much idea about the science and I m in trouble now! – emy Mar 30 '14 at 23:14
  • can you open a new question for this one? – mookid Mar 30 '14 at 23:15
  • I m sorry...what do you mean open a new question...sorry, I m new in this website and I m not very familiar with the rules. Sure your answer gives me an idea how to go on. Thank you. – emy Mar 30 '14 at 23:19
  • I have edited with another answer. To understand the way the site works, take the tour. – mookid Mar 30 '14 at 23:21
  • I mean that your problem with Ito formula looks like it is a whole different problem, and deserves more than a commentary ;) – mookid Mar 30 '14 at 23:22
  • Thank you very much. I will make a new more detailed question to refer this as well. – emy Mar 30 '14 at 23:24