ArticleslgStudy

mathematics

Codomain

Codomain is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Codomain rather than just read about it. In short: 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 Y in the notation f : X → Y.

Codomain — main illustration
Codomain — illustration

Key takeaways

  • Codomain belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Codomain to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Codomain from memory before moving on to harder problems.

Reference excerpt

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 Y in the notation f : X → Y. 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 f if f is defined as a triple (X, Y, G) where X is called the domain of f, Y its codomain, and G its graph. 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. 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 y in its codomain for which the equation f(x) = y does not have a solution. A codomain is not part of a function f if f 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 X, in which case there is formally no such thing as a triple (X, Y, G). 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: X → Y.

Examples For a function

f:ℝ→ℝ defined by

f:x↦x2, or equivalently f(x) = x2, the codomain of f is ℝ, but f does not map to any negative number. Thus the image of f is the set ℝ0+; i.e., the interval [0, ∞). An alternative function g is defined thus:

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

h:x↦x. The domain of h cannot be ℝ but can be defined to be ℝ0+:

h:ℝ0+→ℝ. The compositions are denoted

h∘f, h∘g. On inspection, h ∘ f 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 ℝ. For this reason, it is possible that h, when composed with 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 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, 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 ℝ2 to itself, which can be represented by the 2×2 matrices with real coefficients. Each matrix represents a map with the domain ℝ2 and codomain ℝ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=(1010) 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 ℝ2 to ℝ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.

See also Bijection – One-to-one correspondence Morphism § Codomain Endofunction – Function with the same domain and codomain

Notes

References Bourbaki, Nicolas (1970). Théorie des ensembles. Éléments de mathématique. Springer. ISBN 9783540340348. Eccles, Peter J. (1997), An Introduction to Mathematical Reasoning: Numbers, Sets, and Functions, Cambridge University Press, ISBN 978-0-521-59718-0 Forster, Thomas (2003), Logic, Induction and Sets, Cambridge University Press, ISBN 978-0-521-53361-4 Mac Lane, Saunders (1998), Categories for the working mathematician (2nd ed.), Springer, ISBN 978-0-387-98403-2 Scott, Dana S.; Jech, Thomas J. (1967), Axiomatic set theory, Symposium in Pure Mathematics, American Mathematical Society, ISBN 978-0-8218-0245-8 Sharma, A.K. (2004), Introduction To Set Theory, Discovery Publishing House, ISBN 978-81-7141-877-0 Stewart, Ian; Tall, David Orme (1977), The foundations of mathematics, Oxford University Press, ISBN 978-0-19-853165-4

Illustrations

Codomain: A function .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}f from X to Y. The blue oval Y is the codomain of f. The yellow oval inside Y is the image of f, and the red oval X is the domain of f.
A function .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}f from X to Y. The blue oval Y is the codomain of f. The yellow oval inside Y is the image of f, and the red oval X is the domain of f.

Worked examples

Example 1 — a first encounter with Codomain

Start with the simplest possible case. Write down what Codomain claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Codomain before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Codomain ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Codomain

In research
Codomain appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Codomain in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Codomain is common in secondary-school and first-year university syllabi. It links to neighbouring topics Basic concepts in set theory, Functions and mappings, so understanding it makes those chapters shorter.
In everyday life
Look for Codomain outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Codomain” →

How to study Codomain in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Codomain means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Codomain out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Codomain in simple terms?

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 Y in the notation f : X → Y.

Why does Codomain matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Codomain?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Codomain.

Tags

  • Basic concepts in set theory
  • Functions and mappings

Keep exploring