Injective, Surjective, and Bijective Functions — Definition, Formula & Examples
Injective (one-to-one), surjective (onto), and bijective (both) are three ways to classify how a function maps its domain to its codomain. An injective function never maps two different inputs to the same output, a surjective function hits every element of the codomain, and a bijective function does both.
Let . The function is injective if for all . It is surjective if for every , there exists some with . It is bijective if it is both injective and surjective, establishing a one-to-one correspondence between and .
How It Works
To test injectivity, check whether two distinct inputs can produce the same output; if they cannot, the function is injective. To test surjectivity, check whether every element in the codomain is actually an output of the function. A function that passes both tests is bijective. Bijective functions are the only functions that have a true inverse . For finite sets of equal size, proving injectivity alone is enough to conclude bijectivity.
Worked Example
Problem: Let be defined by , , . Determine whether is injective, surjective, or bijective.
Check injectivity: No two inputs share an output: , , are all distinct.
Check surjectivity: Every element of the codomain appears as an output: , , .
Conclude: Since is both injective and surjective, it is bijective.
Answer: is bijective.
Why It Matters
These classifications are central to abstract algebra, where bijections define isomorphisms between structures. In cryptography, encryption schemes rely on bijective functions so that every ciphertext can be uniquely decrypted. Understanding injectivity and surjectivity also clarifies when inverse functions exist, a recurring question in linear algebra and analysis.
Common Mistakes
Mistake: Confusing the codomain with the range when testing surjectivity.
Correction: Surjectivity requires that the range equals the entire codomain, not just a subset. If the codomain is but the function only outputs positive reals, it is not surjective onto .
