Finding Bounds in proof of Stirling's Formula












2












$begingroup$


In a proof of Stirling's Formula, my professor claims that



$frac 12 $($ln$k + $ln$(k+1)) $le$ $int_k^{k+1}$$ln$x $dx$ $le$ $frac 12$($ln$k + $ln$(k+1)) + $frac 1{k^2}$.



I can see that the first inequality is true by concavity of the natural log function (hence the area of the trapezoid beneath natural log is less than the integral of the function itself), but can someone provide insight into the second inequality??



I know $frac 1{k^2}$ must be a bound for the area beneath $ln$x but above the trapezoid described by the leftmost expression, but it is not clear how to check that this is true.










share|cite|improve this question











$endgroup$

















    2












    $begingroup$


    In a proof of Stirling's Formula, my professor claims that



    $frac 12 $($ln$k + $ln$(k+1)) $le$ $int_k^{k+1}$$ln$x $dx$ $le$ $frac 12$($ln$k + $ln$(k+1)) + $frac 1{k^2}$.



    I can see that the first inequality is true by concavity of the natural log function (hence the area of the trapezoid beneath natural log is less than the integral of the function itself), but can someone provide insight into the second inequality??



    I know $frac 1{k^2}$ must be a bound for the area beneath $ln$x but above the trapezoid described by the leftmost expression, but it is not clear how to check that this is true.










    share|cite|improve this question











    $endgroup$















      2












      2








      2


      1



      $begingroup$


      In a proof of Stirling's Formula, my professor claims that



      $frac 12 $($ln$k + $ln$(k+1)) $le$ $int_k^{k+1}$$ln$x $dx$ $le$ $frac 12$($ln$k + $ln$(k+1)) + $frac 1{k^2}$.



      I can see that the first inequality is true by concavity of the natural log function (hence the area of the trapezoid beneath natural log is less than the integral of the function itself), but can someone provide insight into the second inequality??



      I know $frac 1{k^2}$ must be a bound for the area beneath $ln$x but above the trapezoid described by the leftmost expression, but it is not clear how to check that this is true.










      share|cite|improve this question











      $endgroup$




      In a proof of Stirling's Formula, my professor claims that



      $frac 12 $($ln$k + $ln$(k+1)) $le$ $int_k^{k+1}$$ln$x $dx$ $le$ $frac 12$($ln$k + $ln$(k+1)) + $frac 1{k^2}$.



      I can see that the first inequality is true by concavity of the natural log function (hence the area of the trapezoid beneath natural log is less than the integral of the function itself), but can someone provide insight into the second inequality??



      I know $frac 1{k^2}$ must be a bound for the area beneath $ln$x but above the trapezoid described by the leftmost expression, but it is not clear how to check that this is true.







      logarithms factorial






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Dec 11 '18 at 10:20









      Shaun

      9,083113683




      9,083113683










      asked Dec 11 '18 at 8:47









      Greg HudgensGreg Hudgens

      111




      111






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          My attempt:



          begin{align}
          int_{ln(k)}^{ln(k+1)} &= int_0^1 ln(k+x) dx = int_0^{1/2} ln(k+x) + int_{1/2}^{1} ln(k+1 - x) dx \
          &= int_0^{1/2} ln(k) + frac{x}{k} - frac{x^2}{2k^2} + o(frac{1}{k^2}) dx \
          &quad + int_{1/2}^1 ln(k+1) - frac{x}{k+1} - frac{x^2}{(k+1)^2} + o(frac{1}{(k+1)^2}) dx \
          &= frac{1}{2} (ln(k) + ln(k+1)) + frac{1}{8k} + frac{1}{8(k+1)} - frac{1}{2(k+1)} \
          &quad - frac{1}{48k^2} + frac{1}{48(k+1)^2} - frac{1}{6k^2} + o(frac{1}{k^2})
          end{align}



          Clearly the terms of order $1/k$ and $1/k^2$ have negative sums, hence the bound is actually quite brutal, but probably sufficient for what your professor wants to do.






          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%2f3035076%2ffinding-bounds-in-proof-of-stirlings-formula%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0












            $begingroup$

            My attempt:



            begin{align}
            int_{ln(k)}^{ln(k+1)} &= int_0^1 ln(k+x) dx = int_0^{1/2} ln(k+x) + int_{1/2}^{1} ln(k+1 - x) dx \
            &= int_0^{1/2} ln(k) + frac{x}{k} - frac{x^2}{2k^2} + o(frac{1}{k^2}) dx \
            &quad + int_{1/2}^1 ln(k+1) - frac{x}{k+1} - frac{x^2}{(k+1)^2} + o(frac{1}{(k+1)^2}) dx \
            &= frac{1}{2} (ln(k) + ln(k+1)) + frac{1}{8k} + frac{1}{8(k+1)} - frac{1}{2(k+1)} \
            &quad - frac{1}{48k^2} + frac{1}{48(k+1)^2} - frac{1}{6k^2} + o(frac{1}{k^2})
            end{align}



            Clearly the terms of order $1/k$ and $1/k^2$ have negative sums, hence the bound is actually quite brutal, but probably sufficient for what your professor wants to do.






            share|cite|improve this answer











            $endgroup$


















              0












              $begingroup$

              My attempt:



              begin{align}
              int_{ln(k)}^{ln(k+1)} &= int_0^1 ln(k+x) dx = int_0^{1/2} ln(k+x) + int_{1/2}^{1} ln(k+1 - x) dx \
              &= int_0^{1/2} ln(k) + frac{x}{k} - frac{x^2}{2k^2} + o(frac{1}{k^2}) dx \
              &quad + int_{1/2}^1 ln(k+1) - frac{x}{k+1} - frac{x^2}{(k+1)^2} + o(frac{1}{(k+1)^2}) dx \
              &= frac{1}{2} (ln(k) + ln(k+1)) + frac{1}{8k} + frac{1}{8(k+1)} - frac{1}{2(k+1)} \
              &quad - frac{1}{48k^2} + frac{1}{48(k+1)^2} - frac{1}{6k^2} + o(frac{1}{k^2})
              end{align}



              Clearly the terms of order $1/k$ and $1/k^2$ have negative sums, hence the bound is actually quite brutal, but probably sufficient for what your professor wants to do.






              share|cite|improve this answer











              $endgroup$
















                0












                0








                0





                $begingroup$

                My attempt:



                begin{align}
                int_{ln(k)}^{ln(k+1)} &= int_0^1 ln(k+x) dx = int_0^{1/2} ln(k+x) + int_{1/2}^{1} ln(k+1 - x) dx \
                &= int_0^{1/2} ln(k) + frac{x}{k} - frac{x^2}{2k^2} + o(frac{1}{k^2}) dx \
                &quad + int_{1/2}^1 ln(k+1) - frac{x}{k+1} - frac{x^2}{(k+1)^2} + o(frac{1}{(k+1)^2}) dx \
                &= frac{1}{2} (ln(k) + ln(k+1)) + frac{1}{8k} + frac{1}{8(k+1)} - frac{1}{2(k+1)} \
                &quad - frac{1}{48k^2} + frac{1}{48(k+1)^2} - frac{1}{6k^2} + o(frac{1}{k^2})
                end{align}



                Clearly the terms of order $1/k$ and $1/k^2$ have negative sums, hence the bound is actually quite brutal, but probably sufficient for what your professor wants to do.






                share|cite|improve this answer











                $endgroup$



                My attempt:



                begin{align}
                int_{ln(k)}^{ln(k+1)} &= int_0^1 ln(k+x) dx = int_0^{1/2} ln(k+x) + int_{1/2}^{1} ln(k+1 - x) dx \
                &= int_0^{1/2} ln(k) + frac{x}{k} - frac{x^2}{2k^2} + o(frac{1}{k^2}) dx \
                &quad + int_{1/2}^1 ln(k+1) - frac{x}{k+1} - frac{x^2}{(k+1)^2} + o(frac{1}{(k+1)^2}) dx \
                &= frac{1}{2} (ln(k) + ln(k+1)) + frac{1}{8k} + frac{1}{8(k+1)} - frac{1}{2(k+1)} \
                &quad - frac{1}{48k^2} + frac{1}{48(k+1)^2} - frac{1}{6k^2} + o(frac{1}{k^2})
                end{align}



                Clearly the terms of order $1/k$ and $1/k^2$ have negative sums, hence the bound is actually quite brutal, but probably sufficient for what your professor wants to do.







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited Dec 11 '18 at 12:38

























                answered Dec 11 '18 at 10:34









                Gâteau-GalloisGâteau-Gallois

                362112




                362112






























                    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%2f3035076%2ffinding-bounds-in-proof-of-stirlings-formula%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

                    Aardman Animations

                    Are they similar matrix

                    “minimization” problem in Euclidean space related to orthonormal basis