Hubbry Logo
Surjective functionSurjective functionMain
Open search
Surjective function
Community hub
Surjective function
logo
7 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Surjective function
Surjective function
from Wikipedia

In mathematics, a surjective function (also known as surjection, or onto function /ˈɒn.t/) is a function f such that, for every element y of the function's codomain, there exists at least one element x in the function's domain such that f(x) = y. In other words, for a function f : XY, the codomain Y is the image of the function's domain X.[1][2] It is not required that x be unique; the function f may map one or more elements of X to the same element of Y.

The term surjective and the related terms injective and bijective were introduced by Nicolas Bourbaki,[3][4] a group of mainly French 20th-century mathematicians who, under this pseudonym, wrote a series of books presenting an exposition of modern advanced mathematics, beginning in 1935. The French word sur means over or above, and relates to the fact that the image of the domain of a surjective function completely covers the function's codomain.

Any function induces a surjection by restricting its codomain to the image of its domain. Every surjective function has a right inverse assuming the axiom of choice, and every function with a right inverse is necessarily a surjection. The composition of surjective functions is always surjective. Any function can be decomposed into a surjection and an injection.

Definition

[edit]

A surjective function is a function whose image is equal to its codomain. Equivalently, a function with domain and codomain is surjective if for every in there exists at least one in with .[1] Surjections are sometimes denoted by a two-headed rightwards arrow (U+21A0 RIGHTWARDS TWO HEADED ARROW),[5] as in .

Symbolically,

If , then is said to be surjective if
.[2][6]

Examples

[edit]
A non-surjective function from domain X to codomain Y. The smaller yellow oval inside Y is the image (also called range) of f. This function is not surjective, because the image does not fill the whole codomain. In other words, Y is colored in a two-step process: First, for every x in X, the point f(x) is colored yellow; Second, all the rest of the points in Y, that are not yellow, are colored blue. The function f would be surjective only if there were no blue points.
  • For any set X, the identity function idX on X is surjective.
  • The function f : Z → {0, 1} defined by f(n) = n mod 2 (that is, even integers are mapped to 0 and odd integers to 1) is surjective.
  • The function f : RR defined by f(x) = 2x + 1 is surjective (and even bijective), because for every real number y, we have an x such that f(x) = y: such an appropriate x is (y − 1)/2.
  • The function f : RR defined by f(x) = x3 − 3x is surjective, because the pre-image of any real number y is the solution set of the cubic polynomial equation x3 − 3xy = 0, and every cubic polynomial with real coefficients has at least one real root. However, this function is not injective (and hence not bijective), since, for example, the pre-image of y = 2 is {x = −1, x = 2}. (In fact, the pre-image of this function for every y, −2 ≤ y ≤ 2 has more than one element.)
  • The function g : RR defined by g(x) = x2 is not surjective, since there is no real number x such that x2 = −1. However, the function g : RR≥0 defined by g(x) = x2 (with the restricted codomain) is surjective, since for every y in the nonnegative real codomain Y, there is at least one x in the real domain X such that x2 = y.
  • The natural logarithm function ln : (0, +∞) → R is a surjective and even bijective (mapping from the set of positive real numbers to the set of all real numbers). Its inverse, the exponential function, if defined with the set of real numbers as the domain and the codomain, is not surjective (as its range is the set of positive real numbers).
  • The matrix exponential is not surjective when seen as a map from the space of all n×n matrices to itself. It is, however, usually defined as a map from the space of all n×n matrices to the general linear group of degree n (that is, the group of all n×n invertible matrices). Under this definition, the matrix exponential is surjective for complex matrices, although still not surjective for real matrices.
  • The projection from a cartesian product A × B to one of its factors is surjective, unless the other factor is empty.
  • In a 3D video game, vectors are projected onto a 2D flat screen by means of a surjective function.

Properties

[edit]

A function is bijective if and only if it is both surjective and injective.

If (as is often done) a function is identified with its graph, then surjectivity is not a property of the function itself, but rather a property of the mapping.[7] This is, the function together with its codomain. Unlike injectivity, surjectivity cannot be read off of the graph of the function alone.

Surjections as right invertible functions

[edit]

The function g : YX is said to be a right inverse of the function f : XY if f(g(y)) = y for every y in Y (g can be undone by f). In other words, g is a right inverse of f if the composition f o g of g and f in that order is the identity function on the domain Y of g. The function g need not be a complete inverse of f because the composition in the other order, g o f, may not be the identity function on the domain X of f. In other words, f can undo or "reverse" g, but cannot necessarily be reversed by it. For example, has right inverse the composition in the other order gives , which equals only if .

Every function with a right inverse is necessarily a surjection. The proposition that every surjective function has a right inverse is equivalent to the axiom of choice.

If f : XY is surjective and B is a subset of Y, then f(f −1(B)) = B. Thus, B can be recovered from its preimage f −1(B).

For example, in the first illustration in the gallery, there is some function g such that g(C) = 4. There is also some function f such that f(4) = C. It doesn't matter that g is not unique (it would also work if g(C) equals 3); it only matters that f "reverses" g.

Surjections as epimorphisms

[edit]

A function f : XY is surjective if and only if it is right-cancellative:[8][9] given any functions g,h : YZ, whenever g o f = h o f, then g = h. This property is formulated in terms of functions and their composition and can be generalized to the more general notion of the morphisms of a category and their composition. Right-cancellative morphisms are called epimorphisms. Specifically, surjective functions are precisely the epimorphisms in the category of sets. The prefix epi is derived from the Greek preposition ἐπί meaning over, above, on.

Any morphism with a right inverse is an epimorphism, but the converse is not true in general. A right inverse g of a morphism f is called a section of f. A morphism with a right inverse is called a split epimorphism.

Surjections as binary relations

[edit]

Any function with domain X and codomain Y can be seen as a left-total and right-unique binary relation between X and Y by identifying it with its function graph. A surjective function with domain X and codomain Y is then a binary relation between X and Y that is right-unique and both left-total and right-total.

Cardinality of the domain of a surjection

[edit]

The cardinality of the domain of a surjective function is greater than or equal to the cardinality of its codomain: If f : XY is a surjective function, then X has at least as many elements as Y, in the sense of cardinal numbers. (The proof appeals to the axiom of choice to show that a function g : YX satisfying f(g(y)) = y for all y in Y exists. g is easily seen to be injective, thus the formal definition of |Y| ≤ |X| is satisfied.)

Specifically, if both X and Y are finite with the same number of elements, then f : XY is surjective if and only if f is injective.

Composition and decomposition

[edit]

The composition of surjective functions is always surjective: If f and g are both surjective, and the codomain of g is equal to the domain of f, then f o g is surjective. Conversely, if f o g is surjective, then f is surjective (but g, the function applied first, need not be). These properties generalize from surjections in the category of sets to any epimorphisms in any category.

Any function can be decomposed into a surjection and an injection: For any function h : XZ there exist a surjection f : XY and an injection g : YZ such that h = g o f. To see this, define Y to be the set of preimages h−1(z) where z is in h(X). These preimages are disjoint and partition X. Then f carries each x to the element of Y which contains it, and g carries each element of Y to the point in Z to which h sends its points. Then f is surjective since it is a projection map, and g is injective by definition.

Induced surjection and induced bijection

[edit]

Any function induces a surjection by restricting its codomain to its range. Any surjective function induces a bijection defined on a quotient of its domain by collapsing all arguments mapping to a given fixed image. More precisely, every surjection f : AB can be factored as a projection followed by a bijection as follows. Let A/~ be the equivalence classes of A under the following equivalence relation: x ~ y if and only if f(x) = f(y). Equivalently, A/~ is the set of all preimages under f. Let P(~) : AA/~ be the projection map which sends each x in A to its equivalence class [x]~, and let fP : A/~ → B be the well-defined function given by fP([x]~) = f(x). Then f = fP o P(~).

The set of surjections

[edit]

Given fixed finite sets A and B, one can form the set of surjections AB. The cardinality of this set is one of the twelve aspects of Rota's Twelvefold way, and is given by , where denotes a Stirling number of the second kind.

[edit]

See also

[edit]

References

[edit]

Further reading

[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
A surjective function, also known as an onto function, is a mapping from a set AA (the domain) to a set BB (the ) such that every element in BB is the image of at least one element in AA; formally, for every bBb \in B, there exists some aAa \in A with f(a)=bf(a) = b. The concept of surjectivity, alongside injectivity and bijectivity, was formalized in modern set theory by the collective Nicolas Bourbaki in their 1954 treatise Théorie des ensembles, drawing from earlier notions of "onto" mappings in analysis and algebra. The term "surjective" derives from the French surjectif, where sur implies "onto" or "upon," reflecting the idea of covering the entire codomain. Prior to this standardization, equivalent ideas appeared in works on functions dating back to the early 20th century, but without the precise terminology. Surjective functions are distinguished from injective (one-to-one) functions, which map distinct elements of the domain to distinct elements of the , though a function can be surjective without being injective—for instance, multiple domain elements may map to the same codomain element. A function that is both surjective and injective is bijective, establishing a one-to-one correspondence between sets, which is fundamental for proving equal cardinalities. Examples illustrate surjectivity clearly: the f:RRf: \mathbb{R} \to \mathbb{R} given by f(x)=2x+1f(x) = 2x + 1 is surjective, as for any yy, solving 2x+1=y2x + 1 = y yields x=y12Rx = \frac{y-1}{2} \in \mathbb{R}. In contrast, g:RRg: \mathbb{R} \to \mathbb{R} defined by g(x)=x2g(x) = x^2 is not surjective onto R\mathbb{R} (since negative numbers lack preimages), but it is surjective onto [0,)[0, \infty). In applied contexts, surjectivity plays a key role in linear algebra, where a linear transformation T:VWT: V \to W between vector spaces is surjective if its image spans WW, equivalent to the rank of its equaling dim(W)\dim(W); this ensures solvability of linear systems T(v)=wT(\mathbf{v}) = \mathbf{w} for all wW\mathbf{w} \in W. More broadly, surjective functions underpin existence theorems in (e.g., the implies certain continuous functions are surjective onto intervals).

Fundamentals

Definition

In set theory, sets are well-determined collections of distinct objects, known as elements or members. A function f:ABf: A \to B between two sets AA (the domain) and BB (the ) is formally defined as a triple (A,B,G)(A, B, G), where GA×BG \subseteq A \times B is a relation such that for every aAa \in A, there exists exactly one bBb \in B with (a,b)G(a, b) \in G, often denoted f(a)=bf(a) = b. The image of ff, denoted f(A)f(A), is the subset of BB consisting of all elements bBb \in B for which there exists at least one aAa \in A such that f(a)=bf(a) = b, i.e., f(A)={f(a)aA}f(A) = \{ f(a) \mid a \in A \}. A function f:ABf: A \to B is surjective if every element of the BB is mapped to by at least one element of the domain AA. Formally, ff is surjective if for every bBb \in B, there exists at least one aAa \in A such that f(a)=bf(a) = b. Equivalently, the of ff equals the entire , i.e., f(A)=Bf(A) = B. The term "surjective" was coined by the collective of mathematicians known as in their 1954 treatise Théorie des ensembles to describe functions that map "onto" the , distinguishing them from injective functions (which map elements distinctly) and bijective functions (which are both injective and surjective).

Notation and Terminology

In , a function f:ABf: A \to B is commonly denoted using the standard arrow \to to indicate the mapping from domain AA to BB, with surjectivity explicitly stated in words such as "is surjective" or "is onto." Alternative notations for surjectivity include the two-headed arrow f:ABf: A \twoheadrightarrow B (Unicode U+21A0, rightwards two-headed arrow), emphasizing that every element in BB is reached. The terminology "surjective function" is synonymous with "onto function," reflecting the property that the image equals the . In some contexts, "total function" may appear but specifically denotes a function defined on its entire specified domain, contrasting with partial functions and unrelated to codomain coverage. The surjective arrow \twoheadrightarrow visually distinguishes surjectivity from the plain arrow \to by its two heads, symbolizing coverage of the target set without gaps. The word "surjective" derives from the French "surjectif," coined by the mathematician collective in their 1954 work Théorie des ensembles, where the prefix "sur-" (meaning "upon" or "onto") evokes mapping elements onto the , paralleling "injective" from "in-" (meaning "in").

Examples

Basic Examples

A simple example of a surjective function is the mapping f:{1,2}{a}f: \{1,2\} \to \{a\} defined by f(1)=af(1) = a and f(2)=af(2) = a. Here, the codomain {a}\{a\} has only one element, which is the image of both elements in the domain, ensuring every codomain element is attained./07:_Functions/7.02:_Properties_of_Functions) Constant functions provide another basic illustration of surjectivity. Any constant function from a non-empty domain to a singleton codomain is surjective, as the single codomain element is mapped to by every domain element; for instance, the function g:{x,y,z}{c}g: \{x,y,z\} \to \{c\} where g(x)=g(y)=g(z)=cg(x) = g(y) = g(z) = c hits the entire codomain {c}\{c\}./08:_New_Page/8.02:_New_Page) The identity function on any set offers a straightforward case of surjectivity. For a set XX, the identity map idX:XX\mathrm{id}_X: X \to X defined by idX(x)=x\mathrm{id}_X(x) = x for all xXx \in X is surjective, since each element in the codomain XX is precisely the image of itself from the domain./06:_Functions/6.04:_Onto_Functions) These examples can be visualized using arrow diagrams, where domain elements are points on one side and elements on the other, connected by arrows representing the function values. Surjectivity appears when every point receives at least one incoming arrow, as in the case of multiple arrows converging on the single point aa for the finite set example above. Such diagrams concretize the condition that the function's equals the ./07:_Functions/7.02:_Properties_of_Functions)

Function-Specific Examples

In analysis, the exponential function exp:R(0,)\exp: \mathbb{R} \to (0, \infty), defined by exp(x)=ex\exp(x) = e^x, provides a classic example of surjectivity. For every positive real number y>0y > 0, there exists an xRx \in \mathbb{R} such that exp(x)=y\exp(x) = y, namely x=lnyx = \ln y, ensuring the image covers the entire codomain of positive reals. A related illustration arises with quadratic functions. The map f:RRf: \mathbb{R} \to \mathbb{R} given by f(x)=x2f(x) = x^2 fails to be surjective, as its image consists solely of non-negative reals, missing all negative values in the codomain. However, restricting the codomain appropriately yields surjectivity: the function g:R[0,)g: \mathbb{R} \to [0, \infty) defined by g(x)=x2g(x) = x^2 is surjective, since for any y0y \geq 0, the preimage includes y\sqrt{y}
Add your contribution
Related Hubs
User Avatar
No comments yet.