3

I'm looking for a bijective function $f : (-1,1) \to \mathbb{R}$. I'm having trouble finding an example.

CHM93
  • 101

4 Answers4

8

$f:: (-1,1) \rightarrow \mathbb{R}$

$f: x \mapsto \tan(\frac{\pi}{2} x)$

7

For a different example, $$f(x) = \frac{1}{x - 1} + \frac{1}{x + 1}$$ has this property:

  1. It is injective: if $x,y\in(-1,1)$ and $f(x) = f(y)$, then we have $$\frac{1}{x-1}+\frac{1}{x+1} = \frac{1}{y-1} + \frac{1}{y+1}.$$ Multiplying by $(x-1)(x+1)(y-1)(y+1)$ gives $$(x+1)(y-1)(y+1) + (x-1)(y-1)(y+1) = (x-1)(x+1)(y+1) + (x-1)(x+1)(y-1).$$ Now, we can simplify that down to $$x(y - 1)(y + 1) = y(x - 1)(x + 1).$$ At this point, we look to be stuck with expanding the brackets, so we'll do that, obtaining $$xy^2 - x = yx^2 - y,$$ or $$xy(y - x) = x - y.$$ If $x = y$, we're done, so suppose not (so that we can divide by $x - y$). Then we have $xy = -1,$ so $|xy| = 1$. But we know that $|x| < 1$ and $|y| < 1$, so $|xy| = |x||y| < 1$, a contradiction. Thus, $f$ is injective.

  2. It is surjective: for this, we shall simply show that it is unbounded above and below, and appeal to a version of the intermediate value theorem. First, note that, for $x = 1 - \varepsilon$ and $\varepsilon < 1$, we have $$f(x) = \frac{1}{-\varepsilon} + \frac{1}{2 + \varepsilon} = \frac{2}{-\varepsilon(2 + \varepsilon)}\leq \frac{-2}{3\varepsilon} \to -\infty$$ as $\varepsilon \to 0$ from above. Similarly, for $x = -1 + \varepsilon$, we have $f(x) \geq \frac{2}{3\varepsilon} \to +\infty$ as $\varepsilon \to 0$ from above.

Thus, for any $y \in \mathbb{R}$, there are some $x_0, x_1$ such that $f(x_0) < y < f(x_1)$ (and, indeed, we see that $x_0 > x_1$). Applying the intermediate value theorem (after noting that $f$ is continuous on $(-1, 1)$ as a sum of rational functions whose denominators have no zeroes in that interval) to $[x_1, x_0]$ then gives us some $x_2 \in [x_1, x_0] \subset (-1, 1)$ such that $f(x_2) = y$, and so $f$ is surjective.

user3482749
  • 6,660
  • I did not work this out, but I suppose one can also solve $f(x)=y$ to show bijectivity. It’s a quadratic equation. – Carsten S Nov 10 '20 at 07:52
  • 1
    @CarstenS Indeed: you'll find that for every $y$ (other than $0$), there are exactly two $x \in \mathbb{R}$ such that $f(x) = y$, exactly one of which lies in $(-1,1)$. – user3482749 Nov 10 '20 at 13:15
2

Under the assumption that the bijection must be from
$(-1, 1) \to \mathbb{R}$:

$x \geq 0:~~$ Let

$$f(x) = - \log|x - 1|.$$

$x < 0:~~$ Let

$$f(x) = + \log| ~|x| - 1|.$$

user2661923
  • 35,619
  • 3
  • 17
  • 39
0

HINT: If the intent of this problem is for the codomain of $f$ to be all of $\mathbb{R}$,

Define the map $f : (-1,1) \to \mathbb{R}$ by $f(x) := \frac{x}{1-x^{2}}$.