Codomain

The specified target set B of a function f:A→B
Codomain

If f ⁣:ABf\colon A\to B is a , then the codomain of ff is the target set BB appearing in the declaration f ⁣:ABf\colon A\to B.

The codomain is part of the data of a function and should be distinguished from the f(A)Bf(A)\subseteq B, which is determined by ff.

Examples:

  • If f ⁣:RRf\colon\mathbb{R}\to\mathbb{R} is f(x)=x2f(x)=x^2, then the codomain is R\mathbb{R} but the image is [0,)[0,\infty).
  • The same rule xx2x\mapsto x^2 can be viewed as a function g ⁣:R[0,)g\colon\mathbb{R}\to[0,\infty) with codomain [0,)[0,\infty), in which case gg is .