Question
Question: $f: X \longrightarrow \mathbb{R}, X = \{x \mid 0 < x < 1\}$ is defined as $f(x) = \frac{2x-1}{1-|2x-...
f:X⟶R,X={x∣0<x<1} is defined as f(x)=1−∣2x−1∣2x−1. Then

f is only injective
f is only surjective
f is bijective
f is neither injective nor surjective
f is bijective
Solution
The function is given by f(x)=1−∣2x−1∣2x−1 for x∈X={x∣0<x<1}. The domain is X=(0,1). The codomain is R.
We need to analyze the expression ∣2x−1∣ for x∈(0,1). The value of 2x−1 is negative when 2x−1<0, i.e., 2x<1, i.e., x<1/2. The value of 2x−1 is zero when 2x−1=0, i.e., x=1/2. The value of 2x−1 is positive when 2x−1>0, i.e., 2x>1, i.e., x>1/2.
So, we can define f(x) piecewise based on the value of x:
-
If 0<x<1/2, then 2x−1<0, so ∣2x−1∣=−(2x−1)=1−2x. f(x)=1−(1−2x)2x−1=1−1+2x2x−1=2x2x−1=1−2x1. For x∈(0,1/2): As x→0+, f(x)→1−∞=−∞. As x→(1/2)−, f(x)→1−1=0−. The range for this interval is (−∞,0).
-
If x=1/2, then 2x−1=0, so ∣2x−1∣=0. f(1/2)=1−∣2(1/2)−1∣2(1/2)−1=1−01−1=10=0.
-
If 1/2<x<1, then 2x−1>0, so ∣2x−1∣=2x−1. f(x)=1−(2x−1)2x−1=1−2x+12x−1=2−2x2x−1=2(1−x)2x−1. For x∈(1/2,1): As x→(1/2)+, f(x)→2(1/2)−0+=1−0+=0+. As x→1−, f(x)→2(1−1−)2(1)−−1=0+1−=+∞. The range for this interval is (0,+∞).
The total range of f(x) for x∈(0,1) is the union of the ranges from these cases: (−∞,0)∪{0}∪(0,+∞)=R. Since the range of f is R, which is equal to the codomain, the function f is surjective.
Now, let's check for injectivity. Suppose f(x1)=f(x2) for x1,x2∈(0,1).
If f(x1)=f(x2)=0, then from the piecewise definition, this only occurs when x1=1/2 and x2=1/2. So x1=x2.
If f(x1)=f(x2)<0, then both x1 and x2 must be in the interval (0,1/2), because the function values are negative only in this interval. In this interval, f(x)=1−2x1. If 1−2x11=1−2x21, then −2x11=−2x21, which implies x11=x21, and thus x1=x2.
If f(x1)=f(x2)>0, then both x1 and x2 must be in the interval (1/2,1), because the function values are positive only in this interval. In this interval, f(x)=2(1−x)2x−1. If 2(1−x1)2x1−1=2(1−x2)2x2−1, then 1−x12x1−1=1−x22x2−1.
(2x1−1)(1−x2)=(2x2−1)(1−x1)
2x1−2x1x2−1+x2=2x2−2x1x2−1+x1
2x1+x2=2x2+x1
x1=x2.
Since f(x1)=f(x2) implies x1=x2 in all cases, the function f is injective.
Since f is both injective and surjective, it is bijective.