Proving piece-wise function is one-to-one?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 5K views
Norm850
Messages
11
Reaction score
0
f: Z -> Z defined by f(x) = x/2 if x is even, (x-1)/2 if x is odd.

Proof: If x is even:

x1 = 2k1
x2 = 2k2

Suppose f(x1) = f(x2), then

2k1/2 = 2k2/2
k1 = k2

So if x is even, the function is one to one? Is this an okay proof for the first half of if x is even, then I just do the same for if x is odd correct?

Not sure if you can use a function to define the independent variable to prove if it's one-to-one or not.
 
Physics news on Phys.org
Norm850 said:
Not sure if you can use a function to define the independent variable to prove if it's one-to-one or not.

I'm not sure I follow the above. If a function is piecewise it's sufficient to show that all derivatives are positive or all are negative. Actually, this should be true for all analytic one to one functions. In linear algebra its sufficient to show that only the zero vector is mapped into the null space.