Talk:Codomain
From Wikipedia, the free encyclopedia
Contents |
[edit] Errors in the Article
The first point I would like to make is that there is no sense in writing something like "let f be a function from R to R, where f(x) = x^(1/2)." This is because there is no such function. Suppose to the contrary that there is such a function f. Because it is a function, we know that for all a in R (its domain), there exists b in R (its codomain) such that b = f(a) = a^(1/2). However, it is easy to see that for a = -1, no b in R satisfies the statement b = a^(1/2) = (-1)^(1/2). This leads to a contradiction. Therefore, we conclude that there is no such function. Another interpretation would be that the "function" f is not well-defined, although this terminology is misleading as it suggests that f is in fact a function, which we have just disproved.
Of course, there is nothing wrong with supposing that such a function exists. It is just that doing so serves no purpose, since any statement follows from a false supposition. At any rate, the article should be changed to fix what is clearly a mistake.
The second point I would like to make is that even if the functions f and g were properly defined, it is trivial to show that f and g are in fact the same. By treating them as the sets they really are, proving that f = g is a simple task of proving set equality. This disproves the article's current claim that the functions are not the same.
-Your Friendly Anonymous Mathematician
[edit] Example
[edit] Copied from article
Let the function f be a function on the real numbers:
defined by
The codomain of f is R, but clearly f(x) never takes negative values, and thus the range is in fact the set R+—non-negative reals, i.e. the interval [0,∞):
One could have defined the function g thus:
- <== does not include zero!!
While f and g have the same effect on a given number, they are not, in the modern view, the same function since they have different codomains.
The codomain can affect whether or not the function is a surjection; in our example, g is a surjection while f is not.
[edit] Discussion
Why should f and g be considered different functions? No doubt this is very confusing for those who are meeting functions for the first time; also I know of no use for the surjection concept (although I still have to read that article). Brianjd
- I have a math degree and I was never taught any such thing. I was taught that the range is the set of all outputs, and that if someone says x->x^2 has a range of R, then they were just wrong or imprecise.
- Secondly the use of the words possible and actualized is totally confusing
- Thirdly I can understand how x->x^2 is different if you are talking about R and C, but when both map R->R+ I don't see how misstating the proper range changes the function at all. This seems to be some kind of semantic nuance that is only important when abusive language is used with classes of functions.
- I just don't get it. I'm gonna check my analysis books when I get home.
It's just a case of mathematicians wanting to complicate things and make their profession seems advanced.
I too agree that it's stupid to consider a "mapped to" set to be anything different than the range of the function doing the mapping. But mathematicians allow for the mapped to set to have some useless elements to which the function will never map to (i.e., the codomain of f(x) = x^2 being R has no use, why not limit it to R+?).
-
- It is important in many areas of advanced mathematics, particularly algebraic topology to distinguish between the range of the function and the codomain. The reason is that when you apply a functor like homology or fundamental group to a function, the resulting homorphisms can be entirely different. For example proofs of the fundamental theorem of algebra and its generalizations to quaternions and octonions using algebraic topology techniques rely on clever use of this distinction. Fiedorow 20:09, 7 December 2005 (UTC)
- I do agree that in the case discussed, it seems quite useless to claim that f and g are different functions (and that range and codomain are two separate, different concepts). However, in a more general case, it is IMO worthwhile. For example, let there be a function p: R^3 -> R^3 that to each vector in R^3 maps its orthogonal projection on a plane L. It makes sense to claim that p is not the same as q, another R^3 -> R^3 function that to each vector in R^3 maps its orthogonal projection on a plane W, right? And a function s: R^3 -> R^2 is another case. While both L and W are "two dimensional" in a sense, it is quite clear that they are not equal to R^2. So I guess my point is that I agree with the current article, but recognize the need for an example that more clearly illustrates the point. 85.224.198.251 17:01, 3 May 2007 (UTC)
[edit] CODOMAIN - "set of all possible values" ?
Assume f: A ->B, If the ran(f) is a proper subset of B, then how are the values in the set B-ran(f) "possible values" of the function f defined on A?
The set of all positive values is ran(f) not B. B is a set which contains the set of all positive values (a set being mapped "into" by f defined on A)
To describe ran(f) as the set of "actual values" implies that the function is actually used for all members of A. This is true if we're graphing y=f(x) or some other mechanism that actually feeds all members of A into f. But a function isn't like this, it's just a machine or rule that "can" take any value in A and map it to it's corresponding value in ran(f).
ran(f) is the set of all "possible" values!
- From the point of view adopted in this context, the domain A and the codomain B are part of the data associated to the function f. Admittedly this doesn't make much sense when one considers one function in isolation. However it is very helpful when one is considering large collections of functions. One wants to say things like "consider all continuous functions with domain A and codomain B". Fiedorow 15:29, 19 December 2005 (UTC)
-
- Yes but to explain the codomain as the set of possible values and range as the set of actual values is vague and makes even less sense in light of your comments above (and even less sense when going back and reading the explanation again).
-
- The range is the "set of all possible output values from the function." The codomain is "the set that contains the set of possible output values of the function, and thus is a superset of the range."
-
-
- A set, not the set. f could easily be defined to have a codomain of C instead of R or R0+. (Correct me if I'm wrong.) Twifkak 21:06, 15 August 2007 (UTC)
-
[edit] On the composition example
The article gives an example where two functions with the same graph are given, but with different stated codomains, and claims that in one caase a certain composition is possible and in another case it is not. This could be expanded into a longer explanation of why it is sometimes necessary to track the codomain explicitly; it is not about the ability of the functions qua functions to be composed, but about the ability of the functions qua morphisms in a category to be composed. In a noncategorical context, all that is needed in order to compose f and g into is that the range of g is contained in the domain of f, and this is a property of the graphs alone. CMummert 13:06, 14 October 2006 (UTC)
[edit] Suggestions from a non-mathematician
I don't have any mathematical training other than a high school diploma, so I don't have the confidence to make the changes to this article myself, but I have a few questions/comments. I think I already know the answers, but I'm probably wrong. Either way, I think these are questions that a lot of untrained readers will be asking, and they're worth explaining in the article.
1. A function has to be defined for every number in its domain, right? The principal difference between range and codomain seems to be that this distinction does not apply to codomains: just because a number is within the codomain of a function doesn't mean that that function has to be capable of producing that number as output.
- Correct
2. How, then, do we determine what the codomain of a function is? When the domain of a function isn't explicitly limited, we assume it to be the set for which that function is defined. (At least, that's what I think I did in high school.) The codomain seems to be quite different. It seems like it's not determinable (and probably not relevant) unless it's explicitly defined.
- It usually is, I.E. all reals or complex numbers
3. I assume that a big, easy-to-understand instance where the codomain and the range would differ is if the domain is limited. For example, if we define f(x) = x^2, f has a codomain of the real numbers that are greater than or equal to zero. However, if we define its domain as [3:infinity), then its codomain remains the same, but its range is now [9:infinity) instead of [0:infinity). Right?
- Yes--Cronholm144 11:39, 29 May 2007 (UTC)
168.209.97.34 09:10, 28 May 2007 (UTC)
[edit] A thousand words
I think that many problems with the understanding of this concept could be alleviated by the addition of the set theory blob mapping to the codomain blob. If you have read texts on algebra I think you know what I mean. Unfortunately I think that any picture I make will look haphazard at best. I will give it a shot though... don't hesitate to stop me.--Cronholm144 11:31, 29 May 2007 (UTC)
Something like this except cleaner
[edit] [TEMPORARY] Pls help revert vandalism
Please help revert vandalism. See first paragraph of page. (and pls remove this talk paragraph once it's been seen to)
[edit] possible error ?
Do any of you think that the sentence at the start of this article:
"Unlike the range, which is a consequence of the definition of a function, the codomain is part of the definition of a function. "
contains a minor error ?
Shouldn't the sentence be something like:
"Unlike the range, which is a consequence of the definition of a function, the codomain is NOT part of the definition of a function. "
On an unrelated note. I was reading your comments pertaining to comparison of the "codomain" and "range" concepts. Do any of you think that the computer science concept of "data type" might be useful here? A codomain, could be regarded as the set of all possible values having a specific data type, or some arbitrary subset of such a set, for example the set of all complex numbers, the set of all real numbers, the set of all groups, etc..., and the range, of a function could be thought of as that subset of a codomain, to which that function maps values. Do any of you know if there exists a term that is regarded as acceptable in mathematics, whose meaning is roughly equivalent to the meaning of the computer science "data type" concept ? —Preceding unsigned comment added by 76.178.75.237 (talk) 03:14, 11 June 2008 (UTC)