Prove function is injective, but not surjective Announcing the arrival of Valued Associate...

How does light 'choose' between wave and particle behaviour?

Can an iPhone 7 be made to function as a NFC Tag?

Is there any word for a place full of confusion?

Nose gear failure in single prop aircraft: belly landing or nose-gear up landing?

The Nth Gryphon Number

Why datecode is SO IMPORTANT to chip manufacturers?

What does 丫 mean? 丫是什么意思?

What does the writing on Poe's helmet say?

Mounting TV on a weird wall that has some material between the drywall and stud

Caught masturbating at work

What initially awakened the Balrog?

Was Kant an Intuitionist about mathematical objects?

Is openssl rand command cryptographically secure?

What is the difference between a "ranged attack" and a "ranged weapon attack"?

One-one communication

If Windows 7 doesn't support WSL, then what is "Subsystem for UNIX-based Applications"?

Google .dev domain strangely redirects to https

Does the Mueller report show a conspiracy between Russia and the Trump Campaign?

Random body shuffle every night—can we still function?

How do living politicians protect their readily obtainable signatures from misuse?

The test team as an enemy of development? And how can this be avoided?

Did any compiler fully use 80-bit floating point?

Why complex landing gears are used instead of simple,reliability and light weight muscle wire or shape memory alloys?

GDP with Intermediate Production



Prove function is injective, but not surjective



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Prove that $f$ is NOT surjectiveInjective and Surjective Function ExamplesInjective/Surjective/Bijective questionSurjective and Not Injective ProblemProof writing involving functions: Injective and Surjectiveprove a function is injective/surjectiveinjective/surjective function that has ceiling and floorProve the following function is injective/surjectiveFind an infinite set $S$ and a function $g : S to S$ that is surjective but not injective.Is the given function injective, surjective?Determining whether the following is injective, surjective, bijective, or neither.












-1












$begingroup$



Prove that the function $f(x) = x^2$ for $xin mathbb N$ is injective, but not surjective.




I know that injective means that $f(x)=f(y)implies x=y$, and
surjective means that for $f(x)=y$. So using this information, how would I prove this problem?










share|cite|improve this question











$endgroup$












  • $begingroup$
    Possible duplicate of Prove that $f$ is NOT surjective
    $endgroup$
    – Brian
    Mar 26 at 1:49






  • 2




    $begingroup$
    Injective: if $x^2=y^2$ then $(x+y)(x-y)=0$ so ...; Surjective: is there $xinmathbb N$ such that $x^2=2$?
    $endgroup$
    – J. W. Tanner
    Mar 26 at 1:49












  • $begingroup$
    How is x^2 not subjective?
    $endgroup$
    – user643202
    Mar 26 at 1:51






  • 1




    $begingroup$
    You have not specified a codomain.
    $endgroup$
    – N. F. Taussig
    Mar 26 at 1:52






  • 2




    $begingroup$
    As @N.F.Taussig noted, your definition of $f$ is technically incomplete. It is important to specify both what set $f$ 'takes inputs from' and what set $f$ 'produces elements from. If $f$ where given as a function $f:mathbb N to A$ where $A={ n^2 mid n in mathbb N }$, then $f$ would be surjective.
    $endgroup$
    – Brian
    Mar 26 at 1:56


















-1












$begingroup$



Prove that the function $f(x) = x^2$ for $xin mathbb N$ is injective, but not surjective.




I know that injective means that $f(x)=f(y)implies x=y$, and
surjective means that for $f(x)=y$. So using this information, how would I prove this problem?










share|cite|improve this question











$endgroup$












  • $begingroup$
    Possible duplicate of Prove that $f$ is NOT surjective
    $endgroup$
    – Brian
    Mar 26 at 1:49






  • 2




    $begingroup$
    Injective: if $x^2=y^2$ then $(x+y)(x-y)=0$ so ...; Surjective: is there $xinmathbb N$ such that $x^2=2$?
    $endgroup$
    – J. W. Tanner
    Mar 26 at 1:49












  • $begingroup$
    How is x^2 not subjective?
    $endgroup$
    – user643202
    Mar 26 at 1:51






  • 1




    $begingroup$
    You have not specified a codomain.
    $endgroup$
    – N. F. Taussig
    Mar 26 at 1:52






  • 2




    $begingroup$
    As @N.F.Taussig noted, your definition of $f$ is technically incomplete. It is important to specify both what set $f$ 'takes inputs from' and what set $f$ 'produces elements from. If $f$ where given as a function $f:mathbb N to A$ where $A={ n^2 mid n in mathbb N }$, then $f$ would be surjective.
    $endgroup$
    – Brian
    Mar 26 at 1:56
















-1












-1








-1


1



$begingroup$



Prove that the function $f(x) = x^2$ for $xin mathbb N$ is injective, but not surjective.




I know that injective means that $f(x)=f(y)implies x=y$, and
surjective means that for $f(x)=y$. So using this information, how would I prove this problem?










share|cite|improve this question











$endgroup$





Prove that the function $f(x) = x^2$ for $xin mathbb N$ is injective, but not surjective.




I know that injective means that $f(x)=f(y)implies x=y$, and
surjective means that for $f(x)=y$. So using this information, how would I prove this problem?







discrete-mathematics logic






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Mar 26 at 16:41









Mauro ALLEGRANZA

68.3k449117




68.3k449117










asked Mar 26 at 1:47







user643202



















  • $begingroup$
    Possible duplicate of Prove that $f$ is NOT surjective
    $endgroup$
    – Brian
    Mar 26 at 1:49






  • 2




    $begingroup$
    Injective: if $x^2=y^2$ then $(x+y)(x-y)=0$ so ...; Surjective: is there $xinmathbb N$ such that $x^2=2$?
    $endgroup$
    – J. W. Tanner
    Mar 26 at 1:49












  • $begingroup$
    How is x^2 not subjective?
    $endgroup$
    – user643202
    Mar 26 at 1:51






  • 1




    $begingroup$
    You have not specified a codomain.
    $endgroup$
    – N. F. Taussig
    Mar 26 at 1:52






  • 2




    $begingroup$
    As @N.F.Taussig noted, your definition of $f$ is technically incomplete. It is important to specify both what set $f$ 'takes inputs from' and what set $f$ 'produces elements from. If $f$ where given as a function $f:mathbb N to A$ where $A={ n^2 mid n in mathbb N }$, then $f$ would be surjective.
    $endgroup$
    – Brian
    Mar 26 at 1:56




















  • $begingroup$
    Possible duplicate of Prove that $f$ is NOT surjective
    $endgroup$
    – Brian
    Mar 26 at 1:49






  • 2




    $begingroup$
    Injective: if $x^2=y^2$ then $(x+y)(x-y)=0$ so ...; Surjective: is there $xinmathbb N$ such that $x^2=2$?
    $endgroup$
    – J. W. Tanner
    Mar 26 at 1:49












  • $begingroup$
    How is x^2 not subjective?
    $endgroup$
    – user643202
    Mar 26 at 1:51






  • 1




    $begingroup$
    You have not specified a codomain.
    $endgroup$
    – N. F. Taussig
    Mar 26 at 1:52






  • 2




    $begingroup$
    As @N.F.Taussig noted, your definition of $f$ is technically incomplete. It is important to specify both what set $f$ 'takes inputs from' and what set $f$ 'produces elements from. If $f$ where given as a function $f:mathbb N to A$ where $A={ n^2 mid n in mathbb N }$, then $f$ would be surjective.
    $endgroup$
    – Brian
    Mar 26 at 1:56


















$begingroup$
Possible duplicate of Prove that $f$ is NOT surjective
$endgroup$
– Brian
Mar 26 at 1:49




$begingroup$
Possible duplicate of Prove that $f$ is NOT surjective
$endgroup$
– Brian
Mar 26 at 1:49




2




2




$begingroup$
Injective: if $x^2=y^2$ then $(x+y)(x-y)=0$ so ...; Surjective: is there $xinmathbb N$ such that $x^2=2$?
$endgroup$
– J. W. Tanner
Mar 26 at 1:49






$begingroup$
Injective: if $x^2=y^2$ then $(x+y)(x-y)=0$ so ...; Surjective: is there $xinmathbb N$ such that $x^2=2$?
$endgroup$
– J. W. Tanner
Mar 26 at 1:49














$begingroup$
How is x^2 not subjective?
$endgroup$
– user643202
Mar 26 at 1:51




$begingroup$
How is x^2 not subjective?
$endgroup$
– user643202
Mar 26 at 1:51




1




1




$begingroup$
You have not specified a codomain.
$endgroup$
– N. F. Taussig
Mar 26 at 1:52




$begingroup$
You have not specified a codomain.
$endgroup$
– N. F. Taussig
Mar 26 at 1:52




2




2




$begingroup$
As @N.F.Taussig noted, your definition of $f$ is technically incomplete. It is important to specify both what set $f$ 'takes inputs from' and what set $f$ 'produces elements from. If $f$ where given as a function $f:mathbb N to A$ where $A={ n^2 mid n in mathbb N }$, then $f$ would be surjective.
$endgroup$
– Brian
Mar 26 at 1:56






$begingroup$
As @N.F.Taussig noted, your definition of $f$ is technically incomplete. It is important to specify both what set $f$ 'takes inputs from' and what set $f$ 'produces elements from. If $f$ where given as a function $f:mathbb N to A$ where $A={ n^2 mid n in mathbb N }$, then $f$ would be surjective.
$endgroup$
– Brian
Mar 26 at 1:56












2 Answers
2






active

oldest

votes


















3












$begingroup$

It seems that you mean $f: mathbb{N} to mathbb{N}$ given by $x mapsto x^2$ is injective and not surjective.



To show it is not surjective, hint:



Can you find a natural number that isn't a square of some natural number?



To show it is injective, if $x^2 = y^2$ we have $x = y$ or $x = -y$, can you continue from here?






share|cite|improve this answer











$endgroup$













  • $begingroup$
    So like numbers like 3, 5, and 7?
    $endgroup$
    – user643202
    Mar 26 at 2:03










  • $begingroup$
    @Anonymous those are examples yes. Do you understand why that shows the function isn't a surjection?
    $endgroup$
    – Mariah
    Mar 26 at 2:04










  • $begingroup$
    Wouldn't x = -y not make it injective?
    $endgroup$
    – user643202
    Mar 26 at 2:05










  • $begingroup$
    @Anonymous what is our domain?
    $endgroup$
    – Mariah
    Mar 26 at 2:06










  • $begingroup$
    all natural numbers
    $endgroup$
    – user643202
    Mar 26 at 2:07



















0












$begingroup$

You just need to give a counter-example here. Consider the number $y=17 in mathbb{N}$. Then $x^2=y Rightarrow x^2 = 17 Rightarrow x = pmsqrt{17} notin mathbb{N}.$ You have found a $y$ such that $x notin mathbb{N}$ for $f(x)=y$. Therefore, $f$ is not surjective.






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%2f3162595%2fprove-function-is-injective-but-not-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









    3












    $begingroup$

    It seems that you mean $f: mathbb{N} to mathbb{N}$ given by $x mapsto x^2$ is injective and not surjective.



    To show it is not surjective, hint:



    Can you find a natural number that isn't a square of some natural number?



    To show it is injective, if $x^2 = y^2$ we have $x = y$ or $x = -y$, can you continue from here?






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      So like numbers like 3, 5, and 7?
      $endgroup$
      – user643202
      Mar 26 at 2:03










    • $begingroup$
      @Anonymous those are examples yes. Do you understand why that shows the function isn't a surjection?
      $endgroup$
      – Mariah
      Mar 26 at 2:04










    • $begingroup$
      Wouldn't x = -y not make it injective?
      $endgroup$
      – user643202
      Mar 26 at 2:05










    • $begingroup$
      @Anonymous what is our domain?
      $endgroup$
      – Mariah
      Mar 26 at 2:06










    • $begingroup$
      all natural numbers
      $endgroup$
      – user643202
      Mar 26 at 2:07
















    3












    $begingroup$

    It seems that you mean $f: mathbb{N} to mathbb{N}$ given by $x mapsto x^2$ is injective and not surjective.



    To show it is not surjective, hint:



    Can you find a natural number that isn't a square of some natural number?



    To show it is injective, if $x^2 = y^2$ we have $x = y$ or $x = -y$, can you continue from here?






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      So like numbers like 3, 5, and 7?
      $endgroup$
      – user643202
      Mar 26 at 2:03










    • $begingroup$
      @Anonymous those are examples yes. Do you understand why that shows the function isn't a surjection?
      $endgroup$
      – Mariah
      Mar 26 at 2:04










    • $begingroup$
      Wouldn't x = -y not make it injective?
      $endgroup$
      – user643202
      Mar 26 at 2:05










    • $begingroup$
      @Anonymous what is our domain?
      $endgroup$
      – Mariah
      Mar 26 at 2:06










    • $begingroup$
      all natural numbers
      $endgroup$
      – user643202
      Mar 26 at 2:07














    3












    3








    3





    $begingroup$

    It seems that you mean $f: mathbb{N} to mathbb{N}$ given by $x mapsto x^2$ is injective and not surjective.



    To show it is not surjective, hint:



    Can you find a natural number that isn't a square of some natural number?



    To show it is injective, if $x^2 = y^2$ we have $x = y$ or $x = -y$, can you continue from here?






    share|cite|improve this answer











    $endgroup$



    It seems that you mean $f: mathbb{N} to mathbb{N}$ given by $x mapsto x^2$ is injective and not surjective.



    To show it is not surjective, hint:



    Can you find a natural number that isn't a square of some natural number?



    To show it is injective, if $x^2 = y^2$ we have $x = y$ or $x = -y$, can you continue from here?







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Mar 26 at 2:13









    J. W. Tanner

    5,0751520




    5,0751520










    answered Mar 26 at 2:02









    MariahMariah

    2,1471718




    2,1471718












    • $begingroup$
      So like numbers like 3, 5, and 7?
      $endgroup$
      – user643202
      Mar 26 at 2:03










    • $begingroup$
      @Anonymous those are examples yes. Do you understand why that shows the function isn't a surjection?
      $endgroup$
      – Mariah
      Mar 26 at 2:04










    • $begingroup$
      Wouldn't x = -y not make it injective?
      $endgroup$
      – user643202
      Mar 26 at 2:05










    • $begingroup$
      @Anonymous what is our domain?
      $endgroup$
      – Mariah
      Mar 26 at 2:06










    • $begingroup$
      all natural numbers
      $endgroup$
      – user643202
      Mar 26 at 2:07


















    • $begingroup$
      So like numbers like 3, 5, and 7?
      $endgroup$
      – user643202
      Mar 26 at 2:03










    • $begingroup$
      @Anonymous those are examples yes. Do you understand why that shows the function isn't a surjection?
      $endgroup$
      – Mariah
      Mar 26 at 2:04










    • $begingroup$
      Wouldn't x = -y not make it injective?
      $endgroup$
      – user643202
      Mar 26 at 2:05










    • $begingroup$
      @Anonymous what is our domain?
      $endgroup$
      – Mariah
      Mar 26 at 2:06










    • $begingroup$
      all natural numbers
      $endgroup$
      – user643202
      Mar 26 at 2:07
















    $begingroup$
    So like numbers like 3, 5, and 7?
    $endgroup$
    – user643202
    Mar 26 at 2:03




    $begingroup$
    So like numbers like 3, 5, and 7?
    $endgroup$
    – user643202
    Mar 26 at 2:03












    $begingroup$
    @Anonymous those are examples yes. Do you understand why that shows the function isn't a surjection?
    $endgroup$
    – Mariah
    Mar 26 at 2:04




    $begingroup$
    @Anonymous those are examples yes. Do you understand why that shows the function isn't a surjection?
    $endgroup$
    – Mariah
    Mar 26 at 2:04












    $begingroup$
    Wouldn't x = -y not make it injective?
    $endgroup$
    – user643202
    Mar 26 at 2:05




    $begingroup$
    Wouldn't x = -y not make it injective?
    $endgroup$
    – user643202
    Mar 26 at 2:05












    $begingroup$
    @Anonymous what is our domain?
    $endgroup$
    – Mariah
    Mar 26 at 2:06




    $begingroup$
    @Anonymous what is our domain?
    $endgroup$
    – Mariah
    Mar 26 at 2:06












    $begingroup$
    all natural numbers
    $endgroup$
    – user643202
    Mar 26 at 2:07




    $begingroup$
    all natural numbers
    $endgroup$
    – user643202
    Mar 26 at 2:07











    0












    $begingroup$

    You just need to give a counter-example here. Consider the number $y=17 in mathbb{N}$. Then $x^2=y Rightarrow x^2 = 17 Rightarrow x = pmsqrt{17} notin mathbb{N}.$ You have found a $y$ such that $x notin mathbb{N}$ for $f(x)=y$. Therefore, $f$ is not surjective.






    share|cite|improve this answer









    $endgroup$


















      0












      $begingroup$

      You just need to give a counter-example here. Consider the number $y=17 in mathbb{N}$. Then $x^2=y Rightarrow x^2 = 17 Rightarrow x = pmsqrt{17} notin mathbb{N}.$ You have found a $y$ such that $x notin mathbb{N}$ for $f(x)=y$. Therefore, $f$ is not surjective.






      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $begingroup$

        You just need to give a counter-example here. Consider the number $y=17 in mathbb{N}$. Then $x^2=y Rightarrow x^2 = 17 Rightarrow x = pmsqrt{17} notin mathbb{N}.$ You have found a $y$ such that $x notin mathbb{N}$ for $f(x)=y$. Therefore, $f$ is not surjective.






        share|cite|improve this answer









        $endgroup$



        You just need to give a counter-example here. Consider the number $y=17 in mathbb{N}$. Then $x^2=y Rightarrow x^2 = 17 Rightarrow x = pmsqrt{17} notin mathbb{N}.$ You have found a $y$ such that $x notin mathbb{N}$ for $f(x)=y$. Therefore, $f$ is not surjective.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Mar 26 at 7:14









        YFPYFP

        3912




        3912






























            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%2f3162595%2fprove-function-is-injective-but-not-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

            Magento 2 - Add success message with knockout Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Success / Error message on ajax request$.widget is not a function when loading a homepage after add custom jQuery on custom themeHow can bind jQuery to current document in Magento 2 When template load by ajaxRedirect page using plugin in Magento 2Magento 2 - Update quantity and totals of cart page without page reload?Magento 2: Quote data not loaded on knockout checkoutMagento 2 : I need to change add to cart success message after adding product into cart through pluginMagento 2.2.5 How to add additional products to cart from new checkout step?Magento 2 Add error/success message with knockoutCan't validate Post Code on checkout page

            Fil:Tokke komm.svg

            Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?