Necessary and sufficient conditions on $as+b$ so that $f circ f$ = $i_s$












1












$begingroup$


I recently started my first course in abstract algebra and I came across the following problem:



Let $f: S to S$, where $S$ is the set of all integers, be defined by $f(s) =
as + b$, where $a$, $b$ are integers. Find the necessary and sufficient conditions
on $a$, $b$ in order that $f circ f = i_s$.



My understanding is that $i_s$ is the identity mapping such that $f(s) = s$ for all $s in S$. Based on this, I think that I need to find conditions on $a,b$ such that $f(f(s)) = s$. I began trying to express $f circ f$ as a single function and got that $(f circ f)(s) = a(as + b) + b$. From here, it seems clear to me that if $a=1$ and $b=0$, $(f circ f)(s) = s$ for all $s$. I thought there might be other conditions where this might be true, however, so I tried to do some algebra and this is what I got:



$$
a(as+b)+b=s\
a^2s+ab+b=s\
ab+b=s-a^2s\
ab+b=s(1-a^2)\
frac{ab+b}{1-a^2} = s
$$



From this equation, it seems to me that $a^2$ cannot equal $1$, so $a=1$ cannot be a good choice, which contradicts the conclusion that seems to make sense. What is wrong with my thinking? Is it "necessary and sufficient" to say that $a=1,b=0$, or is there something more that I need to show? I was thinking that I might need to show that if $a neq 1, b neq 0$, then $f circ f$ cannot be $i_s$, but I'm not sure.










share|cite|improve this question









$endgroup$












  • $begingroup$
    If $a$ is anything other than $1$ in $ab+b = s(1-a^2)$, then that would imply that $s$ can be determined uniquely... which would imply that all integers are equal to each other, which is surely wrong.
    $endgroup$
    – Ashwin Iyengar
    May 19 '17 at 20:33


















1












$begingroup$


I recently started my first course in abstract algebra and I came across the following problem:



Let $f: S to S$, where $S$ is the set of all integers, be defined by $f(s) =
as + b$, where $a$, $b$ are integers. Find the necessary and sufficient conditions
on $a$, $b$ in order that $f circ f = i_s$.



My understanding is that $i_s$ is the identity mapping such that $f(s) = s$ for all $s in S$. Based on this, I think that I need to find conditions on $a,b$ such that $f(f(s)) = s$. I began trying to express $f circ f$ as a single function and got that $(f circ f)(s) = a(as + b) + b$. From here, it seems clear to me that if $a=1$ and $b=0$, $(f circ f)(s) = s$ for all $s$. I thought there might be other conditions where this might be true, however, so I tried to do some algebra and this is what I got:



$$
a(as+b)+b=s\
a^2s+ab+b=s\
ab+b=s-a^2s\
ab+b=s(1-a^2)\
frac{ab+b}{1-a^2} = s
$$



From this equation, it seems to me that $a^2$ cannot equal $1$, so $a=1$ cannot be a good choice, which contradicts the conclusion that seems to make sense. What is wrong with my thinking? Is it "necessary and sufficient" to say that $a=1,b=0$, or is there something more that I need to show? I was thinking that I might need to show that if $a neq 1, b neq 0$, then $f circ f$ cannot be $i_s$, but I'm not sure.










share|cite|improve this question









$endgroup$












  • $begingroup$
    If $a$ is anything other than $1$ in $ab+b = s(1-a^2)$, then that would imply that $s$ can be determined uniquely... which would imply that all integers are equal to each other, which is surely wrong.
    $endgroup$
    – Ashwin Iyengar
    May 19 '17 at 20:33
















1












1








1





$begingroup$


I recently started my first course in abstract algebra and I came across the following problem:



Let $f: S to S$, where $S$ is the set of all integers, be defined by $f(s) =
as + b$, where $a$, $b$ are integers. Find the necessary and sufficient conditions
on $a$, $b$ in order that $f circ f = i_s$.



My understanding is that $i_s$ is the identity mapping such that $f(s) = s$ for all $s in S$. Based on this, I think that I need to find conditions on $a,b$ such that $f(f(s)) = s$. I began trying to express $f circ f$ as a single function and got that $(f circ f)(s) = a(as + b) + b$. From here, it seems clear to me that if $a=1$ and $b=0$, $(f circ f)(s) = s$ for all $s$. I thought there might be other conditions where this might be true, however, so I tried to do some algebra and this is what I got:



$$
a(as+b)+b=s\
a^2s+ab+b=s\
ab+b=s-a^2s\
ab+b=s(1-a^2)\
frac{ab+b}{1-a^2} = s
$$



From this equation, it seems to me that $a^2$ cannot equal $1$, so $a=1$ cannot be a good choice, which contradicts the conclusion that seems to make sense. What is wrong with my thinking? Is it "necessary and sufficient" to say that $a=1,b=0$, or is there something more that I need to show? I was thinking that I might need to show that if $a neq 1, b neq 0$, then $f circ f$ cannot be $i_s$, but I'm not sure.










share|cite|improve this question









$endgroup$




I recently started my first course in abstract algebra and I came across the following problem:



Let $f: S to S$, where $S$ is the set of all integers, be defined by $f(s) =
as + b$, where $a$, $b$ are integers. Find the necessary and sufficient conditions
on $a$, $b$ in order that $f circ f = i_s$.



My understanding is that $i_s$ is the identity mapping such that $f(s) = s$ for all $s in S$. Based on this, I think that I need to find conditions on $a,b$ such that $f(f(s)) = s$. I began trying to express $f circ f$ as a single function and got that $(f circ f)(s) = a(as + b) + b$. From here, it seems clear to me that if $a=1$ and $b=0$, $(f circ f)(s) = s$ for all $s$. I thought there might be other conditions where this might be true, however, so I tried to do some algebra and this is what I got:



$$
a(as+b)+b=s\
a^2s+ab+b=s\
ab+b=s-a^2s\
ab+b=s(1-a^2)\
frac{ab+b}{1-a^2} = s
$$



From this equation, it seems to me that $a^2$ cannot equal $1$, so $a=1$ cannot be a good choice, which contradicts the conclusion that seems to make sense. What is wrong with my thinking? Is it "necessary and sufficient" to say that $a=1,b=0$, or is there something more that I need to show? I was thinking that I might need to show that if $a neq 1, b neq 0$, then $f circ f$ cannot be $i_s$, but I'm not sure.







functions






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked May 19 '17 at 20:11









kanderson8kanderson8

755




755












  • $begingroup$
    If $a$ is anything other than $1$ in $ab+b = s(1-a^2)$, then that would imply that $s$ can be determined uniquely... which would imply that all integers are equal to each other, which is surely wrong.
    $endgroup$
    – Ashwin Iyengar
    May 19 '17 at 20:33




















  • $begingroup$
    If $a$ is anything other than $1$ in $ab+b = s(1-a^2)$, then that would imply that $s$ can be determined uniquely... which would imply that all integers are equal to each other, which is surely wrong.
    $endgroup$
    – Ashwin Iyengar
    May 19 '17 at 20:33


















$begingroup$
If $a$ is anything other than $1$ in $ab+b = s(1-a^2)$, then that would imply that $s$ can be determined uniquely... which would imply that all integers are equal to each other, which is surely wrong.
$endgroup$
– Ashwin Iyengar
May 19 '17 at 20:33






$begingroup$
If $a$ is anything other than $1$ in $ab+b = s(1-a^2)$, then that would imply that $s$ can be determined uniquely... which would imply that all integers are equal to each other, which is surely wrong.
$endgroup$
– Ashwin Iyengar
May 19 '17 at 20:33












3 Answers
3






active

oldest

votes


















0












$begingroup$

$left[forall s,s(a^2-1)+b(a+1)=0right]$ is true iff $(a^2-1)=0$ and $b(a+1)=0$, which in turn admits the following solutions:





  • $a=1$ and $b=0$


  • $a=-1$ and $b$ is arbitrary






share|cite|improve this answer











$endgroup$





















    0












    $begingroup$

    Note $f(0)=bimplies 0=f(f(0))=ab+b=(a+1)b$. So, either:




    • $a = -1$. One can easily check that any such $f$ satisfies the desired equation. Or ...

    • $b=0$. In this case, $f(x)=ax$ for some $a$.


      • Note now that $f(1)=a implies 1 = f(f(a)) = a^2$, so $a=pm 1,$ i.e. your function is either $f(x)=x$ or $f(x)=-x$. It is even easier to show that these both satisfy the desired equation.




    So, the set of all such functions is ${f(x)=x} cup {f(x) = b -xtext{ for some integer }b }$.






    share|cite|improve this answer









    $endgroup$





















      0












      $begingroup$

      Note that you are trying to find out when $f circ f = i_S$, which is an equality of functions. When are two functions equal? Two functions $S to S$ are equal when they have the same value at each element in their domain.



      You are correct that you end up with the equation $a^2s + ab+b equiv s$, where we use $equiv$ to mean an equality of functions. Therefore you need $a^2s+ab +b = s$ for all $sin S$. Both $fcirc f$ and $i_S$ are affine functions, and we know that affine functions are equal if and only if they have the same slope and constant term.



      What you actually have done in your calculation is to try to solve for $s$, but this is not what you want to be doing. You are actually solving for $a$ and $b$.



      Hint: You get infinitely many such $f$.



      The upside is that what you actually have shown is that if $a^2$ is anything else than $1$, then there is only one $s$ which makes the above equality true but it is supposed to be true for all $s in S$, so you can conclude that $a^2 = 1$.






      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%2f2288288%2fnecessary-and-sufficient-conditions-on-asb-so-that-f-circ-f-i-s%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        0












        $begingroup$

        $left[forall s,s(a^2-1)+b(a+1)=0right]$ is true iff $(a^2-1)=0$ and $b(a+1)=0$, which in turn admits the following solutions:





        • $a=1$ and $b=0$


        • $a=-1$ and $b$ is arbitrary






        share|cite|improve this answer











        $endgroup$


















          0












          $begingroup$

          $left[forall s,s(a^2-1)+b(a+1)=0right]$ is true iff $(a^2-1)=0$ and $b(a+1)=0$, which in turn admits the following solutions:





          • $a=1$ and $b=0$


          • $a=-1$ and $b$ is arbitrary






          share|cite|improve this answer











          $endgroup$
















            0












            0








            0





            $begingroup$

            $left[forall s,s(a^2-1)+b(a+1)=0right]$ is true iff $(a^2-1)=0$ and $b(a+1)=0$, which in turn admits the following solutions:





            • $a=1$ and $b=0$


            • $a=-1$ and $b$ is arbitrary






            share|cite|improve this answer











            $endgroup$



            $left[forall s,s(a^2-1)+b(a+1)=0right]$ is true iff $(a^2-1)=0$ and $b(a+1)=0$, which in turn admits the following solutions:





            • $a=1$ and $b=0$


            • $a=-1$ and $b$ is arbitrary







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Jan 25 at 15:07

























            answered May 19 '17 at 21:45









            Antoine MathysAntoine Mathys

            31827




            31827























                0












                $begingroup$

                Note $f(0)=bimplies 0=f(f(0))=ab+b=(a+1)b$. So, either:




                • $a = -1$. One can easily check that any such $f$ satisfies the desired equation. Or ...

                • $b=0$. In this case, $f(x)=ax$ for some $a$.


                  • Note now that $f(1)=a implies 1 = f(f(a)) = a^2$, so $a=pm 1,$ i.e. your function is either $f(x)=x$ or $f(x)=-x$. It is even easier to show that these both satisfy the desired equation.




                So, the set of all such functions is ${f(x)=x} cup {f(x) = b -xtext{ for some integer }b }$.






                share|cite|improve this answer









                $endgroup$


















                  0












                  $begingroup$

                  Note $f(0)=bimplies 0=f(f(0))=ab+b=(a+1)b$. So, either:




                  • $a = -1$. One can easily check that any such $f$ satisfies the desired equation. Or ...

                  • $b=0$. In this case, $f(x)=ax$ for some $a$.


                    • Note now that $f(1)=a implies 1 = f(f(a)) = a^2$, so $a=pm 1,$ i.e. your function is either $f(x)=x$ or $f(x)=-x$. It is even easier to show that these both satisfy the desired equation.




                  So, the set of all such functions is ${f(x)=x} cup {f(x) = b -xtext{ for some integer }b }$.






                  share|cite|improve this answer









                  $endgroup$
















                    0












                    0








                    0





                    $begingroup$

                    Note $f(0)=bimplies 0=f(f(0))=ab+b=(a+1)b$. So, either:




                    • $a = -1$. One can easily check that any such $f$ satisfies the desired equation. Or ...

                    • $b=0$. In this case, $f(x)=ax$ for some $a$.


                      • Note now that $f(1)=a implies 1 = f(f(a)) = a^2$, so $a=pm 1,$ i.e. your function is either $f(x)=x$ or $f(x)=-x$. It is even easier to show that these both satisfy the desired equation.




                    So, the set of all such functions is ${f(x)=x} cup {f(x) = b -xtext{ for some integer }b }$.






                    share|cite|improve this answer









                    $endgroup$



                    Note $f(0)=bimplies 0=f(f(0))=ab+b=(a+1)b$. So, either:




                    • $a = -1$. One can easily check that any such $f$ satisfies the desired equation. Or ...

                    • $b=0$. In this case, $f(x)=ax$ for some $a$.


                      • Note now that $f(1)=a implies 1 = f(f(a)) = a^2$, so $a=pm 1,$ i.e. your function is either $f(x)=x$ or $f(x)=-x$. It is even easier to show that these both satisfy the desired equation.




                    So, the set of all such functions is ${f(x)=x} cup {f(x) = b -xtext{ for some integer }b }$.







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered May 20 '17 at 15:30









                    πr8πr8

                    9,85831025




                    9,85831025























                        0












                        $begingroup$

                        Note that you are trying to find out when $f circ f = i_S$, which is an equality of functions. When are two functions equal? Two functions $S to S$ are equal when they have the same value at each element in their domain.



                        You are correct that you end up with the equation $a^2s + ab+b equiv s$, where we use $equiv$ to mean an equality of functions. Therefore you need $a^2s+ab +b = s$ for all $sin S$. Both $fcirc f$ and $i_S$ are affine functions, and we know that affine functions are equal if and only if they have the same slope and constant term.



                        What you actually have done in your calculation is to try to solve for $s$, but this is not what you want to be doing. You are actually solving for $a$ and $b$.



                        Hint: You get infinitely many such $f$.



                        The upside is that what you actually have shown is that if $a^2$ is anything else than $1$, then there is only one $s$ which makes the above equality true but it is supposed to be true for all $s in S$, so you can conclude that $a^2 = 1$.






                        share|cite|improve this answer











                        $endgroup$


















                          0












                          $begingroup$

                          Note that you are trying to find out when $f circ f = i_S$, which is an equality of functions. When are two functions equal? Two functions $S to S$ are equal when they have the same value at each element in their domain.



                          You are correct that you end up with the equation $a^2s + ab+b equiv s$, where we use $equiv$ to mean an equality of functions. Therefore you need $a^2s+ab +b = s$ for all $sin S$. Both $fcirc f$ and $i_S$ are affine functions, and we know that affine functions are equal if and only if they have the same slope and constant term.



                          What you actually have done in your calculation is to try to solve for $s$, but this is not what you want to be doing. You are actually solving for $a$ and $b$.



                          Hint: You get infinitely many such $f$.



                          The upside is that what you actually have shown is that if $a^2$ is anything else than $1$, then there is only one $s$ which makes the above equality true but it is supposed to be true for all $s in S$, so you can conclude that $a^2 = 1$.






                          share|cite|improve this answer











                          $endgroup$
















                            0












                            0








                            0





                            $begingroup$

                            Note that you are trying to find out when $f circ f = i_S$, which is an equality of functions. When are two functions equal? Two functions $S to S$ are equal when they have the same value at each element in their domain.



                            You are correct that you end up with the equation $a^2s + ab+b equiv s$, where we use $equiv$ to mean an equality of functions. Therefore you need $a^2s+ab +b = s$ for all $sin S$. Both $fcirc f$ and $i_S$ are affine functions, and we know that affine functions are equal if and only if they have the same slope and constant term.



                            What you actually have done in your calculation is to try to solve for $s$, but this is not what you want to be doing. You are actually solving for $a$ and $b$.



                            Hint: You get infinitely many such $f$.



                            The upside is that what you actually have shown is that if $a^2$ is anything else than $1$, then there is only one $s$ which makes the above equality true but it is supposed to be true for all $s in S$, so you can conclude that $a^2 = 1$.






                            share|cite|improve this answer











                            $endgroup$



                            Note that you are trying to find out when $f circ f = i_S$, which is an equality of functions. When are two functions equal? Two functions $S to S$ are equal when they have the same value at each element in their domain.



                            You are correct that you end up with the equation $a^2s + ab+b equiv s$, where we use $equiv$ to mean an equality of functions. Therefore you need $a^2s+ab +b = s$ for all $sin S$. Both $fcirc f$ and $i_S$ are affine functions, and we know that affine functions are equal if and only if they have the same slope and constant term.



                            What you actually have done in your calculation is to try to solve for $s$, but this is not what you want to be doing. You are actually solving for $a$ and $b$.



                            Hint: You get infinitely many such $f$.



                            The upside is that what you actually have shown is that if $a^2$ is anything else than $1$, then there is only one $s$ which makes the above equality true but it is supposed to be true for all $s in S$, so you can conclude that $a^2 = 1$.







                            share|cite|improve this answer














                            share|cite|improve this answer



                            share|cite|improve this answer








                            edited Jun 19 '17 at 13:25









                            Antoine Mathys

                            31827




                            31827










                            answered May 19 '17 at 21:54









                            Gunnar SveinssonGunnar Sveinsson

                            7115




                            7115






























                                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%2f2288288%2fnecessary-and-sufficient-conditions-on-asb-so-that-f-circ-f-i-s%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

                                Mario Kart Wii

                                What does “Dominus providebit” mean?

                                Antonio Litta Visconti Arese