Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Codomain
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Examples == For a function :<math>f\colon \mathbb{R}\rightarrow\mathbb{R}</math> defined by : <math>f\colon\,x\mapsto x^2,</math> or equivalently <math>f(x)\ =\ x^2,</math> the codomain of {{mvar|f}} is <math>\textstyle \mathbb R</math>, but {{mvar|f}} does not map to any negative number. Thus the image of {{mvar|f}} is the set <math>\textstyle \mathbb{R}^+_0</math>; i.e., the [[interval (mathematics)|interval]] {{closed-open|0, β}}. An alternative function {{mvar|g}} is defined thus: : <math>g\colon\mathbb{R}\rightarrow\mathbb{R}^+_0</math> : <math>g\colon\,x\mapsto x^2.</math> While {{mvar|f}} and {{mvar|g}} map a given {{mvar|x}} to the same number, they are not, in this view, the same function because they have different codomains. A third function {{mvar|h}} can be defined to demonstrate why: : <math>h\colon\,x\mapsto \sqrt x.</math> The domain of {{mvar|h}} cannot be <math>\textstyle \mathbb{R}</math> but can be defined to be <math>\textstyle \mathbb{R}^+_0</math>: : <math>h\colon\mathbb{R}^+_0\rightarrow\mathbb{R}.</math> The [[function composition|compositions]] are denoted : <math>h \circ f,</math> : <math>h \circ g.</math> On inspection, {{math|''h'' β ''f''}} is not useful. It is true, unless defined otherwise, that the image of {{mvar|f}} is not known; it is only known that it is a subset of <math>\textstyle \mathbb R</math>. For this reason, it is possible that {{mvar|h}}, when composed with {{mvar|f}}, might receive an argument for which no output is defined β negative numbers are not elements of the domain of {{mvar|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, {{mvar|g}} is a surjection while {{mvar|f}} is not. The codomain does not affect whether a function is an [[injective function|injection]]. A second example of the difference between codomain and image is demonstrated by the [[linear transformation]]s between two [[vector space]]s β in particular, all the linear transformations from <math>\textstyle \mathbb{R}^2</math> to itself, which can be represented by the {{math|2Γ2}} [[Matrix (mathematics)|matrices]] with real coefficients. Each matrix represents a map with the domain <math>\textstyle \mathbb{R}^2</math> and codomain <math>\textstyle \mathbb{R}^2</math>. However, the image is uncertain. Some transformations may have image equal to the whole codomain (in this case the matrices with [[Rank (linear algebra)|rank]] {{math|2}}) but many do not, instead mapping into some smaller [[Linear subspace|subspace]] (the matrices with rank {{math|1}} or {{math|0}}). Take for example the matrix {{mvar|T}} given by :<math>T = \begin{pmatrix} 1 & 0 \\ 1 & 0 \end{pmatrix}</math> which represents a linear transformation that maps the point {{math|(''x'', ''y'')}} to {{math|(''x'', ''x'')}}. The point {{math|(2, 3)}} is not in the image of {{mvar|T}}, but is still in the codomain since linear transformations from <math>\textstyle \mathbb{R}^2</math> to <math>\textstyle \mathbb{R}^2</math> are of explicit relevance. Just like all {{math|2Γ2}} matrices, {{mvar|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 {{mvar|T}} does not have full rank since its image is smaller than the whole codomain.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)