Is there a function $g$ such that $int_0^1 x^n g(x) , mathrm d x$ is $1$ if $n=0$ and $0$ for $n in mathbb...











up vote
2
down vote

favorite
3












Is there a function $g:[0,1]to mathbb R$ such that $$int_0^1 x^n g(x) , mathrm d x$$ is equal to $1$ if $n=0$ and equal to $0$ for $n=1,2,3, ldots$ ?



If there is, what would be an example of such a function? What if we require that $g$ be continuous?



I know I am expected to state what I have tried but I am honestly stuck. I wanted to integrate by parts but given that $g$ is not differentiable, this is rather useless, I think. Hints would be appreciated too.










share|cite|improve this question




























    up vote
    2
    down vote

    favorite
    3












    Is there a function $g:[0,1]to mathbb R$ such that $$int_0^1 x^n g(x) , mathrm d x$$ is equal to $1$ if $n=0$ and equal to $0$ for $n=1,2,3, ldots$ ?



    If there is, what would be an example of such a function? What if we require that $g$ be continuous?



    I know I am expected to state what I have tried but I am honestly stuck. I wanted to integrate by parts but given that $g$ is not differentiable, this is rather useless, I think. Hints would be appreciated too.










    share|cite|improve this question


























      up vote
      2
      down vote

      favorite
      3









      up vote
      2
      down vote

      favorite
      3






      3





      Is there a function $g:[0,1]to mathbb R$ such that $$int_0^1 x^n g(x) , mathrm d x$$ is equal to $1$ if $n=0$ and equal to $0$ for $n=1,2,3, ldots$ ?



      If there is, what would be an example of such a function? What if we require that $g$ be continuous?



      I know I am expected to state what I have tried but I am honestly stuck. I wanted to integrate by parts but given that $g$ is not differentiable, this is rather useless, I think. Hints would be appreciated too.










      share|cite|improve this question















      Is there a function $g:[0,1]to mathbb R$ such that $$int_0^1 x^n g(x) , mathrm d x$$ is equal to $1$ if $n=0$ and equal to $0$ for $n=1,2,3, ldots$ ?



      If there is, what would be an example of such a function? What if we require that $g$ be continuous?



      I know I am expected to state what I have tried but I am honestly stuck. I wanted to integrate by parts but given that $g$ is not differentiable, this is rather useless, I think. Hints would be appreciated too.







      real-analysis integration






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Nov 18 at 4:36

























      asked Nov 18 at 4:13









      Devilo

      10217




      10217






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          Let $g$ be a Lebesgue-integrable function on $[0, 1]$. Assume that there exists $N geq 0$ such that



          $$ forall n geq N : int_{0}^{1} x^n g(x) , dx = 0. $$



          Then we prove the following claim.




          Claim. $g$ vanishes almost everywhere. Consequently, $int_{0}^{1} x^n g(x) , dx = 0$ for all $n geq 0$.




          Proof. For each $varphi$ in the set $C([0, 1])$ of all continuous functions on $[0, 1]$, Stone-Weierstrass theorem allows to find a sequence $p_n$ of polynomials such that $p_n(x) to varphi(x)$ uniformly on $[0, 1]$. This implies



          $$ forall varphi in C([0, 1]) : int_{0}^{1} x^N varphi(x) g(x) , dx = 0. $$



          Now for any $0 < a < b < 1$, we may choose $0 leq varphi_n(x) uparrow x^{-N} mathbf{1}_{[a, b]}(x)$, thus by the dominated convergence theorem, we have



          $$ forall 0 < a < b < 1 : int_{a}^{b} g(x) , dx = 0. $$



          This is enough to show that $g equiv 0$ a.e. on $[0, 1]$ as required.






          share|cite|improve this answer




























            up vote
            1
            down vote













            There is no continuous function with this property: $int p(x) (xg(x)), dx =0$ for all polynomials $p$ so Weierstrass theorem tells you that $int (xg(x))^{2}, dx =0$ from which you get $g equiv 0$ . So the integral is $0$ for $n=0$ also. Actually, continuity is not required. Using the fact that $xg(x)$ can be approximated in $L^{1}$ norm by continuous functions (hence by polynomials) you can show, by a similar argument, that $xg(x)=0$ almost everywhere which forces the integral to be $0$ for $n=0$. Hence there is no such function as long as the integrals in he question exist for all $n geq 1$.






            share|cite|improve this answer






























              up vote
              0
              down vote













              Assuming $gin L^2(0,1)$ we are allowed to write
              $$ g(x) stackrel{L^2}{=} sum_{ngeq 0} c_n P_n(2x-1),qquad c_n=(2n+1)int_{0}^{1}g(x)P_n(2x-1),dx.$$
              Our constraints give $c_0=1$ and
              $$ c_n = (2n+1)int_{0}^{1}g(x)left[(-1)^n+x q_n(x)right],dx = (-1)^n (2n+1) $$
              so, formally,
              $$ g(x) stackrel{L^2}{=}sum_{ngeq 0}(-1)^n (2n+1) P_n(2x-1) $$
              but the RHS of the last line is not a square-integrable function over $(0,1)$:
              $$ int_{0}^{1}left[sum_{ngeq 0}(-1)^n (2n+1) P_n(2x-1)right]^2,dx = sum_{ngeq 0}frac{1}{2n+1}=+infty $$
              so there are no solutions in $L^2(0,1)$. A fortiori, no continuous solutions.






              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: 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%2f3003123%2fis-there-a-function-g-such-that-int-01-xn-gx-mathrm-d-x-is-1-if%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








                up vote
                4
                down vote



                accepted










                Let $g$ be a Lebesgue-integrable function on $[0, 1]$. Assume that there exists $N geq 0$ such that



                $$ forall n geq N : int_{0}^{1} x^n g(x) , dx = 0. $$



                Then we prove the following claim.




                Claim. $g$ vanishes almost everywhere. Consequently, $int_{0}^{1} x^n g(x) , dx = 0$ for all $n geq 0$.




                Proof. For each $varphi$ in the set $C([0, 1])$ of all continuous functions on $[0, 1]$, Stone-Weierstrass theorem allows to find a sequence $p_n$ of polynomials such that $p_n(x) to varphi(x)$ uniformly on $[0, 1]$. This implies



                $$ forall varphi in C([0, 1]) : int_{0}^{1} x^N varphi(x) g(x) , dx = 0. $$



                Now for any $0 < a < b < 1$, we may choose $0 leq varphi_n(x) uparrow x^{-N} mathbf{1}_{[a, b]}(x)$, thus by the dominated convergence theorem, we have



                $$ forall 0 < a < b < 1 : int_{a}^{b} g(x) , dx = 0. $$



                This is enough to show that $g equiv 0$ a.e. on $[0, 1]$ as required.






                share|cite|improve this answer

























                  up vote
                  4
                  down vote



                  accepted










                  Let $g$ be a Lebesgue-integrable function on $[0, 1]$. Assume that there exists $N geq 0$ such that



                  $$ forall n geq N : int_{0}^{1} x^n g(x) , dx = 0. $$



                  Then we prove the following claim.




                  Claim. $g$ vanishes almost everywhere. Consequently, $int_{0}^{1} x^n g(x) , dx = 0$ for all $n geq 0$.




                  Proof. For each $varphi$ in the set $C([0, 1])$ of all continuous functions on $[0, 1]$, Stone-Weierstrass theorem allows to find a sequence $p_n$ of polynomials such that $p_n(x) to varphi(x)$ uniformly on $[0, 1]$. This implies



                  $$ forall varphi in C([0, 1]) : int_{0}^{1} x^N varphi(x) g(x) , dx = 0. $$



                  Now for any $0 < a < b < 1$, we may choose $0 leq varphi_n(x) uparrow x^{-N} mathbf{1}_{[a, b]}(x)$, thus by the dominated convergence theorem, we have



                  $$ forall 0 < a < b < 1 : int_{a}^{b} g(x) , dx = 0. $$



                  This is enough to show that $g equiv 0$ a.e. on $[0, 1]$ as required.






                  share|cite|improve this answer























                    up vote
                    4
                    down vote



                    accepted







                    up vote
                    4
                    down vote



                    accepted






                    Let $g$ be a Lebesgue-integrable function on $[0, 1]$. Assume that there exists $N geq 0$ such that



                    $$ forall n geq N : int_{0}^{1} x^n g(x) , dx = 0. $$



                    Then we prove the following claim.




                    Claim. $g$ vanishes almost everywhere. Consequently, $int_{0}^{1} x^n g(x) , dx = 0$ for all $n geq 0$.




                    Proof. For each $varphi$ in the set $C([0, 1])$ of all continuous functions on $[0, 1]$, Stone-Weierstrass theorem allows to find a sequence $p_n$ of polynomials such that $p_n(x) to varphi(x)$ uniformly on $[0, 1]$. This implies



                    $$ forall varphi in C([0, 1]) : int_{0}^{1} x^N varphi(x) g(x) , dx = 0. $$



                    Now for any $0 < a < b < 1$, we may choose $0 leq varphi_n(x) uparrow x^{-N} mathbf{1}_{[a, b]}(x)$, thus by the dominated convergence theorem, we have



                    $$ forall 0 < a < b < 1 : int_{a}^{b} g(x) , dx = 0. $$



                    This is enough to show that $g equiv 0$ a.e. on $[0, 1]$ as required.






                    share|cite|improve this answer












                    Let $g$ be a Lebesgue-integrable function on $[0, 1]$. Assume that there exists $N geq 0$ such that



                    $$ forall n geq N : int_{0}^{1} x^n g(x) , dx = 0. $$



                    Then we prove the following claim.




                    Claim. $g$ vanishes almost everywhere. Consequently, $int_{0}^{1} x^n g(x) , dx = 0$ for all $n geq 0$.




                    Proof. For each $varphi$ in the set $C([0, 1])$ of all continuous functions on $[0, 1]$, Stone-Weierstrass theorem allows to find a sequence $p_n$ of polynomials such that $p_n(x) to varphi(x)$ uniformly on $[0, 1]$. This implies



                    $$ forall varphi in C([0, 1]) : int_{0}^{1} x^N varphi(x) g(x) , dx = 0. $$



                    Now for any $0 < a < b < 1$, we may choose $0 leq varphi_n(x) uparrow x^{-N} mathbf{1}_{[a, b]}(x)$, thus by the dominated convergence theorem, we have



                    $$ forall 0 < a < b < 1 : int_{a}^{b} g(x) , dx = 0. $$



                    This is enough to show that $g equiv 0$ a.e. on $[0, 1]$ as required.







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered Nov 18 at 5:35









                    Sangchul Lee

                    90.7k12163263




                    90.7k12163263






















                        up vote
                        1
                        down vote













                        There is no continuous function with this property: $int p(x) (xg(x)), dx =0$ for all polynomials $p$ so Weierstrass theorem tells you that $int (xg(x))^{2}, dx =0$ from which you get $g equiv 0$ . So the integral is $0$ for $n=0$ also. Actually, continuity is not required. Using the fact that $xg(x)$ can be approximated in $L^{1}$ norm by continuous functions (hence by polynomials) you can show, by a similar argument, that $xg(x)=0$ almost everywhere which forces the integral to be $0$ for $n=0$. Hence there is no such function as long as the integrals in he question exist for all $n geq 1$.






                        share|cite|improve this answer



























                          up vote
                          1
                          down vote













                          There is no continuous function with this property: $int p(x) (xg(x)), dx =0$ for all polynomials $p$ so Weierstrass theorem tells you that $int (xg(x))^{2}, dx =0$ from which you get $g equiv 0$ . So the integral is $0$ for $n=0$ also. Actually, continuity is not required. Using the fact that $xg(x)$ can be approximated in $L^{1}$ norm by continuous functions (hence by polynomials) you can show, by a similar argument, that $xg(x)=0$ almost everywhere which forces the integral to be $0$ for $n=0$. Hence there is no such function as long as the integrals in he question exist for all $n geq 1$.






                          share|cite|improve this answer

























                            up vote
                            1
                            down vote










                            up vote
                            1
                            down vote









                            There is no continuous function with this property: $int p(x) (xg(x)), dx =0$ for all polynomials $p$ so Weierstrass theorem tells you that $int (xg(x))^{2}, dx =0$ from which you get $g equiv 0$ . So the integral is $0$ for $n=0$ also. Actually, continuity is not required. Using the fact that $xg(x)$ can be approximated in $L^{1}$ norm by continuous functions (hence by polynomials) you can show, by a similar argument, that $xg(x)=0$ almost everywhere which forces the integral to be $0$ for $n=0$. Hence there is no such function as long as the integrals in he question exist for all $n geq 1$.






                            share|cite|improve this answer














                            There is no continuous function with this property: $int p(x) (xg(x)), dx =0$ for all polynomials $p$ so Weierstrass theorem tells you that $int (xg(x))^{2}, dx =0$ from which you get $g equiv 0$ . So the integral is $0$ for $n=0$ also. Actually, continuity is not required. Using the fact that $xg(x)$ can be approximated in $L^{1}$ norm by continuous functions (hence by polynomials) you can show, by a similar argument, that $xg(x)=0$ almost everywhere which forces the integral to be $0$ for $n=0$. Hence there is no such function as long as the integrals in he question exist for all $n geq 1$.







                            share|cite|improve this answer














                            share|cite|improve this answer



                            share|cite|improve this answer








                            edited Nov 18 at 6:02

























                            answered Nov 18 at 5:33









                            Kavi Rama Murthy

                            43.6k31751




                            43.6k31751






















                                up vote
                                0
                                down vote













                                Assuming $gin L^2(0,1)$ we are allowed to write
                                $$ g(x) stackrel{L^2}{=} sum_{ngeq 0} c_n P_n(2x-1),qquad c_n=(2n+1)int_{0}^{1}g(x)P_n(2x-1),dx.$$
                                Our constraints give $c_0=1$ and
                                $$ c_n = (2n+1)int_{0}^{1}g(x)left[(-1)^n+x q_n(x)right],dx = (-1)^n (2n+1) $$
                                so, formally,
                                $$ g(x) stackrel{L^2}{=}sum_{ngeq 0}(-1)^n (2n+1) P_n(2x-1) $$
                                but the RHS of the last line is not a square-integrable function over $(0,1)$:
                                $$ int_{0}^{1}left[sum_{ngeq 0}(-1)^n (2n+1) P_n(2x-1)right]^2,dx = sum_{ngeq 0}frac{1}{2n+1}=+infty $$
                                so there are no solutions in $L^2(0,1)$. A fortiori, no continuous solutions.






                                share|cite|improve this answer

























                                  up vote
                                  0
                                  down vote













                                  Assuming $gin L^2(0,1)$ we are allowed to write
                                  $$ g(x) stackrel{L^2}{=} sum_{ngeq 0} c_n P_n(2x-1),qquad c_n=(2n+1)int_{0}^{1}g(x)P_n(2x-1),dx.$$
                                  Our constraints give $c_0=1$ and
                                  $$ c_n = (2n+1)int_{0}^{1}g(x)left[(-1)^n+x q_n(x)right],dx = (-1)^n (2n+1) $$
                                  so, formally,
                                  $$ g(x) stackrel{L^2}{=}sum_{ngeq 0}(-1)^n (2n+1) P_n(2x-1) $$
                                  but the RHS of the last line is not a square-integrable function over $(0,1)$:
                                  $$ int_{0}^{1}left[sum_{ngeq 0}(-1)^n (2n+1) P_n(2x-1)right]^2,dx = sum_{ngeq 0}frac{1}{2n+1}=+infty $$
                                  so there are no solutions in $L^2(0,1)$. A fortiori, no continuous solutions.






                                  share|cite|improve this answer























                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    Assuming $gin L^2(0,1)$ we are allowed to write
                                    $$ g(x) stackrel{L^2}{=} sum_{ngeq 0} c_n P_n(2x-1),qquad c_n=(2n+1)int_{0}^{1}g(x)P_n(2x-1),dx.$$
                                    Our constraints give $c_0=1$ and
                                    $$ c_n = (2n+1)int_{0}^{1}g(x)left[(-1)^n+x q_n(x)right],dx = (-1)^n (2n+1) $$
                                    so, formally,
                                    $$ g(x) stackrel{L^2}{=}sum_{ngeq 0}(-1)^n (2n+1) P_n(2x-1) $$
                                    but the RHS of the last line is not a square-integrable function over $(0,1)$:
                                    $$ int_{0}^{1}left[sum_{ngeq 0}(-1)^n (2n+1) P_n(2x-1)right]^2,dx = sum_{ngeq 0}frac{1}{2n+1}=+infty $$
                                    so there are no solutions in $L^2(0,1)$. A fortiori, no continuous solutions.






                                    share|cite|improve this answer












                                    Assuming $gin L^2(0,1)$ we are allowed to write
                                    $$ g(x) stackrel{L^2}{=} sum_{ngeq 0} c_n P_n(2x-1),qquad c_n=(2n+1)int_{0}^{1}g(x)P_n(2x-1),dx.$$
                                    Our constraints give $c_0=1$ and
                                    $$ c_n = (2n+1)int_{0}^{1}g(x)left[(-1)^n+x q_n(x)right],dx = (-1)^n (2n+1) $$
                                    so, formally,
                                    $$ g(x) stackrel{L^2}{=}sum_{ngeq 0}(-1)^n (2n+1) P_n(2x-1) $$
                                    but the RHS of the last line is not a square-integrable function over $(0,1)$:
                                    $$ int_{0}^{1}left[sum_{ngeq 0}(-1)^n (2n+1) P_n(2x-1)right]^2,dx = sum_{ngeq 0}frac{1}{2n+1}=+infty $$
                                    so there are no solutions in $L^2(0,1)$. A fortiori, no continuous solutions.







                                    share|cite|improve this answer












                                    share|cite|improve this answer



                                    share|cite|improve this answer










                                    answered Nov 18 at 16:46









                                    Jack D'Aurizio

                                    283k33275653




                                    283k33275653






























                                        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.





                                        Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                        Please pay close attention to the following guidance:


                                        • 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.


                                        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%2f3003123%2fis-there-a-function-g-such-that-int-01-xn-gx-mathrm-d-x-is-1-if%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

                                        AnyDesk - Fatal Program Failure

                                        How to calibrate 16:9 built-in touch-screen to a 4:3 resolution?

                                        QoS: MAC-Priority for clients behind a repeater