why $ln(n!)=nln(n)-n+frac12ln(2pi n)+o(1)$?

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











up vote
0
down vote

favorite












I know that $$n!sim_infty left(fracneright)^nsqrt2pi n,$$
and thus $$ln(n!)sim_infty lnleftleft(fracneright)^nsqrt2pi nright.tag*$$



But why does it implies
$$ln(n!)=nln(n)-n+frac12ln(2pi n)+o(1) ?$$



For me $(*)$ gives us $$ln(n!)=nln(n)-n+frac12ln(2pi n)+oleft(lnleftleft(fracneright)^nsqrt2pi nrightright),$$
and since $$lim_nto infty lnleftleft(fracneright)^nsqrt2pi nrightneq 0,$$
why do we have this $o(1)$ at the end ?







share|cite|improve this question



















  • Forget $(*)$
    – Lord Shark the Unknown
    Jul 22 at 12:00










  • @LordSharktheUnknown: what do you mean ?
    – Peter
    Jul 22 at 12:01














up vote
0
down vote

favorite












I know that $$n!sim_infty left(fracneright)^nsqrt2pi n,$$
and thus $$ln(n!)sim_infty lnleftleft(fracneright)^nsqrt2pi nright.tag*$$



But why does it implies
$$ln(n!)=nln(n)-n+frac12ln(2pi n)+o(1) ?$$



For me $(*)$ gives us $$ln(n!)=nln(n)-n+frac12ln(2pi n)+oleft(lnleftleft(fracneright)^nsqrt2pi nrightright),$$
and since $$lim_nto infty lnleftleft(fracneright)^nsqrt2pi nrightneq 0,$$
why do we have this $o(1)$ at the end ?







share|cite|improve this question



















  • Forget $(*)$
    – Lord Shark the Unknown
    Jul 22 at 12:00










  • @LordSharktheUnknown: what do you mean ?
    – Peter
    Jul 22 at 12:01












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I know that $$n!sim_infty left(fracneright)^nsqrt2pi n,$$
and thus $$ln(n!)sim_infty lnleftleft(fracneright)^nsqrt2pi nright.tag*$$



But why does it implies
$$ln(n!)=nln(n)-n+frac12ln(2pi n)+o(1) ?$$



For me $(*)$ gives us $$ln(n!)=nln(n)-n+frac12ln(2pi n)+oleft(lnleftleft(fracneright)^nsqrt2pi nrightright),$$
and since $$lim_nto infty lnleftleft(fracneright)^nsqrt2pi nrightneq 0,$$
why do we have this $o(1)$ at the end ?







share|cite|improve this question











I know that $$n!sim_infty left(fracneright)^nsqrt2pi n,$$
and thus $$ln(n!)sim_infty lnleftleft(fracneright)^nsqrt2pi nright.tag*$$



But why does it implies
$$ln(n!)=nln(n)-n+frac12ln(2pi n)+o(1) ?$$



For me $(*)$ gives us $$ln(n!)=nln(n)-n+frac12ln(2pi n)+oleft(lnleftleft(fracneright)^nsqrt2pi nrightright),$$
and since $$lim_nto infty lnleftleft(fracneright)^nsqrt2pi nrightneq 0,$$
why do we have this $o(1)$ at the end ?









share|cite|improve this question










share|cite|improve this question




share|cite|improve this question









asked Jul 22 at 11:56









Peter

348112




348112











  • Forget $(*)$
    – Lord Shark the Unknown
    Jul 22 at 12:00










  • @LordSharktheUnknown: what do you mean ?
    – Peter
    Jul 22 at 12:01
















  • Forget $(*)$
    – Lord Shark the Unknown
    Jul 22 at 12:00










  • @LordSharktheUnknown: what do you mean ?
    – Peter
    Jul 22 at 12:01















Forget $(*)$
– Lord Shark the Unknown
Jul 22 at 12:00




Forget $(*)$
– Lord Shark the Unknown
Jul 22 at 12:00












@LordSharktheUnknown: what do you mean ?
– Peter
Jul 22 at 12:01




@LordSharktheUnknown: what do you mean ?
– Peter
Jul 22 at 12:01










3 Answers
3






active

oldest

votes

















up vote
3
down vote



accepted










Your calculus is incorrect. The asymptotic equality $f(n)sim g(n)$ is equivalent to $f(n)= g(n)cdot (1+o(1))$.
Taking logarithm yields the equivalent condition $log f(n) = log g(n) + log (1+o(1))$. To finish the proof, note that $log (1+o(1))= o(1)$. So to sum up: $log f(n) = log g(n) + o(1)$.






share|cite|improve this answer





















  • Nice answer +1 :)
    – Peter
    Jul 22 at 12:09

















up vote
0
down vote













Taking the logarithm on both sides of $n!sim_infty left(fracneright)^nsqrt2pi n$ and keeping the $sim_infty$ is an awful waste of information.



$sim_infty$ means that the ratio between the expressions on either side goes to $1$ as $ntoinfty$. That means that the difference between the logarithm of the two terms goes to $0$, which is much stronger (at least since the terms both go to $infty$). That's exactly $o(1)$.






share|cite|improve this answer




























    up vote
    0
    down vote













    The original asymptote is stronger than you think it is; $sim$ means the expressions on either side have a ratio of the form $1+o(1)$. In fact, one can prove $n!$ is exactly the usual approximation for it multiplied by a Taylor series in $1/n$; the result is called the Stirling series.






    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%2f2859329%2fwhy-lnn-n-lnn-n-frac12-ln2-pi-no1%23new-answer', 'question_page');

      );

      Post as a guest






























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote



      accepted










      Your calculus is incorrect. The asymptotic equality $f(n)sim g(n)$ is equivalent to $f(n)= g(n)cdot (1+o(1))$.
      Taking logarithm yields the equivalent condition $log f(n) = log g(n) + log (1+o(1))$. To finish the proof, note that $log (1+o(1))= o(1)$. So to sum up: $log f(n) = log g(n) + o(1)$.






      share|cite|improve this answer





















      • Nice answer +1 :)
        – Peter
        Jul 22 at 12:09














      up vote
      3
      down vote



      accepted










      Your calculus is incorrect. The asymptotic equality $f(n)sim g(n)$ is equivalent to $f(n)= g(n)cdot (1+o(1))$.
      Taking logarithm yields the equivalent condition $log f(n) = log g(n) + log (1+o(1))$. To finish the proof, note that $log (1+o(1))= o(1)$. So to sum up: $log f(n) = log g(n) + o(1)$.






      share|cite|improve this answer





















      • Nice answer +1 :)
        – Peter
        Jul 22 at 12:09












      up vote
      3
      down vote



      accepted







      up vote
      3
      down vote



      accepted






      Your calculus is incorrect. The asymptotic equality $f(n)sim g(n)$ is equivalent to $f(n)= g(n)cdot (1+o(1))$.
      Taking logarithm yields the equivalent condition $log f(n) = log g(n) + log (1+o(1))$. To finish the proof, note that $log (1+o(1))= o(1)$. So to sum up: $log f(n) = log g(n) + o(1)$.






      share|cite|improve this answer













      Your calculus is incorrect. The asymptotic equality $f(n)sim g(n)$ is equivalent to $f(n)= g(n)cdot (1+o(1))$.
      Taking logarithm yields the equivalent condition $log f(n) = log g(n) + log (1+o(1))$. To finish the proof, note that $log (1+o(1))= o(1)$. So to sum up: $log f(n) = log g(n) + o(1)$.







      share|cite|improve this answer













      share|cite|improve this answer



      share|cite|improve this answer











      answered Jul 22 at 12:04









      A. Pongrácz

      2,159221




      2,159221











      • Nice answer +1 :)
        – Peter
        Jul 22 at 12:09
















      • Nice answer +1 :)
        – Peter
        Jul 22 at 12:09















      Nice answer +1 :)
      – Peter
      Jul 22 at 12:09




      Nice answer +1 :)
      – Peter
      Jul 22 at 12:09










      up vote
      0
      down vote













      Taking the logarithm on both sides of $n!sim_infty left(fracneright)^nsqrt2pi n$ and keeping the $sim_infty$ is an awful waste of information.



      $sim_infty$ means that the ratio between the expressions on either side goes to $1$ as $ntoinfty$. That means that the difference between the logarithm of the two terms goes to $0$, which is much stronger (at least since the terms both go to $infty$). That's exactly $o(1)$.






      share|cite|improve this answer

























        up vote
        0
        down vote













        Taking the logarithm on both sides of $n!sim_infty left(fracneright)^nsqrt2pi n$ and keeping the $sim_infty$ is an awful waste of information.



        $sim_infty$ means that the ratio between the expressions on either side goes to $1$ as $ntoinfty$. That means that the difference between the logarithm of the two terms goes to $0$, which is much stronger (at least since the terms both go to $infty$). That's exactly $o(1)$.






        share|cite|improve this answer























          up vote
          0
          down vote










          up vote
          0
          down vote









          Taking the logarithm on both sides of $n!sim_infty left(fracneright)^nsqrt2pi n$ and keeping the $sim_infty$ is an awful waste of information.



          $sim_infty$ means that the ratio between the expressions on either side goes to $1$ as $ntoinfty$. That means that the difference between the logarithm of the two terms goes to $0$, which is much stronger (at least since the terms both go to $infty$). That's exactly $o(1)$.






          share|cite|improve this answer













          Taking the logarithm on both sides of $n!sim_infty left(fracneright)^nsqrt2pi n$ and keeping the $sim_infty$ is an awful waste of information.



          $sim_infty$ means that the ratio between the expressions on either side goes to $1$ as $ntoinfty$. That means that the difference between the logarithm of the two terms goes to $0$, which is much stronger (at least since the terms both go to $infty$). That's exactly $o(1)$.







          share|cite|improve this answer













          share|cite|improve this answer



          share|cite|improve this answer











          answered Jul 22 at 12:06









          Arthur

          98.5k793174




          98.5k793174




















              up vote
              0
              down vote













              The original asymptote is stronger than you think it is; $sim$ means the expressions on either side have a ratio of the form $1+o(1)$. In fact, one can prove $n!$ is exactly the usual approximation for it multiplied by a Taylor series in $1/n$; the result is called the Stirling series.






              share|cite|improve this answer

























                up vote
                0
                down vote













                The original asymptote is stronger than you think it is; $sim$ means the expressions on either side have a ratio of the form $1+o(1)$. In fact, one can prove $n!$ is exactly the usual approximation for it multiplied by a Taylor series in $1/n$; the result is called the Stirling series.






                share|cite|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  The original asymptote is stronger than you think it is; $sim$ means the expressions on either side have a ratio of the form $1+o(1)$. In fact, one can prove $n!$ is exactly the usual approximation for it multiplied by a Taylor series in $1/n$; the result is called the Stirling series.






                  share|cite|improve this answer













                  The original asymptote is stronger than you think it is; $sim$ means the expressions on either side have a ratio of the form $1+o(1)$. In fact, one can prove $n!$ is exactly the usual approximation for it multiplied by a Taylor series in $1/n$; the result is called the Stirling series.







                  share|cite|improve this answer













                  share|cite|improve this answer



                  share|cite|improve this answer











                  answered Jul 22 at 12:06









                  J.G.

                  13.2k11424




                  13.2k11424






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2859329%2fwhy-lnn-n-lnn-n-frac12-ln2-pi-no1%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?