Codomain

Codomain
Image of a function f from X to Y. The smaller oval inside Y is the image of f. Y is the Codomain of f.

In mathematics, the codomain or target set of a function is the set Y into which all of the output of the function is constrained to fall. It is the set Y in the notation f: XY. The codomain is also sometimes referred to as the range but that term is ambiguous as it may also refer to the image.

The codomain is part of the modern definition of a function f as a triple (X, Y, F), with F a subset of the Cartesian product X × Y. The set of all elements of the form f(x), where x ranges over the elements of the domain X, is called the image of f. In general, the image of a function is a subset of its codomain. Thus, it may not coincide with its codomain. Namely, a function that is not surjective has elements y in its codomain for which the equation f(x) = y does not have a solution.

An older definition of functions that does not include a codomain is also widely used.[1] For example in set theory it is desirable to permit the domain of a function to be a proper class X, in which case there is formally no such thing as a triple (X, Y, F). 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: XY.[2][3][4][5][6]

Examples

For a function

f\colon \mathbb{R}\rightarrow\mathbb{R}

defined by

f\colon\,x\mapsto x^2, or equivalently f(x)\ =\ x^2,

the codomain of f is \textstyle \mathbb R, but f does not map to any negative number. Thus the image of f is the set \textstyle \mathbb{R}^+_0; i.e., the interval [0, ∞).

An alternative function g is defined thus:

g\colon\mathbb{R}\rightarrow\mathbb{R}^+_0
g\colon\,x\mapsto x^2.

While f and g map a given x to the same number, they are not, in the modern view, the same function because they have different codomains. A third function h can be defined to demonstrate why:

h\colon\,x\mapsto \sqrt x.

The domain of h must be defined to be \textstyle \mathbb{R}^+_0:

h\colon\mathbb{R}^+_0\rightarrow\mathbb{R}.

The compositions are defined

h \circ f,
h \circ g.

On inspection, hf is not useful. It is true, unless defined otherwise, that the image of f is not known; it is only known that it is a subset of \textstyle \mathbb R. For this reason, it is possible that h, when composed on f, might receive an argument for which no output is defined – negative numbers are not elements of the domain of h, which is the square root function.

Function composition therefore is a useful notation 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 the same as 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, g is a surjection while f 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 2×2 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 2) but many do not, instead mapping into some smaller subspace (the matrices with rank 1 or 0). Take for example the matrix T given by

T = \begin{pmatrix}
1 & 0 \\
1 & 0 \end{pmatrix}

which represents a linear transformation that maps the point (x, y) to (x, x). The point (2, 3) is not in the image of T, 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 2×2 matrices, T 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 T does not have full rank since its image is smaller than the whole codomain.

Notes

References

  • Eccles, Peter J. (1997), An Introduction to Mathematical Reasoning: Numbers, Sets, and Functions, Cambridge University Press, ISBN 978-0521597180 
  • Forster, Thomas (2003), Logic, Induction and Sets, Cambridge University Press, ISBN 9780521533614 
  • Mac Lane, Saunders (1998), Categories for the working mathematician (2nd ed.), Springer, ISBN 978-0387984032 
  • Scott, Dana S.; Jech, Thomas J. (1967), Axiomatic set theory, Symposium in Pure Mathematics, American Mathematical Society, ISBN 978-0821802458 
  • Sharma, A.K. (2004), Introduction To Set Theory, Discovery Publishing House, ISBN 978-8171418770 
  • Stewart, Ian; Tall, David Orme (1977), The foundations of mathematics, Oxford University Press, ISBN 978-0198531654 

Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • codomain — noun The target space into which a function maps elements of its domain. It always contains the range of the function, but can be larger than the range if the function is not surjective. Syn: range Ant: domain …   Wiktionary

  • codomain — [ kəʊdə(ʊ)meɪn] noun Mathematics a set that includes all the possible values of a given function …   English new terms dictionary

  • codomain — n. Math. a set that includes all the possible expressions of a given function. Etymology: CO 2 + DOMAIN …   Useful english dictionary

  • Function (mathematics) — f(x) redirects here. For the band, see f(x) (band). Graph of example function, In mathematics, a function associates one quantity, the a …   Wikipedia

  • Surjective function — Onto redirects here. For other uses, see wikt:onto. A surjective function from domain X to codomain Y. The function is surjective because every point in the codomain is the value of f(x) for at least one point x in the domain. In mathematics, a… …   Wikipedia

  • Bijection, injection and surjection — In mathematics, injections, surjections and bijections are classes of functions distinguished by the manner in which arguments (input expressions from the domain) and images (output expressions from the codomain) are related or mapped to each… …   Wikipedia

  • Inverse function — In mathematics, if fnof; is a function from A to B then an inverse function for fnof; is a function in the opposite direction, from B to A , with the property that a round trip (a composition) from A to B to A (or from B to A to B ) returns each… …   Wikipedia

  • Binary relation — Relation (mathematics) redirects here. For a more general notion of relation, see Finitary relation. For a more combinatorial viewpoint, see Theory of relations. In mathematics, a binary relation on a set A is a collection of ordered pairs of… …   Wikipedia

  • Injective function — Injective redirects here. For injective modules, see Injective module. An injective function (is not a bijection) …   Wikipedia

  • Functional predicate — In formal logic and related branches of mathematics, a functional predicate, or function symbol, is a logical symbol that may be applied to an object term to produce another object term.Functional predicates are also sometimes called mappings ,… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”