a non-zero continuous function with compact support and its derivatives are zero at zero












3












$begingroup$


I am looking for a continuous function with support compact, which its derivates are zero at zero, it means $f'(0)=0$,$f''(0)=0$..., I have seen this question All derivatives zero at a point $implies$ constant function?. So, I know that one answers is a flat function but the difference is that I want a function such that $f(0)neq0$
Maybe, that function is piecewise function or something different. I've tried to build it but I couldn't, any help, please?










share|cite|improve this question









$endgroup$

















    3












    $begingroup$


    I am looking for a continuous function with support compact, which its derivates are zero at zero, it means $f'(0)=0$,$f''(0)=0$..., I have seen this question All derivatives zero at a point $implies$ constant function?. So, I know that one answers is a flat function but the difference is that I want a function such that $f(0)neq0$
    Maybe, that function is piecewise function or something different. I've tried to build it but I couldn't, any help, please?










    share|cite|improve this question









    $endgroup$















      3












      3








      3





      $begingroup$


      I am looking for a continuous function with support compact, which its derivates are zero at zero, it means $f'(0)=0$,$f''(0)=0$..., I have seen this question All derivatives zero at a point $implies$ constant function?. So, I know that one answers is a flat function but the difference is that I want a function such that $f(0)neq0$
      Maybe, that function is piecewise function or something different. I've tried to build it but I couldn't, any help, please?










      share|cite|improve this question









      $endgroup$




      I am looking for a continuous function with support compact, which its derivates are zero at zero, it means $f'(0)=0$,$f''(0)=0$..., I have seen this question All derivatives zero at a point $implies$ constant function?. So, I know that one answers is a flat function but the difference is that I want a function such that $f(0)neq0$
      Maybe, that function is piecewise function or something different. I've tried to build it but I couldn't, any help, please?







      real-analysis derivatives continuity






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Jan 14 at 23:20









      David LlerenaDavid Llerena

      254




      254






















          2 Answers
          2






          active

          oldest

          votes


















          4












          $begingroup$

          Let $f_0(x)=0$ if $x leq 0$, $f_0(x)=e^{-1/x}$ if $x >0$. It is pretty standard to note that $f_0$ is smooth.



          Consider now $f_1(x)=frac{f_0(1-x)}{f_0(1-x)+f_0(x)}$, $f$ is smooth, is $1$ when $x leq 0$, and $0$ when $x geq 1$.



          Finally take $f(x)=f_1(x-1)f_1(-1-x)$. $f$ is smooth, $f(x)$ is zero as long as $x-1 geq 1$ or $-1-x geq 1$ (ie as soon as $|x| geq 2$) and is one whenever $|x| leq 1$, so $f^{(k)}(0) = 0$ if $k >0$, and $f(0)=1$.






          share|cite|improve this answer









          $endgroup$





















            2












            $begingroup$

            A piecewise function could certainly work. For instance consider the function $f: mathbb R longrightarrow mathbb R$ defined by
            $$f(x):=begin{cases}1&text{ if }x in [-1,1] , \2-x&text{ if } x in (1,2], \ 2+x &text{ if } x in [-2,-1), \ 0 &text{ if } x in (-infty,-2) cup (2, infty).end{cases}$$






            share|cite|improve this answer









            $endgroup$









            • 1




              $begingroup$
              your function is not differentiable everywhere.
              $endgroup$
              – ersh
              Jan 15 at 0:15










            • $begingroup$
              I am aware but I didn't consider this an issue because the question asker didn't ask for a function that is differentiable everywhere (just continuous). If this seems like an issue, then see Mindlack's more fancy example (I am lazy).
              $endgroup$
              – Matt A Pelto
              Jan 15 at 0:31














            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%2f3073884%2fa-non-zero-continuous-function-with-compact-support-and-its-derivatives-are-zero%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









            4












            $begingroup$

            Let $f_0(x)=0$ if $x leq 0$, $f_0(x)=e^{-1/x}$ if $x >0$. It is pretty standard to note that $f_0$ is smooth.



            Consider now $f_1(x)=frac{f_0(1-x)}{f_0(1-x)+f_0(x)}$, $f$ is smooth, is $1$ when $x leq 0$, and $0$ when $x geq 1$.



            Finally take $f(x)=f_1(x-1)f_1(-1-x)$. $f$ is smooth, $f(x)$ is zero as long as $x-1 geq 1$ or $-1-x geq 1$ (ie as soon as $|x| geq 2$) and is one whenever $|x| leq 1$, so $f^{(k)}(0) = 0$ if $k >0$, and $f(0)=1$.






            share|cite|improve this answer









            $endgroup$


















              4












              $begingroup$

              Let $f_0(x)=0$ if $x leq 0$, $f_0(x)=e^{-1/x}$ if $x >0$. It is pretty standard to note that $f_0$ is smooth.



              Consider now $f_1(x)=frac{f_0(1-x)}{f_0(1-x)+f_0(x)}$, $f$ is smooth, is $1$ when $x leq 0$, and $0$ when $x geq 1$.



              Finally take $f(x)=f_1(x-1)f_1(-1-x)$. $f$ is smooth, $f(x)$ is zero as long as $x-1 geq 1$ or $-1-x geq 1$ (ie as soon as $|x| geq 2$) and is one whenever $|x| leq 1$, so $f^{(k)}(0) = 0$ if $k >0$, and $f(0)=1$.






              share|cite|improve this answer









              $endgroup$
















                4












                4








                4





                $begingroup$

                Let $f_0(x)=0$ if $x leq 0$, $f_0(x)=e^{-1/x}$ if $x >0$. It is pretty standard to note that $f_0$ is smooth.



                Consider now $f_1(x)=frac{f_0(1-x)}{f_0(1-x)+f_0(x)}$, $f$ is smooth, is $1$ when $x leq 0$, and $0$ when $x geq 1$.



                Finally take $f(x)=f_1(x-1)f_1(-1-x)$. $f$ is smooth, $f(x)$ is zero as long as $x-1 geq 1$ or $-1-x geq 1$ (ie as soon as $|x| geq 2$) and is one whenever $|x| leq 1$, so $f^{(k)}(0) = 0$ if $k >0$, and $f(0)=1$.






                share|cite|improve this answer









                $endgroup$



                Let $f_0(x)=0$ if $x leq 0$, $f_0(x)=e^{-1/x}$ if $x >0$. It is pretty standard to note that $f_0$ is smooth.



                Consider now $f_1(x)=frac{f_0(1-x)}{f_0(1-x)+f_0(x)}$, $f$ is smooth, is $1$ when $x leq 0$, and $0$ when $x geq 1$.



                Finally take $f(x)=f_1(x-1)f_1(-1-x)$. $f$ is smooth, $f(x)$ is zero as long as $x-1 geq 1$ or $-1-x geq 1$ (ie as soon as $|x| geq 2$) and is one whenever $|x| leq 1$, so $f^{(k)}(0) = 0$ if $k >0$, and $f(0)=1$.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Jan 14 at 23:42









                MindlackMindlack

                4,910211




                4,910211























                    2












                    $begingroup$

                    A piecewise function could certainly work. For instance consider the function $f: mathbb R longrightarrow mathbb R$ defined by
                    $$f(x):=begin{cases}1&text{ if }x in [-1,1] , \2-x&text{ if } x in (1,2], \ 2+x &text{ if } x in [-2,-1), \ 0 &text{ if } x in (-infty,-2) cup (2, infty).end{cases}$$






                    share|cite|improve this answer









                    $endgroup$









                    • 1




                      $begingroup$
                      your function is not differentiable everywhere.
                      $endgroup$
                      – ersh
                      Jan 15 at 0:15










                    • $begingroup$
                      I am aware but I didn't consider this an issue because the question asker didn't ask for a function that is differentiable everywhere (just continuous). If this seems like an issue, then see Mindlack's more fancy example (I am lazy).
                      $endgroup$
                      – Matt A Pelto
                      Jan 15 at 0:31


















                    2












                    $begingroup$

                    A piecewise function could certainly work. For instance consider the function $f: mathbb R longrightarrow mathbb R$ defined by
                    $$f(x):=begin{cases}1&text{ if }x in [-1,1] , \2-x&text{ if } x in (1,2], \ 2+x &text{ if } x in [-2,-1), \ 0 &text{ if } x in (-infty,-2) cup (2, infty).end{cases}$$






                    share|cite|improve this answer









                    $endgroup$









                    • 1




                      $begingroup$
                      your function is not differentiable everywhere.
                      $endgroup$
                      – ersh
                      Jan 15 at 0:15










                    • $begingroup$
                      I am aware but I didn't consider this an issue because the question asker didn't ask for a function that is differentiable everywhere (just continuous). If this seems like an issue, then see Mindlack's more fancy example (I am lazy).
                      $endgroup$
                      – Matt A Pelto
                      Jan 15 at 0:31
















                    2












                    2








                    2





                    $begingroup$

                    A piecewise function could certainly work. For instance consider the function $f: mathbb R longrightarrow mathbb R$ defined by
                    $$f(x):=begin{cases}1&text{ if }x in [-1,1] , \2-x&text{ if } x in (1,2], \ 2+x &text{ if } x in [-2,-1), \ 0 &text{ if } x in (-infty,-2) cup (2, infty).end{cases}$$






                    share|cite|improve this answer









                    $endgroup$



                    A piecewise function could certainly work. For instance consider the function $f: mathbb R longrightarrow mathbb R$ defined by
                    $$f(x):=begin{cases}1&text{ if }x in [-1,1] , \2-x&text{ if } x in (1,2], \ 2+x &text{ if } x in [-2,-1), \ 0 &text{ if } x in (-infty,-2) cup (2, infty).end{cases}$$







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered Jan 14 at 23:37









                    Matt A PeltoMatt A Pelto

                    2,707621




                    2,707621








                    • 1




                      $begingroup$
                      your function is not differentiable everywhere.
                      $endgroup$
                      – ersh
                      Jan 15 at 0:15










                    • $begingroup$
                      I am aware but I didn't consider this an issue because the question asker didn't ask for a function that is differentiable everywhere (just continuous). If this seems like an issue, then see Mindlack's more fancy example (I am lazy).
                      $endgroup$
                      – Matt A Pelto
                      Jan 15 at 0:31
















                    • 1




                      $begingroup$
                      your function is not differentiable everywhere.
                      $endgroup$
                      – ersh
                      Jan 15 at 0:15










                    • $begingroup$
                      I am aware but I didn't consider this an issue because the question asker didn't ask for a function that is differentiable everywhere (just continuous). If this seems like an issue, then see Mindlack's more fancy example (I am lazy).
                      $endgroup$
                      – Matt A Pelto
                      Jan 15 at 0:31










                    1




                    1




                    $begingroup$
                    your function is not differentiable everywhere.
                    $endgroup$
                    – ersh
                    Jan 15 at 0:15




                    $begingroup$
                    your function is not differentiable everywhere.
                    $endgroup$
                    – ersh
                    Jan 15 at 0:15












                    $begingroup$
                    I am aware but I didn't consider this an issue because the question asker didn't ask for a function that is differentiable everywhere (just continuous). If this seems like an issue, then see Mindlack's more fancy example (I am lazy).
                    $endgroup$
                    – Matt A Pelto
                    Jan 15 at 0:31






                    $begingroup$
                    I am aware but I didn't consider this an issue because the question asker didn't ask for a function that is differentiable everywhere (just continuous). If this seems like an issue, then see Mindlack's more fancy example (I am lazy).
                    $endgroup$
                    – Matt A Pelto
                    Jan 15 at 0:31




















                    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%2f3073884%2fa-non-zero-continuous-function-with-compact-support-and-its-derivatives-are-zero%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

                    Bressuire

                    Cabo Verde

                    Gyllenstierna