Can anyone tell me where am I making mistakes here in composition of function problem

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











up vote
1
down vote

favorite












The question is,



$$ f(x) = left| x-1 right| -1 , , x in [ -1,3] $$



$$ g(x) = 2 - left| x+1 right| , , x in [-2, 2] $$



Find $ f(g(x)) $



I did try, but the answer behind the text book has different domain of $f(g(x))$



Here's my work, can someone point out the mistake, if any?



https://www.scribd.com/document/384934557/My-work



Thank you :)







share|cite|improve this question























    up vote
    1
    down vote

    favorite












    The question is,



    $$ f(x) = left| x-1 right| -1 , , x in [ -1,3] $$



    $$ g(x) = 2 - left| x+1 right| , , x in [-2, 2] $$



    Find $ f(g(x)) $



    I did try, but the answer behind the text book has different domain of $f(g(x))$



    Here's my work, can someone point out the mistake, if any?



    https://www.scribd.com/document/384934557/My-work



    Thank you :)







    share|cite|improve this question





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      The question is,



      $$ f(x) = left| x-1 right| -1 , , x in [ -1,3] $$



      $$ g(x) = 2 - left| x+1 right| , , x in [-2, 2] $$



      Find $ f(g(x)) $



      I did try, but the answer behind the text book has different domain of $f(g(x))$



      Here's my work, can someone point out the mistake, if any?



      https://www.scribd.com/document/384934557/My-work



      Thank you :)







      share|cite|improve this question











      The question is,



      $$ f(x) = left| x-1 right| -1 , , x in [ -1,3] $$



      $$ g(x) = 2 - left| x+1 right| , , x in [-2, 2] $$



      Find $ f(g(x)) $



      I did try, but the answer behind the text book has different domain of $f(g(x))$



      Here's my work, can someone point out the mistake, if any?



      https://www.scribd.com/document/384934557/My-work



      Thank you :)









      share|cite|improve this question










      share|cite|improve this question




      share|cite|improve this question









      asked Jul 29 at 11:52









      William

      731214




      731214




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          $$g(x) = 2 - lvert x+1 rvert, qquad x in [-2, 2]$$
          So
          $$g(x) =
          begincases
          2+(x+1)=x+3, &xin[-2,-1]\
          2-(x+1)=1-x, &xin(-1,2]
          endcases$$
          So



          beginalign
          f(x)
          &= begincases
          left| x+3-1 right| -1 =|x+2|-1, &xin[-2,-1]\
          left| 1-x-1 right| -1 =|-x|-1, &xin(-1,2]
          endcases \
          &= begincases
          |x+2|-1, &xin[-2,-1]\
          |x|-1, &xin(-1,2]
          endcases \
          &= begincases
          (x+2)-1, &xin[-2,-1]\
          -x-1, &xin(-1,0]\
          x-1,&xin(0,2]
          endcases \
          &= begincases
          x+1, &xin[-2,-1]\
          -(x+1), &xin(-1,0]\
          x-1,&xin(0,2]
          endcases \
          &textOR\
          f(x)&= begincases
          x+1, &xin[-2,-1)\
          -(x+1), &xin[-1,0)\
          x-1,&xin[0,2]
          endcases \
          endalign






          share|cite|improve this answer





















          • Wait so my answer is correct?
            – William
            Jul 29 at 12:52


















          up vote
          0
          down vote













          If $x in [-2,2]$ then $0 leq lvert x+1 rvert leq 3$
          and therefore $-1 leq g(x) leq 2.$
          Since these values of $g(x)$ are all within the domain of $f,$
          I conclude that $f(g(x))$ is defined for every $x in [-2,2].$
          The composition $f(g(x))$ cannot be defined for any $x$ that is not in the domain of $g,$ so no other points can be added to the domain.
          The domain of $f(g(x))$ therefore is $[-2,2],$
          exactly as you concluded.



          Moreover, using an online tool to graph $f(g(x))$ confirms the rest of your definition of that function.



          It might be helpful to see the book's answer to compare with yours.






          share|cite|improve this answer





















            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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            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%2f2866012%2fcan-anyone-tell-me-where-am-i-making-mistakes-here-in-composition-of-function-pr%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            $$g(x) = 2 - lvert x+1 rvert, qquad x in [-2, 2]$$
            So
            $$g(x) =
            begincases
            2+(x+1)=x+3, &xin[-2,-1]\
            2-(x+1)=1-x, &xin(-1,2]
            endcases$$
            So



            beginalign
            f(x)
            &= begincases
            left| x+3-1 right| -1 =|x+2|-1, &xin[-2,-1]\
            left| 1-x-1 right| -1 =|-x|-1, &xin(-1,2]
            endcases \
            &= begincases
            |x+2|-1, &xin[-2,-1]\
            |x|-1, &xin(-1,2]
            endcases \
            &= begincases
            (x+2)-1, &xin[-2,-1]\
            -x-1, &xin(-1,0]\
            x-1,&xin(0,2]
            endcases \
            &= begincases
            x+1, &xin[-2,-1]\
            -(x+1), &xin(-1,0]\
            x-1,&xin(0,2]
            endcases \
            &textOR\
            f(x)&= begincases
            x+1, &xin[-2,-1)\
            -(x+1), &xin[-1,0)\
            x-1,&xin[0,2]
            endcases \
            endalign






            share|cite|improve this answer





















            • Wait so my answer is correct?
              – William
              Jul 29 at 12:52















            up vote
            2
            down vote













            $$g(x) = 2 - lvert x+1 rvert, qquad x in [-2, 2]$$
            So
            $$g(x) =
            begincases
            2+(x+1)=x+3, &xin[-2,-1]\
            2-(x+1)=1-x, &xin(-1,2]
            endcases$$
            So



            beginalign
            f(x)
            &= begincases
            left| x+3-1 right| -1 =|x+2|-1, &xin[-2,-1]\
            left| 1-x-1 right| -1 =|-x|-1, &xin(-1,2]
            endcases \
            &= begincases
            |x+2|-1, &xin[-2,-1]\
            |x|-1, &xin(-1,2]
            endcases \
            &= begincases
            (x+2)-1, &xin[-2,-1]\
            -x-1, &xin(-1,0]\
            x-1,&xin(0,2]
            endcases \
            &= begincases
            x+1, &xin[-2,-1]\
            -(x+1), &xin(-1,0]\
            x-1,&xin(0,2]
            endcases \
            &textOR\
            f(x)&= begincases
            x+1, &xin[-2,-1)\
            -(x+1), &xin[-1,0)\
            x-1,&xin[0,2]
            endcases \
            endalign






            share|cite|improve this answer





















            • Wait so my answer is correct?
              – William
              Jul 29 at 12:52













            up vote
            2
            down vote










            up vote
            2
            down vote









            $$g(x) = 2 - lvert x+1 rvert, qquad x in [-2, 2]$$
            So
            $$g(x) =
            begincases
            2+(x+1)=x+3, &xin[-2,-1]\
            2-(x+1)=1-x, &xin(-1,2]
            endcases$$
            So



            beginalign
            f(x)
            &= begincases
            left| x+3-1 right| -1 =|x+2|-1, &xin[-2,-1]\
            left| 1-x-1 right| -1 =|-x|-1, &xin(-1,2]
            endcases \
            &= begincases
            |x+2|-1, &xin[-2,-1]\
            |x|-1, &xin(-1,2]
            endcases \
            &= begincases
            (x+2)-1, &xin[-2,-1]\
            -x-1, &xin(-1,0]\
            x-1,&xin(0,2]
            endcases \
            &= begincases
            x+1, &xin[-2,-1]\
            -(x+1), &xin(-1,0]\
            x-1,&xin(0,2]
            endcases \
            &textOR\
            f(x)&= begincases
            x+1, &xin[-2,-1)\
            -(x+1), &xin[-1,0)\
            x-1,&xin[0,2]
            endcases \
            endalign






            share|cite|improve this answer













            $$g(x) = 2 - lvert x+1 rvert, qquad x in [-2, 2]$$
            So
            $$g(x) =
            begincases
            2+(x+1)=x+3, &xin[-2,-1]\
            2-(x+1)=1-x, &xin(-1,2]
            endcases$$
            So



            beginalign
            f(x)
            &= begincases
            left| x+3-1 right| -1 =|x+2|-1, &xin[-2,-1]\
            left| 1-x-1 right| -1 =|-x|-1, &xin(-1,2]
            endcases \
            &= begincases
            |x+2|-1, &xin[-2,-1]\
            |x|-1, &xin(-1,2]
            endcases \
            &= begincases
            (x+2)-1, &xin[-2,-1]\
            -x-1, &xin(-1,0]\
            x-1,&xin(0,2]
            endcases \
            &= begincases
            x+1, &xin[-2,-1]\
            -(x+1), &xin(-1,0]\
            x-1,&xin(0,2]
            endcases \
            &textOR\
            f(x)&= begincases
            x+1, &xin[-2,-1)\
            -(x+1), &xin[-1,0)\
            x-1,&xin[0,2]
            endcases \
            endalign







            share|cite|improve this answer













            share|cite|improve this answer



            share|cite|improve this answer











            answered Jul 29 at 12:30









            Karn Watcharasupat

            3,7992426




            3,7992426











            • Wait so my answer is correct?
              – William
              Jul 29 at 12:52

















            • Wait so my answer is correct?
              – William
              Jul 29 at 12:52
















            Wait so my answer is correct?
            – William
            Jul 29 at 12:52





            Wait so my answer is correct?
            – William
            Jul 29 at 12:52











            up vote
            0
            down vote













            If $x in [-2,2]$ then $0 leq lvert x+1 rvert leq 3$
            and therefore $-1 leq g(x) leq 2.$
            Since these values of $g(x)$ are all within the domain of $f,$
            I conclude that $f(g(x))$ is defined for every $x in [-2,2].$
            The composition $f(g(x))$ cannot be defined for any $x$ that is not in the domain of $g,$ so no other points can be added to the domain.
            The domain of $f(g(x))$ therefore is $[-2,2],$
            exactly as you concluded.



            Moreover, using an online tool to graph $f(g(x))$ confirms the rest of your definition of that function.



            It might be helpful to see the book's answer to compare with yours.






            share|cite|improve this answer

























              up vote
              0
              down vote













              If $x in [-2,2]$ then $0 leq lvert x+1 rvert leq 3$
              and therefore $-1 leq g(x) leq 2.$
              Since these values of $g(x)$ are all within the domain of $f,$
              I conclude that $f(g(x))$ is defined for every $x in [-2,2].$
              The composition $f(g(x))$ cannot be defined for any $x$ that is not in the domain of $g,$ so no other points can be added to the domain.
              The domain of $f(g(x))$ therefore is $[-2,2],$
              exactly as you concluded.



              Moreover, using an online tool to graph $f(g(x))$ confirms the rest of your definition of that function.



              It might be helpful to see the book's answer to compare with yours.






              share|cite|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                If $x in [-2,2]$ then $0 leq lvert x+1 rvert leq 3$
                and therefore $-1 leq g(x) leq 2.$
                Since these values of $g(x)$ are all within the domain of $f,$
                I conclude that $f(g(x))$ is defined for every $x in [-2,2].$
                The composition $f(g(x))$ cannot be defined for any $x$ that is not in the domain of $g,$ so no other points can be added to the domain.
                The domain of $f(g(x))$ therefore is $[-2,2],$
                exactly as you concluded.



                Moreover, using an online tool to graph $f(g(x))$ confirms the rest of your definition of that function.



                It might be helpful to see the book's answer to compare with yours.






                share|cite|improve this answer













                If $x in [-2,2]$ then $0 leq lvert x+1 rvert leq 3$
                and therefore $-1 leq g(x) leq 2.$
                Since these values of $g(x)$ are all within the domain of $f,$
                I conclude that $f(g(x))$ is defined for every $x in [-2,2].$
                The composition $f(g(x))$ cannot be defined for any $x$ that is not in the domain of $g,$ so no other points can be added to the domain.
                The domain of $f(g(x))$ therefore is $[-2,2],$
                exactly as you concluded.



                Moreover, using an online tool to graph $f(g(x))$ confirms the rest of your definition of that function.



                It might be helpful to see the book's answer to compare with yours.







                share|cite|improve this answer













                share|cite|improve this answer



                share|cite|improve this answer











                answered Jul 29 at 13:28









                David K

                48.1k340107




                48.1k340107






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2866012%2fcan-anyone-tell-me-where-am-i-making-mistakes-here-in-composition-of-function-pr%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    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?