codomain
of , and the red oval is the domain of . In mathematics, a codomain or set of destination of a function is a set into which all of the outputs of the function are constrained to fall. It is the set in the notation . The term range is sometimes ambiguously used to refer to either the codomain or the image of a function. A codomain is part of a function if is defined as a triple where is called the domain of , its codomain, and its graph. The set of all elements of the form , where ranges over the elements of the domain , is called the image of . The image of a function is a subset of its codomain so it might not coincide with it. Namely, a function that is not surjective has elements in its codomain for which the equation does not have a solution. A codomain is not part of a function if is defined as just a graph. For example, in set theory it is desirable to permit the domain of a function to be a proper class , in which case there is formally no such thing as a triple . With such a definition functions do not have a codomain, although some authors still use it informally after introducing a function in the form .
of , and the red oval is the domain of . In mathematics, a codomain or set of destination of a function is a set into which all of the outputs of the function are constrained to fall. It is the set in the notation . The term range is sometimes ambiguously used to refer to either the codomain or the image of a function. A codomain is part of a function if is defined as a triple where is called the domain of , its codomain, and its graph. The set of all elements of the form , where ranges over the elements of the domain , is called the image of . The image of a function is a subset of its codomain so it might not coincide with it. Namely, a function that is not surjective has elements in its codomain for which the equation does not have a solution. A codomain is not part of a function if is defined as just a graph. For example, in set theory it is desirable to permit the domain of a function to be a proper class , in which case there is formally no such thing as a triple . With such a definition functions do not have a codomain, although some authors still use it informally after introducing a function in the form . f\colon\,x\mapsto x^2, or equivalently f(x)\ =\ x^2, the codomain of is \textstyle \mathbb R , but does not map to any negative number. Thus the image of is the set \textstyle \mathbb{R}^+_0 ; i.e., the interval . An alternative function is defined thus: g\colon\mathbb{R}\rightarrow\mathbb{R}^+_0 g\colon\,x\mapsto x^2. While and map a given to the same number, they are not, in this view, the same function because they have different codomains. A third function can be defined to demonstrate why: h\colon\,x\mapsto \sqrt x. The domain of cannot be \textstyle \mathbb{R} but can be defined to be \textstyle \mathbb{R}^+_0 : h\colon\mathbb{R}^+_0\rightarrow\mathbb{R}. The compositions are denoted h \circ f, h \circ g. On inspection, is not useful. It is true, unless defined otherwise, that the image of is not known; it is only known that it is a subset of \textstyle \mathbb R . For this reason, it is possible that , when composed with , might receive an argument for which no output is defined – negative numbers are not elements of the domain of , which is the square root function. Function composition therefore is a useful notion only when the codomain of the function on the right side of a composition (not its image, which is a consequence of the function and could be unknown at the level of the composition) is a subset of the domain of the function on the left side. The codomain affects whether a function is a surjection, in that the function is surjective if and only if its codomain equals its image. In the example, is a surjection while is not. The codomain does not affect whether a function is an injection. A second example of the difference between codomain and image is demonstrated by the linear transformations between two vector spaces – in particular, all the linear transformations from \textstyle \mathbb{R}^2 to itself, which can be represented by the matrices with real coefficients. Each matrix represents a map with the domain \textstyle \mathbb{R}^2 and codomain \textstyle \mathbb{R}^2 . However, the image is uncertain. Some transformations may have image equal to the whole codomain (in this case the matrices with rank ) but many do not, instead mapping into some smaller subspace (the matrices with rank or ). Take for example the matrix given by T = \begin{pmatrix} 1 & 0 \\ 1 & 0 \end{pmatrix} which represents a linear transformation that maps the point to . The point is not in the image of , but is still in the codomain since linear transformations from \textstyle \mathbb{R}^2 to \textstyle \mathbb{R}^2 are of explicit relevance. Just like all matrices, represents a member of that set. Examining the differences between the image and codomain can often be useful for discovering properties of the function in question. For example, it can be concluded that does not have full rank since its image is smaller than the whole codomain.
References
- Bourbaki 1970 , p. 76 Wikipedia revision 1352085175, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1352085175
Cite this reference
MLA "Bourbaki 1970 , p. 76 Wikipedia revision 1352085175, retrieved 2026-11-20." Bourbaki 1970 , p. 2026-11-19. https://en.wikipedia.org/w/index.php?oldid=1352085175. Accessed 24 November 2026.
Chicago "Bourbaki 1970 , p. 76 Wikipedia revision 1352085175, retrieved 2026-11-20." Bourbaki 1970 , p. 2026-11-19. https://en.wikipedia.org/w/index.php?oldid=1352085175.
APA Bourbaki 1970 , p. (2026). Bourbaki 1970 , p. 76 Wikipedia revision 1352085175, retrieved 2026-11-20. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1352085175
- Bourbaki 1970 , p. 77 Wikipedia revision 1352085175, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1352085175
Cite this reference
MLA "Bourbaki 1970 , p. 77 Wikipedia revision 1352085175, retrieved 2026-11-20." Bourbaki 1970 , p. 2026-11-19. https://en.wikipedia.org/w/index.php?oldid=1352085175. Accessed 24 November 2026.
Chicago "Bourbaki 1970 , p. 77 Wikipedia revision 1352085175, retrieved 2026-11-20." Bourbaki 1970 , p. 2026-11-19. https://en.wikipedia.org/w/index.php?oldid=1352085175.
APA Bourbaki 1970 , p. (2026). Bourbaki 1970 , p. 77 Wikipedia revision 1352085175, retrieved 2026-11-20. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1352085175
- Forster 2003 , pp. 10–11 Wikipedia revision 1352085175, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1352085175
Cite this reference
MLA "Forster 2003 , pp. 10–11 Wikipedia revision 1352085175, retrieved 2026-11-20." Forster 2003 , pp. 2026-11-19. https://books.google.com/books?id=mVeTuaRwWssC&pg=PA10&dq=%22Some+mathematical+cultures+make+this+explicit%2C+saying+that+a+function%22. Accessed 24 November 2026.
Chicago "Forster 2003 , pp. 10–11 Wikipedia revision 1352085175, retrieved 2026-11-20." Forster 2003 , pp. 2026-11-19. https://books.google.com/books?id=mVeTuaRwWssC&pg=PA10&dq=%22Some+mathematical+cultures+make+this+explicit%2C+saying+that+a+function%22.
APA Forster 2003 , pp. (2026). Forster 2003 , pp. 10–11 Wikipedia revision 1352085175, retrieved 2026-11-20. Retrieved November 24, 2026, from https://books.google.com/books?id=mVeTuaRwWssC&pg=PA10&dq=%22Some+mathematical+cultures+make+this+explicit%2C+saying+that+a+function%22
- Eccles 1997 , p. 91 ( quote 1 , quote 2 ); Mac Lane 1998 , p. 8 ; Mac Lane, in Scott & Jech 1967 , p. 232 ; Sharma 2004 , p. 91 ; Stewart & Tall 1977 , p. 89 Wikipedia revision 1352085175, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1352085175
Cite this reference
MLA "Eccles 1997 , p. 91 ( quote 1 , quote 2 ); Mac Lane 1998 , p. 8 ; Mac Lane, in Scott & Jech 1967 , p. 232 ; Sharma 2004 , p. 91 ; Stewart & Tall 1977 , p. 89 Wikipedia revision 1352085175, retrieved 2026-11-20." Eccles 1997 , p. 2026-11-19. https://books.google.com/books?id=ImCSX_gm40oC&pg=PA91&dq=%22The+reader+may+wonder+at+this+variety+of+ways+of+thinking+about+a+function%22. Accessed 24 November 2026.
Chicago "Eccles 1997 , p. 91 ( quote 1 , quote 2 ); Mac Lane 1998 , p. 8 ; Mac Lane, in Scott & Jech 1967 , p. 232 ; Sharma 2004 , p. 91 ; Stewart & Tall 1977 , p. 89 Wikipedia revision 1352085175, retrieved 2026-11-20." Eccles 1997 , p. 2026-11-19. https://books.google.com/books?id=ImCSX_gm40oC&pg=PA91&dq=%22The+reader+may+wonder+at+this+variety+of+ways+of+thinking+about+a+function%22.
APA Eccles 1997 , p. (2026). Eccles 1997 , p. 91 ( quote 1 , quote 2 ); Mac Lane 1998 , p. 8 ; Mac Lane, in Scott & Jech 1967 , p. 232 ; Sharma 2004 , p. 91 ; Stewart & Tall 1977 , p. 89 Wikipedia revision 1352085175, retrieved 2026-11-20. Retrieved November 24, 2026, from https://books.google.com/books?id=ImCSX_gm40oC&pg=PA91&dq=%22The+reader+may+wonder+at+this+variety+of+ways+of+thinking+about+a+function%22
Cite this article
MLA
"codomain." encyclopegia.org, 2026, https://encyclopegia.org/wiki/codomain. Accessed 24 November 2026.
Chicago
"codomain." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/codomain.
APA
encyclopegia.org. (2026). codomain. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/codomain
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON