A continuous function from (0,1) to [0,1]












1












$begingroup$


So today my professor gave a self-check to us to write a continuous function defined on (0,1) whose range is [0,1]. And I thought of a function which I am not sure if it is considered to be continuous or not.



f(x) is a piece-wise function defined as:
begin{cases}
0, &quadtext{if x < 1/10}\
5/4(x-1/10), &quadtext{if 1/10 <= x <= 9/10}\
1, &quadtext{if x > 9/10 }\
end{cases}



Thank you for your help and/or hints in prior.










share|cite|improve this question











$endgroup$

















    1












    $begingroup$


    So today my professor gave a self-check to us to write a continuous function defined on (0,1) whose range is [0,1]. And I thought of a function which I am not sure if it is considered to be continuous or not.



    f(x) is a piece-wise function defined as:
    begin{cases}
    0, &quadtext{if x < 1/10}\
    5/4(x-1/10), &quadtext{if 1/10 <= x <= 9/10}\
    1, &quadtext{if x > 9/10 }\
    end{cases}



    Thank you for your help and/or hints in prior.










    share|cite|improve this question











    $endgroup$















      1












      1








      1





      $begingroup$


      So today my professor gave a self-check to us to write a continuous function defined on (0,1) whose range is [0,1]. And I thought of a function which I am not sure if it is considered to be continuous or not.



      f(x) is a piece-wise function defined as:
      begin{cases}
      0, &quadtext{if x < 1/10}\
      5/4(x-1/10), &quadtext{if 1/10 <= x <= 9/10}\
      1, &quadtext{if x > 9/10 }\
      end{cases}



      Thank you for your help and/or hints in prior.










      share|cite|improve this question











      $endgroup$




      So today my professor gave a self-check to us to write a continuous function defined on (0,1) whose range is [0,1]. And I thought of a function which I am not sure if it is considered to be continuous or not.



      f(x) is a piece-wise function defined as:
      begin{cases}
      0, &quadtext{if x < 1/10}\
      5/4(x-1/10), &quadtext{if 1/10 <= x <= 9/10}\
      1, &quadtext{if x > 9/10 }\
      end{cases}



      Thank you for your help and/or hints in prior.







      real-analysis functions






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Jan 8 at 16:43







      Allorja

















      asked Jan 8 at 16:13









      AllorjaAllorja

      789




      789






















          3 Answers
          3






          active

          oldest

          votes


















          1












          $begingroup$

          Your function is not continuous (or even defined in all places you need it). You can mend your idea by letting
          $$f(x)=max{0,min{1,tfrac 54(x-tfrac1{10})}}.$$





          Remark: It is also possible to find a cubic polynomial function $f(x)=ax^3+bx^2+cx+d$ that solves the problem.






          share|cite|improve this answer









          $endgroup$





















            3












            $begingroup$

            Your idea is good. But your presentation isn't entirely correct. You need to use $leq$ instead of $<$ in a few strategic places, so that the function is actually defined on all of $(0,1)$. And you need to look at that middle expression (i.e. $x$) to make sure it actually says what you want it to say.



            Alternately, if you don't like defining by cases, you could use something like $sin^2(10x)$.






            share|cite|improve this answer









            $endgroup$













            • $begingroup$
              With the edit that I just made, my function is continuous right?
              $endgroup$
              – Allorja
              Jan 8 at 16:44






            • 1




              $begingroup$
              Yes, that ought to do it.
              $endgroup$
              – Arthur
              Jan 8 at 17:06



















            1












            $begingroup$

            Your function can be plotted using Desmos. You can fix this by making sure the middle segment actually connects to the two horizontal lines at the $x=frac{1}{10}$ and $x=frac{9}{10}$.






            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%2f3066366%2fa-continuous-function-from-0-1-to-0-1%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









              1












              $begingroup$

              Your function is not continuous (or even defined in all places you need it). You can mend your idea by letting
              $$f(x)=max{0,min{1,tfrac 54(x-tfrac1{10})}}.$$





              Remark: It is also possible to find a cubic polynomial function $f(x)=ax^3+bx^2+cx+d$ that solves the problem.






              share|cite|improve this answer









              $endgroup$


















                1












                $begingroup$

                Your function is not continuous (or even defined in all places you need it). You can mend your idea by letting
                $$f(x)=max{0,min{1,tfrac 54(x-tfrac1{10})}}.$$





                Remark: It is also possible to find a cubic polynomial function $f(x)=ax^3+bx^2+cx+d$ that solves the problem.






                share|cite|improve this answer









                $endgroup$
















                  1












                  1








                  1





                  $begingroup$

                  Your function is not continuous (or even defined in all places you need it). You can mend your idea by letting
                  $$f(x)=max{0,min{1,tfrac 54(x-tfrac1{10})}}.$$





                  Remark: It is also possible to find a cubic polynomial function $f(x)=ax^3+bx^2+cx+d$ that solves the problem.






                  share|cite|improve this answer









                  $endgroup$



                  Your function is not continuous (or even defined in all places you need it). You can mend your idea by letting
                  $$f(x)=max{0,min{1,tfrac 54(x-tfrac1{10})}}.$$





                  Remark: It is also possible to find a cubic polynomial function $f(x)=ax^3+bx^2+cx+d$ that solves the problem.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Jan 8 at 16:18









                  Hagen von EitzenHagen von Eitzen

                  280k23272504




                  280k23272504























                      3












                      $begingroup$

                      Your idea is good. But your presentation isn't entirely correct. You need to use $leq$ instead of $<$ in a few strategic places, so that the function is actually defined on all of $(0,1)$. And you need to look at that middle expression (i.e. $x$) to make sure it actually says what you want it to say.



                      Alternately, if you don't like defining by cases, you could use something like $sin^2(10x)$.






                      share|cite|improve this answer









                      $endgroup$













                      • $begingroup$
                        With the edit that I just made, my function is continuous right?
                        $endgroup$
                        – Allorja
                        Jan 8 at 16:44






                      • 1




                        $begingroup$
                        Yes, that ought to do it.
                        $endgroup$
                        – Arthur
                        Jan 8 at 17:06
















                      3












                      $begingroup$

                      Your idea is good. But your presentation isn't entirely correct. You need to use $leq$ instead of $<$ in a few strategic places, so that the function is actually defined on all of $(0,1)$. And you need to look at that middle expression (i.e. $x$) to make sure it actually says what you want it to say.



                      Alternately, if you don't like defining by cases, you could use something like $sin^2(10x)$.






                      share|cite|improve this answer









                      $endgroup$













                      • $begingroup$
                        With the edit that I just made, my function is continuous right?
                        $endgroup$
                        – Allorja
                        Jan 8 at 16:44






                      • 1




                        $begingroup$
                        Yes, that ought to do it.
                        $endgroup$
                        – Arthur
                        Jan 8 at 17:06














                      3












                      3








                      3





                      $begingroup$

                      Your idea is good. But your presentation isn't entirely correct. You need to use $leq$ instead of $<$ in a few strategic places, so that the function is actually defined on all of $(0,1)$. And you need to look at that middle expression (i.e. $x$) to make sure it actually says what you want it to say.



                      Alternately, if you don't like defining by cases, you could use something like $sin^2(10x)$.






                      share|cite|improve this answer









                      $endgroup$



                      Your idea is good. But your presentation isn't entirely correct. You need to use $leq$ instead of $<$ in a few strategic places, so that the function is actually defined on all of $(0,1)$. And you need to look at that middle expression (i.e. $x$) to make sure it actually says what you want it to say.



                      Alternately, if you don't like defining by cases, you could use something like $sin^2(10x)$.







                      share|cite|improve this answer












                      share|cite|improve this answer



                      share|cite|improve this answer










                      answered Jan 8 at 16:16









                      ArthurArthur

                      116k7116198




                      116k7116198












                      • $begingroup$
                        With the edit that I just made, my function is continuous right?
                        $endgroup$
                        – Allorja
                        Jan 8 at 16:44






                      • 1




                        $begingroup$
                        Yes, that ought to do it.
                        $endgroup$
                        – Arthur
                        Jan 8 at 17:06


















                      • $begingroup$
                        With the edit that I just made, my function is continuous right?
                        $endgroup$
                        – Allorja
                        Jan 8 at 16:44






                      • 1




                        $begingroup$
                        Yes, that ought to do it.
                        $endgroup$
                        – Arthur
                        Jan 8 at 17:06
















                      $begingroup$
                      With the edit that I just made, my function is continuous right?
                      $endgroup$
                      – Allorja
                      Jan 8 at 16:44




                      $begingroup$
                      With the edit that I just made, my function is continuous right?
                      $endgroup$
                      – Allorja
                      Jan 8 at 16:44




                      1




                      1




                      $begingroup$
                      Yes, that ought to do it.
                      $endgroup$
                      – Arthur
                      Jan 8 at 17:06




                      $begingroup$
                      Yes, that ought to do it.
                      $endgroup$
                      – Arthur
                      Jan 8 at 17:06











                      1












                      $begingroup$

                      Your function can be plotted using Desmos. You can fix this by making sure the middle segment actually connects to the two horizontal lines at the $x=frac{1}{10}$ and $x=frac{9}{10}$.






                      share|cite|improve this answer









                      $endgroup$


















                        1












                        $begingroup$

                        Your function can be plotted using Desmos. You can fix this by making sure the middle segment actually connects to the two horizontal lines at the $x=frac{1}{10}$ and $x=frac{9}{10}$.






                        share|cite|improve this answer









                        $endgroup$
















                          1












                          1








                          1





                          $begingroup$

                          Your function can be plotted using Desmos. You can fix this by making sure the middle segment actually connects to the two horizontal lines at the $x=frac{1}{10}$ and $x=frac{9}{10}$.






                          share|cite|improve this answer









                          $endgroup$



                          Your function can be plotted using Desmos. You can fix this by making sure the middle segment actually connects to the two horizontal lines at the $x=frac{1}{10}$ and $x=frac{9}{10}$.







                          share|cite|improve this answer












                          share|cite|improve this answer



                          share|cite|improve this answer










                          answered Jan 8 at 16:25









                          DubsDubs

                          55826




                          55826






























                              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%2f3066366%2fa-continuous-function-from-0-1-to-0-1%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

                              Human spaceflight

                              Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                              File:DeusFollowingSea.jpg