Computing $intlimits_0^infty x left lfloorfrac1xright rfloor , dx$

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











up vote
5
down vote

favorite
6












This is an integral I computed but can't find the result online or on wolfram. So here's a proof sketch, please indulge this sanity check:



$$int_0^infty x left lfloorfrac1xright rfloor dx = int_0^1 x left lfloorfrac1xright rfloor dx$$
$$= sum_n=1^infty int_1/(n+1)^1/n nx dx =sum_n=1^inftyfrac n2 left(frac1n^2 - frac1(n+1)^2right) $$
$$=
sum_n=1^inftyfrac n2 left(frac2n+1n^2(n+1)^2right)$$
$$= sum_n=1^inftyfrac1(n+1)^2 + frac12 sum_n=1^infty frac1n(n+1)^2$$
$$= fracpi^26 -1 + frac12left(sum_n=1^infty frac1n - frac1n+1 - frac1(n+1)^2right)$$
$$=fracpi^26 -1 + frac12left(sum_n=1^infty frac1n - frac1n+1right) -frac12left(sum_n=1^inftyfrac1(n+1)^2right)$$
$$= left(fracpi^26 -1right) + left(frac12cdot 1right) - frac12left(fracpi^26 -1right)$$
$$= fracpi^212.$$



Basically, I used the Basel sum several times, and the fifth line follows from a partial sum decomposition. The seventh follows from the known result for the Basel sum, as well as the fact that the first series in the 6th line telescopes.



I hope this is all correct.










share|cite|improve this question























  • @XanderHenderson For $x>1$, floor of $frac1x$ is $0$
    – Y. Forman
    Dec 28 '17 at 3:34











  • @XanderHenderson What you wrote is certainly not true, because you forgot the $x$ term. However, what Y. Forman says is correct, and I should've been more explicit there.
    – David Bowman
    Dec 28 '17 at 3:37






  • 1




    Oi... derp. Sorry for being dyslexic. I missed the $x$.
    – Xander Henderson
    Dec 28 '17 at 3:39






  • 15




    $$int_0^1 x lfloor 1/x rfloor dx = int_1^infty frac1t lfloor t rfloor fracdtt^2= sum_n=1^infty int_n^infty t^-3dt = sum_n=1^infty fracn^-22 = fraczeta(2)2$$
    – reuns
    Dec 28 '17 at 3:43







  • 1




    @reuns Nice, better post it as answer!
    – samjoe
    Dec 28 '17 at 4:40














up vote
5
down vote

favorite
6












This is an integral I computed but can't find the result online or on wolfram. So here's a proof sketch, please indulge this sanity check:



$$int_0^infty x left lfloorfrac1xright rfloor dx = int_0^1 x left lfloorfrac1xright rfloor dx$$
$$= sum_n=1^infty int_1/(n+1)^1/n nx dx =sum_n=1^inftyfrac n2 left(frac1n^2 - frac1(n+1)^2right) $$
$$=
sum_n=1^inftyfrac n2 left(frac2n+1n^2(n+1)^2right)$$
$$= sum_n=1^inftyfrac1(n+1)^2 + frac12 sum_n=1^infty frac1n(n+1)^2$$
$$= fracpi^26 -1 + frac12left(sum_n=1^infty frac1n - frac1n+1 - frac1(n+1)^2right)$$
$$=fracpi^26 -1 + frac12left(sum_n=1^infty frac1n - frac1n+1right) -frac12left(sum_n=1^inftyfrac1(n+1)^2right)$$
$$= left(fracpi^26 -1right) + left(frac12cdot 1right) - frac12left(fracpi^26 -1right)$$
$$= fracpi^212.$$



Basically, I used the Basel sum several times, and the fifth line follows from a partial sum decomposition. The seventh follows from the known result for the Basel sum, as well as the fact that the first series in the 6th line telescopes.



I hope this is all correct.










share|cite|improve this question























  • @XanderHenderson For $x>1$, floor of $frac1x$ is $0$
    – Y. Forman
    Dec 28 '17 at 3:34











  • @XanderHenderson What you wrote is certainly not true, because you forgot the $x$ term. However, what Y. Forman says is correct, and I should've been more explicit there.
    – David Bowman
    Dec 28 '17 at 3:37






  • 1




    Oi... derp. Sorry for being dyslexic. I missed the $x$.
    – Xander Henderson
    Dec 28 '17 at 3:39






  • 15




    $$int_0^1 x lfloor 1/x rfloor dx = int_1^infty frac1t lfloor t rfloor fracdtt^2= sum_n=1^infty int_n^infty t^-3dt = sum_n=1^infty fracn^-22 = fraczeta(2)2$$
    – reuns
    Dec 28 '17 at 3:43







  • 1




    @reuns Nice, better post it as answer!
    – samjoe
    Dec 28 '17 at 4:40












up vote
5
down vote

favorite
6









up vote
5
down vote

favorite
6






6





This is an integral I computed but can't find the result online or on wolfram. So here's a proof sketch, please indulge this sanity check:



$$int_0^infty x left lfloorfrac1xright rfloor dx = int_0^1 x left lfloorfrac1xright rfloor dx$$
$$= sum_n=1^infty int_1/(n+1)^1/n nx dx =sum_n=1^inftyfrac n2 left(frac1n^2 - frac1(n+1)^2right) $$
$$=
sum_n=1^inftyfrac n2 left(frac2n+1n^2(n+1)^2right)$$
$$= sum_n=1^inftyfrac1(n+1)^2 + frac12 sum_n=1^infty frac1n(n+1)^2$$
$$= fracpi^26 -1 + frac12left(sum_n=1^infty frac1n - frac1n+1 - frac1(n+1)^2right)$$
$$=fracpi^26 -1 + frac12left(sum_n=1^infty frac1n - frac1n+1right) -frac12left(sum_n=1^inftyfrac1(n+1)^2right)$$
$$= left(fracpi^26 -1right) + left(frac12cdot 1right) - frac12left(fracpi^26 -1right)$$
$$= fracpi^212.$$



Basically, I used the Basel sum several times, and the fifth line follows from a partial sum decomposition. The seventh follows from the known result for the Basel sum, as well as the fact that the first series in the 6th line telescopes.



I hope this is all correct.










share|cite|improve this question















This is an integral I computed but can't find the result online or on wolfram. So here's a proof sketch, please indulge this sanity check:



$$int_0^infty x left lfloorfrac1xright rfloor dx = int_0^1 x left lfloorfrac1xright rfloor dx$$
$$= sum_n=1^infty int_1/(n+1)^1/n nx dx =sum_n=1^inftyfrac n2 left(frac1n^2 - frac1(n+1)^2right) $$
$$=
sum_n=1^inftyfrac n2 left(frac2n+1n^2(n+1)^2right)$$
$$= sum_n=1^inftyfrac1(n+1)^2 + frac12 sum_n=1^infty frac1n(n+1)^2$$
$$= fracpi^26 -1 + frac12left(sum_n=1^infty frac1n - frac1n+1 - frac1(n+1)^2right)$$
$$=fracpi^26 -1 + frac12left(sum_n=1^infty frac1n - frac1n+1right) -frac12left(sum_n=1^inftyfrac1(n+1)^2right)$$
$$= left(fracpi^26 -1right) + left(frac12cdot 1right) - frac12left(fracpi^26 -1right)$$
$$= fracpi^212.$$



Basically, I used the Basel sum several times, and the fifth line follows from a partial sum decomposition. The seventh follows from the known result for the Basel sum, as well as the fact that the first series in the 6th line telescopes.



I hope this is all correct.







calculus real-analysis integration analysis proof-verification






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 28 '17 at 6:01









David G. Stork

8,15821232




8,15821232










asked Dec 28 '17 at 3:30









David Bowman

4,2021924




4,2021924











  • @XanderHenderson For $x>1$, floor of $frac1x$ is $0$
    – Y. Forman
    Dec 28 '17 at 3:34











  • @XanderHenderson What you wrote is certainly not true, because you forgot the $x$ term. However, what Y. Forman says is correct, and I should've been more explicit there.
    – David Bowman
    Dec 28 '17 at 3:37






  • 1




    Oi... derp. Sorry for being dyslexic. I missed the $x$.
    – Xander Henderson
    Dec 28 '17 at 3:39






  • 15




    $$int_0^1 x lfloor 1/x rfloor dx = int_1^infty frac1t lfloor t rfloor fracdtt^2= sum_n=1^infty int_n^infty t^-3dt = sum_n=1^infty fracn^-22 = fraczeta(2)2$$
    – reuns
    Dec 28 '17 at 3:43







  • 1




    @reuns Nice, better post it as answer!
    – samjoe
    Dec 28 '17 at 4:40
















  • @XanderHenderson For $x>1$, floor of $frac1x$ is $0$
    – Y. Forman
    Dec 28 '17 at 3:34











  • @XanderHenderson What you wrote is certainly not true, because you forgot the $x$ term. However, what Y. Forman says is correct, and I should've been more explicit there.
    – David Bowman
    Dec 28 '17 at 3:37






  • 1




    Oi... derp. Sorry for being dyslexic. I missed the $x$.
    – Xander Henderson
    Dec 28 '17 at 3:39






  • 15




    $$int_0^1 x lfloor 1/x rfloor dx = int_1^infty frac1t lfloor t rfloor fracdtt^2= sum_n=1^infty int_n^infty t^-3dt = sum_n=1^infty fracn^-22 = fraczeta(2)2$$
    – reuns
    Dec 28 '17 at 3:43







  • 1




    @reuns Nice, better post it as answer!
    – samjoe
    Dec 28 '17 at 4:40















@XanderHenderson For $x>1$, floor of $frac1x$ is $0$
– Y. Forman
Dec 28 '17 at 3:34





@XanderHenderson For $x>1$, floor of $frac1x$ is $0$
– Y. Forman
Dec 28 '17 at 3:34













@XanderHenderson What you wrote is certainly not true, because you forgot the $x$ term. However, what Y. Forman says is correct, and I should've been more explicit there.
– David Bowman
Dec 28 '17 at 3:37




@XanderHenderson What you wrote is certainly not true, because you forgot the $x$ term. However, what Y. Forman says is correct, and I should've been more explicit there.
– David Bowman
Dec 28 '17 at 3:37




1




1




Oi... derp. Sorry for being dyslexic. I missed the $x$.
– Xander Henderson
Dec 28 '17 at 3:39




Oi... derp. Sorry for being dyslexic. I missed the $x$.
– Xander Henderson
Dec 28 '17 at 3:39




15




15




$$int_0^1 x lfloor 1/x rfloor dx = int_1^infty frac1t lfloor t rfloor fracdtt^2= sum_n=1^infty int_n^infty t^-3dt = sum_n=1^infty fracn^-22 = fraczeta(2)2$$
– reuns
Dec 28 '17 at 3:43





$$int_0^1 x lfloor 1/x rfloor dx = int_1^infty frac1t lfloor t rfloor fracdtt^2= sum_n=1^infty int_n^infty t^-3dt = sum_n=1^infty fracn^-22 = fraczeta(2)2$$
– reuns
Dec 28 '17 at 3:43





1




1




@reuns Nice, better post it as answer!
– samjoe
Dec 28 '17 at 4:40




@reuns Nice, better post it as answer!
– samjoe
Dec 28 '17 at 4:40










2 Answers
2






active

oldest

votes

















up vote
1
down vote



accepted










Use



$$nleft(frac1n^2-frac1(n+1)^2right)=frac nn^2-fracn+1-1(n+1)^2=frac1n-frac1n+1+frac1(n+1)^2.$$



The first two terms do telescope and the Basel series remains.






share|cite|improve this answer




















  • @stressedout: of course, but much simpler. And also simpler than yours, which is also essentially the OP's.
    – Yves Daoust
    Sep 5 at 6:28











  • @stressedout: your solution isn't different, just longer. A one-liner is simpler.
    – Yves Daoust
    Sep 5 at 6:38


















up vote
0
down vote













Alternatively, one may follow the same line of thought and use summation by parts formula to calculate the infinite sum. Similarly,
$$int_0^+infty xlfloor frac1xrfloor dx =sum_n=1^inftyfracn2left(frac1n^2-frac1(n+1)^2right)=-frac12sum_n=1^inftyf_n(g_n+1-g_n)$$



where $f_n = n$ and $g_n = 1/n^2$. Now, summation by parts for the last expression gives:



$$-frac12sum_n=1^inftyf_n(g_n+1-g_n) = -frac12left( lim_ntoinftyfracn(n+1)^2 -1 -sum_n=2^inftyfrac1n^2right)$$



But it is well-known that
$$sum_n=1^inftyfrac1n^2=fracpi^26$$



Hence,



$$-frac12sum_n=1^inftyf_n(g_n+1-g_n) = -frac12left( lim_ntoinftyfracn(n+1)^2 -1 - (fracpi^26-1)right) = fracpi^212$$






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%2f2582606%2fcomputing-int-limits-0-infty-x-left-lfloor-frac1x-right-rfloor-dx%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
    1
    down vote



    accepted










    Use



    $$nleft(frac1n^2-frac1(n+1)^2right)=frac nn^2-fracn+1-1(n+1)^2=frac1n-frac1n+1+frac1(n+1)^2.$$



    The first two terms do telescope and the Basel series remains.






    share|cite|improve this answer




















    • @stressedout: of course, but much simpler. And also simpler than yours, which is also essentially the OP's.
      – Yves Daoust
      Sep 5 at 6:28











    • @stressedout: your solution isn't different, just longer. A one-liner is simpler.
      – Yves Daoust
      Sep 5 at 6:38















    up vote
    1
    down vote



    accepted










    Use



    $$nleft(frac1n^2-frac1(n+1)^2right)=frac nn^2-fracn+1-1(n+1)^2=frac1n-frac1n+1+frac1(n+1)^2.$$



    The first two terms do telescope and the Basel series remains.






    share|cite|improve this answer




















    • @stressedout: of course, but much simpler. And also simpler than yours, which is also essentially the OP's.
      – Yves Daoust
      Sep 5 at 6:28











    • @stressedout: your solution isn't different, just longer. A one-liner is simpler.
      – Yves Daoust
      Sep 5 at 6:38













    up vote
    1
    down vote



    accepted







    up vote
    1
    down vote



    accepted






    Use



    $$nleft(frac1n^2-frac1(n+1)^2right)=frac nn^2-fracn+1-1(n+1)^2=frac1n-frac1n+1+frac1(n+1)^2.$$



    The first two terms do telescope and the Basel series remains.






    share|cite|improve this answer












    Use



    $$nleft(frac1n^2-frac1(n+1)^2right)=frac nn^2-fracn+1-1(n+1)^2=frac1n-frac1n+1+frac1(n+1)^2.$$



    The first two terms do telescope and the Basel series remains.







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Sep 5 at 6:11









    Yves Daoust

    115k666209




    115k666209











    • @stressedout: of course, but much simpler. And also simpler than yours, which is also essentially the OP's.
      – Yves Daoust
      Sep 5 at 6:28











    • @stressedout: your solution isn't different, just longer. A one-liner is simpler.
      – Yves Daoust
      Sep 5 at 6:38

















    • @stressedout: of course, but much simpler. And also simpler than yours, which is also essentially the OP's.
      – Yves Daoust
      Sep 5 at 6:28











    • @stressedout: your solution isn't different, just longer. A one-liner is simpler.
      – Yves Daoust
      Sep 5 at 6:38
















    @stressedout: of course, but much simpler. And also simpler than yours, which is also essentially the OP's.
    – Yves Daoust
    Sep 5 at 6:28





    @stressedout: of course, but much simpler. And also simpler than yours, which is also essentially the OP's.
    – Yves Daoust
    Sep 5 at 6:28













    @stressedout: your solution isn't different, just longer. A one-liner is simpler.
    – Yves Daoust
    Sep 5 at 6:38





    @stressedout: your solution isn't different, just longer. A one-liner is simpler.
    – Yves Daoust
    Sep 5 at 6:38











    up vote
    0
    down vote













    Alternatively, one may follow the same line of thought and use summation by parts formula to calculate the infinite sum. Similarly,
    $$int_0^+infty xlfloor frac1xrfloor dx =sum_n=1^inftyfracn2left(frac1n^2-frac1(n+1)^2right)=-frac12sum_n=1^inftyf_n(g_n+1-g_n)$$



    where $f_n = n$ and $g_n = 1/n^2$. Now, summation by parts for the last expression gives:



    $$-frac12sum_n=1^inftyf_n(g_n+1-g_n) = -frac12left( lim_ntoinftyfracn(n+1)^2 -1 -sum_n=2^inftyfrac1n^2right)$$



    But it is well-known that
    $$sum_n=1^inftyfrac1n^2=fracpi^26$$



    Hence,



    $$-frac12sum_n=1^inftyf_n(g_n+1-g_n) = -frac12left( lim_ntoinftyfracn(n+1)^2 -1 - (fracpi^26-1)right) = fracpi^212$$






    share|cite|improve this answer


























      up vote
      0
      down vote













      Alternatively, one may follow the same line of thought and use summation by parts formula to calculate the infinite sum. Similarly,
      $$int_0^+infty xlfloor frac1xrfloor dx =sum_n=1^inftyfracn2left(frac1n^2-frac1(n+1)^2right)=-frac12sum_n=1^inftyf_n(g_n+1-g_n)$$



      where $f_n = n$ and $g_n = 1/n^2$. Now, summation by parts for the last expression gives:



      $$-frac12sum_n=1^inftyf_n(g_n+1-g_n) = -frac12left( lim_ntoinftyfracn(n+1)^2 -1 -sum_n=2^inftyfrac1n^2right)$$



      But it is well-known that
      $$sum_n=1^inftyfrac1n^2=fracpi^26$$



      Hence,



      $$-frac12sum_n=1^inftyf_n(g_n+1-g_n) = -frac12left( lim_ntoinftyfracn(n+1)^2 -1 - (fracpi^26-1)right) = fracpi^212$$






      share|cite|improve this answer
























        up vote
        0
        down vote










        up vote
        0
        down vote









        Alternatively, one may follow the same line of thought and use summation by parts formula to calculate the infinite sum. Similarly,
        $$int_0^+infty xlfloor frac1xrfloor dx =sum_n=1^inftyfracn2left(frac1n^2-frac1(n+1)^2right)=-frac12sum_n=1^inftyf_n(g_n+1-g_n)$$



        where $f_n = n$ and $g_n = 1/n^2$. Now, summation by parts for the last expression gives:



        $$-frac12sum_n=1^inftyf_n(g_n+1-g_n) = -frac12left( lim_ntoinftyfracn(n+1)^2 -1 -sum_n=2^inftyfrac1n^2right)$$



        But it is well-known that
        $$sum_n=1^inftyfrac1n^2=fracpi^26$$



        Hence,



        $$-frac12sum_n=1^inftyf_n(g_n+1-g_n) = -frac12left( lim_ntoinftyfracn(n+1)^2 -1 - (fracpi^26-1)right) = fracpi^212$$






        share|cite|improve this answer














        Alternatively, one may follow the same line of thought and use summation by parts formula to calculate the infinite sum. Similarly,
        $$int_0^+infty xlfloor frac1xrfloor dx =sum_n=1^inftyfracn2left(frac1n^2-frac1(n+1)^2right)=-frac12sum_n=1^inftyf_n(g_n+1-g_n)$$



        where $f_n = n$ and $g_n = 1/n^2$. Now, summation by parts for the last expression gives:



        $$-frac12sum_n=1^inftyf_n(g_n+1-g_n) = -frac12left( lim_ntoinftyfracn(n+1)^2 -1 -sum_n=2^inftyfrac1n^2right)$$



        But it is well-known that
        $$sum_n=1^inftyfrac1n^2=fracpi^26$$



        Hence,



        $$-frac12sum_n=1^inftyf_n(g_n+1-g_n) = -frac12left( lim_ntoinftyfracn(n+1)^2 -1 - (fracpi^26-1)right) = fracpi^212$$







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Sep 5 at 6:05

























        answered Sep 5 at 5:57









        stressed out

        3,6301431




        3,6301431



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2582606%2fcomputing-int-limits-0-infty-x-left-lfloor-frac1x-right-rfloor-dx%23new-answer', 'question_page');

            );

            Post as a guest













































































            這個網誌中的熱門文章

            tkz-euclide: tkzDrawCircle[R] not working

            How to combine Bézier curves to a surface?

            1st Magritte Awards