On injective, bijective, surjective












1












$begingroup$


Consider a function $f: mathcal{A}rightarrow mathbb{R}$ where $mathcal{A}equiv {a_1,a_2,a_3,a_4}subset mathbb{R}$ .



We know that $f$ is injective, i.e., $f(a_j)neq f(a_k)$ $forall a_jneq a_k$.



I would like your help with the following: given that the domain of $f$ is finite (and hence the image set of $f$ is finite), does this mean that $f$ being injective implies $f$ being bijective? If not, can you give an example of $f$ with domain $mathcal{A}$ that is injective but not bijective?










share|cite|improve this question











$endgroup$








  • 4




    $begingroup$
    There are more than 4 real numbers.
    $endgroup$
    – Randall
    Jan 11 at 20:26






  • 1




    $begingroup$
    Just for general knowledge (it sounds somewhat related): It's true to say that a function $f:Arightarrow B$ for two finite sets $A,B$ with $|A|=|B|$ is injective if and only if it is surjective. However this doesn't seem to be the case in your question.
    $endgroup$
    – Yanko
    Jan 11 at 20:30


















1












$begingroup$


Consider a function $f: mathcal{A}rightarrow mathbb{R}$ where $mathcal{A}equiv {a_1,a_2,a_3,a_4}subset mathbb{R}$ .



We know that $f$ is injective, i.e., $f(a_j)neq f(a_k)$ $forall a_jneq a_k$.



I would like your help with the following: given that the domain of $f$ is finite (and hence the image set of $f$ is finite), does this mean that $f$ being injective implies $f$ being bijective? If not, can you give an example of $f$ with domain $mathcal{A}$ that is injective but not bijective?










share|cite|improve this question











$endgroup$








  • 4




    $begingroup$
    There are more than 4 real numbers.
    $endgroup$
    – Randall
    Jan 11 at 20:26






  • 1




    $begingroup$
    Just for general knowledge (it sounds somewhat related): It's true to say that a function $f:Arightarrow B$ for two finite sets $A,B$ with $|A|=|B|$ is injective if and only if it is surjective. However this doesn't seem to be the case in your question.
    $endgroup$
    – Yanko
    Jan 11 at 20:30
















1












1








1





$begingroup$


Consider a function $f: mathcal{A}rightarrow mathbb{R}$ where $mathcal{A}equiv {a_1,a_2,a_3,a_4}subset mathbb{R}$ .



We know that $f$ is injective, i.e., $f(a_j)neq f(a_k)$ $forall a_jneq a_k$.



I would like your help with the following: given that the domain of $f$ is finite (and hence the image set of $f$ is finite), does this mean that $f$ being injective implies $f$ being bijective? If not, can you give an example of $f$ with domain $mathcal{A}$ that is injective but not bijective?










share|cite|improve this question











$endgroup$




Consider a function $f: mathcal{A}rightarrow mathbb{R}$ where $mathcal{A}equiv {a_1,a_2,a_3,a_4}subset mathbb{R}$ .



We know that $f$ is injective, i.e., $f(a_j)neq f(a_k)$ $forall a_jneq a_k$.



I would like your help with the following: given that the domain of $f$ is finite (and hence the image set of $f$ is finite), does this mean that $f$ being injective implies $f$ being bijective? If not, can you give an example of $f$ with domain $mathcal{A}$ that is injective but not bijective?







functional-analysis functions






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 11 at 20:26









user3482749

4,3291119




4,3291119










asked Jan 11 at 20:25









STFSTF

571422




571422








  • 4




    $begingroup$
    There are more than 4 real numbers.
    $endgroup$
    – Randall
    Jan 11 at 20:26






  • 1




    $begingroup$
    Just for general knowledge (it sounds somewhat related): It's true to say that a function $f:Arightarrow B$ for two finite sets $A,B$ with $|A|=|B|$ is injective if and only if it is surjective. However this doesn't seem to be the case in your question.
    $endgroup$
    – Yanko
    Jan 11 at 20:30
















  • 4




    $begingroup$
    There are more than 4 real numbers.
    $endgroup$
    – Randall
    Jan 11 at 20:26






  • 1




    $begingroup$
    Just for general knowledge (it sounds somewhat related): It's true to say that a function $f:Arightarrow B$ for two finite sets $A,B$ with $|A|=|B|$ is injective if and only if it is surjective. However this doesn't seem to be the case in your question.
    $endgroup$
    – Yanko
    Jan 11 at 20:30










4




4




$begingroup$
There are more than 4 real numbers.
$endgroup$
– Randall
Jan 11 at 20:26




$begingroup$
There are more than 4 real numbers.
$endgroup$
– Randall
Jan 11 at 20:26




1




1




$begingroup$
Just for general knowledge (it sounds somewhat related): It's true to say that a function $f:Arightarrow B$ for two finite sets $A,B$ with $|A|=|B|$ is injective if and only if it is surjective. However this doesn't seem to be the case in your question.
$endgroup$
– Yanko
Jan 11 at 20:30






$begingroup$
Just for general knowledge (it sounds somewhat related): It's true to say that a function $f:Arightarrow B$ for two finite sets $A,B$ with $|A|=|B|$ is injective if and only if it is surjective. However this doesn't seem to be the case in your question.
$endgroup$
– Yanko
Jan 11 at 20:30












2 Answers
2






active

oldest

votes


















1












$begingroup$

Quite the opposite, in fact: there are no bijective (or even surjective) functions from a finite set to an infinite set (this a perfectly reasonable definition of "infinite set"). For an explicit example, take the function $f: mathcal{A}tomathbb{R}$ that sents $a_1$ to $1$, $a_2$ to $2$, $a_3$ to $3$, and $a_4$ to $4$. This is clearly injective, but clearly not bijective: nothing is sent to $5$. Any other injective function $mathcal{A}tomathbb{R}$ would work equally.





However, for the question that I suspect you meant to ask (at any rate, it's the closest thing to your statement that is true): if $f: A to B$ is a function such that $A$ and $B$ are finite sets, and $|A| = |B|$, then the following are equivalent:





  1. $f$ is injective.


  2. $f$ is surjective.


  3. $f$ is bijective.


To see this, note that clearly (3) implies both (1) and (2), and that if we have both (1) and (2), then we have (3), so we merely need to show that (1) implies (2), and (2) implies (1). For the former, note that if $f$ is injective, then there are $|A|$ distinct elements in its image. But $|A| = |B|$, so all elements of $B$ are in the image of $f$, so $f$ is surjective. For the latter, note that if $f$ is surjective, then all elements of $B$ are in its image, so there are $|B|$ distinct elements in its image, each of which must have at least one element of $A$ sent to it, but since $|B| = |A|$, each must have exactly one sent to it, and so no two elements of $A$ are sent to the same element of $B$, hence $f$ is injective.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    Thanks. Then I think that I have a more basic question on the definition of codomain of a function. And I apologise in advance for my very untechnical language. While the image set of a function is uniquely define, is there a "rule of thumb" to define the codomain of a function? E.g. $f=x+2$ with domain the set of natural number $mathbb{N}$ could have as codomain $mathbb{R}$ or also $mathbb{N}$. In turn, the classification as injective, surjective depends on how we choose the codomain.
    $endgroup$
    – STF
    Jan 11 at 20:33












  • $begingroup$
    The codomain of a function is, like the domain, part of the definition of the function. $f = x + 2$ does not define a function, by itself: you also need to specify both the domain and the codomain. As you've noticed, changing either of these changes the function.
    $endgroup$
    – user3482749
    Jan 11 at 20:35



















0












$begingroup$

The map $f$ is definitely not surjective because it misses everything in $mathbb{R}setminus{f(a_{1}),f(a_{2}),f(a_{3}),f(a_{4})}$






share|cite|improve this answer









$endgroup$














    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "69"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3070313%2fon-injective-bijective-surjective%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1












    $begingroup$

    Quite the opposite, in fact: there are no bijective (or even surjective) functions from a finite set to an infinite set (this a perfectly reasonable definition of "infinite set"). For an explicit example, take the function $f: mathcal{A}tomathbb{R}$ that sents $a_1$ to $1$, $a_2$ to $2$, $a_3$ to $3$, and $a_4$ to $4$. This is clearly injective, but clearly not bijective: nothing is sent to $5$. Any other injective function $mathcal{A}tomathbb{R}$ would work equally.





    However, for the question that I suspect you meant to ask (at any rate, it's the closest thing to your statement that is true): if $f: A to B$ is a function such that $A$ and $B$ are finite sets, and $|A| = |B|$, then the following are equivalent:





    1. $f$ is injective.


    2. $f$ is surjective.


    3. $f$ is bijective.


    To see this, note that clearly (3) implies both (1) and (2), and that if we have both (1) and (2), then we have (3), so we merely need to show that (1) implies (2), and (2) implies (1). For the former, note that if $f$ is injective, then there are $|A|$ distinct elements in its image. But $|A| = |B|$, so all elements of $B$ are in the image of $f$, so $f$ is surjective. For the latter, note that if $f$ is surjective, then all elements of $B$ are in its image, so there are $|B|$ distinct elements in its image, each of which must have at least one element of $A$ sent to it, but since $|B| = |A|$, each must have exactly one sent to it, and so no two elements of $A$ are sent to the same element of $B$, hence $f$ is injective.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      Thanks. Then I think that I have a more basic question on the definition of codomain of a function. And I apologise in advance for my very untechnical language. While the image set of a function is uniquely define, is there a "rule of thumb" to define the codomain of a function? E.g. $f=x+2$ with domain the set of natural number $mathbb{N}$ could have as codomain $mathbb{R}$ or also $mathbb{N}$. In turn, the classification as injective, surjective depends on how we choose the codomain.
      $endgroup$
      – STF
      Jan 11 at 20:33












    • $begingroup$
      The codomain of a function is, like the domain, part of the definition of the function. $f = x + 2$ does not define a function, by itself: you also need to specify both the domain and the codomain. As you've noticed, changing either of these changes the function.
      $endgroup$
      – user3482749
      Jan 11 at 20:35
















    1












    $begingroup$

    Quite the opposite, in fact: there are no bijective (or even surjective) functions from a finite set to an infinite set (this a perfectly reasonable definition of "infinite set"). For an explicit example, take the function $f: mathcal{A}tomathbb{R}$ that sents $a_1$ to $1$, $a_2$ to $2$, $a_3$ to $3$, and $a_4$ to $4$. This is clearly injective, but clearly not bijective: nothing is sent to $5$. Any other injective function $mathcal{A}tomathbb{R}$ would work equally.





    However, for the question that I suspect you meant to ask (at any rate, it's the closest thing to your statement that is true): if $f: A to B$ is a function such that $A$ and $B$ are finite sets, and $|A| = |B|$, then the following are equivalent:





    1. $f$ is injective.


    2. $f$ is surjective.


    3. $f$ is bijective.


    To see this, note that clearly (3) implies both (1) and (2), and that if we have both (1) and (2), then we have (3), so we merely need to show that (1) implies (2), and (2) implies (1). For the former, note that if $f$ is injective, then there are $|A|$ distinct elements in its image. But $|A| = |B|$, so all elements of $B$ are in the image of $f$, so $f$ is surjective. For the latter, note that if $f$ is surjective, then all elements of $B$ are in its image, so there are $|B|$ distinct elements in its image, each of which must have at least one element of $A$ sent to it, but since $|B| = |A|$, each must have exactly one sent to it, and so no two elements of $A$ are sent to the same element of $B$, hence $f$ is injective.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      Thanks. Then I think that I have a more basic question on the definition of codomain of a function. And I apologise in advance for my very untechnical language. While the image set of a function is uniquely define, is there a "rule of thumb" to define the codomain of a function? E.g. $f=x+2$ with domain the set of natural number $mathbb{N}$ could have as codomain $mathbb{R}$ or also $mathbb{N}$. In turn, the classification as injective, surjective depends on how we choose the codomain.
      $endgroup$
      – STF
      Jan 11 at 20:33












    • $begingroup$
      The codomain of a function is, like the domain, part of the definition of the function. $f = x + 2$ does not define a function, by itself: you also need to specify both the domain and the codomain. As you've noticed, changing either of these changes the function.
      $endgroup$
      – user3482749
      Jan 11 at 20:35














    1












    1








    1





    $begingroup$

    Quite the opposite, in fact: there are no bijective (or even surjective) functions from a finite set to an infinite set (this a perfectly reasonable definition of "infinite set"). For an explicit example, take the function $f: mathcal{A}tomathbb{R}$ that sents $a_1$ to $1$, $a_2$ to $2$, $a_3$ to $3$, and $a_4$ to $4$. This is clearly injective, but clearly not bijective: nothing is sent to $5$. Any other injective function $mathcal{A}tomathbb{R}$ would work equally.





    However, for the question that I suspect you meant to ask (at any rate, it's the closest thing to your statement that is true): if $f: A to B$ is a function such that $A$ and $B$ are finite sets, and $|A| = |B|$, then the following are equivalent:





    1. $f$ is injective.


    2. $f$ is surjective.


    3. $f$ is bijective.


    To see this, note that clearly (3) implies both (1) and (2), and that if we have both (1) and (2), then we have (3), so we merely need to show that (1) implies (2), and (2) implies (1). For the former, note that if $f$ is injective, then there are $|A|$ distinct elements in its image. But $|A| = |B|$, so all elements of $B$ are in the image of $f$, so $f$ is surjective. For the latter, note that if $f$ is surjective, then all elements of $B$ are in its image, so there are $|B|$ distinct elements in its image, each of which must have at least one element of $A$ sent to it, but since $|B| = |A|$, each must have exactly one sent to it, and so no two elements of $A$ are sent to the same element of $B$, hence $f$ is injective.






    share|cite|improve this answer











    $endgroup$



    Quite the opposite, in fact: there are no bijective (or even surjective) functions from a finite set to an infinite set (this a perfectly reasonable definition of "infinite set"). For an explicit example, take the function $f: mathcal{A}tomathbb{R}$ that sents $a_1$ to $1$, $a_2$ to $2$, $a_3$ to $3$, and $a_4$ to $4$. This is clearly injective, but clearly not bijective: nothing is sent to $5$. Any other injective function $mathcal{A}tomathbb{R}$ would work equally.





    However, for the question that I suspect you meant to ask (at any rate, it's the closest thing to your statement that is true): if $f: A to B$ is a function such that $A$ and $B$ are finite sets, and $|A| = |B|$, then the following are equivalent:





    1. $f$ is injective.


    2. $f$ is surjective.


    3. $f$ is bijective.


    To see this, note that clearly (3) implies both (1) and (2), and that if we have both (1) and (2), then we have (3), so we merely need to show that (1) implies (2), and (2) implies (1). For the former, note that if $f$ is injective, then there are $|A|$ distinct elements in its image. But $|A| = |B|$, so all elements of $B$ are in the image of $f$, so $f$ is surjective. For the latter, note that if $f$ is surjective, then all elements of $B$ are in its image, so there are $|B|$ distinct elements in its image, each of which must have at least one element of $A$ sent to it, but since $|B| = |A|$, each must have exactly one sent to it, and so no two elements of $A$ are sent to the same element of $B$, hence $f$ is injective.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Jan 11 at 20:33

























    answered Jan 11 at 20:28









    user3482749user3482749

    4,3291119




    4,3291119












    • $begingroup$
      Thanks. Then I think that I have a more basic question on the definition of codomain of a function. And I apologise in advance for my very untechnical language. While the image set of a function is uniquely define, is there a "rule of thumb" to define the codomain of a function? E.g. $f=x+2$ with domain the set of natural number $mathbb{N}$ could have as codomain $mathbb{R}$ or also $mathbb{N}$. In turn, the classification as injective, surjective depends on how we choose the codomain.
      $endgroup$
      – STF
      Jan 11 at 20:33












    • $begingroup$
      The codomain of a function is, like the domain, part of the definition of the function. $f = x + 2$ does not define a function, by itself: you also need to specify both the domain and the codomain. As you've noticed, changing either of these changes the function.
      $endgroup$
      – user3482749
      Jan 11 at 20:35


















    • $begingroup$
      Thanks. Then I think that I have a more basic question on the definition of codomain of a function. And I apologise in advance for my very untechnical language. While the image set of a function is uniquely define, is there a "rule of thumb" to define the codomain of a function? E.g. $f=x+2$ with domain the set of natural number $mathbb{N}$ could have as codomain $mathbb{R}$ or also $mathbb{N}$. In turn, the classification as injective, surjective depends on how we choose the codomain.
      $endgroup$
      – STF
      Jan 11 at 20:33












    • $begingroup$
      The codomain of a function is, like the domain, part of the definition of the function. $f = x + 2$ does not define a function, by itself: you also need to specify both the domain and the codomain. As you've noticed, changing either of these changes the function.
      $endgroup$
      – user3482749
      Jan 11 at 20:35
















    $begingroup$
    Thanks. Then I think that I have a more basic question on the definition of codomain of a function. And I apologise in advance for my very untechnical language. While the image set of a function is uniquely define, is there a "rule of thumb" to define the codomain of a function? E.g. $f=x+2$ with domain the set of natural number $mathbb{N}$ could have as codomain $mathbb{R}$ or also $mathbb{N}$. In turn, the classification as injective, surjective depends on how we choose the codomain.
    $endgroup$
    – STF
    Jan 11 at 20:33






    $begingroup$
    Thanks. Then I think that I have a more basic question on the definition of codomain of a function. And I apologise in advance for my very untechnical language. While the image set of a function is uniquely define, is there a "rule of thumb" to define the codomain of a function? E.g. $f=x+2$ with domain the set of natural number $mathbb{N}$ could have as codomain $mathbb{R}$ or also $mathbb{N}$. In turn, the classification as injective, surjective depends on how we choose the codomain.
    $endgroup$
    – STF
    Jan 11 at 20:33














    $begingroup$
    The codomain of a function is, like the domain, part of the definition of the function. $f = x + 2$ does not define a function, by itself: you also need to specify both the domain and the codomain. As you've noticed, changing either of these changes the function.
    $endgroup$
    – user3482749
    Jan 11 at 20:35




    $begingroup$
    The codomain of a function is, like the domain, part of the definition of the function. $f = x + 2$ does not define a function, by itself: you also need to specify both the domain and the codomain. As you've noticed, changing either of these changes the function.
    $endgroup$
    – user3482749
    Jan 11 at 20:35











    0












    $begingroup$

    The map $f$ is definitely not surjective because it misses everything in $mathbb{R}setminus{f(a_{1}),f(a_{2}),f(a_{3}),f(a_{4})}$






    share|cite|improve this answer









    $endgroup$


















      0












      $begingroup$

      The map $f$ is definitely not surjective because it misses everything in $mathbb{R}setminus{f(a_{1}),f(a_{2}),f(a_{3}),f(a_{4})}$






      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $begingroup$

        The map $f$ is definitely not surjective because it misses everything in $mathbb{R}setminus{f(a_{1}),f(a_{2}),f(a_{3}),f(a_{4})}$






        share|cite|improve this answer









        $endgroup$



        The map $f$ is definitely not surjective because it misses everything in $mathbb{R}setminus{f(a_{1}),f(a_{2}),f(a_{3}),f(a_{4})}$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 11 at 20:28









        pwerthpwerth

        3,340417




        3,340417






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3070313%2fon-injective-bijective-surjective%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Bressuire

            Cabo Verde

            Gyllenstierna