Evaluating $int_{-infty}^{infty}text{sech}^2(x)cos(x),dx$












3












$begingroup$


I'm studying a paper where an integral of similar form to this one appears:



$$int_{-infty}^{infty}text{sech}^2(x)cos(x),dx$$



The authors only show the result, which involves a hyperbolic cosecant function with a $pi$ in its argument. So, I assume that they considered a closed path and used the residuals theorem. I know that the poles of the integrand function are $z=ileft(frac{pi}{2}+kpiright),,kinmathbb{Z}$. I tried to solve the integral by myself, but I don't know which path to choose. Do you have any hints to solve it?










share|cite|improve this question











$endgroup$

















    3












    $begingroup$


    I'm studying a paper where an integral of similar form to this one appears:



    $$int_{-infty}^{infty}text{sech}^2(x)cos(x),dx$$



    The authors only show the result, which involves a hyperbolic cosecant function with a $pi$ in its argument. So, I assume that they considered a closed path and used the residuals theorem. I know that the poles of the integrand function are $z=ileft(frac{pi}{2}+kpiright),,kinmathbb{Z}$. I tried to solve the integral by myself, but I don't know which path to choose. Do you have any hints to solve it?










    share|cite|improve this question











    $endgroup$















      3












      3








      3





      $begingroup$


      I'm studying a paper where an integral of similar form to this one appears:



      $$int_{-infty}^{infty}text{sech}^2(x)cos(x),dx$$



      The authors only show the result, which involves a hyperbolic cosecant function with a $pi$ in its argument. So, I assume that they considered a closed path and used the residuals theorem. I know that the poles of the integrand function are $z=ileft(frac{pi}{2}+kpiright),,kinmathbb{Z}$. I tried to solve the integral by myself, but I don't know which path to choose. Do you have any hints to solve it?










      share|cite|improve this question











      $endgroup$




      I'm studying a paper where an integral of similar form to this one appears:



      $$int_{-infty}^{infty}text{sech}^2(x)cos(x),dx$$



      The authors only show the result, which involves a hyperbolic cosecant function with a $pi$ in its argument. So, I assume that they considered a closed path and used the residuals theorem. I know that the poles of the integrand function are $z=ileft(frac{pi}{2}+kpiright),,kinmathbb{Z}$. I tried to solve the integral by myself, but I don't know which path to choose. Do you have any hints to solve it?







      improper-integrals






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Jan 9 at 13:31







      Élio Pereira

















      asked Jan 9 at 12:40









      Élio PereiraÉlio Pereira

      402514




      402514






















          1 Answer
          1






          active

          oldest

          votes


















          3












          $begingroup$

          Hint:



          Use $operatorname{Re} e^{ix} =cos x$. Then choose a contour that encircles the upper half-plane.




          By using the residue theorem, we get the result
          $$I= int_{-infty}^{infty} frac{cos x}{cosh^2 x},dx = operatorname{Re} sum_{k=0}^infty 2pi i,operatorname{Res}_{x=ipi (k+1/2)} left(frac{e^{ix}}{cosh^2 x}right).$$
          We can calculate the residues as (the poles are of second order and $cosh^{-2}(x) approx -(x-x_0)^{-2}$ close to the pole at $x_0$.)
          $$operatorname{Res}_{x=ipi (k+1/2)} left(frac{e^{ix}}{cosh^2 x}right) = - frac{d}{dx} e^{ix} Big|_{x=ipi (k+1/2)} = -i e^{-pi(k+1/2)},.$$
          The integral then assumes the form
          $$ I= 2pi sum_{k=0}^infty e^{-pi(k+1/2)} = frac{2pi e^{-pi/2} }{1-e^{-pi}} = frac{pi}{sinh(pi/2)},.$$







          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Aren't the poles of second order? The hyperbolic cosine function is squared.
            $endgroup$
            – Élio Pereira
            Jan 9 at 13:15






          • 1




            $begingroup$
            @ÉlioPereira: thanks, I will correct it.
            $endgroup$
            – Fabian
            Jan 9 at 13:24










          • $begingroup$
            Thank you very much for your help.
            $endgroup$
            – Élio Pereira
            Jan 9 at 13:32










          • $begingroup$
            Can you help me with just one more thing? How could I show that the integral on the arc is null?
            $endgroup$
            – Élio Pereira
            Jan 9 at 16:32








          • 1




            $begingroup$
            @ÉlioPereira: there are different ways to show that. The most straightforward way might be that $|e^{i z}/cosh(z)^2| = 2e^{-y}/(cos 2 y + cosh 2x) leq 2 e^{-y}/(cosh2 x -1)$ for $z=x+i y$. On the arc, we have that $yto+infty$ fast enough that the integral vanishes. To show this technically, you might have to distinguish points $z=r e^{itheta}$ with $|theta -pi/2| < epsilon$ from the rest.
            $endgroup$
            – Fabian
            Jan 9 at 17:56













          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%2f3067407%2fevaluating-int-infty-infty-textsech2x-cosx-dx%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









          3












          $begingroup$

          Hint:



          Use $operatorname{Re} e^{ix} =cos x$. Then choose a contour that encircles the upper half-plane.




          By using the residue theorem, we get the result
          $$I= int_{-infty}^{infty} frac{cos x}{cosh^2 x},dx = operatorname{Re} sum_{k=0}^infty 2pi i,operatorname{Res}_{x=ipi (k+1/2)} left(frac{e^{ix}}{cosh^2 x}right).$$
          We can calculate the residues as (the poles are of second order and $cosh^{-2}(x) approx -(x-x_0)^{-2}$ close to the pole at $x_0$.)
          $$operatorname{Res}_{x=ipi (k+1/2)} left(frac{e^{ix}}{cosh^2 x}right) = - frac{d}{dx} e^{ix} Big|_{x=ipi (k+1/2)} = -i e^{-pi(k+1/2)},.$$
          The integral then assumes the form
          $$ I= 2pi sum_{k=0}^infty e^{-pi(k+1/2)} = frac{2pi e^{-pi/2} }{1-e^{-pi}} = frac{pi}{sinh(pi/2)},.$$







          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Aren't the poles of second order? The hyperbolic cosine function is squared.
            $endgroup$
            – Élio Pereira
            Jan 9 at 13:15






          • 1




            $begingroup$
            @ÉlioPereira: thanks, I will correct it.
            $endgroup$
            – Fabian
            Jan 9 at 13:24










          • $begingroup$
            Thank you very much for your help.
            $endgroup$
            – Élio Pereira
            Jan 9 at 13:32










          • $begingroup$
            Can you help me with just one more thing? How could I show that the integral on the arc is null?
            $endgroup$
            – Élio Pereira
            Jan 9 at 16:32








          • 1




            $begingroup$
            @ÉlioPereira: there are different ways to show that. The most straightforward way might be that $|e^{i z}/cosh(z)^2| = 2e^{-y}/(cos 2 y + cosh 2x) leq 2 e^{-y}/(cosh2 x -1)$ for $z=x+i y$. On the arc, we have that $yto+infty$ fast enough that the integral vanishes. To show this technically, you might have to distinguish points $z=r e^{itheta}$ with $|theta -pi/2| < epsilon$ from the rest.
            $endgroup$
            – Fabian
            Jan 9 at 17:56


















          3












          $begingroup$

          Hint:



          Use $operatorname{Re} e^{ix} =cos x$. Then choose a contour that encircles the upper half-plane.




          By using the residue theorem, we get the result
          $$I= int_{-infty}^{infty} frac{cos x}{cosh^2 x},dx = operatorname{Re} sum_{k=0}^infty 2pi i,operatorname{Res}_{x=ipi (k+1/2)} left(frac{e^{ix}}{cosh^2 x}right).$$
          We can calculate the residues as (the poles are of second order and $cosh^{-2}(x) approx -(x-x_0)^{-2}$ close to the pole at $x_0$.)
          $$operatorname{Res}_{x=ipi (k+1/2)} left(frac{e^{ix}}{cosh^2 x}right) = - frac{d}{dx} e^{ix} Big|_{x=ipi (k+1/2)} = -i e^{-pi(k+1/2)},.$$
          The integral then assumes the form
          $$ I= 2pi sum_{k=0}^infty e^{-pi(k+1/2)} = frac{2pi e^{-pi/2} }{1-e^{-pi}} = frac{pi}{sinh(pi/2)},.$$







          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            Aren't the poles of second order? The hyperbolic cosine function is squared.
            $endgroup$
            – Élio Pereira
            Jan 9 at 13:15






          • 1




            $begingroup$
            @ÉlioPereira: thanks, I will correct it.
            $endgroup$
            – Fabian
            Jan 9 at 13:24










          • $begingroup$
            Thank you very much for your help.
            $endgroup$
            – Élio Pereira
            Jan 9 at 13:32










          • $begingroup$
            Can you help me with just one more thing? How could I show that the integral on the arc is null?
            $endgroup$
            – Élio Pereira
            Jan 9 at 16:32








          • 1




            $begingroup$
            @ÉlioPereira: there are different ways to show that. The most straightforward way might be that $|e^{i z}/cosh(z)^2| = 2e^{-y}/(cos 2 y + cosh 2x) leq 2 e^{-y}/(cosh2 x -1)$ for $z=x+i y$. On the arc, we have that $yto+infty$ fast enough that the integral vanishes. To show this technically, you might have to distinguish points $z=r e^{itheta}$ with $|theta -pi/2| < epsilon$ from the rest.
            $endgroup$
            – Fabian
            Jan 9 at 17:56
















          3












          3








          3





          $begingroup$

          Hint:



          Use $operatorname{Re} e^{ix} =cos x$. Then choose a contour that encircles the upper half-plane.




          By using the residue theorem, we get the result
          $$I= int_{-infty}^{infty} frac{cos x}{cosh^2 x},dx = operatorname{Re} sum_{k=0}^infty 2pi i,operatorname{Res}_{x=ipi (k+1/2)} left(frac{e^{ix}}{cosh^2 x}right).$$
          We can calculate the residues as (the poles are of second order and $cosh^{-2}(x) approx -(x-x_0)^{-2}$ close to the pole at $x_0$.)
          $$operatorname{Res}_{x=ipi (k+1/2)} left(frac{e^{ix}}{cosh^2 x}right) = - frac{d}{dx} e^{ix} Big|_{x=ipi (k+1/2)} = -i e^{-pi(k+1/2)},.$$
          The integral then assumes the form
          $$ I= 2pi sum_{k=0}^infty e^{-pi(k+1/2)} = frac{2pi e^{-pi/2} }{1-e^{-pi}} = frac{pi}{sinh(pi/2)},.$$







          share|cite|improve this answer











          $endgroup$



          Hint:



          Use $operatorname{Re} e^{ix} =cos x$. Then choose a contour that encircles the upper half-plane.




          By using the residue theorem, we get the result
          $$I= int_{-infty}^{infty} frac{cos x}{cosh^2 x},dx = operatorname{Re} sum_{k=0}^infty 2pi i,operatorname{Res}_{x=ipi (k+1/2)} left(frac{e^{ix}}{cosh^2 x}right).$$
          We can calculate the residues as (the poles are of second order and $cosh^{-2}(x) approx -(x-x_0)^{-2}$ close to the pole at $x_0$.)
          $$operatorname{Res}_{x=ipi (k+1/2)} left(frac{e^{ix}}{cosh^2 x}right) = - frac{d}{dx} e^{ix} Big|_{x=ipi (k+1/2)} = -i e^{-pi(k+1/2)},.$$
          The integral then assumes the form
          $$ I= 2pi sum_{k=0}^infty e^{-pi(k+1/2)} = frac{2pi e^{-pi/2} }{1-e^{-pi}} = frac{pi}{sinh(pi/2)},.$$








          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Jan 9 at 13:24

























          answered Jan 9 at 12:44









          FabianFabian

          19.7k3674




          19.7k3674












          • $begingroup$
            Aren't the poles of second order? The hyperbolic cosine function is squared.
            $endgroup$
            – Élio Pereira
            Jan 9 at 13:15






          • 1




            $begingroup$
            @ÉlioPereira: thanks, I will correct it.
            $endgroup$
            – Fabian
            Jan 9 at 13:24










          • $begingroup$
            Thank you very much for your help.
            $endgroup$
            – Élio Pereira
            Jan 9 at 13:32










          • $begingroup$
            Can you help me with just one more thing? How could I show that the integral on the arc is null?
            $endgroup$
            – Élio Pereira
            Jan 9 at 16:32








          • 1




            $begingroup$
            @ÉlioPereira: there are different ways to show that. The most straightforward way might be that $|e^{i z}/cosh(z)^2| = 2e^{-y}/(cos 2 y + cosh 2x) leq 2 e^{-y}/(cosh2 x -1)$ for $z=x+i y$. On the arc, we have that $yto+infty$ fast enough that the integral vanishes. To show this technically, you might have to distinguish points $z=r e^{itheta}$ with $|theta -pi/2| < epsilon$ from the rest.
            $endgroup$
            – Fabian
            Jan 9 at 17:56




















          • $begingroup$
            Aren't the poles of second order? The hyperbolic cosine function is squared.
            $endgroup$
            – Élio Pereira
            Jan 9 at 13:15






          • 1




            $begingroup$
            @ÉlioPereira: thanks, I will correct it.
            $endgroup$
            – Fabian
            Jan 9 at 13:24










          • $begingroup$
            Thank you very much for your help.
            $endgroup$
            – Élio Pereira
            Jan 9 at 13:32










          • $begingroup$
            Can you help me with just one more thing? How could I show that the integral on the arc is null?
            $endgroup$
            – Élio Pereira
            Jan 9 at 16:32








          • 1




            $begingroup$
            @ÉlioPereira: there are different ways to show that. The most straightforward way might be that $|e^{i z}/cosh(z)^2| = 2e^{-y}/(cos 2 y + cosh 2x) leq 2 e^{-y}/(cosh2 x -1)$ for $z=x+i y$. On the arc, we have that $yto+infty$ fast enough that the integral vanishes. To show this technically, you might have to distinguish points $z=r e^{itheta}$ with $|theta -pi/2| < epsilon$ from the rest.
            $endgroup$
            – Fabian
            Jan 9 at 17:56


















          $begingroup$
          Aren't the poles of second order? The hyperbolic cosine function is squared.
          $endgroup$
          – Élio Pereira
          Jan 9 at 13:15




          $begingroup$
          Aren't the poles of second order? The hyperbolic cosine function is squared.
          $endgroup$
          – Élio Pereira
          Jan 9 at 13:15




          1




          1




          $begingroup$
          @ÉlioPereira: thanks, I will correct it.
          $endgroup$
          – Fabian
          Jan 9 at 13:24




          $begingroup$
          @ÉlioPereira: thanks, I will correct it.
          $endgroup$
          – Fabian
          Jan 9 at 13:24












          $begingroup$
          Thank you very much for your help.
          $endgroup$
          – Élio Pereira
          Jan 9 at 13:32




          $begingroup$
          Thank you very much for your help.
          $endgroup$
          – Élio Pereira
          Jan 9 at 13:32












          $begingroup$
          Can you help me with just one more thing? How could I show that the integral on the arc is null?
          $endgroup$
          – Élio Pereira
          Jan 9 at 16:32






          $begingroup$
          Can you help me with just one more thing? How could I show that the integral on the arc is null?
          $endgroup$
          – Élio Pereira
          Jan 9 at 16:32






          1




          1




          $begingroup$
          @ÉlioPereira: there are different ways to show that. The most straightforward way might be that $|e^{i z}/cosh(z)^2| = 2e^{-y}/(cos 2 y + cosh 2x) leq 2 e^{-y}/(cosh2 x -1)$ for $z=x+i y$. On the arc, we have that $yto+infty$ fast enough that the integral vanishes. To show this technically, you might have to distinguish points $z=r e^{itheta}$ with $|theta -pi/2| < epsilon$ from the rest.
          $endgroup$
          – Fabian
          Jan 9 at 17:56






          $begingroup$
          @ÉlioPereira: there are different ways to show that. The most straightforward way might be that $|e^{i z}/cosh(z)^2| = 2e^{-y}/(cos 2 y + cosh 2x) leq 2 e^{-y}/(cosh2 x -1)$ for $z=x+i y$. On the arc, we have that $yto+infty$ fast enough that the integral vanishes. To show this technically, you might have to distinguish points $z=r e^{itheta}$ with $|theta -pi/2| < epsilon$ from the rest.
          $endgroup$
          – Fabian
          Jan 9 at 17:56




















          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%2f3067407%2fevaluating-int-infty-infty-textsech2x-cosx-dx%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

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith