For every continuous function $g$ does there exists a sequence of functions $f_n$ which converges to $g$?

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











up vote
1
down vote

favorite
1












Let,
$C(Bbb R)$$=f:Bbb R to Bbb R$.
Let, $displaystyle g(x)=e^-x^2$ for all $xin Bbb R$.
Then prove that there exists a sequence $f_n$ in $C(Bbb R)$ such that $f_n to g$ uniformly.



Here, $g$ is continuous, so by Weierstress approximation theorem we can say that there always exists a sequence of polynomials $p_n(x)$ in $K$ which converges uniformly to $g$ in $K$. But in that case how can I define $f_n(x)$ in such a way that $f_n in C(Bbb R)$ ?







share|cite|improve this question























    up vote
    1
    down vote

    favorite
    1












    Let,
    $C(Bbb R)$$=f:Bbb R to Bbb R$.
    Let, $displaystyle g(x)=e^-x^2$ for all $xin Bbb R$.
    Then prove that there exists a sequence $f_n$ in $C(Bbb R)$ such that $f_n to g$ uniformly.



    Here, $g$ is continuous, so by Weierstress approximation theorem we can say that there always exists a sequence of polynomials $p_n(x)$ in $K$ which converges uniformly to $g$ in $K$. But in that case how can I define $f_n(x)$ in such a way that $f_n in C(Bbb R)$ ?







    share|cite|improve this question





















      up vote
      1
      down vote

      favorite
      1









      up vote
      1
      down vote

      favorite
      1






      1





      Let,
      $C(Bbb R)$$=f:Bbb R to Bbb R$.
      Let, $displaystyle g(x)=e^-x^2$ for all $xin Bbb R$.
      Then prove that there exists a sequence $f_n$ in $C(Bbb R)$ such that $f_n to g$ uniformly.



      Here, $g$ is continuous, so by Weierstress approximation theorem we can say that there always exists a sequence of polynomials $p_n(x)$ in $K$ which converges uniformly to $g$ in $K$. But in that case how can I define $f_n(x)$ in such a way that $f_n in C(Bbb R)$ ?







      share|cite|improve this question











      Let,
      $C(Bbb R)$$=f:Bbb R to Bbb R$.
      Let, $displaystyle g(x)=e^-x^2$ for all $xin Bbb R$.
      Then prove that there exists a sequence $f_n$ in $C(Bbb R)$ such that $f_n to g$ uniformly.



      Here, $g$ is continuous, so by Weierstress approximation theorem we can say that there always exists a sequence of polynomials $p_n(x)$ in $K$ which converges uniformly to $g$ in $K$. But in that case how can I define $f_n(x)$ in such a way that $f_n in C(Bbb R)$ ?









      share|cite|improve this question










      share|cite|improve this question




      share|cite|improve this question









      asked Aug 3 at 3:45









      Empty

      7,73742154




      7,73742154




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          Let $f_n(x) = begincases g(x), & |x| le n \
          g(n)(n+1-x), & n<|x| le n+1 \ 0, & textotherwise
          endcases$ (I am using the fact that $g$ is even, but it is clear how this would work for any $g$ that satisfies $g(x) to 0$ as $|x| toinfty$.



          Then $|g-f_n|_infty le sup_ g(x) = g(n)$, hence the convergence is uniform since $lim_n to infty g(x) = 0$.






          share|cite|improve this answer




























            up vote
            0
            down vote













            Since $g$ tends to $0$ as $xrightarrowinfty$ you can just take $f_n = gphi_n$
            where $phi_n$ is a smooth (for your questions continuous is sufficient) cutoff function such



            $phi_n(x)=1$ on $[-n,n]$, $phi_n(x)=0$ on $[-n-1,n+1]$, and $0le phi_n(x) le 1$ elsewhere.






            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%2f2870712%2ffor-every-continuous-function-g-does-there-exists-a-sequence-of-functions-f%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
              0
              down vote













              Let $f_n(x) = begincases g(x), & |x| le n \
              g(n)(n+1-x), & n<|x| le n+1 \ 0, & textotherwise
              endcases$ (I am using the fact that $g$ is even, but it is clear how this would work for any $g$ that satisfies $g(x) to 0$ as $|x| toinfty$.



              Then $|g-f_n|_infty le sup_ g(x) = g(n)$, hence the convergence is uniform since $lim_n to infty g(x) = 0$.






              share|cite|improve this answer

























                up vote
                0
                down vote













                Let $f_n(x) = begincases g(x), & |x| le n \
                g(n)(n+1-x), & n<|x| le n+1 \ 0, & textotherwise
                endcases$ (I am using the fact that $g$ is even, but it is clear how this would work for any $g$ that satisfies $g(x) to 0$ as $|x| toinfty$.



                Then $|g-f_n|_infty le sup_ g(x) = g(n)$, hence the convergence is uniform since $lim_n to infty g(x) = 0$.






                share|cite|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Let $f_n(x) = begincases g(x), & |x| le n \
                  g(n)(n+1-x), & n<|x| le n+1 \ 0, & textotherwise
                  endcases$ (I am using the fact that $g$ is even, but it is clear how this would work for any $g$ that satisfies $g(x) to 0$ as $|x| toinfty$.



                  Then $|g-f_n|_infty le sup_ g(x) = g(n)$, hence the convergence is uniform since $lim_n to infty g(x) = 0$.






                  share|cite|improve this answer













                  Let $f_n(x) = begincases g(x), & |x| le n \
                  g(n)(n+1-x), & n<|x| le n+1 \ 0, & textotherwise
                  endcases$ (I am using the fact that $g$ is even, but it is clear how this would work for any $g$ that satisfies $g(x) to 0$ as $|x| toinfty$.



                  Then $|g-f_n|_infty le sup_ g(x) = g(n)$, hence the convergence is uniform since $lim_n to infty g(x) = 0$.







                  share|cite|improve this answer













                  share|cite|improve this answer



                  share|cite|improve this answer











                  answered Aug 3 at 4:23









                  copper.hat

                  122k556155




                  122k556155




















                      up vote
                      0
                      down vote













                      Since $g$ tends to $0$ as $xrightarrowinfty$ you can just take $f_n = gphi_n$
                      where $phi_n$ is a smooth (for your questions continuous is sufficient) cutoff function such



                      $phi_n(x)=1$ on $[-n,n]$, $phi_n(x)=0$ on $[-n-1,n+1]$, and $0le phi_n(x) le 1$ elsewhere.






                      share|cite|improve this answer

























                        up vote
                        0
                        down vote













                        Since $g$ tends to $0$ as $xrightarrowinfty$ you can just take $f_n = gphi_n$
                        where $phi_n$ is a smooth (for your questions continuous is sufficient) cutoff function such



                        $phi_n(x)=1$ on $[-n,n]$, $phi_n(x)=0$ on $[-n-1,n+1]$, and $0le phi_n(x) le 1$ elsewhere.






                        share|cite|improve this answer























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          Since $g$ tends to $0$ as $xrightarrowinfty$ you can just take $f_n = gphi_n$
                          where $phi_n$ is a smooth (for your questions continuous is sufficient) cutoff function such



                          $phi_n(x)=1$ on $[-n,n]$, $phi_n(x)=0$ on $[-n-1,n+1]$, and $0le phi_n(x) le 1$ elsewhere.






                          share|cite|improve this answer













                          Since $g$ tends to $0$ as $xrightarrowinfty$ you can just take $f_n = gphi_n$
                          where $phi_n$ is a smooth (for your questions continuous is sufficient) cutoff function such



                          $phi_n(x)=1$ on $[-n,n]$, $phi_n(x)=0$ on $[-n-1,n+1]$, and $0le phi_n(x) le 1$ elsewhere.







                          share|cite|improve this answer













                          share|cite|improve this answer



                          share|cite|improve this answer











                          answered Aug 3 at 4:23









                          Thomas

                          15.7k21429




                          15.7k21429






















                               

                              draft saved


                              draft discarded


























                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2870712%2ffor-every-continuous-function-g-does-there-exists-a-sequence-of-functions-f%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?