The codomain of a function f {\displaystyle f} is the set of all values to which f {\displaystyle f} is defined. It is also the image of the domain of the function.
The range of a function is a subset of its codomain.