Is codomain whatever we make? [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite













This question already has an answer here:



  • Codomain of a function

    4 answers



For example, if I say $f(x) = ln left x right$ where $ cdot $ denotes the fractional part function. Is there any way to know the codomain of this function?



And Now if I define $f : mathbbR to mathbbR$, now the codomain is $mathbbR $. So is it safe to say, codomain could be anything we want so long as it contains range, if there isn't a codomain already given?



So, $ sin : mathbbR to [-1,1]$ is as correct as writing $sin : mathbbR to mathbbR$?



So I take it that if domain and codomain aren't given, then I could also say Codomain $equiv$ Range?



EDIT : What I'm trying to ask is, if it's only a matter of codomain, then every function can be called surjective and conversely every function can be called into function? Which makes it all ambiguous.



I have so many confusions with co-domain, but can anyone just explain me these for the time being? Help is appreciated :)







share|cite|improve this question













marked as duplicate by José Carlos Santos, m_t_, drhab, Mark S., user223391 Jul 29 at 22:02


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    Not anything we want, because a function is only well defined if the codomain contains the range. When functions are introduced the codomain is far from always explicit because it often doesn't matter whether it is taken to be the range or a superset of the range.
    – Oppenede
    Jul 29 at 13:18











  • @Oppenede Yes I meant, co domain could be anything so long as it contains range?
    – William
    Jul 29 at 13:19






  • 2




    Some people define a function $f colon A to B$ as a subset $R$ of $A times B$ such that for any $x in A$ there exists exactly one $y in B$ such that $(x, y) in R$. Then the function $sin_1 colon mathbb R to [-1, 1]$ is exactly the same thing as the function $sin_2 colon mathbb R to mathbb R$, i.e., $sin_1 = sin_2$, because they are made of the same pairs. But sometimes it is useful to consider a function $f colon A to B$ as a triple $(A, B, R)$, so that we don't forget what the codomain is (actually, the domain could be left out since it can be recovered from $R$).
    – Luca Bressan
    Jul 29 at 13:26







  • 1




    @LucaBressan I think regarding a function as a triple $(A,B,R)$ is the adequate way. Frequently we consider the set $mathcalF(A,B)$ of all functions $A to B$ (i.e. the morphism set in the category of sets) or suitable subsets of $mathcalF(A,B)$. If we ignore the codomain, this wouldn't make much sense.
    – Paul Frost
    Jul 29 at 15:23














up vote
1
down vote

favorite













This question already has an answer here:



  • Codomain of a function

    4 answers



For example, if I say $f(x) = ln left x right$ where $ cdot $ denotes the fractional part function. Is there any way to know the codomain of this function?



And Now if I define $f : mathbbR to mathbbR$, now the codomain is $mathbbR $. So is it safe to say, codomain could be anything we want so long as it contains range, if there isn't a codomain already given?



So, $ sin : mathbbR to [-1,1]$ is as correct as writing $sin : mathbbR to mathbbR$?



So I take it that if domain and codomain aren't given, then I could also say Codomain $equiv$ Range?



EDIT : What I'm trying to ask is, if it's only a matter of codomain, then every function can be called surjective and conversely every function can be called into function? Which makes it all ambiguous.



I have so many confusions with co-domain, but can anyone just explain me these for the time being? Help is appreciated :)







share|cite|improve this question













marked as duplicate by José Carlos Santos, m_t_, drhab, Mark S., user223391 Jul 29 at 22:02


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    Not anything we want, because a function is only well defined if the codomain contains the range. When functions are introduced the codomain is far from always explicit because it often doesn't matter whether it is taken to be the range or a superset of the range.
    – Oppenede
    Jul 29 at 13:18











  • @Oppenede Yes I meant, co domain could be anything so long as it contains range?
    – William
    Jul 29 at 13:19






  • 2




    Some people define a function $f colon A to B$ as a subset $R$ of $A times B$ such that for any $x in A$ there exists exactly one $y in B$ such that $(x, y) in R$. Then the function $sin_1 colon mathbb R to [-1, 1]$ is exactly the same thing as the function $sin_2 colon mathbb R to mathbb R$, i.e., $sin_1 = sin_2$, because they are made of the same pairs. But sometimes it is useful to consider a function $f colon A to B$ as a triple $(A, B, R)$, so that we don't forget what the codomain is (actually, the domain could be left out since it can be recovered from $R$).
    – Luca Bressan
    Jul 29 at 13:26







  • 1




    @LucaBressan I think regarding a function as a triple $(A,B,R)$ is the adequate way. Frequently we consider the set $mathcalF(A,B)$ of all functions $A to B$ (i.e. the morphism set in the category of sets) or suitable subsets of $mathcalF(A,B)$. If we ignore the codomain, this wouldn't make much sense.
    – Paul Frost
    Jul 29 at 15:23












up vote
1
down vote

favorite









up vote
1
down vote

favorite












This question already has an answer here:



  • Codomain of a function

    4 answers



For example, if I say $f(x) = ln left x right$ where $ cdot $ denotes the fractional part function. Is there any way to know the codomain of this function?



And Now if I define $f : mathbbR to mathbbR$, now the codomain is $mathbbR $. So is it safe to say, codomain could be anything we want so long as it contains range, if there isn't a codomain already given?



So, $ sin : mathbbR to [-1,1]$ is as correct as writing $sin : mathbbR to mathbbR$?



So I take it that if domain and codomain aren't given, then I could also say Codomain $equiv$ Range?



EDIT : What I'm trying to ask is, if it's only a matter of codomain, then every function can be called surjective and conversely every function can be called into function? Which makes it all ambiguous.



I have so many confusions with co-domain, but can anyone just explain me these for the time being? Help is appreciated :)







share|cite|improve this question














This question already has an answer here:



  • Codomain of a function

    4 answers



For example, if I say $f(x) = ln left x right$ where $ cdot $ denotes the fractional part function. Is there any way to know the codomain of this function?



And Now if I define $f : mathbbR to mathbbR$, now the codomain is $mathbbR $. So is it safe to say, codomain could be anything we want so long as it contains range, if there isn't a codomain already given?



So, $ sin : mathbbR to [-1,1]$ is as correct as writing $sin : mathbbR to mathbbR$?



So I take it that if domain and codomain aren't given, then I could also say Codomain $equiv$ Range?



EDIT : What I'm trying to ask is, if it's only a matter of codomain, then every function can be called surjective and conversely every function can be called into function? Which makes it all ambiguous.



I have so many confusions with co-domain, but can anyone just explain me these for the time being? Help is appreciated :)





This question already has an answer here:



  • Codomain of a function

    4 answers









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 29 at 13:29
























asked Jul 29 at 13:13









William

731214




731214




marked as duplicate by José Carlos Santos, m_t_, drhab, Mark S., user223391 Jul 29 at 22:02


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by José Carlos Santos, m_t_, drhab, Mark S., user223391 Jul 29 at 22:02


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









  • 1




    Not anything we want, because a function is only well defined if the codomain contains the range. When functions are introduced the codomain is far from always explicit because it often doesn't matter whether it is taken to be the range or a superset of the range.
    – Oppenede
    Jul 29 at 13:18











  • @Oppenede Yes I meant, co domain could be anything so long as it contains range?
    – William
    Jul 29 at 13:19






  • 2




    Some people define a function $f colon A to B$ as a subset $R$ of $A times B$ such that for any $x in A$ there exists exactly one $y in B$ such that $(x, y) in R$. Then the function $sin_1 colon mathbb R to [-1, 1]$ is exactly the same thing as the function $sin_2 colon mathbb R to mathbb R$, i.e., $sin_1 = sin_2$, because they are made of the same pairs. But sometimes it is useful to consider a function $f colon A to B$ as a triple $(A, B, R)$, so that we don't forget what the codomain is (actually, the domain could be left out since it can be recovered from $R$).
    – Luca Bressan
    Jul 29 at 13:26







  • 1




    @LucaBressan I think regarding a function as a triple $(A,B,R)$ is the adequate way. Frequently we consider the set $mathcalF(A,B)$ of all functions $A to B$ (i.e. the morphism set in the category of sets) or suitable subsets of $mathcalF(A,B)$. If we ignore the codomain, this wouldn't make much sense.
    – Paul Frost
    Jul 29 at 15:23












  • 1




    Not anything we want, because a function is only well defined if the codomain contains the range. When functions are introduced the codomain is far from always explicit because it often doesn't matter whether it is taken to be the range or a superset of the range.
    – Oppenede
    Jul 29 at 13:18











  • @Oppenede Yes I meant, co domain could be anything so long as it contains range?
    – William
    Jul 29 at 13:19






  • 2




    Some people define a function $f colon A to B$ as a subset $R$ of $A times B$ such that for any $x in A$ there exists exactly one $y in B$ such that $(x, y) in R$. Then the function $sin_1 colon mathbb R to [-1, 1]$ is exactly the same thing as the function $sin_2 colon mathbb R to mathbb R$, i.e., $sin_1 = sin_2$, because they are made of the same pairs. But sometimes it is useful to consider a function $f colon A to B$ as a triple $(A, B, R)$, so that we don't forget what the codomain is (actually, the domain could be left out since it can be recovered from $R$).
    – Luca Bressan
    Jul 29 at 13:26







  • 1




    @LucaBressan I think regarding a function as a triple $(A,B,R)$ is the adequate way. Frequently we consider the set $mathcalF(A,B)$ of all functions $A to B$ (i.e. the morphism set in the category of sets) or suitable subsets of $mathcalF(A,B)$. If we ignore the codomain, this wouldn't make much sense.
    – Paul Frost
    Jul 29 at 15:23







1




1




Not anything we want, because a function is only well defined if the codomain contains the range. When functions are introduced the codomain is far from always explicit because it often doesn't matter whether it is taken to be the range or a superset of the range.
– Oppenede
Jul 29 at 13:18





Not anything we want, because a function is only well defined if the codomain contains the range. When functions are introduced the codomain is far from always explicit because it often doesn't matter whether it is taken to be the range or a superset of the range.
– Oppenede
Jul 29 at 13:18













@Oppenede Yes I meant, co domain could be anything so long as it contains range?
– William
Jul 29 at 13:19




@Oppenede Yes I meant, co domain could be anything so long as it contains range?
– William
Jul 29 at 13:19




2




2




Some people define a function $f colon A to B$ as a subset $R$ of $A times B$ such that for any $x in A$ there exists exactly one $y in B$ such that $(x, y) in R$. Then the function $sin_1 colon mathbb R to [-1, 1]$ is exactly the same thing as the function $sin_2 colon mathbb R to mathbb R$, i.e., $sin_1 = sin_2$, because they are made of the same pairs. But sometimes it is useful to consider a function $f colon A to B$ as a triple $(A, B, R)$, so that we don't forget what the codomain is (actually, the domain could be left out since it can be recovered from $R$).
– Luca Bressan
Jul 29 at 13:26





Some people define a function $f colon A to B$ as a subset $R$ of $A times B$ such that for any $x in A$ there exists exactly one $y in B$ such that $(x, y) in R$. Then the function $sin_1 colon mathbb R to [-1, 1]$ is exactly the same thing as the function $sin_2 colon mathbb R to mathbb R$, i.e., $sin_1 = sin_2$, because they are made of the same pairs. But sometimes it is useful to consider a function $f colon A to B$ as a triple $(A, B, R)$, so that we don't forget what the codomain is (actually, the domain could be left out since it can be recovered from $R$).
– Luca Bressan
Jul 29 at 13:26





1




1




@LucaBressan I think regarding a function as a triple $(A,B,R)$ is the adequate way. Frequently we consider the set $mathcalF(A,B)$ of all functions $A to B$ (i.e. the morphism set in the category of sets) or suitable subsets of $mathcalF(A,B)$. If we ignore the codomain, this wouldn't make much sense.
– Paul Frost
Jul 29 at 15:23




@LucaBressan I think regarding a function as a triple $(A,B,R)$ is the adequate way. Frequently we consider the set $mathcalF(A,B)$ of all functions $A to B$ (i.e. the morphism set in the category of sets) or suitable subsets of $mathcalF(A,B)$. If we ignore the codomain, this wouldn't make much sense.
– Paul Frost
Jul 29 at 15:23










1 Answer
1






active

oldest

votes

















up vote
0
down vote













There are, unfortunately, two different (though closely related) notions of "function" in common use; I'll call them "function1" and "function2" in this answer, to keep the distinction straight.



A function1 is just a way of producing, from certain inputs, well-defined outputs. Formally, it is a set of ordered pairs $langletextinput, outputrangle$ no two of which have the same first component. A function1 has a domain (the set of all its inputs) and a range (the set of all its outputs) but no codomain.



A function2 is a function1 together with specified (domain and) codomain. I put "domain" in parentheses here because a function1 already has a specific domain; only the codomain is new information in a function2.



There are many functions2 corresponding to any given function1, because we can specify, as the codomain, any superset of the range. I believe this is what you were getting at in the first part of your question.



A function2 is onto if and only if its codomain equals its range. So, given a function1, of the many ways to make it a function2 by specifying a codomain, just one way will make it an onto function2, namely specify the codomain to be the range of the given function1.



It makes no sense to speak of a function1 being onto. It does make sense to speak of a function1 being onto a specific set $S$; this means that the function1 has range $S$, or equivalently that the function1 becomes an onto function2 if we specify $S$ as its codomain.



(In this answer, I've sacrificed grammar in favor of brevity, using the preposition "onto" as if it were an adjective. People who prefer grammar should substitute "surjective" for all but one of my uses of "onto".)






share|cite|improve this answer




























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    There are, unfortunately, two different (though closely related) notions of "function" in common use; I'll call them "function1" and "function2" in this answer, to keep the distinction straight.



    A function1 is just a way of producing, from certain inputs, well-defined outputs. Formally, it is a set of ordered pairs $langletextinput, outputrangle$ no two of which have the same first component. A function1 has a domain (the set of all its inputs) and a range (the set of all its outputs) but no codomain.



    A function2 is a function1 together with specified (domain and) codomain. I put "domain" in parentheses here because a function1 already has a specific domain; only the codomain is new information in a function2.



    There are many functions2 corresponding to any given function1, because we can specify, as the codomain, any superset of the range. I believe this is what you were getting at in the first part of your question.



    A function2 is onto if and only if its codomain equals its range. So, given a function1, of the many ways to make it a function2 by specifying a codomain, just one way will make it an onto function2, namely specify the codomain to be the range of the given function1.



    It makes no sense to speak of a function1 being onto. It does make sense to speak of a function1 being onto a specific set $S$; this means that the function1 has range $S$, or equivalently that the function1 becomes an onto function2 if we specify $S$ as its codomain.



    (In this answer, I've sacrificed grammar in favor of brevity, using the preposition "onto" as if it were an adjective. People who prefer grammar should substitute "surjective" for all but one of my uses of "onto".)






    share|cite|improve this answer

























      up vote
      0
      down vote













      There are, unfortunately, two different (though closely related) notions of "function" in common use; I'll call them "function1" and "function2" in this answer, to keep the distinction straight.



      A function1 is just a way of producing, from certain inputs, well-defined outputs. Formally, it is a set of ordered pairs $langletextinput, outputrangle$ no two of which have the same first component. A function1 has a domain (the set of all its inputs) and a range (the set of all its outputs) but no codomain.



      A function2 is a function1 together with specified (domain and) codomain. I put "domain" in parentheses here because a function1 already has a specific domain; only the codomain is new information in a function2.



      There are many functions2 corresponding to any given function1, because we can specify, as the codomain, any superset of the range. I believe this is what you were getting at in the first part of your question.



      A function2 is onto if and only if its codomain equals its range. So, given a function1, of the many ways to make it a function2 by specifying a codomain, just one way will make it an onto function2, namely specify the codomain to be the range of the given function1.



      It makes no sense to speak of a function1 being onto. It does make sense to speak of a function1 being onto a specific set $S$; this means that the function1 has range $S$, or equivalently that the function1 becomes an onto function2 if we specify $S$ as its codomain.



      (In this answer, I've sacrificed grammar in favor of brevity, using the preposition "onto" as if it were an adjective. People who prefer grammar should substitute "surjective" for all but one of my uses of "onto".)






      share|cite|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        There are, unfortunately, two different (though closely related) notions of "function" in common use; I'll call them "function1" and "function2" in this answer, to keep the distinction straight.



        A function1 is just a way of producing, from certain inputs, well-defined outputs. Formally, it is a set of ordered pairs $langletextinput, outputrangle$ no two of which have the same first component. A function1 has a domain (the set of all its inputs) and a range (the set of all its outputs) but no codomain.



        A function2 is a function1 together with specified (domain and) codomain. I put "domain" in parentheses here because a function1 already has a specific domain; only the codomain is new information in a function2.



        There are many functions2 corresponding to any given function1, because we can specify, as the codomain, any superset of the range. I believe this is what you were getting at in the first part of your question.



        A function2 is onto if and only if its codomain equals its range. So, given a function1, of the many ways to make it a function2 by specifying a codomain, just one way will make it an onto function2, namely specify the codomain to be the range of the given function1.



        It makes no sense to speak of a function1 being onto. It does make sense to speak of a function1 being onto a specific set $S$; this means that the function1 has range $S$, or equivalently that the function1 becomes an onto function2 if we specify $S$ as its codomain.



        (In this answer, I've sacrificed grammar in favor of brevity, using the preposition "onto" as if it were an adjective. People who prefer grammar should substitute "surjective" for all but one of my uses of "onto".)






        share|cite|improve this answer













        There are, unfortunately, two different (though closely related) notions of "function" in common use; I'll call them "function1" and "function2" in this answer, to keep the distinction straight.



        A function1 is just a way of producing, from certain inputs, well-defined outputs. Formally, it is a set of ordered pairs $langletextinput, outputrangle$ no two of which have the same first component. A function1 has a domain (the set of all its inputs) and a range (the set of all its outputs) but no codomain.



        A function2 is a function1 together with specified (domain and) codomain. I put "domain" in parentheses here because a function1 already has a specific domain; only the codomain is new information in a function2.



        There are many functions2 corresponding to any given function1, because we can specify, as the codomain, any superset of the range. I believe this is what you were getting at in the first part of your question.



        A function2 is onto if and only if its codomain equals its range. So, given a function1, of the many ways to make it a function2 by specifying a codomain, just one way will make it an onto function2, namely specify the codomain to be the range of the given function1.



        It makes no sense to speak of a function1 being onto. It does make sense to speak of a function1 being onto a specific set $S$; this means that the function1 has range $S$, or equivalently that the function1 becomes an onto function2 if we specify $S$ as its codomain.



        (In this answer, I've sacrificed grammar in favor of brevity, using the preposition "onto" as if it were an adjective. People who prefer grammar should substitute "surjective" for all but one of my uses of "onto".)







        share|cite|improve this answer













        share|cite|improve this answer



        share|cite|improve this answer











        answered Jul 29 at 15:37









        Andreas Blass

        47.5k348104




        47.5k348104












            Comments

            Popular posts from this blog

            What is the equation of a 3D cone with generalised tilt?

            Color the edges and diagonals of a regular polygon

            Relationship between determinant of matrix and determinant of adjoint?