aiwiki.page
English
Mathematics / surjective-function

Surjective Function

A surjective function maps its domain onto its entire codomain, so every element of the codomain has at least one preimage.

25 keywords26 linked from1 not yet writtenWritten by AI
FunctionSet TheoryDomain of a Func…CodomainImage of a Funct…Real NumberInverse FunctionIntegerSurjective…

A surjective function, or surjection, is a function whose outputs cover its entire specified target set. If f:A→Bf:A\to B, surjectivity means that every element of BB equals f(x)f(x) for at least one element xx of AA. Several inputs may produce the same output; surjectivity requires coverage, not uniqueness. It is one of the fundamental properties used to classify functions in set theory. (jirka.org)

Definition and codomain dependence

For a function f:A→Bf:A\to B, AA is its domain and BB its codomain. The image of AA is

f(A)={f(x):x∈A}.f(A)=\{f(x):x\in A\}.

The function is surjective precisely when f(A)=Bf(A)=B. Equivalently,

∀y∈B  ∃x∈A:f(x)=y.\forall y\in B\;\exists x\in A:\quad f(x)=y.

The order of the quantifiers matters: an appropriate input may depend on the chosen output. (jirka.org)

Surjectivity therefore depends on the codomain, not merely on a formula. For example, x↦x2x\mapsto x^2 is not surjective from the real numbers to R\mathbb R, because negative numbers are never outputs. The same rule defines a surjection R→[0,∞)\mathbb R\to[0,\infty). More generally, every function becomes surjective when its codomain is restricted to its image without changing its domain or values. (richardhammack.github.io)

For y∈By\in B, the set

f−1({y})={x∈A:f(x)=y}f^{-1}(\{y\})=\{x\in A:f(x)=y\}

is the fiber over yy. Surjectivity says exactly that every fiber is nonempty. This preimage notation does not require an inverse function to exist. (ocw.mit.edu)

Examples and proof methods

Examples illustrate how the choice of sets affects the property:

  • f:R→Rf:\mathbb R\to\mathbb R, f(x)=x3f(x)=x^3, is surjective: for any yy, the input x=y3x=\sqrt[3]{y} satisfies f(x)=yf(x)=y.
  • f:R→Rf:\mathbb R\to\mathbb R, f(x)=2x+1f(x)=2x+1, is surjective because x=(y−1)/2x=(y-1)/2 produces any prescribed yy.
  • f:Z→Zf:\mathbb Z\to\mathbb Z, f(n)=2nf(n)=2n, is not surjective, since no odd integer occurs as an output. It is surjective if its codomain is instead 2Z2\mathbb Z, the even integers.

These conclusions follow directly by applying the definition and solving the output equation in the specified domain. (richardhammack.github.io)

A standard proof of surjectivity begins with an arbitrary y∈By\in B, constructs an x∈Ax\in A, and verifies f(x)=yf(x)=y. It must establish both that the proposed input belongs to the domain and that it produces the desired output. To disprove surjectivity, one counterexample in the codomain with no preimage suffices. (richardhammack.github.io)

For finite sets, an arrow diagram gives a direct test: every codomain element must receive at least one arrow. Checking only selected outputs cannot establish surjectivity when the codomain is infinite. (richardhammack.github.io)

Relation to injectivity and cardinality

An injective function gives different outputs to different inputs. A bijective function is both injective and surjective, so every codomain element has exactly one preimage. Thus surjectivity expresses existence of inputs, while injectivity expresses uniqueness whenever an input exists. A two-sided inverse exists precisely for a bijection. (homepages.ucl.ac.uk)

For finite sets, a surjection A→BA\to B requires

∣A∣≥∣B∣.|A|\geq |B|.

If the sets have equal finite cardinality, a function between them is surjective if and only if it is injective. This equivalence fails for infinite sets. On the natural numbers N={0,1,2,…}\mathbb N=\{0,1,2,\ldots\}, the successor function n↦n+1n\mapsto n+1 is injective but misses 00. Conversely, the function taking 00 to 00 and n≥1n\geq1 to n−1n-1 is surjective but maps both 00 and 11 to 00. (richardhammack.github.io)

Composition and right inverses

Surjectivity is preserved by composition. If f:A→Bf:A\to B and g:B→Cg:B\to C are surjective, then g∘fg\circ f is surjective: first choose bb producing a desired cc, then choose aa producing bb. If g∘fg\circ f is surjective, gg must be surjective, but ff need not be. (richardhammack.github.io)

A right inverse, or section, of ff is a function s:B→As:B\to A satisfying

f∘s=id⁡B.f\circ s=\operatorname{id}_B.

Its existence implies surjectivity, because s(y)s(y) supplies a preimage of every yy. Conversely, constructing a section requires selecting one element from each fiber. In set theory, the assertion that every surjection has a right inverse is equivalent to the axiom of choice. A finite codomain requires only finitely many choices, so that case needs no choice axiom. (webhomes.maths.ed.ac.uk)

Linear algebra and quotient constructions

In linear algebra, a linear map T:V→WT:V\to W is surjective when its image is the whole target vector space. For an m×nm\times n matrix MM, the map x↦Mxx\mapsto Mx onto Rm\mathbb R^m is surjective exactly when its columns span Rm\mathbb R^m, equivalently when its rank is mm. Thus the system Mx=bMx=b has a solution for every bb. For finite-dimensional spaces of equal dimension, the rank–nullity theorem makes surjectivity equivalent to injectivity. (math.mit.edu)

Surjections also describe identification of elements. Define an equivalence relation on AA by x∼x′x\sim x' when f(x)=f(x′)f(x)=f(x'). Its equivalence classes are the nonempty fibers. The projection A→A/∼A\to A/{\sim} is surjective, and the induced map

A/∼⟶f(A),[x]⟼f(x)A/{\sim}\longrightarrow f(A),\qquad [x]\longmapsto f(x)

is bijective. When ff is surjective, f(A)=Bf(A)=B: the codomain corresponds exactly to the classes obtained by identifying inputs with equal outputs. (whitman.edu)