A function is injective, or "one-to-one", if for all , implies that (or for all , implies that ). That is, a function is injective if each output is unique to a specific input, and no two distinct inputs map to the same output.
Examples:
- Let and , and let such that , , and . is an injective function because each output of is mapped to by exactly one input.
- Let such that , , and . is not an injective function since .
- , is an injective function, since for all .
- Let , . This function is NOT injective because for , , but . For example, while , which conflicts with the definition of injectivity.
Resources
Also see functions.