solve $cos(x)cosh(x)-1=0$












0












$begingroup$


I'm trying to find the limit value of this for large values of $x$, in terms of a closed form formula. However when I try to plot this using different representations I get different curves.



For $cos(x)cosh(x)-1$:



pic1



For $cosh(x)-1/cos(x)$:



pic2



For $cos(x)-1/cosh(x)$:



pic3



The answer was that the $cos(x)-1/cosh(x) $ gives the correct picture, and that $x=(n+1/2)pi$ is the correct approximation. Why do I get these different graphs?










share|cite|improve this question











$endgroup$












  • $begingroup$
    Well, picture 2 is about a function that has many asymptotes, I wouldn't use it.
    $endgroup$
    – egreg
    Dec 6 '18 at 16:33
















0












$begingroup$


I'm trying to find the limit value of this for large values of $x$, in terms of a closed form formula. However when I try to plot this using different representations I get different curves.



For $cos(x)cosh(x)-1$:



pic1



For $cosh(x)-1/cos(x)$:



pic2



For $cos(x)-1/cosh(x)$:



pic3



The answer was that the $cos(x)-1/cosh(x) $ gives the correct picture, and that $x=(n+1/2)pi$ is the correct approximation. Why do I get these different graphs?










share|cite|improve this question











$endgroup$












  • $begingroup$
    Well, picture 2 is about a function that has many asymptotes, I wouldn't use it.
    $endgroup$
    – egreg
    Dec 6 '18 at 16:33














0












0








0





$begingroup$


I'm trying to find the limit value of this for large values of $x$, in terms of a closed form formula. However when I try to plot this using different representations I get different curves.



For $cos(x)cosh(x)-1$:



pic1



For $cosh(x)-1/cos(x)$:



pic2



For $cos(x)-1/cosh(x)$:



pic3



The answer was that the $cos(x)-1/cosh(x) $ gives the correct picture, and that $x=(n+1/2)pi$ is the correct approximation. Why do I get these different graphs?










share|cite|improve this question











$endgroup$




I'm trying to find the limit value of this for large values of $x$, in terms of a closed form formula. However when I try to plot this using different representations I get different curves.



For $cos(x)cosh(x)-1$:



pic1



For $cosh(x)-1/cos(x)$:



pic2



For $cos(x)-1/cosh(x)$:



pic3



The answer was that the $cos(x)-1/cosh(x) $ gives the correct picture, and that $x=(n+1/2)pi$ is the correct approximation. Why do I get these different graphs?







algebra-precalculus roots transcendental-equations






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 6 '18 at 16:32









egreg

181k1485203




181k1485203










asked Dec 6 '18 at 16:28









aldoaldo

61




61












  • $begingroup$
    Well, picture 2 is about a function that has many asymptotes, I wouldn't use it.
    $endgroup$
    – egreg
    Dec 6 '18 at 16:33


















  • $begingroup$
    Well, picture 2 is about a function that has many asymptotes, I wouldn't use it.
    $endgroup$
    – egreg
    Dec 6 '18 at 16:33
















$begingroup$
Well, picture 2 is about a function that has many asymptotes, I wouldn't use it.
$endgroup$
– egreg
Dec 6 '18 at 16:33




$begingroup$
Well, picture 2 is about a function that has many asymptotes, I wouldn't use it.
$endgroup$
– egreg
Dec 6 '18 at 16:33










3 Answers
3






active

oldest

votes


















0












$begingroup$

All functions are good, except that the second one creates problems for the drawing tool, because it has many asymptotes and they're in the proximity of the zeros.



As you see from the picture below, both graphs give the same zeros.



The curve $cos x-dfrac{1}{cosh x}$ is best, because the function is bounded.



enter image description here






share|cite|improve this answer









$endgroup$













  • $begingroup$
    Ah so although the curves are different, they all have the same roots. Now its just a matter of which representation is best. Thank you!
    $endgroup$
    – aldo
    Dec 6 '18 at 20:05



















0












$begingroup$

You may get numerical errors because cosh(x) grows very quickly.



Write the equation as



$cos(x)=frac{1}{cosh{x}}$,



When $x$ is large, the solutions are going to be approximately



$cos(x)=0$.



*** $cos(x)cosh(x)-1=0$ is the frequency equation of an Euler-Bernoulli beam under free-free or fixed-fixed boundary conditions.






share|cite|improve this answer









$endgroup$





















    0












    $begingroup$

    As you noticed and as said in answers, the solutions are closed to $(2n+1)frac pi 2$.



    As @egreg suggested, it is better to look for the zero of function
    $$f(x)=cos (x)-dfrac{1}{cosh (x)}$$



    Let us make one Newton iteration using $x_0=(2n+1)frac pi 2$; this will give as first iterate
    $$x_1=(2n+1)frac pi 2+frac{text{sech}left((2n+1)frac pi 2right)}{(-1)^{n+1}+tanh
    left((2n+1)frac pi 2right), text{sech}left((2n+1)frac pi 2right)}$$
    Now, let us look at
    $$d_n=|x_1-x_0|_n=left|frac{text{sech}left((2n+1)frac pi 2right)}{(-1)^{n+1}+tanh
    left((2n+1)frac pi 2right), text{sech}left((2n+1)frac pi 2right)} right|$$
    and better at $log_{10}(d_n)$. You will get these numbers
    $$left(
    begin{array}{cc}
    n & log_{10}(d_n) \
    1 & -1.75330 \
    2 & -3.10957 \
    3 & -4.47430 \
    4 & -5.83866 \
    5 & -7.20304 \
    6 & -8.56742 \
    7 & -9.93179 \
    8 & -11.2962 \
    9 & -12.6605 \
    10 & -14.0249
    end{array}
    right)$$
    Using a quick and dirty linear regression $log_{10}(d_n)=a+b n$
    $$begin{array}{clclclclc}
    text{} & text{Estimate} & text{Standard Error} & text{Confidence Interval} \
    a & -0.381456 & 0.000156 & {-0.381766,-0.3811462} \
    b & -1.364372 & 0.000003 & {-1.364377,-1.3643667} \
    end{array}$$
    We could even go further in the approximation since the term $tanh(.)text{sech}(.)$ is very small compared to $1$ and make
    $$d_n sim text{sech}left((2n+1)frac pi 2right)approx 2 e^{-(2n+1)frac{pi}{2} }$$ which would give $log_{10}(d_n)=-0.381158 -1.36438 ,n$ (quite close to the regression line) and then
    $$x_1 sim (2n+1)frac pi 2+ 2(-1)^{n+1}e^{-(2n+1)frac{pi}{2} }$$



    Let us try for $n=2$; this very last approxation will give $x_1=7.8532052$ while the "exact" solution would be $7.8532046$.






    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%2f3028716%2fsolve-cosx-coshx-1-0%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









      0












      $begingroup$

      All functions are good, except that the second one creates problems for the drawing tool, because it has many asymptotes and they're in the proximity of the zeros.



      As you see from the picture below, both graphs give the same zeros.



      The curve $cos x-dfrac{1}{cosh x}$ is best, because the function is bounded.



      enter image description here






      share|cite|improve this answer









      $endgroup$













      • $begingroup$
        Ah so although the curves are different, they all have the same roots. Now its just a matter of which representation is best. Thank you!
        $endgroup$
        – aldo
        Dec 6 '18 at 20:05
















      0












      $begingroup$

      All functions are good, except that the second one creates problems for the drawing tool, because it has many asymptotes and they're in the proximity of the zeros.



      As you see from the picture below, both graphs give the same zeros.



      The curve $cos x-dfrac{1}{cosh x}$ is best, because the function is bounded.



      enter image description here






      share|cite|improve this answer









      $endgroup$













      • $begingroup$
        Ah so although the curves are different, they all have the same roots. Now its just a matter of which representation is best. Thank you!
        $endgroup$
        – aldo
        Dec 6 '18 at 20:05














      0












      0








      0





      $begingroup$

      All functions are good, except that the second one creates problems for the drawing tool, because it has many asymptotes and they're in the proximity of the zeros.



      As you see from the picture below, both graphs give the same zeros.



      The curve $cos x-dfrac{1}{cosh x}$ is best, because the function is bounded.



      enter image description here






      share|cite|improve this answer









      $endgroup$



      All functions are good, except that the second one creates problems for the drawing tool, because it has many asymptotes and they're in the proximity of the zeros.



      As you see from the picture below, both graphs give the same zeros.



      The curve $cos x-dfrac{1}{cosh x}$ is best, because the function is bounded.



      enter image description here







      share|cite|improve this answer












      share|cite|improve this answer



      share|cite|improve this answer










      answered Dec 6 '18 at 16:39









      egregegreg

      181k1485203




      181k1485203












      • $begingroup$
        Ah so although the curves are different, they all have the same roots. Now its just a matter of which representation is best. Thank you!
        $endgroup$
        – aldo
        Dec 6 '18 at 20:05


















      • $begingroup$
        Ah so although the curves are different, they all have the same roots. Now its just a matter of which representation is best. Thank you!
        $endgroup$
        – aldo
        Dec 6 '18 at 20:05
















      $begingroup$
      Ah so although the curves are different, they all have the same roots. Now its just a matter of which representation is best. Thank you!
      $endgroup$
      – aldo
      Dec 6 '18 at 20:05




      $begingroup$
      Ah so although the curves are different, they all have the same roots. Now its just a matter of which representation is best. Thank you!
      $endgroup$
      – aldo
      Dec 6 '18 at 20:05











      0












      $begingroup$

      You may get numerical errors because cosh(x) grows very quickly.



      Write the equation as



      $cos(x)=frac{1}{cosh{x}}$,



      When $x$ is large, the solutions are going to be approximately



      $cos(x)=0$.



      *** $cos(x)cosh(x)-1=0$ is the frequency equation of an Euler-Bernoulli beam under free-free or fixed-fixed boundary conditions.






      share|cite|improve this answer









      $endgroup$


















        0












        $begingroup$

        You may get numerical errors because cosh(x) grows very quickly.



        Write the equation as



        $cos(x)=frac{1}{cosh{x}}$,



        When $x$ is large, the solutions are going to be approximately



        $cos(x)=0$.



        *** $cos(x)cosh(x)-1=0$ is the frequency equation of an Euler-Bernoulli beam under free-free or fixed-fixed boundary conditions.






        share|cite|improve this answer









        $endgroup$
















          0












          0








          0





          $begingroup$

          You may get numerical errors because cosh(x) grows very quickly.



          Write the equation as



          $cos(x)=frac{1}{cosh{x}}$,



          When $x$ is large, the solutions are going to be approximately



          $cos(x)=0$.



          *** $cos(x)cosh(x)-1=0$ is the frequency equation of an Euler-Bernoulli beam under free-free or fixed-fixed boundary conditions.






          share|cite|improve this answer









          $endgroup$



          You may get numerical errors because cosh(x) grows very quickly.



          Write the equation as



          $cos(x)=frac{1}{cosh{x}}$,



          When $x$ is large, the solutions are going to be approximately



          $cos(x)=0$.



          *** $cos(x)cosh(x)-1=0$ is the frequency equation of an Euler-Bernoulli beam under free-free or fixed-fixed boundary conditions.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Dec 9 '18 at 1:07









          Paulo GonçalvesPaulo Gonçalves

          184




          184























              0












              $begingroup$

              As you noticed and as said in answers, the solutions are closed to $(2n+1)frac pi 2$.



              As @egreg suggested, it is better to look for the zero of function
              $$f(x)=cos (x)-dfrac{1}{cosh (x)}$$



              Let us make one Newton iteration using $x_0=(2n+1)frac pi 2$; this will give as first iterate
              $$x_1=(2n+1)frac pi 2+frac{text{sech}left((2n+1)frac pi 2right)}{(-1)^{n+1}+tanh
              left((2n+1)frac pi 2right), text{sech}left((2n+1)frac pi 2right)}$$
              Now, let us look at
              $$d_n=|x_1-x_0|_n=left|frac{text{sech}left((2n+1)frac pi 2right)}{(-1)^{n+1}+tanh
              left((2n+1)frac pi 2right), text{sech}left((2n+1)frac pi 2right)} right|$$
              and better at $log_{10}(d_n)$. You will get these numbers
              $$left(
              begin{array}{cc}
              n & log_{10}(d_n) \
              1 & -1.75330 \
              2 & -3.10957 \
              3 & -4.47430 \
              4 & -5.83866 \
              5 & -7.20304 \
              6 & -8.56742 \
              7 & -9.93179 \
              8 & -11.2962 \
              9 & -12.6605 \
              10 & -14.0249
              end{array}
              right)$$
              Using a quick and dirty linear regression $log_{10}(d_n)=a+b n$
              $$begin{array}{clclclclc}
              text{} & text{Estimate} & text{Standard Error} & text{Confidence Interval} \
              a & -0.381456 & 0.000156 & {-0.381766,-0.3811462} \
              b & -1.364372 & 0.000003 & {-1.364377,-1.3643667} \
              end{array}$$
              We could even go further in the approximation since the term $tanh(.)text{sech}(.)$ is very small compared to $1$ and make
              $$d_n sim text{sech}left((2n+1)frac pi 2right)approx 2 e^{-(2n+1)frac{pi}{2} }$$ which would give $log_{10}(d_n)=-0.381158 -1.36438 ,n$ (quite close to the regression line) and then
              $$x_1 sim (2n+1)frac pi 2+ 2(-1)^{n+1}e^{-(2n+1)frac{pi}{2} }$$



              Let us try for $n=2$; this very last approxation will give $x_1=7.8532052$ while the "exact" solution would be $7.8532046$.






              share|cite|improve this answer











              $endgroup$


















                0












                $begingroup$

                As you noticed and as said in answers, the solutions are closed to $(2n+1)frac pi 2$.



                As @egreg suggested, it is better to look for the zero of function
                $$f(x)=cos (x)-dfrac{1}{cosh (x)}$$



                Let us make one Newton iteration using $x_0=(2n+1)frac pi 2$; this will give as first iterate
                $$x_1=(2n+1)frac pi 2+frac{text{sech}left((2n+1)frac pi 2right)}{(-1)^{n+1}+tanh
                left((2n+1)frac pi 2right), text{sech}left((2n+1)frac pi 2right)}$$
                Now, let us look at
                $$d_n=|x_1-x_0|_n=left|frac{text{sech}left((2n+1)frac pi 2right)}{(-1)^{n+1}+tanh
                left((2n+1)frac pi 2right), text{sech}left((2n+1)frac pi 2right)} right|$$
                and better at $log_{10}(d_n)$. You will get these numbers
                $$left(
                begin{array}{cc}
                n & log_{10}(d_n) \
                1 & -1.75330 \
                2 & -3.10957 \
                3 & -4.47430 \
                4 & -5.83866 \
                5 & -7.20304 \
                6 & -8.56742 \
                7 & -9.93179 \
                8 & -11.2962 \
                9 & -12.6605 \
                10 & -14.0249
                end{array}
                right)$$
                Using a quick and dirty linear regression $log_{10}(d_n)=a+b n$
                $$begin{array}{clclclclc}
                text{} & text{Estimate} & text{Standard Error} & text{Confidence Interval} \
                a & -0.381456 & 0.000156 & {-0.381766,-0.3811462} \
                b & -1.364372 & 0.000003 & {-1.364377,-1.3643667} \
                end{array}$$
                We could even go further in the approximation since the term $tanh(.)text{sech}(.)$ is very small compared to $1$ and make
                $$d_n sim text{sech}left((2n+1)frac pi 2right)approx 2 e^{-(2n+1)frac{pi}{2} }$$ which would give $log_{10}(d_n)=-0.381158 -1.36438 ,n$ (quite close to the regression line) and then
                $$x_1 sim (2n+1)frac pi 2+ 2(-1)^{n+1}e^{-(2n+1)frac{pi}{2} }$$



                Let us try for $n=2$; this very last approxation will give $x_1=7.8532052$ while the "exact" solution would be $7.8532046$.






                share|cite|improve this answer











                $endgroup$
















                  0












                  0








                  0





                  $begingroup$

                  As you noticed and as said in answers, the solutions are closed to $(2n+1)frac pi 2$.



                  As @egreg suggested, it is better to look for the zero of function
                  $$f(x)=cos (x)-dfrac{1}{cosh (x)}$$



                  Let us make one Newton iteration using $x_0=(2n+1)frac pi 2$; this will give as first iterate
                  $$x_1=(2n+1)frac pi 2+frac{text{sech}left((2n+1)frac pi 2right)}{(-1)^{n+1}+tanh
                  left((2n+1)frac pi 2right), text{sech}left((2n+1)frac pi 2right)}$$
                  Now, let us look at
                  $$d_n=|x_1-x_0|_n=left|frac{text{sech}left((2n+1)frac pi 2right)}{(-1)^{n+1}+tanh
                  left((2n+1)frac pi 2right), text{sech}left((2n+1)frac pi 2right)} right|$$
                  and better at $log_{10}(d_n)$. You will get these numbers
                  $$left(
                  begin{array}{cc}
                  n & log_{10}(d_n) \
                  1 & -1.75330 \
                  2 & -3.10957 \
                  3 & -4.47430 \
                  4 & -5.83866 \
                  5 & -7.20304 \
                  6 & -8.56742 \
                  7 & -9.93179 \
                  8 & -11.2962 \
                  9 & -12.6605 \
                  10 & -14.0249
                  end{array}
                  right)$$
                  Using a quick and dirty linear regression $log_{10}(d_n)=a+b n$
                  $$begin{array}{clclclclc}
                  text{} & text{Estimate} & text{Standard Error} & text{Confidence Interval} \
                  a & -0.381456 & 0.000156 & {-0.381766,-0.3811462} \
                  b & -1.364372 & 0.000003 & {-1.364377,-1.3643667} \
                  end{array}$$
                  We could even go further in the approximation since the term $tanh(.)text{sech}(.)$ is very small compared to $1$ and make
                  $$d_n sim text{sech}left((2n+1)frac pi 2right)approx 2 e^{-(2n+1)frac{pi}{2} }$$ which would give $log_{10}(d_n)=-0.381158 -1.36438 ,n$ (quite close to the regression line) and then
                  $$x_1 sim (2n+1)frac pi 2+ 2(-1)^{n+1}e^{-(2n+1)frac{pi}{2} }$$



                  Let us try for $n=2$; this very last approxation will give $x_1=7.8532052$ while the "exact" solution would be $7.8532046$.






                  share|cite|improve this answer











                  $endgroup$



                  As you noticed and as said in answers, the solutions are closed to $(2n+1)frac pi 2$.



                  As @egreg suggested, it is better to look for the zero of function
                  $$f(x)=cos (x)-dfrac{1}{cosh (x)}$$



                  Let us make one Newton iteration using $x_0=(2n+1)frac pi 2$; this will give as first iterate
                  $$x_1=(2n+1)frac pi 2+frac{text{sech}left((2n+1)frac pi 2right)}{(-1)^{n+1}+tanh
                  left((2n+1)frac pi 2right), text{sech}left((2n+1)frac pi 2right)}$$
                  Now, let us look at
                  $$d_n=|x_1-x_0|_n=left|frac{text{sech}left((2n+1)frac pi 2right)}{(-1)^{n+1}+tanh
                  left((2n+1)frac pi 2right), text{sech}left((2n+1)frac pi 2right)} right|$$
                  and better at $log_{10}(d_n)$. You will get these numbers
                  $$left(
                  begin{array}{cc}
                  n & log_{10}(d_n) \
                  1 & -1.75330 \
                  2 & -3.10957 \
                  3 & -4.47430 \
                  4 & -5.83866 \
                  5 & -7.20304 \
                  6 & -8.56742 \
                  7 & -9.93179 \
                  8 & -11.2962 \
                  9 & -12.6605 \
                  10 & -14.0249
                  end{array}
                  right)$$
                  Using a quick and dirty linear regression $log_{10}(d_n)=a+b n$
                  $$begin{array}{clclclclc}
                  text{} & text{Estimate} & text{Standard Error} & text{Confidence Interval} \
                  a & -0.381456 & 0.000156 & {-0.381766,-0.3811462} \
                  b & -1.364372 & 0.000003 & {-1.364377,-1.3643667} \
                  end{array}$$
                  We could even go further in the approximation since the term $tanh(.)text{sech}(.)$ is very small compared to $1$ and make
                  $$d_n sim text{sech}left((2n+1)frac pi 2right)approx 2 e^{-(2n+1)frac{pi}{2} }$$ which would give $log_{10}(d_n)=-0.381158 -1.36438 ,n$ (quite close to the regression line) and then
                  $$x_1 sim (2n+1)frac pi 2+ 2(-1)^{n+1}e^{-(2n+1)frac{pi}{2} }$$



                  Let us try for $n=2$; this very last approxation will give $x_1=7.8532052$ while the "exact" solution would be $7.8532046$.







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Dec 11 '18 at 6:54

























                  answered Dec 9 '18 at 5:59









                  Claude LeiboviciClaude Leibovici

                  121k1157133




                  121k1157133






























                      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%2f3028716%2fsolve-cosx-coshx-1-0%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

                      Plaza Victoria

                      Puebla de Zaragoza

                      Musa