Andromeda
Note

Surjective Functions

Definition

A function f:ABf: A \to B is surjective (or onto) if every element in the codomain BB is mapped to by at least one element in the domain AA. That is, for every yBy \in B, there exists an xAx \in A such that: f(x)=yf(x) = y How to read: “f of x equals y.” Meaning / when to use: The image of the domain under ff equals the entire codomain (Range = Codomain).

Why It Matters

Surjectivity ensures that no potential target output in the system is unreachable or left out. For example, in database mappings or communication protocols, a surjective mapping guarantees that all possible statuses or codes can actually be generated by the inputs.

Core Concepts

  • Range vs. Codomain: In a general function, the range (actual outputs) can be a subset of the codomain (possible output types). For a surjective function, they are exactly equal.
  • Solving for Input: To prove a function is surjective, one must show that for any arbitrary yy, the equation f(x)=yf(x) = y has at least one solution for xx in the domain.
  • Many-to-One Allowed: Surjectivity does not require uniqueness; multiple inputs are allowed to map to the same output.

Connected Concepts