$f$ is surjective iff $g circ f = h circ frightarrow g=h$












0












$begingroup$


My question is:



Let $f:A rightarrow B$ be a function.



Prove that



$f$ is surjective iff for every pair of functions $g:B rightarrow C $ and $h:B rightarrow C $,



$g circ f = h circ frightarrow g=h$



How can I prove this? Thanks in advance!










share|cite|improve this question











$endgroup$












  • $begingroup$
    Have you got any ideas on how to prove this? You'll get better responses (and fewer down votes) if you show your own progress or thoughts so far.
    $endgroup$
    – B. Mehta
    Apr 15 '18 at 11:34
















0












$begingroup$


My question is:



Let $f:A rightarrow B$ be a function.



Prove that



$f$ is surjective iff for every pair of functions $g:B rightarrow C $ and $h:B rightarrow C $,



$g circ f = h circ frightarrow g=h$



How can I prove this? Thanks in advance!










share|cite|improve this question











$endgroup$












  • $begingroup$
    Have you got any ideas on how to prove this? You'll get better responses (and fewer down votes) if you show your own progress or thoughts so far.
    $endgroup$
    – B. Mehta
    Apr 15 '18 at 11:34














0












0








0





$begingroup$


My question is:



Let $f:A rightarrow B$ be a function.



Prove that



$f$ is surjective iff for every pair of functions $g:B rightarrow C $ and $h:B rightarrow C $,



$g circ f = h circ frightarrow g=h$



How can I prove this? Thanks in advance!










share|cite|improve this question











$endgroup$




My question is:



Let $f:A rightarrow B$ be a function.



Prove that



$f$ is surjective iff for every pair of functions $g:B rightarrow C $ and $h:B rightarrow C $,



$g circ f = h circ frightarrow g=h$



How can I prove this? Thanks in advance!







functions elementary-set-theory function-and-relation-composition






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 12 '18 at 1:41









Martin Sleziak

44.9k10122277




44.9k10122277










asked Apr 15 '18 at 9:08









DMKDMK

41




41












  • $begingroup$
    Have you got any ideas on how to prove this? You'll get better responses (and fewer down votes) if you show your own progress or thoughts so far.
    $endgroup$
    – B. Mehta
    Apr 15 '18 at 11:34


















  • $begingroup$
    Have you got any ideas on how to prove this? You'll get better responses (and fewer down votes) if you show your own progress or thoughts so far.
    $endgroup$
    – B. Mehta
    Apr 15 '18 at 11:34
















$begingroup$
Have you got any ideas on how to prove this? You'll get better responses (and fewer down votes) if you show your own progress or thoughts so far.
$endgroup$
– B. Mehta
Apr 15 '18 at 11:34




$begingroup$
Have you got any ideas on how to prove this? You'll get better responses (and fewer down votes) if you show your own progress or thoughts so far.
$endgroup$
– B. Mehta
Apr 15 '18 at 11:34










1 Answer
1






active

oldest

votes


















0












$begingroup$

Suppose $f$ is surjective, and $g,h:B to C$ are such that $gneq h$.

We want to prove that $gcirc f neq fcirc g$.

If $gneq f$ then there exists some $b in B$ such that $g(b)neq h(b)$.

As $f$ is surjective, there exists $a in A$ such that $f(a)=b$.
Hence
$$(gcirc f)(a)=g(f(a))=g(b)neq h(b)=h(f(a))=(hcirc g)(a).$$



For the converse, suppose that $f$ is not surjective.

Now we want to find a set $C$ and maps $g,h:Bto C$ such that $gneq h$ but $gcirc f = hcirc f$.

Let $C={0,1}$ and define $g,h:Bto C$ by making
$$
g(x)=0,qquadtext{and}qquad h(x)=
begin{cases}
0 &text{ if } x in f(A)\
1 &text{ otherwise.}
end{cases}
$$
These maps are in the desired conditions.






share|cite|improve this answer









$endgroup$














    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    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%2f2738007%2ff-is-surjective-iff-g-circ-f-h-circ-f-rightarrow-g-h%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0












    $begingroup$

    Suppose $f$ is surjective, and $g,h:B to C$ are such that $gneq h$.

    We want to prove that $gcirc f neq fcirc g$.

    If $gneq f$ then there exists some $b in B$ such that $g(b)neq h(b)$.

    As $f$ is surjective, there exists $a in A$ such that $f(a)=b$.
    Hence
    $$(gcirc f)(a)=g(f(a))=g(b)neq h(b)=h(f(a))=(hcirc g)(a).$$



    For the converse, suppose that $f$ is not surjective.

    Now we want to find a set $C$ and maps $g,h:Bto C$ such that $gneq h$ but $gcirc f = hcirc f$.

    Let $C={0,1}$ and define $g,h:Bto C$ by making
    $$
    g(x)=0,qquadtext{and}qquad h(x)=
    begin{cases}
    0 &text{ if } x in f(A)\
    1 &text{ otherwise.}
    end{cases}
    $$
    These maps are in the desired conditions.






    share|cite|improve this answer









    $endgroup$


















      0












      $begingroup$

      Suppose $f$ is surjective, and $g,h:B to C$ are such that $gneq h$.

      We want to prove that $gcirc f neq fcirc g$.

      If $gneq f$ then there exists some $b in B$ such that $g(b)neq h(b)$.

      As $f$ is surjective, there exists $a in A$ such that $f(a)=b$.
      Hence
      $$(gcirc f)(a)=g(f(a))=g(b)neq h(b)=h(f(a))=(hcirc g)(a).$$



      For the converse, suppose that $f$ is not surjective.

      Now we want to find a set $C$ and maps $g,h:Bto C$ such that $gneq h$ but $gcirc f = hcirc f$.

      Let $C={0,1}$ and define $g,h:Bto C$ by making
      $$
      g(x)=0,qquadtext{and}qquad h(x)=
      begin{cases}
      0 &text{ if } x in f(A)\
      1 &text{ otherwise.}
      end{cases}
      $$
      These maps are in the desired conditions.






      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $begingroup$

        Suppose $f$ is surjective, and $g,h:B to C$ are such that $gneq h$.

        We want to prove that $gcirc f neq fcirc g$.

        If $gneq f$ then there exists some $b in B$ such that $g(b)neq h(b)$.

        As $f$ is surjective, there exists $a in A$ such that $f(a)=b$.
        Hence
        $$(gcirc f)(a)=g(f(a))=g(b)neq h(b)=h(f(a))=(hcirc g)(a).$$



        For the converse, suppose that $f$ is not surjective.

        Now we want to find a set $C$ and maps $g,h:Bto C$ such that $gneq h$ but $gcirc f = hcirc f$.

        Let $C={0,1}$ and define $g,h:Bto C$ by making
        $$
        g(x)=0,qquadtext{and}qquad h(x)=
        begin{cases}
        0 &text{ if } x in f(A)\
        1 &text{ otherwise.}
        end{cases}
        $$
        These maps are in the desired conditions.






        share|cite|improve this answer









        $endgroup$



        Suppose $f$ is surjective, and $g,h:B to C$ are such that $gneq h$.

        We want to prove that $gcirc f neq fcirc g$.

        If $gneq f$ then there exists some $b in B$ such that $g(b)neq h(b)$.

        As $f$ is surjective, there exists $a in A$ such that $f(a)=b$.
        Hence
        $$(gcirc f)(a)=g(f(a))=g(b)neq h(b)=h(f(a))=(hcirc g)(a).$$



        For the converse, suppose that $f$ is not surjective.

        Now we want to find a set $C$ and maps $g,h:Bto C$ such that $gneq h$ but $gcirc f = hcirc f$.

        Let $C={0,1}$ and define $g,h:Bto C$ by making
        $$
        g(x)=0,qquadtext{and}qquad h(x)=
        begin{cases}
        0 &text{ if } x in f(A)\
        1 &text{ otherwise.}
        end{cases}
        $$
        These maps are in the desired conditions.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Apr 15 '18 at 14:47









        amrsaamrsa

        3,8452618




        3,8452618






























            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%2f2738007%2ff-is-surjective-iff-g-circ-f-h-circ-f-rightarrow-g-h%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

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?