Injective function
Adapted from Wikipedia · Adventurer experience
In mathematics, an injective function is a special rule that connects numbers or objects fairly. This rule, also called an injection or a one-to-one function, makes sure that if two things are different, the results will also be different. This means no two different inputs give the same output.
For example, if we have two different numbers, say 3 and 5, and we use an injective function on them, the results will also be different. This helps us understand how things are linked without any overlaps.
Injective functions are often used when studying algebraic structures like vector spaces. In these areas, an injective function that keeps the structure's rules is called a monomorphism. These ideas help mathematicians explore how different mathematical systems relate to each other.
A function that is not injective is sometimes called many-to-one, meaning more than one input can give the same output. Understanding injective functions helps us see clear and direct relationships in math.
Definition
An injective function, also called a one-to-one function, is a special type of function in mathematics. It means that if you choose two different numbers from the first group, the function will give you two different answers. In other words, two different inputs will never give the same output.
This idea is important because it helps us understand how functions can connect one set of numbers to another without confusing them. Some special symbols are used to show injective functions, like arrows that point in only one direction.
Examples
For visual examples, readers are directed to the gallery section.
- For any group and a smaller group inside it, matching each item in the smaller group to itself in the larger group is always injective.
- If a function starts with no items, it is injective.
- If a function starts with just one item, it is always injective.
- The function where we take any number and multiply it by 2 and then add 1 is injective.
- The function where we square a number is not injective because both 1 and -1 give the same result. But if we only use numbers that are zero or more, then it is injective.
- The function where we raise the number e to any power is injective, though it will never give a negative result.
- The function where we take the logarithm of a positive number is injective.
- The function where we take a number to the power n and then subtract the number itself is not injective because both 0 and 1 give the same result.
When talking about functions with all real numbers, an injective function is one where if you draw a horizontal line, it will touch the graph only once. This is called the horizontal line test.
Injections can be undone
Functions with left inverses are always injections. This means if a function gives different outputs for different inputs, you can find another function that "undoes" the first one.
For example, if you have a function that changes a number in a special way, you can make another function that changes the number back to its original value. This shows that some functions can be reversed.
Injections may be made invertible
We can change an injective function so it can be reversed. We do this by adjusting its range to match exactly what the function produces. This makes the function bijective, meaning it can be reversed.
Injective partial functions are called partial bijections.
inclusion function partial functions partial bijections
Other properties
See also: List of set identities and relations § Functions and sets
- If two functions, f and g, are both injective, then using them together (f after g) is also injective.
- If using two functions together, g after f, gives an injective result, then the first function, f, must be injective. The second function, g, might not be.
- A function f is injective if, whenever two different functions are used with f and give the same result, those two functions must actually be the same.
- If a function f is injective and A is a smaller group within a larger group X, then you can find A again by using the opposite of f on the result of f on A.
- If a function f is injective and A and B are both smaller groups within a larger group X, then the combined group of f on A and B is the same as combining the groups A and B first and then using f.
- Any function can be split into a part that is injective and a part that is "onto" (covers everything). This split is special, and the injective part can be thought of as including the results of the original function as a smaller group within the larger group.
- If a function f is injective, then the group Y (where the function points to) has at least as many members as the group X (where the function starts). If there is also a way to go from Y back to X, then X and Y have exactly the same number of members. (This is known as the Cantor–Bernstein–Schroeder theorem.)
- If both groups X and Y have the same number of members and are small (finite), then a function from X to Y is injective if and only if it also covers every member of Y (in which case it is bijective).
- An injective function that keeps the rules of two math structures the same is called an embedding.
- Unlike covering every member of Y (surjectivity), being injective depends only on how the function behaves, not on Y itself. You can tell if a function is injective by just looking at the pairs of members it connects.
Proving that functions are injective
To prove a function is injective, we use a simple idea: if the function gives the same result for two different inputs, then those inputs must be the same. For example, consider the function f(x) = 2x + 3. If f(x) equals f(y), then 2x + 3 equals 2y + 3. This means 2x equals 2y, and so x must equal y. This shows that the function is injective.
There are other ways to prove a function is injective, depending on the type of function. For some functions, showing that a certain value never changes can help. In other cases, checking a list of results can show that each input gives a unique output. A picture can also help: if a horizontal line touches the graph of the function at most once, the function is injective.
Related articles
This article is a child-friendly adaptation of the Wikipedia article on Injective function, available under CC BY-SA 4.0.
Safekipedia