Is $y = -x$ an injective function?
I assume it is injective because $x_1=x_2$ then $f(x_1)=f(x_2)$.
Is this an injective function? I would like to ask for more proper and specific proof.
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityIs $y = -x$ an injective function?
I assume it is injective because $x_1=x_2$ then $f(x_1)=f(x_2)$.
Is this an injective function? I would like to ask for more proper and specific proof.
Injective means $f(a)=f(b) \implies a =b$. And not the other way around: $a=b \implies f(a)=f(b)$. The other way around obviously applies to every function so it's pointless.
It's injective since $$f(a)=f(b)$$ $$\implies -a=-b$$ $$\implies a=b$$
The function $f(x)=-x$ has an inverse (which is in fact itself), so it is injective.
More interesting is the calculus method: $y=f(x)$ is injective if either negative definite:$f'(x)<0$ in the domain or it is positive definite: $f'(x)>0$ in the domain. So here it is $f'(x)=-1$ for all real numbers. so it is injective for all real numbers.